diff --git a/VERSION b/VERSION index fe04e7f..236c7ad 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.20 +0.0.21 diff --git a/bundle/manifests/susql-operator.clusterserviceversion.yaml b/bundle/manifests/susql-operator.clusterserviceversion.yaml index 076fbe7..38ac88f 100644 --- a/bundle/manifests/susql-operator.clusterserviceversion.yaml +++ b/bundle/manifests/susql-operator.clusterserviceversion.yaml @@ -22,14 +22,14 @@ metadata: ] capabilities: Basic Install categories: Monitoring - containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.20 - createdAt: "2024-06-24T04:37:59Z" + containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.21 + createdAt: "2024-06-27T17:23:07Z" description: 'Aggregates energy data from pods tagged with SusQL labels ' operators.operatorframework.io/builder: operator-sdk-v1.34.1 operators.operatorframework.io/project_layout: go.kubebuilder.io/v4 repository: https://github.com/sustainable-computing-io/susql-operator support: https://github.com/sustainable-computing-io/susql-operator/issues - name: susql-operator.v0.0.20 + name: susql-operator.v0.0.21 namespace: placeholder spec: apiservicedefinitions: {} @@ -224,7 +224,7 @@ spec: value: :8081 - name: METRICS-BIND-ADDRESS value: 127.0.0.1:9999 - image: quay.io/sustainable_computing_io/susql_operator:0.0.20 + image: quay.io/sustainable_computing_io/susql_operator:0.0.21 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -328,4 +328,4 @@ spec: provider: name: SusQL Operator Contributors url: https://github.com/sustainable-computing-io/susql-operator - version: 0.0.20 + version: 0.0.21 diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index f3eb4fb..3a9192b 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -5,4 +5,4 @@ kind: Kustomization images: - name: controller newName: quay.io/sustainable_computing_io/susql_operator - newTag: 0.0.20 + newTag: 0.0.21 diff --git a/internal/controller/labelgroup_controller.go b/internal/controller/labelgroup_controller.go index c243105..c87f5a6 100644 --- a/internal/controller/labelgroup_controller.go +++ b/internal/controller/labelgroup_controller.go @@ -23,6 +23,7 @@ import ( "time" "github.com/go-logr/logr" + corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" @@ -264,6 +265,8 @@ func (r *LabelGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) func (r *LabelGroupReconciler) SetupWithManager(mgr ctrl.Manager) error { controllerManager := ctrl.NewControllerManagedBy(mgr). For(&susqlv1.LabelGroup{}). + // Watch for changes to Pods and enqueue requests for LabelGroup owners + Owns(&corev1.Pod{}). Complete(r) r.Logger.V(5).Info("[SetupWithManager] Initializing Metrics Exporter.")