Documentation ¶
Index ¶
- func CleanClusterRoleBindings(ctx context.Context, c client.Client, uid types.UID, selector labels.Selector) error
- func CleanClusterRoles(ctx context.Context, c client.Client, uid types.UID, selector labels.Selector) error
- func CreateOrUpdateApps(ctx context.Context, c client.Client, s *v1alpha1.Apps) error
- func CreateOrUpdateCapsule(ctx context.Context, c client.Client, s *v1alpha1.Capsule) error
- func CreateOrUpdateClusterRole(ctx context.Context, c client.Client, clusterRole *rbac_v1.ClusterRole) error
- func CreateOrUpdateClusterRoleBinding(ctx context.Context, c client.Client, crb *rbac_v1.ClusterRoleBinding) error
- func CreateOrUpdateConfigMap(ctx context.Context, c client.Client, s *v1.ConfigMap) error
- func CreateOrUpdateCronJob(ctx context.Context, c client.Client, d *batch_v1.CronJob) error
- func CreateOrUpdateDaemonSet(ctx context.Context, c client.Client, ss *apps_v1.DaemonSet) error
- func CreateOrUpdateDeployment(ctx context.Context, c client.Client, d *apps_v1.Deployment) error
- func CreateOrUpdateEndpoints(ctx context.Context, c client.Client, eps *v1.Endpoints) error
- func CreateOrUpdateExporters(ctx context.Context, c client.Client, s *v1alpha1.Exporters) error
- func CreateOrUpdateHPA(ctx context.Context, c client.Client, ...) error
- func CreateOrUpdateIngress(ctx context.Context, c client.Client, i *networking_v1.Ingress) error
- func CreateOrUpdateJob(ctx context.Context, c client.Client, d *batch_v1.Job) error
- func CreateOrUpdateReplicaSet(ctx context.Context, c client.Client, d *apps_v1.ReplicaSet) error
- func CreateOrUpdateRole(ctx context.Context, c client.Client, role *rbac_v1.Role) error
- func CreateOrUpdateRoleBinding(ctx context.Context, c client.Client, roleBinding *rbac_v1.RoleBinding) 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 CreateOrUpdateServiceAccount(ctx context.Context, c client.Client, sa *v1.ServiceAccount) error
- func CreateOrUpdateStatefulSet(ctx context.Context, c client.Client, ss *apps_v1.StatefulSet) error
- func SanitizeVolumeName(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanClusterRoles ¶
func CreateOrUpdateApps ¶
CreateOrUpdateApps applies the given apps against the client.
func CreateOrUpdateCapsule ¶
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 ¶
CreateOrUpdateConfigMap applies the given secret against the client.
func CreateOrUpdateCronJob ¶
CreateOrUpdateCronJob applies the given CronJob against the client.
func CreateOrUpdateDaemonSet ¶
CreateOrUpdateDaemonSet applies the given DaemonSet against the client.
func CreateOrUpdateDeployment ¶
CreateOrUpdateDeployment applies the given DaemonSet against the client.
func CreateOrUpdateEndpoints ¶
CreateOrUpdateEndpoints applies the given eps against the client.
func CreateOrUpdateExporters ¶
CreateOrUpdateExporters applies the given exporters against the client.
func CreateOrUpdateHPA ¶
func CreateOrUpdateHPA(ctx context.Context, c client.Client, as *autoscaling_v1.HorizontalPodAutoscaler) error
CreateOrUpdateHPA applies the given HPA against the client.
func CreateOrUpdateIngress ¶
func CreateOrUpdateJob ¶
CreateOrUpdateJob applies the given Job against the client.
func CreateOrUpdateReplicaSet ¶
CreateOrUpdateReplicaSet applies the given ReplicaSet against the client.
func CreateOrUpdateRole ¶
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 ¶
CreateOrUpdateSecret applies the given secret against the client.
func CreateOrUpdateService ¶
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 ¶
CreateOrUpdateStatefulSet applies the given StatefulSet against the client.
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.