Documentation ¶
Index ¶
- Variables
- func ApproveCSR(k8s *kubernetes.Clientset, ctx context.Context, name *string, ...) error
- func CheckSecretValidity(k8s *kubernetes.Clientset, ctx context.Context, name *string, ...) (bool, error)
- func CreateCSR(k8s *kubernetes.Clientset, ctx context.Context, name *string, csr []byte) (*apicertificatesv1.CertificateSigningRequest, error)
- func CreateNamespaceIfNotExists(k8s *kubernetes.Clientset, ctx context.Context, name *string) error
- func CreateOrReplaceSecret(k8s *kubernetes.Clientset, ctx context.Context, name *string, ...) error
- func DeleteCSR(k8s *kubernetes.Clientset, ctx context.Context, name *string) error
- func GetCSRCertificate(k8s *kubernetes.Clientset, ctx context.Context, name *string) (csrContent []byte, err error)
- func GetClientSet(overwriteKubeconfig *string) (*kubernetes.Clientset, error)
- func GetSecretContents(k8s *kubernetes.Clientset, ctx context.Context, name *string, ...) (map[string][]byte, error)
- func GetServiceEndpoints(k8s *kubernetes.Clientset, ctx context.Context, serviceName *string, ...) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MAXCSRRETRIES int = 20 CSRRETRYSLEEP int = 5 )
View Source
var FIELDMANAGER string = "application/vault-k8s-helper"
View Source
var MINVALIDDAYS int = 30
Functions ¶
func ApproveCSR ¶
func ApproveCSR(k8s *kubernetes.Clientset, ctx context.Context, name *string, csr *apicertificatesv1.CertificateSigningRequest) error
func CheckSecretValidity ¶
func CreateCSR ¶
func CreateCSR(k8s *kubernetes.Clientset, ctx context.Context, name *string, csr []byte) (*apicertificatesv1.CertificateSigningRequest, error)
creates new CSR
func CreateOrReplaceSecret ¶
func GetCSRCertificate ¶
func GetClientSet ¶
func GetClientSet(overwriteKubeconfig *string) (*kubernetes.Clientset, error)
func GetSecretContents ¶
func GetServiceEndpoints ¶
func GetServiceEndpoints(k8s *kubernetes.Clientset, ctx context.Context, serviceName *string, namespace *string) ([]string, error)
GetServiceEndpoints returns alphabetically ordered list of pod names of given service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.