Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/openstack/barbican.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func ReconcileBarbican(ctx context.Context, instance *corev1beta1.OpenStackContr
}

// Application Credential Management (Day-2 operation)
barbicanReady := barbican.Status.ObservedGeneration == barbican.Generation && barbican.IsReady()
barbicanReady := barbican.Status.Conditions != nil && barbican.Status.ObservedGeneration == barbican.Generation && barbican.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
barbicanSecret := instance.Spec.Barbican.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/cinder.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func ReconcileCinder(ctx context.Context, instance *corev1beta1.OpenStackControl
}

// Application Credential Management (Day-2 operation)
cinderReady := cinder.Status.ObservedGeneration == cinder.Generation && cinder.IsReady()
cinderReady := cinder.Status.Conditions != nil && cinder.Status.ObservedGeneration == cinder.Generation && cinder.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
cinderSecret := instance.Spec.Cinder.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/designate.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func ReconcileDesignate(ctx context.Context, instance *corev1beta1.OpenStackCont
}

// Application Credential Management (Day-2 operation)
designateReady := designate.Status.ObservedGeneration == designate.Generation && designate.IsReady()
designateReady := designate.Status.Conditions != nil && designate.Status.ObservedGeneration == designate.Generation && designate.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
designateSecret := instance.Spec.Designate.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/glance.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func ReconcileGlance(ctx context.Context, instance *corev1beta1.OpenStackControl

// Application Credential Management (Day-2 operation)
// Check if AC should be enabled and manage it accordingly
glanceReady := glance.Status.ObservedGeneration == glance.Generation && glance.IsReady()
glanceReady := glance.Status.Conditions != nil && glance.Status.ObservedGeneration == glance.Generation && glance.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
glanceSecret := instance.Spec.Glance.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/heat.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func ReconcileHeat(ctx context.Context, instance *corev1beta1.OpenStackControlPl
instance.Spec.Heat.Template.HeatCfnAPI.TLS.CaBundleSecretName = instance.Status.TLS.CaBundleSecretName

// Application Credential Management (Day-2 operation)
heatReady := heat.Status.ObservedGeneration == heat.Generation && heat.IsReady()
heatReady := heat.Status.Conditions != nil && heat.Status.ObservedGeneration == heat.Generation && heat.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
heatSecret := instance.Spec.Heat.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/ironic.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func ReconcileIronic(ctx context.Context, instance *corev1beta1.OpenStackControl

// Application Credential Management (Day-2 operation)
// Ironic has 2 users: ironic (main service) and ironic-inspector
ironicReady := ironic.Status.ObservedGeneration == ironic.Generation && ironic.IsReady()
ironicReady := ironic.Status.Conditions != nil && ironic.Status.ObservedGeneration == ironic.Generation && ironic.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
// Both ironic and ironic-inspector share the same secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/manila.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func ReconcileManila(ctx context.Context, instance *corev1beta1.OpenStackControl
}

// Application Credential Management (Day-2 operation)
manilaReady := manila.Status.ObservedGeneration == manila.Generation && manila.IsReady()
manilaReady := manila.Status.Conditions != nil && manila.Status.ObservedGeneration == manila.Generation && manila.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
manilaSecret := instance.Spec.Manila.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/neutron.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func ReconcileNeutron(ctx context.Context, instance *corev1beta1.OpenStackContro
instance.Spec.Neutron.Template.TLS.CaBundleSecretName = instance.Status.TLS.CaBundleSecretName

// Application Credential Management (Day-2 operation)
neutronReady := neutronAPI.Status.ObservedGeneration == neutronAPI.Generation && neutronAPI.IsReady()
neutronReady := neutronAPI.Status.Conditions != nil && neutronAPI.Status.ObservedGeneration == neutronAPI.Generation && neutronAPI.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
neutronSecret := instance.Spec.Neutron.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/nova.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func ReconcileNova(ctx context.Context, instance *corev1beta1.OpenStackControlPl
}

// Application Credential Management (Day-2 operation)
novaReady := nova.Status.ObservedGeneration == nova.Generation && nova.IsReady()
novaReady := nova.Status.Conditions != nil && nova.Status.ObservedGeneration == nova.Generation && nova.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
novaSecret := instance.Spec.Nova.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/octavia.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func ReconcileOctavia(ctx context.Context, instance *corev1beta1.OpenStackContro
}

// Application Credential Management (Day-2 operation)
octaviaReady := octavia.Status.ObservedGeneration == octavia.Generation && octavia.IsReady()
octaviaReady := octavia.Status.Conditions != nil && octavia.Status.ObservedGeneration == octavia.Generation && octavia.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
octaviaSecret := instance.Spec.Octavia.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/placement.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func ReconcilePlacementAPI(ctx context.Context, instance *corev1beta1.OpenStackC
}

// Application Credential Management (Day-2 operation)
placementReady := placementAPI.Status.ObservedGeneration == placementAPI.Generation && placementAPI.IsReady()
placementReady := placementAPI.Status.Conditions != nil && placementAPI.Status.ObservedGeneration == placementAPI.Generation && placementAPI.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
placementSecret := instance.Spec.Placement.Template.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/swift.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func ReconcileSwift(ctx context.Context, instance *corev1beta1.OpenStackControlP
}

// Application Credential Management (Day-2 operation)
swiftReady := swift.Status.ObservedGeneration == swift.GetGeneration() && swift.IsReady()
swiftReady := swift.Status.Conditions != nil && swift.Status.ObservedGeneration == swift.GetGeneration() && swift.IsReady()

// Apply same fallback logic as in CreateOrPatch to avoid passing empty values to AC
swiftSecret := instance.Spec.Swift.Template.SwiftProxy.Secret
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func ReconcileTelemetry(ctx context.Context, instance *corev1beta1.OpenStackCont

// Application Credential Management (Day-2 operation)
// Telemetry has 3 separate services with 3 different users: aodh, ceilometer, cloudkitty
telemetryReady := telemetry.Status.ObservedGeneration == telemetry.Generation && telemetry.IsReady()
telemetryReady := telemetry.Status.Conditions != nil && telemetry.Status.ObservedGeneration == telemetry.Generation && telemetry.IsReady()

// AC for Aodh (if service enabled)
if instance.Spec.Telemetry.Template.Autoscaling.Enabled != nil && *instance.Spec.Telemetry.Template.Autoscaling.Enabled {
Expand Down
2 changes: 1 addition & 1 deletion internal/openstack/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func ReconcileWatcher(ctx context.Context, instance *corev1beta1.OpenStackContro

// Application Credential Management (Day-2 operation)
// Watcher uses pointer fields, safely extract values
watcherReady := watcher.Status.ObservedGeneration == watcher.Generation && watcher.IsReady()
watcherReady := watcher.Status.Conditions != nil && watcher.Status.ObservedGeneration == watcher.Generation && watcher.IsReady()

// Helper to get Watcher values (which are pointers) with fallback logic
getWatcherSecret := func() string {
Expand Down