Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureCertificate ¶
func EnsureCertificate[ T interface { *operatorv1beta1.ControlPlane | *operatorv1beta1.DataPlane client.Object }, ]( ctx context.Context, owner T, subject string, mtlsCASecretNN types.NamespacedName, usages []certificatesv1.KeyUsage, cl client.Client, additionalMatchingLabels client.MatchingLabels, ) (op.Result, *corev1.Secret, error)
EnsureCertificate creates a namespace/name Secret for subject signed by the CA in the mtlsCASecretNamespace/mtlsCASecretName Secret, or does nothing if a namespace/name Secret is already present. It returns a boolean indicating if it created a Secret and an error indicating any failures it encountered.
func GetManagedLabelForServiceSecret ¶
func GetManagedLabelForServiceSecret(svcNN types.NamespacedName) client.MatchingLabels
GetManagedLabelForServiceSecret returns a label selector for the ServiceSecret.
func IsTLSSecretValid ¶ added in v1.3.0
IsTLSSecretValid checks if a Secret contains a valid TLS certificate and key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.