Documentation ¶
Index ¶
- func CopyStringMap(source map[string]string) map[string]string
- func GetAnnotationsChecksum(annotations map[string]string) string
- func GetDeployment(ctx context.Context, name string, namespace string) (*v1.Deployment, error)
- func GetDockhandSecretsListFromK8sSecrets(ctx context.Context, secretNames []string, namespace string) ([]string, error)
- func GetLeaseLock(leaseId string, leaseName string, namespace string) (*resourcelock.LeaseLock, error)
- func GetSecretsChecksum(ctx context.Context, names []string, namespace string) (string, error)
- func GetServiceCertificate(ctx context.Context, name string, namespace string) (*tls.Certificate, []byte, error)
- func UpdateCABundleForWebhook(ctx context.Context, name string, caBundleBytes []byte) error
- func UpdateDeployment(ctx context.Context, deployment *v1.Deployment, namespace string) (*v1.Deployment, error)
- func UpdateTlsCertificateSecret(ctx context.Context, name string, namespace string, serverPem []byte, ...) error
- type PatchOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnnotationsChecksum ¶ added in v1.1.2
GetAnnotationsChecksum takes an annotation map and returns a sha1 checksum.
func GetDeployment ¶ added in v0.3.0
func GetLeaseLock ¶ added in v0.3.0
func GetSecretsChecksum ¶
GetSecretsChecksum takes a set of secrets in a namespace and returns a checksum of all of the data in those secrets
func GetServiceCertificate ¶
func GetServiceCertificate(ctx context.Context, name string, namespace string) (*tls.Certificate, []byte, error)
GetServiceCertificate for service and namespace.
func UpdateCABundleForWebhook ¶
UpdateCABundleForWebhook updates the CA Bundle
func UpdateDeployment ¶ added in v0.3.0
func UpdateDeployment(ctx context.Context, deployment *v1.Deployment, namespace string) (*v1.Deployment, error)
Types ¶
type PatchOperation ¶
type PatchOperation struct { Op string `json:"op"` Path string `json:"path"` Value interface{} `json:"value,omitempty"` }
func GenerateMetadataLabelsPatch ¶
func GenerateMetadataLabelsPatch(target map[string]string, added map[string]string) (patch []PatchOperation)
func GenerateSpecTemplateAnnotationPatch ¶
func GenerateSpecTemplateAnnotationPatch(target map[string]string, added map[string]string) (patch []PatchOperation)
Click to show internal directories.
Click to hide internal directories.