Skip to content

Commit

Permalink
OpenStackControlPlane controller to watch DNSMasq it owns
Browse files Browse the repository at this point in the history
Right now the OpenStackControlPlane controller does not watch the
DNSMasq resources it owns. If there is an issue with DNSMasq and
gets fixed, the controller won't reconcile and update its conditions.

This adds the DNSMasq to the owners watch list of the
OpenStackControlPlane controller.

Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
  • Loading branch information
stuggi committed Oct 10, 2024
1 parent 4f77c60 commit 09510fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/core/openstackcontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
heatv1 "github.com/openstack-k8s-operators/heat-operator/api/v1beta1"
horizonv1 "github.com/openstack-k8s-operators/horizon-operator/api/v1beta1"
memcachedv1 "github.com/openstack-k8s-operators/infra-operator/apis/memcached/v1beta1"
networkv1 "github.com/openstack-k8s-operators/infra-operator/apis/network/v1beta1"
redisv1 "github.com/openstack-k8s-operators/infra-operator/apis/redis/v1beta1"
ironicv1 "github.com/openstack-k8s-operators/ironic-operator/api/v1beta1"
keystonev1 "github.com/openstack-k8s-operators/keystone-operator/api/v1beta1"
Expand Down Expand Up @@ -562,6 +563,7 @@ func (r *OpenStackControlPlaneReconciler) SetupWithManager(
return ctrl.NewControllerManagedBy(mgr).
For(&corev1beta1.OpenStackControlPlane{}).
Owns(&clientv1.OpenStackClient{}).
Owns(&networkv1.DNSMasq{}).
Owns(&corev1.Secret{}).
Owns(&mariadbv1.Galera{}).
Owns(&memcachedv1.Memcached{}).
Expand Down

0 comments on commit 09510fe

Please sign in to comment.