diff --git a/internal/openstack/octavia.go b/internal/openstack/octavia.go index 5765b0152..cb1a1ffed 100644 --- a/internal/openstack/octavia.go +++ b/internal/openstack/octavia.go @@ -169,7 +169,7 @@ func ReconcileOctavia(ctx context.Context, instance *corev1beta1.OpenStackContro // Only call if AC enabled or currently configured if isACEnabled(instance.Spec.ApplicationCredential, instance.Spec.Octavia.ApplicationCredential) || - instance.Spec.Octavia.Template.OctaviaAPI.Auth.ApplicationCredentialSecret != "" { + instance.Spec.Octavia.Template.Auth.ApplicationCredentialSecret != "" { acSecretName, acResult, err := EnsureApplicationCredentialForService( ctx, @@ -194,7 +194,7 @@ func ReconcileOctavia(ctx context.Context, instance *corev1beta1.OpenStackContro // Set ApplicationCredentialSecret based on what the helper returned: // - If AC disabled: returns "" // - If AC enabled and ready: returns the AC secret name - instance.Spec.Octavia.Template.OctaviaAPI.Auth.ApplicationCredentialSecret = acSecretName + instance.Spec.Octavia.Template.Auth.ApplicationCredentialSecret = acSecretName } svcs, err := service.GetServicesListWithLabel(