-
Notifications
You must be signed in to change notification settings - Fork 115
Fix typo in heat Cfn as it is refered to as Cnf instead. #2057
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -1161,8 +1161,8 @@ func (r *OpenStackControlPlane) DefaultServices() { | |
| r.Spec.Heat.Template.Default() | ||
| initializeOverrideSpec(&r.Spec.Heat.APIOverride.Route, true) | ||
| r.Spec.Heat.Template.SetDefaultRouteAnnotations(r.Spec.Heat.APIOverride.Route.Annotations) | ||
| initializeOverrideSpec(&r.Spec.Heat.CnfAPIOverride.Route, true) | ||
| r.Spec.Heat.Template.SetDefaultRouteAnnotations(r.Spec.Heat.CnfAPIOverride.Route.Annotations) | ||
| initializeOverrideSpec(&r.Spec.Heat.CfnAPIOverride.Route, true) | ||
|
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. 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift 🔎 Supported by static analysis🏁 Script executed: kubectl get openstackcontrolplanes --all-namespaces -o json |
jq -e '[.items[] | select(.spec.heat.cnfAPIOverride != null)] | length == 0'Repository: openstack-k8s-operators/openstack-operator Length of output: 221 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- scoped repository knowledge ---'
find /tmp/coderabbit-repo-knowledge/openstack-k8s-operators-openstack-operator-8438cfe2 -maxdepth 2 -type f -name '*.md' -print
for f in /tmp/coderabbit-repo-knowledge/openstack-k8s-operators-openstack-operator-8438cfe2/*/*.md; do
case "$f" in
*webhook*|*api*|*heat*|*learnings*) printf '\n--- %s ---\n' "$f"; head -200 "$f";;
esac
done
printf '%s\n' '--- focused diff ---'
git diff -- api/core/v1beta1/openstackcontrolplane_webhook.go api/core/v1beta1
printf '%s\n' '--- webhook context ---'
sed -n '1125,1185p' api/core/v1beta1/openstackcontrolplane_webhook.go
printf '%s\n' '--- old/new identifiers ---'
rg -n --glob '!vendor/**' 'cnfAPIOverride|cfnAPIOverride|CfnAPIOverride|CnfAPIOverride' .
printf '%s\n' '--- Heat consumer context ---'
sed -n '175,230p' internal/openstack/heat.goRepository: openstack-k8s-operators/openstack-operator Length of output: 10372 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- repository state ---'
git status --short
git rev-parse --show-toplevel
git rev-parse HEAD
git diff --stat HEAD^ HEAD -- api/core/v1beta1/openstackcontrolplane_types.go api/core/v1beta1/openstackcontrolplane_webhook.go config/crd/bases/core.openstack.org_openstackcontrolplanes.yaml api/bases/core.openstack.org_openstackcontrolplanes.yaml
printf '%s\n' '--- parent API declaration ---'
git show HEAD^:api/core/v1beta1/openstackcontrolplane_types.go | sed -n '675,710p'
printf '%s\n' '--- current API declaration ---'
sed -n '675,710p' api/core/v1beta1/openstackcontrolplane_types.go
printf '%s\n' '--- parent webhook references ---'
git grep -n -E 'cnfAPIOverride|cfnAPIOverride' HEAD^ -- api internal config docs test || true
printf '%s\n' '--- current CRD field and version markers ---'
sed -n '5525,5605p' config/crd/bases/core.openstack.org_openstackcontrolplanes.yaml
printf '%s\n' '--- compatibility and conversion references ---'
rg -n --glob '!vendor/**' --glob '!*.sum' -i 'conversion|migration|preserv|unknown.*field|cnfapi|cfnapi|openstackcontrolplane' api config internal | head -250Repository: openstack-k8s-operators/openstack-operator Length of output: 38244 Preserve existing The API tag changed from 🤖 Prompt for AI Agents |
||
| r.Spec.Heat.Template.SetDefaultRouteAnnotations(r.Spec.Heat.CfnAPIOverride.Route.Annotations) | ||
| } | ||
|
|
||
| // Swift | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
Repository: openstack-k8s-operators/openstack-operator
Length of output: 9514
🏁 Script executed:
Repository: openstack-k8s-operators/openstack-operator
Length of output: 50398
🏁 Script executed:
Repository: openstack-k8s-operators/openstack-operator
Length of output: 35470
🏁 Script executed:
Repository: openstack-k8s-operators/openstack-operator
Length of output: 6375
Add a migration path for the renamed serialized field.
The parent type and CRD use
CnfAPIOverrideandcnfAPIOverride, while the new type and CRD useCfnAPIOverrideandcfnAPIOverride. The Heat reconciler reads onlyinstance.Spec.Heat.CfnAPIOverride, and the CRD has no conversion path. Existing objects with the old key can therefore lose their CloudFormation endpoint override after the upgrade. Add a conversion or backfill path before removing the old key.🤖 Prompt for AI Agents