Skip to content

Commit

Permalink
add ciliumnetpol resource to managementcluster controller
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Feb 6, 2024
1 parent 1633c76 commit d5625a4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions service/controller/managementcluster/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -373,6 +387,7 @@ func newResources(config resourcesConfig) ([]resource.Interface, error) {
etcdCertificatesResource,
rbacResource,
alertmanagerConfigResource,
ciliumnetpolResource,
heartbeatWebhookConfigResource,
alertmanagerWiringResource,
remoteWriteConfigResource,
Expand Down

0 comments on commit d5625a4

Please sign in to comment.