Skip to content

Commit a2fec9e

Browse files
committed
Set ownership annotation forimage-registry-certificates CA bundle
1 parent 843b5ad commit a2fec9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/resource/caconfig.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
restclient "k8s.io/client-go/rest"
1515
"k8s.io/klog/v2"
1616

17+
"github.com/openshift/api/annotations"
1718
operatorv1 "github.com/openshift/api/operator/v1"
1819
configlisters "github.com/openshift/client-go/config/listers/config/v1"
1920
imageregistryv1listers "github.com/openshift/client-go/imageregistry/listers/imageregistry/v1"
@@ -105,6 +106,9 @@ func (gcac *generatorCAConfig) expected() (runtime.Object, error) {
105106
ObjectMeta: metav1.ObjectMeta{
106107
Name: gcac.GetName(),
107108
Namespace: gcac.GetNamespace(),
109+
Annotations: map[string]string{
110+
annotations.OpenShiftComponent: "Image Registry",
111+
},
108112
},
109113
Data: map[string]string{},
110114
BinaryData: map[string][]byte{},

0 commit comments

Comments
 (0)