Documentation ¶
Index ¶
- func CreateOrUpdateDaemonSet(ctx context.Context, c client.Client, ss *apps_v1.DaemonSet, l log.Logger) error
- func CreateOrUpdateDeployment(ctx context.Context, c client.Client, d *apps_v1.Deployment, l log.Logger) error
- func CreateOrUpdateEndpoints(ctx context.Context, c client.Client, eps *v1.Endpoints) error
- func CreateOrUpdateSecret(ctx context.Context, c client.Client, s *v1.Secret) error
- func CreateOrUpdateService(ctx context.Context, c client.Client, svc *v1.Service) error
- func CreateOrUpdateStatefulSet(ctx context.Context, c client.Client, ss *apps_v1.StatefulSet, l log.Logger) error
- func MergePatchContainers(base, patches []v1.Container) ([]v1.Container, error)
- func SanitizeVolumeName(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateDaemonSet ¶ added in v0.19.0
func CreateOrUpdateDaemonSet(ctx context.Context, c client.Client, ss *apps_v1.DaemonSet, l log.Logger) error
CreateOrUpdateDaemonSet applies the given DaemonSet against the client.
func CreateOrUpdateDeployment ¶ added in v0.25.0
func CreateOrUpdateDeployment(ctx context.Context, c client.Client, d *apps_v1.Deployment, l log.Logger) error
CreateOrUpdateDeployment applies the given DaemonSet against the client.
func CreateOrUpdateEndpoints ¶ added in v0.20.0
CreateOrUpdateEndpoints applies the given eps against the client.
func CreateOrUpdateSecret ¶
CreateOrUpdateSecret applies the given secret against the client.
func CreateOrUpdateService ¶
CreateOrUpdateService applies the given svc against the client.
func CreateOrUpdateStatefulSet ¶
func CreateOrUpdateStatefulSet(ctx context.Context, c client.Client, ss *apps_v1.StatefulSet, l log.Logger) error
CreateOrUpdateStatefulSet applies the given StatefulSet against the client.
func MergePatchContainers ¶
MergePatchContainers adds patches to base using a strategic merge patch and iterating by container name, failing on the first error.
Copied from github.com/prometheus-operator/prometheus-operator/pkg/k8sutil.
func SanitizeVolumeName ¶
SanitizeVolumeName ensures that the given volume name is a valid DNS-1123 label accepted by Kubernetes.
Copied from github.com/prometheus-operator/prometheus-operator/pkg/k8sutil.
Types ¶
This section is empty.