From d5625a4341896dbeacc5e5c662c144f2138987cc Mon Sep 17 00:00:00 2001 From: QuantumEnigmaa Date: Tue, 6 Feb 2024 12:33:41 +0100 Subject: [PATCH] add ciliumnetpol resource to managementcluster controller --- service/controller/managementcluster/resource.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/service/controller/managementcluster/resource.go b/service/controller/managementcluster/resource.go index 4f52bef37..c81ce087f 100644 --- a/service/controller/managementcluster/resource.go +++ b/service/controller/managementcluster/resource.go @@ -19,6 +19,7 @@ import ( "github.com/giantswarm/prometheus-meta-operator/v2/service/controller/resource/alerting/alertmanagerwiring" "github.com/giantswarm/prometheus-meta-operator/v2/service/controller/resource/alerting/heartbeat" "github.com/giantswarm/prometheus-meta-operator/v2/service/controller/resource/alerting/heartbeatwebhookconfig" + "github.com/giantswarm/prometheus-meta-operator/v2/service/controller/resource/ciliumnetpol" etcdcertificates "github.com/giantswarm/prometheus-meta-operator/v2/service/controller/resource/etcd-certificates" "github.com/giantswarm/prometheus-meta-operator/v2/service/controller/resource/monitoring/ingress" "github.com/giantswarm/prometheus-meta-operator/v2/service/controller/resource/monitoring/prometheus" @@ -152,6 +153,19 @@ func newResources(config resourcesConfig) ([]resource.Interface, error) { } } + var ciliumnetpolResource resource.Interface + { + c := ciliumnetpol.Config{ + K8sClient: config.K8sClient, + Logger: config.Logger, + } + + ciliumnetpolResource, err = ciliumnetpol.New(c) + if err != nil { + return nil, microerror.Mask(err) + } + } + var heartbeatWebhookConfigResource resource.Interface { c := heartbeatwebhookconfig.Config{ @@ -373,6 +387,7 @@ func newResources(config resourcesConfig) ([]resource.Interface, error) { etcdCertificatesResource, rbacResource, alertmanagerConfigResource, + ciliumnetpolResource, heartbeatWebhookConfigResource, alertmanagerWiringResource, remoteWriteConfigResource,