Documentation ¶
Index ¶
- Constants
- func Get[T interface{ ... }](req Request, key ObjectKey) T
- func GetCurrent[T client.Object](req Request, key ObjectKey) T
- func GetNew[T client.Object](req Request, key ObjectKey) T
- func IsOwnedBy(owner metav1.Object, obj metav1.Object) bool
- func ObjectsEquals(o1, o2 client.Object) bool
- type CapsuleReconciler
- type CronJobStep
- type DeploymentStep
- type NetworkStep
- type Object
- type ObjectKey
- type ObjectsEqual
- type Pipeline
- func (p *Pipeline) AddStep(step Step)
- func (p *Pipeline) Capsule() *v1alpha2.Capsule
- func (p *Pipeline) Client() client.Client
- func (p *Pipeline) Config() *configv1alpha1.OperatorConfig
- func (p *Pipeline) GetCurrent(key ObjectKey) client.Object
- func (p *Pipeline) GetNew(key ObjectKey) client.Object
- func (p *Pipeline) MarkUsedResource(res v1alpha2.UsedResource)
- func (p *Pipeline) NamedObjectKey(name string, gvk schema.GroupVersionKind) ObjectKey
- func (p *Pipeline) ObjectKey(gvk schema.GroupVersionKind) ObjectKey
- func (p *Pipeline) Run(ctx context.Context) error
- func (p *Pipeline) Scheme() *runtime.Scheme
- func (p *Pipeline) Set(key ObjectKey, obj client.Object)
- type Request
- type ServiceAccountStep
- type ServiceMonitorStep
- type Step
- type VPAStep
Constants ¶
View Source
const ( AnnotationChecksumFiles = "rig.dev/config-checksum-files" AnnotationChecksumAutoEnv = "rig.dev/config-checksum-auto-env" AnnotationChecksumEnv = "rig.dev/config-checksum-env" LabelCapsule = "rig.dev/capsule" LabelCron = "batch.kubernets.io/cronjob" )
View Source
const (
LabelOwnedByCapsule = "rig.dev/owned-by-capsule"
)
Variables ¶
This section is empty.
Functions ¶
func Get ¶ added in v1.6.4
func Get[T interface { client.Object comparable }](req Request, key ObjectKey, ) T
func ObjectsEquals ¶ added in v1.6.4
Types ¶
type CapsuleReconciler ¶
type CapsuleReconciler struct { client.Client Scheme *runtime.Scheme Config *configv1alpha1.OperatorConfig ClientSet clientset.Interface CapabilitiesService capabilities.Service }
CapsuleReconciler reconciles a Capsule object
func (*CapsuleReconciler) Reconcile ¶
Reconcile compares the state specified by the Capsule object against the actual cluster state, and then performs operations to make the cluster state reflect the state specified by the Capsule.
func (*CapsuleReconciler) SetupWithManager ¶
func (r *CapsuleReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CronJobStep ¶ added in v1.6.4
type CronJobStep struct{}
func NewCronJobStep ¶ added in v1.6.4
func NewCronJobStep() *CronJobStep
type DeploymentStep ¶ added in v1.6.4
type DeploymentStep struct{}
func NewDeploymentStep ¶ added in v1.6.4
func NewDeploymentStep() *DeploymentStep
type NetworkStep ¶ added in v1.6.4
type NetworkStep struct{}
func NewNetworkStep ¶ added in v1.6.4
func NewNetworkStep() *NetworkStep
type ObjectKey ¶ added in v1.6.4
type ObjectKey struct { client.ObjectKey schema.GroupVersionKind }
func (ObjectKey) MarshalLog ¶ added in v1.6.4
func (ok ObjectKey) MarshalLog() interface{}
type ObjectsEqual ¶ added in v1.6.4
type Pipeline ¶ added in v1.6.4
type Pipeline struct {
// contains filtered or unexported fields
}
func NewPipeline ¶ added in v1.6.4
func (*Pipeline) Config ¶ added in v1.6.4
func (p *Pipeline) Config() *configv1alpha1.OperatorConfig
func (*Pipeline) GetCurrent ¶ added in v1.6.4
func (*Pipeline) MarkUsedResource ¶ added in v1.6.4
func (p *Pipeline) MarkUsedResource(res v1alpha2.UsedResource)
func (*Pipeline) NamedObjectKey ¶ added in v1.6.4
func (p *Pipeline) NamedObjectKey(name string, gvk schema.GroupVersionKind) ObjectKey
type Request ¶ added in v1.6.4
type Request interface { Config() *configv1alpha1.OperatorConfig Scheme() *runtime.Scheme Client() client.Client Capsule() *v1alpha2.Capsule GetCurrent(key ObjectKey) client.Object GetNew(key ObjectKey) client.Object Set(key ObjectKey, obj client.Object) NamedObjectKey(name string, gvk schema.GroupVersionKind) ObjectKey ObjectKey(gvk schema.GroupVersionKind) ObjectKey MarkUsedResource(res v1alpha2.UsedResource) }
type ServiceAccountStep ¶ added in v1.6.4
type ServiceAccountStep struct{}
func NewServiceAccountStep ¶ added in v1.6.4
func NewServiceAccountStep() *ServiceAccountStep
type ServiceMonitorStep ¶ added in v1.6.4
type ServiceMonitorStep struct{}
func NewServiceMonitorStep ¶ added in v1.6.4
func NewServiceMonitorStep() *ServiceMonitorStep
Click to show internal directories.
Click to hide internal directories.