Documentation ¶
Index ¶
- func CreateIfNotExistsConfigMap(ctx context.Context, c client.Client, desired *corev1.ConfigMap) error
- func CreateOrUpdateClusterRole(ctx context.Context, c client.Client, desired *rbacv1.ClusterRole) error
- func CreateOrUpdateClusterRoleBinding(ctx context.Context, c client.Client, desired *rbacv1.ClusterRoleBinding) error
- func CreateOrUpdateConfigMap(ctx context.Context, c client.Client, desired *corev1.ConfigMap) error
- func CreateOrUpdateDaemonSet(ctx context.Context, c client.Client, desired *appsv1.DaemonSet) error
- func CreateOrUpdateDeployment(ctx context.Context, c client.Client, desired *appsv1.Deployment) error
- func CreateOrUpdateSecret(ctx context.Context, c client.Client, desired *corev1.Secret) error
- func CreateOrUpdateService(ctx context.Context, c client.Client, desired *corev1.Service) error
- func CreateOrUpdateServiceAccount(ctx context.Context, c client.Client, desired *corev1.ServiceAccount) error
- func CreateOrUpdateValidatingWebhookConfiguration(ctx context.Context, c client.Client, ...) error
- func GetOrCreateConfigMap(ctx context.Context, c client.Client, name types.NamespacedName) (corev1.ConfigMap, error)
- func GetOrCreateSecret(ctx context.Context, c client.Client, name types.NamespacedName) (corev1.Secret, error)
- type ConfigmapProber
- type DaemonSetAnnotator
- type DaemonSetProber
- type DeploymentProber
- type ResourceCountLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateConfigMap ¶
func CreateOrUpdateDaemonSet ¶
func CreateOrUpdateSecret ¶
func CreateOrUpdateService ¶
func CreateOrUpdateValidatingWebhookConfiguration ¶
func CreateOrUpdateValidatingWebhookConfiguration(ctx context.Context, c client.Client, desired *admissionregistrationv1.ValidatingWebhookConfiguration) error
func GetOrCreateConfigMap ¶
Types ¶
type ConfigmapProber ¶
func (*ConfigmapProber) ReadConfigMapOrEmpty ¶
func (cmp *ConfigmapProber) ReadConfigMapOrEmpty(ctx context.Context, name types.NamespacedName) (string, error)
type DaemonSetAnnotator ¶
func (*DaemonSetAnnotator) SetAnnotation ¶
func (dsa *DaemonSetAnnotator) SetAnnotation(ctx context.Context, name types.NamespacedName, key, value string) error
type DaemonSetProber ¶
func (*DaemonSetProber) IsReady ¶
func (dsp *DaemonSetProber) IsReady(ctx context.Context, name types.NamespacedName) (bool, error)
type DeploymentProber ¶
func (*DeploymentProber) IsReady ¶
func (dp *DeploymentProber) IsReady(ctx context.Context, name types.NamespacedName) (bool, error)
type ResourceCountLock ¶
type ResourceCountLock struct {
// contains filtered or unexported fields
}
func NewResourceCountLock ¶
func NewResourceCountLock(client client.Client, lockName types.NamespacedName, maxOwners int) *ResourceCountLock
func (*ResourceCountLock) TryAcquireLock ¶
Click to show internal directories.
Click to hide internal directories.