Documentation
¶
Index ¶
- Constants
- Variables
- func IsOwnedBy(owner metav1.Object, obj metav1.Object) bool
- func LookupGVK(gk schema.GroupKind) (schema.GroupVersionKind, error)
- func ObjectsEquals(o1, o2 client.Object) bool
- type CapsuleRequest
- type CapsuleRequestOption
- type Object
- type ObjectsEqual
- type OutputObject
- type Pipeline
- type ResourceState
- type Result
- type Step
Constants ¶
View Source
const (
LabelOwnedByCapsule = "rig.dev/owned-by-capsule"
)
Variables ¶
View Source
var ( AppsDeploymentGVK = appsv1.SchemeGroupVersion.WithKind("Deployment") CoreServiceGVK = corev1.SchemeGroupVersion.WithKind("Service") CMCertificateGVK = cmv1.SchemeGroupVersion.WithKind(cmv1.CertificateKind) NetIngressGVK = netv1.SchemeGroupVersion.WithKind("Ingress") AutoscalingvHorizontalPodAutoscalerGVK = autoscalingv2.SchemeGroupVersion.WithKind("HorizontalPodAutoscaler") BatchCronJobGVK = batchv1.SchemeGroupVersion.WithKind("CronJob") MonitoringServiceMonitorGVK = monitorv1.SchemeGroupVersion.WithKind(monitorv1.ServiceMonitorsKind) VPAVerticalPodAutoscalerGVK = vpav1.SchemeGroupVersion.WithKind("VerticalPodAutoscaler") CoreServiceAccount = corev1.SchemeGroupVersion.WithKind("ServiceAccount") )
Functions ¶
func ObjectsEquals ¶
Types ¶
type CapsuleRequest ¶
type CapsuleRequest interface { Scheme() *runtime.Scheme Reader() client.Reader Capsule() *v1alpha2.Capsule GetCurrent(obj client.Object) error GetNew(obj client.Object) error Set(obj client.Object) error Delete(obj client.Object) error MarkUsedResource(res v1alpha2.UsedResource) }
func NewCapsuleRequest ¶
func NewCapsuleRequest(p *Pipeline, capsule *v1alpha2.Capsule, opts ...CapsuleRequestOption) CapsuleRequest
type CapsuleRequestOption ¶
type CapsuleRequestOption interface {
// contains filtered or unexported methods
}
func WithDryRun ¶
func WithDryRun() CapsuleRequestOption
func WithForce ¶
func WithForce() CapsuleRequestOption
type ObjectsEqual ¶
type OutputObject ¶
type OutputObject struct { ObjectKey objectKey Object client.Object State ResourceState }
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func (*Pipeline) RunCapsule ¶
type ResourceState ¶
type ResourceState string
const ( ResourceStateDeleted ResourceState = "deleted" ResourceStateUpdated ResourceState = "updated" ResourceStateUnchanged ResourceState = "unchanged" ResourceStateCreated ResourceState = "created" ResourceStateFailed ResourceState = "failed" ResourceStateAlreadyExists ResourceState = "alreadyExists" ResourceStateChangePending ResourceState = "changePending" )
Click to show internal directories.
Click to hide internal directories.