client

package
v0.0.0-...-5af6bcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanClusterRoleBindings

func CleanClusterRoleBindings(ctx context.Context, c client.Client, uid types.UID, selector labels.Selector) error

func CleanClusterRoles

func CleanClusterRoles(ctx context.Context, c client.Client, uid types.UID, selector labels.Selector) error

func CreateOrUpdateApps

func CreateOrUpdateApps(ctx context.Context, c client.Client, s *v1alpha1.Apps) error

CreateOrUpdateApps applies the given apps against the client.

func CreateOrUpdateCapsule

func CreateOrUpdateCapsule(ctx context.Context, c client.Client, s *v1alpha1.Capsule) error

CreateOrUpdateCapsule applies the given capsule against the client.

func CreateOrUpdateClusterRole

func CreateOrUpdateClusterRole(ctx context.Context, c client.Client, clusterRole *rbac_v1.ClusterRole) error

CreateOrUpdateClusterRole applies the given clusterRole against the client.

func CreateOrUpdateClusterRoleBinding

func CreateOrUpdateClusterRoleBinding(ctx context.Context, c client.Client, crb *rbac_v1.ClusterRoleBinding) error

CreateOrUpdateClusterRoleBinding applies the given crb against the client.

func CreateOrUpdateConfigMap

func CreateOrUpdateConfigMap(ctx context.Context, c client.Client, s *v1.ConfigMap) error

CreateOrUpdateConfigMap applies the given secret against the client.

func CreateOrUpdateCronJob

func CreateOrUpdateCronJob(ctx context.Context, c client.Client, d *batch_v1.CronJob) error

CreateOrUpdateCronJob applies the given CronJob against the client.

func CreateOrUpdateDaemonSet

func CreateOrUpdateDaemonSet(ctx context.Context, c client.Client, ss *apps_v1.DaemonSet) error

CreateOrUpdateDaemonSet applies the given DaemonSet against the client.

func CreateOrUpdateDeployment

func CreateOrUpdateDeployment(ctx context.Context, c client.Client, d *apps_v1.Deployment) error

CreateOrUpdateDeployment applies the given DaemonSet against the client.

func CreateOrUpdateEndpoints

func CreateOrUpdateEndpoints(ctx context.Context, c client.Client, eps *v1.Endpoints) error

CreateOrUpdateEndpoints applies the given eps against the client.

func CreateOrUpdateExporters

func CreateOrUpdateExporters(ctx context.Context, c client.Client, s *v1alpha1.Exporters) error

CreateOrUpdateExporters applies the given exporters against the client.

func CreateOrUpdateHPA

CreateOrUpdateHPA applies the given HPA against the client.

func CreateOrUpdateIngress

func CreateOrUpdateIngress(ctx context.Context, c client.Client, i *networking_v1.Ingress) error

func CreateOrUpdateJob

func CreateOrUpdateJob(ctx context.Context, c client.Client, d *batch_v1.Job) error

CreateOrUpdateJob applies the given Job against the client.

func CreateOrUpdateReplicaSet

func CreateOrUpdateReplicaSet(ctx context.Context, c client.Client, d *apps_v1.ReplicaSet) error

CreateOrUpdateReplicaSet applies the given ReplicaSet against the client.

func CreateOrUpdateRole

func CreateOrUpdateRole(ctx context.Context, c client.Client, role *rbac_v1.Role) error

CreateOrUpdateRole applies the given role against the client.

func CreateOrUpdateRoleBinding

func CreateOrUpdateRoleBinding(ctx context.Context, c client.Client, roleBinding *rbac_v1.RoleBinding) error

CreateOrUpdateRoleBinding applies the given rolebinding against the client.

func CreateOrUpdateSecret

func CreateOrUpdateSecret(ctx context.Context, c client.Client, s *v1.Secret) error

CreateOrUpdateSecret applies the given secret against the client.

func CreateOrUpdateService

func CreateOrUpdateService(ctx context.Context, c client.Client, svc *v1.Service) error

CreateOrUpdateService applies the given svc against the client.

func CreateOrUpdateServiceAccount

func CreateOrUpdateServiceAccount(ctx context.Context, c client.Client, sa *v1.ServiceAccount) error

CreateOrUpdateServiceAccount applies the given sa against the client.

func CreateOrUpdateStatefulSet

func CreateOrUpdateStatefulSet(ctx context.Context, c client.Client, ss *apps_v1.StatefulSet) error

CreateOrUpdateStatefulSet applies the given StatefulSet against the client.

func SanitizeVolumeName

func SanitizeVolumeName(name string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL