Documentation ¶
Index ¶
- Variables
- func ControllerNameFromPod(pod *v1.Pod) (string, *metav1.OwnerReference)
- func GenerateCertificate(ctx context.Context, annotations map[string]string, name string, ...) (ctrl.Result, error)
- func GetCertName(podAnnotations map[string]string, resourceControllerName string) (certName string)
- func MapContains(m map[string]string, s string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var GetConfig = config.GetConfigOrDie
Functions ¶
func ControllerNameFromPod ¶
func ControllerNameFromPod(pod *v1.Pod) (string, *metav1.OwnerReference)
ControllerNameFromPod given a pod will return the root controller from the owner references
func GenerateCertificate ¶
func GenerateCertificate(ctx context.Context, annotations map[string]string, name string, namespace string, ownerReference *metav1.OwnerReference, issuerKind string, issuerName string, certDuration string, certRenewBefore string) (ctrl.Result, error)
GenerateCertificate creates/updates a certificate resource to be used for authentication
func GetCertName ¶
GetCertName returns the name that should be used for the certificate/secret based on an annotation on the pod or the root owner of the pod's name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.