Documentation
¶
Index ¶
- Constants
- func CreateConfigMapFromDir(ctx context.Context, name types.NamespacedName, client client.Client, fs fs.FS, ...) (controllerutil.OperationResult, error)
- func CreateOrUpdate[T client.Object](ctx context.Context, client client.Client, key types.NamespacedName, ...) (T, controllerutil.OperationResult, error)
- func DefaultLiveness() *corev1.Probe
- func DefineOwner(ctx context.Context, client client.Client, scheme *runtime.Scheme, ...) error
- func GetImage(component, version string) string
- func ImagePullPolicy(o interface{ ... }) corev1.PullPolicy
- func IsDeleted(meta client.Object) bool
- func OwnerReference(o client.Object) metav1.OwnerReference
- func Requeue(after ...time.Duration) *controllerruntime.Result
- func SetSecretError(object apisv1beta2.Object, msg ...string)
- func SetSecretReady(object apisv1beta2.Object, msg ...string)
- func SinglePort(name string, port int32) []v1.ContainerPort
- type Finalizer
- func (f *Finalizer) Add(ctx context.Context, client client.Client, object client.Object) error
- func (f *Finalizer) AssertIsInstalled(ctx context.Context, client client.Client, ob client.Object) error
- func (f *Finalizer) Handle(ctx context.Context, client client.Client, ob client.Object, fn func() error) (bool, error)
- func (f *Finalizer) IsPresent(ob client.Object) bool
- func (f *Finalizer) Remove(ctx context.Context, client client.Client, object client.Object) error
- type Mutator
- type ObjectMutator
- type Reconciler
Constants ¶
View Source
const (
ConditionTypeSecretReady = "SecretReady"
)
View Source
const ReloaderAnnotationKey = "reloader.stakater.com/auto"
Variables ¶
This section is empty.
Functions ¶
func CreateConfigMapFromDir ¶
func CreateConfigMapFromDir(ctx context.Context, name types.NamespacedName, client client.Client, fs fs.FS, rootDir string, mutators ...ObjectMutator[*corev1.ConfigMap]) (controllerutil.OperationResult, error)
func CreateOrUpdate ¶ added in v0.6.1
func CreateOrUpdate[T client.Object](ctx context.Context, client client.Client, key types.NamespacedName, mutators ...ObjectMutator[T]) (T, controllerutil.OperationResult, error)
func DefaultLiveness ¶
func DefineOwner ¶
func ImagePullPolicy ¶
func ImagePullPolicy(o interface { GetVersion() string }) corev1.PullPolicy
func OwnerReference ¶
func OwnerReference(o client.Object) metav1.OwnerReference
func SetSecretError ¶
func SetSecretError(object apisv1beta2.Object, msg ...string)
func SetSecretReady ¶
func SetSecretReady(object apisv1beta2.Object, msg ...string)
func SinglePort ¶
func SinglePort(name string, port int32) []v1.ContainerPort
Types ¶
type Finalizer ¶
type Finalizer struct {
// contains filtered or unexported fields
}
func (*Finalizer) AssertIsInstalled ¶
type ObjectMutator ¶ added in v0.6.1
func WithAnnotations ¶ added in v0.6.1
func WithAnnotations[T client.Object](newAnnotations map[string]string) ObjectMutator[T]
func WithController ¶ added in v0.6.1
func WithReloaderAnnotations ¶ added in v0.6.1
func WithReloaderAnnotations[T client.Object]() ObjectMutator[T]
type Reconciler ¶
type Reconciler[T apisv1beta2.Object] struct { client.Client Scheme *runtime.Scheme Mutator Mutator[T] }
Reconciler reconciles a Stack object
func NewReconciler ¶
func NewReconciler[T apisv1beta2.Object](client client.Client, scheme *runtime.Scheme, mutator Mutator[T]) *Reconciler[T]
func (*Reconciler[T]) SetupWithManager ¶
func (r *Reconciler[T]) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.