Skip to content

Commit 09510fe

Browse files
committed
OpenStackControlPlane controller to watch DNSMasq it owns
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>
1 parent 4f77c60 commit 09510fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

controllers/core/openstackcontrolplane_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
heatv1 "github.com/openstack-k8s-operators/heat-operator/api/v1beta1"
2828
horizonv1 "github.com/openstack-k8s-operators/horizon-operator/api/v1beta1"
2929
memcachedv1 "github.com/openstack-k8s-operators/infra-operator/apis/memcached/v1beta1"
30+
networkv1 "github.com/openstack-k8s-operators/infra-operator/apis/network/v1beta1"
3031
redisv1 "github.com/openstack-k8s-operators/infra-operator/apis/redis/v1beta1"
3132
ironicv1 "github.com/openstack-k8s-operators/ironic-operator/api/v1beta1"
3233
keystonev1 "github.com/openstack-k8s-operators/keystone-operator/api/v1beta1"
@@ -562,6 +563,7 @@ func (r *OpenStackControlPlaneReconciler) SetupWithManager(
562563
return ctrl.NewControllerManagedBy(mgr).
563564
For(&corev1beta1.OpenStackControlPlane{}).
564565
Owns(&clientv1.OpenStackClient{}).
566+
Owns(&networkv1.DNSMasq{}).
565567
Owns(&corev1.Secret{}).
566568
Owns(&mariadbv1.Galera{}).
567569
Owns(&memcachedv1.Memcached{}).

0 commit comments

Comments
 (0)