Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type ConfigCrManager
- func (m *ConfigCrManager) Create() client.Object
- func (m *ConfigCrManager) GetAllResources(cr client.Object) ([]client.Object, error)
- func (m *ConfigCrManager) GetDependantResourcesListObjects() []client.ObjectList
- func (m *ConfigCrManager) IsCreating(cr client.Object) (bool, error)
- func (m *ConfigCrManager) Status(cr client.Object) *sdkapi.Status
- type ConfigList
- type ConfigSpec
- type ConfigStatus
Constants ¶
const ( Namespace = "operator-namespace" OperatorDeploymentName = "operator-deployment" )
const ( CommonLabel = "test.common" OperatorLabel = "test.operator" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "test.lifecycle.sdk", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme may be used to add all resources defined in the project to a Scheme AddToScheme = SchemeBuilder.AddToScheme )
var (
ResourceBuilder = resources.NewResourceBuilder(commonLabels, operatorLabels)
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConfigSpec `json:"spec,omitempty"` Status ConfigStatus `json:"status,omitempty"` }
Config is the Schema for the config API
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfig.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigCrManager ¶
type ConfigCrManager struct { }
ConfigCrManager provides test CR management functionality
func (*ConfigCrManager) Create ¶
func (m *ConfigCrManager) Create() client.Object
Create creates empty CR
func (*ConfigCrManager) GetAllResources ¶
GetAllResources provides all resources managed by the cr
func (*ConfigCrManager) GetDependantResourcesListObjects ¶
func (m *ConfigCrManager) GetDependantResourcesListObjects() []client.ObjectList
GetDependantResourcesListObjects returns resource list objects of dependant resources
func (*ConfigCrManager) IsCreating ¶
func (m *ConfigCrManager) IsCreating(cr client.Object) (bool, error)
IsCreating checks whether creation of the managed resources will be executed
type ConfigList ¶
type ConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Config `json:"items"` }
ConfigList contains a list of Config
func (*ConfigList) DeepCopy ¶
func (in *ConfigList) DeepCopy() *ConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfigList.
func (*ConfigList) DeepCopyInto ¶
func (in *ConfigList) DeepCopyInto(out *ConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigList) DeepCopyObject ¶
func (in *ConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigSpec ¶
type ConfigSpec struct {
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
}
ConfigSpec defines the desired state of Config
func (*ConfigSpec) DeepCopy ¶
func (in *ConfigSpec) DeepCopy() *ConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfigSpec.
func (*ConfigSpec) DeepCopyInto ¶
func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigStatus ¶
ConfigStatus defines the observed state of Config
func (*ConfigStatus) DeepCopy ¶
func (in *ConfigStatus) DeepCopy() *ConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfigStatus.
func (*ConfigStatus) DeepCopyInto ¶
func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.