Skip to content

Commit 843b5ad

Browse files
committed
Set ownership annotation for image-registry-ca CA bundle
1 parent 85ac017 commit 843b5ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/resource/imageregistryca.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"
@@ -108,6 +109,9 @@ func (girca *generatorImageRegistryCA) expected() (runtime.Object, error) {
108109
ObjectMeta: metav1.ObjectMeta{
109110
Name: girca.GetName(),
110111
Namespace: girca.GetNamespace(),
112+
Annotations: map[string]string{
113+
annotations.OpenShiftComponent: "Image Registry",
114+
},
111115
},
112116
Data: map[string]string{},
113117
BinaryData: map[string][]byte{},

0 commit comments

Comments
 (0)