Skip to content

Commit

Permalink
Set ownership annotations for konnectivity-agent secret
Browse files Browse the repository at this point in the history
  • Loading branch information
vrutkovs committed Jan 8, 2025
1 parent c177a62 commit ba417c0
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package manifests

import (
"github.com/openshift/api/annotations"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -282,7 +283,17 @@ func KonnectivityClusterSecret(ns string) *corev1.Secret {

func KonnectivityClientSecret(ns string) *corev1.Secret { return secretFor(ns, "konnectivity-client") }

func KonnectivityAgentSecret(ns string) *corev1.Secret { return secretFor(ns, "konnectivity-agent") }
func KonnectivityAgentSecret(ns string) *corev1.Secret {
return &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: "konnectivity-agent",
Namespace: ns,
Annotations: map[string]string{
annotations.OpenShiftComponent: "HyperShift",
},
},
}
}

func IngressCert(ns string) *corev1.Secret { return secretFor(ns, "ingress-crt") }

Expand Down

0 comments on commit ba417c0

Please sign in to comment.