Documentation ¶
Overview ¶
Package common common API Schema definitions for the scoby +kubebuilder:object:generate=true +groupName=scoby.triggermesh.io
Part of this package is inspired by Knative implementation at knative/dev/pkg.
Index ¶
- Constants
- type Address
- type BuiltInfunction
- type Condition
- type Conditions
- type ConditionsFromHook
- type DeploymentFormFactor
- type DeploymentService
- type FormFactor
- type FromSpecConfiguration
- type GlobalParameterConfiguration
- type Hook
- type HookAPIVersion
- type HookCapabilities
- type HookCapability
- type KnativeServiceFormFactor
- type ObjectReference
- type ParameterConfiguration
- type Reference
- type Registration
- type RegistrationFromImage
- type SpecToEnvConfiguration
- type SpecToVolumeConfiguration
- type Status
- type StatusAddElement
- type StatusConfiguration
- type StatusManager
- func (sm *StatusManager) DeleteAnnotation(key string)
- func (sm *StatusManager) GetAnnotation(key string) (bool, *string)
- func (sm *StatusManager) MarkConditionFalse(condtype, reason, message string)
- func (sm *StatusManager) MarkConditionTrue(condtype, reason string)
- func (sm *StatusManager) SetAnnotation(key, value string)
- func (sm *StatusManager) SetCondition(c Condition)
- func (sm *StatusManager) SetObservedGeneration(generation int64)
- type StatusRenderConfiguration
- type StatusValueFromParameter
- type Time
- type Workload
Constants ¶
const ( CRDRegistrationAnnotationHookURL = "hookURL" HookCapabilityPreReconcile HookCapability = "pre-reconcile" HookCapabilityFinalize HookCapability = "finalize" HookAPIVersionV1 HookAPIVersion = "v1" )
const ( ConditionReasonUnknown = "UNKNOWN" ConditionReasonAllTrue = "CONDITIONSOK" ConditionReasonNotAllTrue = "CONDITIONSNOTOK" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { // Ref points to an addressable object. // +optional Ref *Reference `json:"ref,omitempty"` // URI can be an absolute URL(non-empty scheme and non-empty host) pointing to the target or a relative URI. Relative URIs will be resolved using the base URI retrieved from Ref. // +optional URI *apis.URL `json:"uri,omitempty"` }
func (*Address) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Address.
func (*Address) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuiltInfunction ¶
type BuiltInfunction struct { // Function name Name string `json:"name"` // The key to select. // +optional Args []string `json:"args,omitempty"` }
References a built-in function.
func (*BuiltInfunction) DeepCopy ¶
func (in *BuiltInfunction) DeepCopy() *BuiltInfunction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuiltInfunction.
func (*BuiltInfunction) DeepCopyInto ¶
func (in *BuiltInfunction) DeepCopyInto(out *BuiltInfunction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { // type of condition in CamelCase or in foo.example.com/CamelCase. // --- // Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be // useful (see .node.status.conditions), the ability to deconflict is important. // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 Type string `json:"type"` // status of the condition, one of True, False, Unknown. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=True;False;Unknown Status metav1.ConditionStatus `json:"status"` // lastTransitionTime is the last time the condition transitioned from one status to another. // This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Format=date-time LastTransitionTime metav1.Time `json:"lastTransitionTime"` // reason contains a programmatic identifier indicating the reason for the condition's last transition. // Producers of specific condition types may define expected values and meanings for this field, // and whether the values are considered a guaranteed API. // The value should be a CamelCase string. // This field may not be empty. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:MaxLength=1024 // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$` Reason string `json:"reason"` // message is a human readable message indicating details about the transition. // This may be an empty string. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:MaxLength=32768 Message string `json:"message"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Conditions ¶
type Conditions []Condition
Conditions is the schema for the conditions portion of the payload
func (Conditions) DeepCopy ¶
func (in Conditions) DeepCopy() Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (Conditions) DeepCopyInto ¶
func (in Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Conditions) GetByType ¶
func (cs Conditions) GetByType(t string) *Condition
Given a type returns a pointer to the condition that holds it, nil if it does not exist.
type ConditionsFromHook ¶
type ConditionsFromHook struct { // Type of the condition to be informed. Type string `json:"type"` }
ConditionsFromHook are extended conditions that must be informed from the configured Hook.
func (*ConditionsFromHook) DeepCopy ¶
func (in *ConditionsFromHook) DeepCopy() *ConditionsFromHook
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionsFromHook.
func (*ConditionsFromHook) DeepCopyInto ¶
func (in *ConditionsFromHook) DeepCopyInto(out *ConditionsFromHook)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentFormFactor ¶
type DeploymentFormFactor struct { // Replicas for the deployment. Replicas int `json:"replicas"` // Service to create pointing to the deployment. // +optional Service *DeploymentService `json:"service"` }
DeploymentFormFactor contains parameters for Deployment choice.
func (*DeploymentFormFactor) DeepCopy ¶
func (in *DeploymentFormFactor) DeepCopy() *DeploymentFormFactor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentFormFactor.
func (*DeploymentFormFactor) DeepCopyInto ¶
func (in *DeploymentFormFactor) DeepCopyInto(out *DeploymentFormFactor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentService ¶
type DeploymentService struct { // Port exposed at the service. Port int32 `json:"port"` // Port exposed at the target deployment. TargetPort int32 `json:"targetPort"` }
func (*DeploymentService) DeepCopy ¶
func (in *DeploymentService) DeepCopy() *DeploymentService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentService.
func (*DeploymentService) DeepCopyInto ¶
func (in *DeploymentService) DeepCopyInto(out *DeploymentService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FormFactor ¶
type FormFactor struct { // Deployment hosting the user workload. Deployment *DeploymentFormFactor `json:"deployment,omitempty"` // KnativeService hosting the user workload. KnativeService *KnativeServiceFormFactor `json:"knativeService,omitempty"` }
FormFactor contains workload form factor settings.
func (*FormFactor) DeepCopy ¶
func (in *FormFactor) DeepCopy() *FormFactor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FormFactor.
func (*FormFactor) DeepCopyInto ¶
func (in *FormFactor) DeepCopyInto(out *FormFactor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FromSpecConfiguration ¶ added in v0.2.0
type FromSpecConfiguration struct { // JSON simplified path for the parameter. Path string `json:"path"` // Skip sets whether the object should skip rendering // as a workload item. // +optional Skip *bool `json:"skip,omitempty"` // Render options for the parameter generation. // +optional ToEnv *SpecToEnvConfiguration `json:"toEnv,omitempty"` // Render options for the parameter generation. // +optional ToVolume *SpecToVolumeConfiguration `json:"toVolume,omitempty"` }
FromSpecConfiguration contains instructions to generate rendering from the controlled instance spec.
func (*FromSpecConfiguration) DeepCopy ¶ added in v0.2.0
func (in *FromSpecConfiguration) DeepCopy() *FromSpecConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FromSpecConfiguration.
func (*FromSpecConfiguration) DeepCopyInto ¶ added in v0.2.0
func (in *FromSpecConfiguration) DeepCopyInto(out *FromSpecConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FromSpecConfiguration) IsRenderer ¶ added in v0.2.0
func (fsc *FromSpecConfiguration) IsRenderer() bool
func (*FromSpecConfiguration) IsSkip ¶ added in v0.2.0
func (fsc *FromSpecConfiguration) IsSkip() bool
IsSkip returns if the parameter rendering should be skipped.
func (*FromSpecConfiguration) IsValueOverriden ¶ added in v0.2.0
func (fsc *FromSpecConfiguration) IsValueOverriden() bool
type GlobalParameterConfiguration ¶
type GlobalParameterConfiguration struct { // DefaultPrefix to be appeneded to keys by all generated parameters. // This configuration does not affect parameter keys explicitly set by users. // +optional DefaultPrefix *string `json:"defaultPrefix,omitempty"` }
GlobalParameterConfiguration defines configuration to be applied to all generated parameters.
func (*GlobalParameterConfiguration) DeepCopy ¶
func (in *GlobalParameterConfiguration) DeepCopy() *GlobalParameterConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalParameterConfiguration.
func (*GlobalParameterConfiguration) DeepCopyInto ¶
func (in *GlobalParameterConfiguration) DeepCopyInto(out *GlobalParameterConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GlobalParameterConfiguration) GetDefaultPrefix ¶
func (gpc *GlobalParameterConfiguration) GetDefaultPrefix() string
type Hook ¶
type Hook struct { Version HookAPIVersion `json:"version"` Address Address `json:"address"` // Timeout for hook calls. // +optional Timeout *string `json:"timeout"` // Capabilities that a hook implements. Capabilities HookCapabilities `json:"capabilities,omitempty"` }
func (*Hook) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hook.
func (*Hook) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HookAPIVersion ¶
type HookAPIVersion string
type HookCapabilities ¶
type HookCapabilities []HookCapability
func (HookCapabilities) DeepCopy ¶
func (in HookCapabilities) DeepCopy() HookCapabilities
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HookCapabilities.
func (HookCapabilities) DeepCopyInto ¶
func (in HookCapabilities) DeepCopyInto(out *HookCapabilities)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HookCapabilities) IsFinalizer ¶
func (hc HookCapabilities) IsFinalizer() bool
func (HookCapabilities) IsPostReconciler ¶
func (hc HookCapabilities) IsPostReconciler() bool
func (HookCapabilities) IsPreReconciler ¶
func (hc HookCapabilities) IsPreReconciler() bool
type HookCapability ¶
type HookCapability string
type KnativeServiceFormFactor ¶
type KnativeServiceFormFactor struct { // MinScale is the service minimum scaling replicas // +optional MinScale *int `json:"minScale"` // MaxScale is the service maximum scaling replicas // +optional MaxScale *int `json:"maxScale"` // Visibility is the network visibility for the service // +optional Visibility *string `json:"visibility,omitempty"` }
KnativeServiceFormFactor contains parameters for Deployment choice.
func (*KnativeServiceFormFactor) DeepCopy ¶
func (in *KnativeServiceFormFactor) DeepCopy() *KnativeServiceFormFactor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeServiceFormFactor.
func (*KnativeServiceFormFactor) DeepCopyInto ¶
func (in *KnativeServiceFormFactor) DeepCopyInto(out *KnativeServiceFormFactor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectReference ¶
type ObjectReference struct { // Object name Name string `json:"name"` // The key to select. Key string `json:"key"` }
Selects a key from a Secret or ConfigMap.
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParameterConfiguration ¶
type ParameterConfiguration struct { // Global defines the configuration to be applied to all generated parameters. // +optional Global *GlobalParameterConfiguration `json:"global,omitempty"` // AddEnvs contains instructions to create environment variables at the workload // not derived from the user instance. // +optional AddEnvs []corev1.EnvVar `json:"addEnvs,omitempty"` // FromSpec contains instructions to generate workload items from // the instance's spec. // +optional FromSpec []FromSpecConfiguration `json:"fromSpec,omitempty"` }
ParameterConfiguration for the workload.
func (*ParameterConfiguration) DeepCopy ¶
func (in *ParameterConfiguration) DeepCopy() *ParameterConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterConfiguration.
func (*ParameterConfiguration) DeepCopyInto ¶
func (in *ParameterConfiguration) DeepCopyInto(out *ParameterConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Reference ¶
type Reference struct { // Kind of the referent. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind"` // Namespace of the referent. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ // This is optional field, it gets defaulted to the object holding it if left out. // +optional Namespace string `json:"namespace,omitempty"` // Name of the hook address. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names Name string `json:"name"` // API version of the hook address. // +optional APIVersion string `json:"apiVersion,omitempty"` }
Reference contains enough information to refer to another object. It's a trimmed down version of corev1.ObjectReference.
func (*Reference) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Reference.
func (*Reference) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Registration ¶
type Registration interface { runtime.Object metav1.Object GetWorkload() *Workload GetHook() *Hook // Reconciler might add annotations to the status // that can be used at the component's registration. GetStatusAnnotation(string) *string }
+kubebuilder:object:generate=false
type RegistrationFromImage ¶
type RegistrationFromImage struct { // Repo where the image can be downloaded Repo string `json:"repo"` }
RegistrationFromImage contains information to retrieve the container image.
func (*RegistrationFromImage) DeepCopy ¶
func (in *RegistrationFromImage) DeepCopy() *RegistrationFromImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistrationFromImage.
func (*RegistrationFromImage) DeepCopyInto ¶
func (in *RegistrationFromImage) DeepCopyInto(out *RegistrationFromImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpecToEnvConfiguration ¶ added in v0.2.0
type SpecToEnvConfiguration struct { // Name is the name of the parameter to be created. // +optional Name *string `json:"name,omitempty"` // Value is a literal value to be assigned to the parameter when // a value is not provided by users. // +optional DefaultValue *string `json:"defaultValue,omitempty"` // ValueFromConfigMap is a reference to a ConfigMap. // +optional ValueFromConfigMap *ObjectReference `json:"valueFromConfigMap,omitempty"` // ValueFromSecret is a reference to a Secret. // +optional ValueFromSecret *ObjectReference `json:"valueFromSecret,omitempty"` // ValueFromBuiltInFunc configures the field to // be rendered acording to the chosen built-in function. // +optional ValueFromBuiltInFunc *BuiltInfunction `json:"valueFromBuiltInFunc,omitempty"` }
SpecToEnvRenderConfiguration are the customization options for an specific parameter generation.
func (*SpecToEnvConfiguration) DeepCopy ¶ added in v0.2.0
func (in *SpecToEnvConfiguration) DeepCopy() *SpecToEnvConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpecToEnvConfiguration.
func (*SpecToEnvConfiguration) DeepCopyInto ¶ added in v0.2.0
func (in *SpecToEnvConfiguration) DeepCopyInto(out *SpecToEnvConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpecToEnvConfiguration) GetName ¶ added in v0.2.0
func (sec *SpecToEnvConfiguration) GetName() string
GetName returns the key defined at the parameter rendering configuration. Returns an empty string if not defined.
func (*SpecToEnvConfiguration) IsValueOverriden ¶ added in v0.2.0
func (sec *SpecToEnvConfiguration) IsValueOverriden() bool
type SpecToVolumeConfiguration ¶ added in v0.2.0
type SpecToVolumeConfiguration struct { // Name for the volume. Name string `json:"name,omitempty"` // Path where the file will be mounted. MountPath string `json:"mountPath,omitempty"` // ValueFromConfigMap is a reference to a ConfigMap. // +optional ValueFromConfigMap *ObjectReference `json:"valueFromConfigMap,omitempty"` // ValueFromSecret is a reference to a Secret. // +optional ValueFromSecret *ObjectReference `json:"valueFromSecret,omitempty"` }
SpecToVolumeRenderConfiguration are the customization options for an specific parameter generation.
func (*SpecToVolumeConfiguration) DeepCopy ¶ added in v0.2.0
func (in *SpecToVolumeConfiguration) DeepCopy() *SpecToVolumeConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpecToVolumeConfiguration.
func (*SpecToVolumeConfiguration) DeepCopyInto ¶ added in v0.2.0
func (in *SpecToVolumeConfiguration) DeepCopyInto(out *SpecToVolumeConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpecToVolumeConfiguration) IsValueOverriden ¶ added in v0.2.0
func (svc *SpecToVolumeConfiguration) IsValueOverriden() bool
type Status ¶
type Status struct { // ObservedGeneration is the 'Generation' of the Object that // was last processed by the controller. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions the latest available observations of a resource's current state. // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions Conditions `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` // Annotations is additional Status fields for the Resource to save some // additional State as well as convey more information to the user. This is // roughly akin to Annotations on any k8s resource, just the reconciler conveying // richer information outwards. Annotations map[string]string `json:"annotations,omitempty"` }
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatusAddElement ¶
type StatusAddElement struct { // JSON simplified path for the status element. Path string `json:"path"` // Render options for the status. // +optional Render *StatusRenderConfiguration `json:"render,omitempty"` }
StatusAddElement is a customization option that adds or fills an element at an object instance status structure.
func (*StatusAddElement) DeepCopy ¶
func (in *StatusAddElement) DeepCopy() *StatusAddElement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusAddElement.
func (*StatusAddElement) DeepCopyInto ¶
func (in *StatusAddElement) DeepCopyInto(out *StatusAddElement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatusConfiguration ¶
type StatusConfiguration struct { // AddElements contains configurations for status elements to be added. // +optional AddElements []StatusAddElement `json:"addElements,omitempty"` // ConditionsFromHook contains conditions expected to be informed from the Hook. // +optional ConditionsFromHook []ConditionsFromHook `json:"conditionsFromHook,omitempty"` }
StatusConfiguration contains instructions to modify status generation for the controlled instance.
func (*StatusConfiguration) DeepCopy ¶
func (in *StatusConfiguration) DeepCopy() *StatusConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusConfiguration.
func (*StatusConfiguration) DeepCopyInto ¶
func (in *StatusConfiguration) DeepCopyInto(out *StatusConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatusManager ¶
type StatusManager struct {
// contains filtered or unexported fields
}
+kubebuilder:object:generate=false
func NewStatusManager ¶
func NewStatusManager(status *Status, happyCond string, conds map[string]struct{}) *StatusManager
func (*StatusManager) DeleteAnnotation ¶
func (sm *StatusManager) DeleteAnnotation(key string)
func (*StatusManager) GetAnnotation ¶
func (sm *StatusManager) GetAnnotation(key string) (bool, *string)
func (*StatusManager) MarkConditionFalse ¶
func (sm *StatusManager) MarkConditionFalse(condtype, reason, message string)
func (*StatusManager) MarkConditionTrue ¶
func (sm *StatusManager) MarkConditionTrue(condtype, reason string)
func (*StatusManager) SetAnnotation ¶
func (sm *StatusManager) SetAnnotation(key, value string)
func (*StatusManager) SetCondition ¶
func (sm *StatusManager) SetCondition(c Condition)
func (*StatusManager) SetObservedGeneration ¶
func (sm *StatusManager) SetObservedGeneration(generation int64)
type StatusRenderConfiguration ¶
type StatusRenderConfiguration struct { // Reference an object element and use its parameter to // fill the status. ValueFromParameter *StatusValueFromParameter `json:"valueFromParameter,omitempty"` }
StatusRenderConfiguration is a customization status option for the status generation.
func (*StatusRenderConfiguration) DeepCopy ¶
func (in *StatusRenderConfiguration) DeepCopy() *StatusRenderConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusRenderConfiguration.
func (*StatusRenderConfiguration) DeepCopyInto ¶
func (in *StatusRenderConfiguration) DeepCopyInto(out *StatusRenderConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatusValueFromParameter ¶
type StatusValueFromParameter struct { // JSON simplified path for the referenced element. Path string `json:"path"` }
StatusValueFromParameter contains a reference to an object element that is used at the status.
func (*StatusValueFromParameter) DeepCopy ¶
func (in *StatusValueFromParameter) DeepCopy() *StatusValueFromParameter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusValueFromParameter.
func (*StatusValueFromParameter) DeepCopyInto ¶
func (in *StatusValueFromParameter) DeepCopyInto(out *StatusValueFromParameter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Time ¶
Time is a helper wrap around time.Now that enables us to write tests. +kubebuilder:object:generate=false
type Workload ¶
type Workload struct { // FormFactor indicates the kubernetes object that // will run instances of the component's workload. // +optional FormFactor *FormFactor `json:"formFactor,omitempty"` // FromImage contains the container image information. FromImage RegistrationFromImage `json:"fromImage"` // ParameterConfiguration sets how object elements // are transformed into workload parameters. // +optional ParameterConfiguration *ParameterConfiguration `json:"parameterConfiguration,omitempty"` // StatusConfiguration contains rules to populate // a controlled instance status. // +optional StatusConfiguration *StatusConfiguration `json:"statusConfiguration,omitempty"` }
Workload contains workload settings.
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.