-
Notifications
You must be signed in to change notification settings - Fork 5
Configure WIF for hyperfleet pubsub #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| locals { | ||
| topic_name = var.topic_name != "" ? var.topic_name : "${var.namespace}-${var.resource_type}" | ||
| subscription_name = var.subscription_name != "" ? var.subscription_name : "${var.namespace}-adapter" | ||
| subscription_name = var.subscription_name != "" ? var.subscription_name : "${local.topic_name}-sub" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: find . -path "*/terraform/modules/pubsub/main.tf" -type fRepository: openshift-hyperfleet/hyperfleet-infra Length of output: 115 🏁 Script executed: cat -n ./terraform/modules/pubsub/main.tf | head -50Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 2231 🏁 Script executed: rg -i "namespace.*adapter|adapter.*namespace" --type=tfRepository: openshift-hyperfleet/hyperfleet-infra Length of output: 726 🏁 Script executed: cat -n ./terraform/modules/pubsub/variables.tf | grep -A 5 -B 5 "namespace.*adapter"Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 394 🏁 Script executed: rg "adapter" --type=tf -i | head -30Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 2515 🏁 Script executed: git log --oneline -n 20 -- terraform/modules/pubsub/main.tfRepository: openshift-hyperfleet/hyperfleet-infra Length of output: 102 🏁 Script executed: git show 6c08132:terraform/modules/pubsub/main.tf | head -50Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 1881 🏁 Script executed: git log --all --oneline -- terraform/modules/pubsub/main.tf | head -10Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 179 🏁 Script executed: git show ec8f9c1:terraform/modules/pubsub/main.tf | grep -A 5 "subscription_name"Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 552 🏁 Script executed: rg "hyperfleet-adapter|namespace.*adapter" --type=tf --type=yaml --type=json --type=md -i | grep -v ".git"Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 1068 🏁 Script executed: cat -n terraform/README.md | grep -A 3 -B 3 "adapter"Repository: openshift-hyperfleet/hyperfleet-infra Length of output: 717 Breaking change confirmed: subscription naming convention has been updated without migration mechanism. The subscription naming has changed from To safely migrate existing deployments:
Without these steps, existing deployments will experience service disruption and resource waste. 🤖 Prompt for AI Agents |
||
| dlq_topic_name = "${local.topic_name}-dlq" | ||
|
|
||
| common_labels = merge(var.labels, { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: openshift-hyperfleet/hyperfleet-infra
Length of output: 1694
Add validation to enforce Kubernetes namespace naming conventions on var.developer_name.
The
developer_namevariable currently lacks input validation. Kubernetes namespace names must be valid RFC 1123 DNS labels, which can only contain alphanumeric characters and hyphens (max 253 characters), with names unable to start with a hyphen and alpha characters only lowercase. Since developer usernames typically contain uppercase letters, underscores, or dots, the variable should enforce a regex pattern to validate compatibility before it's used as a namespace name. This prevents deployment failures from invalid Kubernetes resource names.🤖 Prompt for AI Agents