config

package
v0.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Overview

Package v1alpha1 is the internal version of the API.

Index

Constants

View Source
const (
	ConfigPlural   = "configs"
	ConfigSingular = "config"
)
View Source
const (
	ConfigSetPlural   = "configsets"
	ConfigSetSingular = "configset"
)
View Source
const (
	TargetNameKey      = GroupName + "/" + "targetName"
	TargetNamespaceKey = GroupName + "/" + "targetNamespace"
)
View Source
const (
	GroupName = "config.sdcio.dev"
	//Version = "v1alpha1"
	Version = runtime.APIVersionInternal
)
View Source
const (
	RunningConfigPlural   = "runningconfigs"
	RunningConfigSingular = "runningconfig"
)
View Source
const (
	UnManagedConfigPlural   = "unmanagedconfigs"
	UnManagedConfigSingular = "unmanagedconfig"
)

Variables

View Source
var (
	ConfigShortNames = []string{}
	ConfigCategories = []string{"sdc", "knet"}
)
View Source
var (
	ConfigSetShortNames = []string{}
	ConfigSetCategories = []string{"sdc", "knet"}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	RunningConfigShortNames = []string{}
	RunningConfigCategories = []string{"sdc", "knet"}
)
View Source
var (
	UnManagedConfigShortNames = []string{}
	UnManagedConfigCategories = []string{"sdc", "knet"}
)
View Source
var (
	ConfigKind = reflect.TypeOf(Config{}).Name()
)

Config type metadata.

View Source
var (
	ConfigSetKind = reflect.TypeOf(ConfigSet{}).Name()
)

ConfigSet type metadata.

View Source
var (
	RunningConfigKind = reflect.TypeOf(RunningConfig{}).Name()
)

RunningConfig type metadata.

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
View Source
var (
	UnManagedConfigKind = reflect.TypeOf(UnManagedConfig{}).Name()
)

ConfigSet type metadata.

Functions

func GetTargetKey added in v0.0.27

func GetTargetKey(labels map[string]string) (types.NamespacedName, error)

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type ConditionReason

type ConditionReason string

A ConditionReason represents the reason a resource is in a condition.

const (
	ConditionReasonReady          ConditionReason = "ready"
	ConditionReasonNotReady       ConditionReason = "notReady"
	ConditionReasonFailed         ConditionReason = "failed"
	ConditionReasonUnknown        ConditionReason = "unknown"
	ConditionReasonDeleting       ConditionReason = "deleting"
	ConditionReasonCreating       ConditionReason = "creating"
	ConditionReasonUpdating       ConditionReason = "updating"
	ConditionReasonTargetDeleted  ConditionReason = "target Deleted"
	ConditionReasonTargetNotReady ConditionReason = "target not ready"
	ConditionReasonTargetNotFound ConditionReason = "target not found"
)

Reasons a resource is ready or not

type ConditionType

type ConditionType string

A ConditionType represents a condition type for a given KRM resource

type Config

type Config struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   ConfigSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status ConfigStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Config defines the Schema for the Config API

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Config) DeepCopyObject

func (in *Config) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Config) FieldLabelConversion added in v0.0.27

func (r *Config) FieldLabelConversion() runtime.FieldLabelConversionFunc

FieldLabelConversion is the schema conversion function for normalizing the FieldSelector for the resource

func (*Config) FieldSelector added in v0.0.27

func (r *Config) FieldSelector() func(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

func (Config) GetCategories added in v0.0.27

func (Config) GetCategories() []string

GetCategories return the categories of the resource GetCategories implements resource.Object

func (*Config) GetCondition added in v0.0.27

func (r *Config) GetCondition(t condition.ConditionType) condition.Condition

GetCondition returns the condition based on the condition kind

func (Config) GetGroupVersionResource added in v0.0.27

func (Config) GetGroupVersionResource() schema.GroupVersionResource

func (*Config) GetLastKnownGoodSchema added in v0.0.27

func (r *Config) GetLastKnownGoodSchema() *ConfigStatusLastKnownGoodSchema

func (*Config) GetObjectMeta added in v0.0.27

func (r *Config) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (Config) GetShortNames added in v0.0.27

func (Config) GetShortNames() []string

GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object

func (Config) GetSingularName added in v0.0.27

func (Config) GetSingularName() string

GetSingularName returns the singular name of the resource GetSingularName implements resource.Object

func (*Config) GetStatus added in v0.0.27

func (r *Config) GetStatus() resource.StatusSubResource

GetStatus return the resource.StatusSubResource interface

func (*Config) GetTarget added in v0.0.27

func (r *Config) GetTarget() string

func (*Config) IsEqual added in v0.0.27

func (r *Config) IsEqual(ctx context.Context, obj, old runtime.Object) bool

IsEqual returns a bool indicating if the desired state of both resources is equal or not

func (*Config) IsStatusEqual added in v0.0.27

func (r *Config) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool

IsStatusEqual returns a bool indicating if the status of both resources is equal or not

func (Config) IsStorageVersion added in v0.0.27

func (Config) IsStorageVersion() bool

IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object

func (Config) NamespaceScoped added in v0.0.27

func (Config) NamespaceScoped() bool

NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object

func (Config) New added in v0.0.27

func (Config) New() runtime.Object

New return an empty resource New implements resource.Object

func (Config) NewList added in v0.0.27

func (Config) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*Config) PrepareForCreate added in v0.0.27

func (r *Config) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (*Config) PrepareForStatusUpdate added in v0.0.27

func (r *Config) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForStatusUpdate prepares the status update

func (*Config) PrepareForUpdate added in v0.0.27

func (r *Config) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (*Config) SetConditions added in v0.0.27

func (r *Config) SetConditions(c ...condition.Condition)

SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once

func (*Config) TableConvertor added in v0.0.27

func (r *Config) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor

TableConvertor return the table format of the resource

func (*Config) ValidateCreate added in v0.0.27

func (r *Config) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList

ValidateCreate statically validates

func (*Config) ValidateStatusUpdate added in v0.0.27

func (r *Config) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateStatusUpdate validates status updates

func (*Config) ValidateUpdate added in v0.0.27

func (r *Config) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

type ConfigBlob

type ConfigBlob struct {
	// Path defines the path relative to which the value is applicable
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=config"`
	//+kubebuilder:pruning:PreserveUnknownFields
	Value runtime.RawExtension `json:"value" protobuf:"bytes,2,opt,name=value"`
}

func (*ConfigBlob) DeepCopy

func (in *ConfigBlob) DeepCopy() *ConfigBlob

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigBlob.

func (*ConfigBlob) DeepCopyInto

func (in *ConfigBlob) DeepCopyInto(out *ConfigBlob)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConfigFilter added in v0.0.27

type ConfigFilter struct {
	// Name filters by the name of the objects
	Name string `protobuf:"bytes,1,opt,name=name"`

	// Namespace filters by the namespace of the objects
	Namespace string `protobuf:"bytes,2,opt,name=namespace"`
}

func (*ConfigFilter) DeepCopy added in v0.0.27

func (in *ConfigFilter) DeepCopy() *ConfigFilter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigFilter.

func (*ConfigFilter) DeepCopyInto added in v0.0.27

func (in *ConfigFilter) DeepCopyInto(out *ConfigFilter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ConfigFilter) Filter added in v0.0.27

func (r *ConfigFilter) Filter(ctx context.Context, obj runtime.Object) bool

type ConfigList

type ConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Config `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ConfigList contains a list of Configs +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ConfigList) DeepCopy

func (in *ConfigList) DeepCopy() *ConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigList.

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.

func (*ConfigList) GetListMeta added in v0.0.27

func (r *ConfigList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type ConfigSet

type ConfigSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   ConfigSetSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status ConfigSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

ConfigSet is the Schema for the ConfigSet API

func (*ConfigSet) DeepCopy

func (in *ConfigSet) DeepCopy() *ConfigSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSet.

func (*ConfigSet) DeepCopyInto

func (in *ConfigSet) DeepCopyInto(out *ConfigSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ConfigSet) DeepCopyObject

func (in *ConfigSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ConfigSet) FieldLabelConversion added in v0.0.27

func (r *ConfigSet) FieldLabelConversion() runtime.FieldLabelConversionFunc

FieldLabelConversion is the schema conversion function for normalizing the FieldSelector for the resource

func (*ConfigSet) FieldSelector added in v0.0.27

func (r *ConfigSet) FieldSelector() func(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

func (ConfigSet) GetCategories added in v0.0.27

func (ConfigSet) GetCategories() []string

GetCategories return the categories of the resource GetCategories implements resource.Object

func (*ConfigSet) GetCondition added in v0.0.27

GetCondition returns the condition based on the condition kind

func (ConfigSet) GetGroupVersionResource added in v0.0.27

func (ConfigSet) GetGroupVersionResource() schema.GroupVersionResource

func (*ConfigSet) GetObjectMeta added in v0.0.27

func (r *ConfigSet) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object

func (ConfigSet) GetShortNames added in v0.0.27

func (ConfigSet) GetShortNames() []string

GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object

func (ConfigSet) GetSingularName added in v0.0.27

func (ConfigSet) GetSingularName() string

GetSingularName returns the singular name of the resource GetSingularName implements resource.Object

func (*ConfigSet) GetStatus added in v0.0.27

func (r *ConfigSet) GetStatus() resource.StatusSubResource

GetStatus return the resource.StatusSubResource interface

func (*ConfigSet) IsEqual added in v0.0.27

func (r *ConfigSet) IsEqual(ctx context.Context, obj, old runtime.Object) bool

IsEqual returns a bool indicating if the desired state of both resources is equal or not

func (*ConfigSet) IsStatusEqual added in v0.0.27

func (r *ConfigSet) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool

IsStatusEqual returns a bool indicating if the status of both resources is equal or not

func (ConfigSet) IsStorageVersion added in v0.0.27

func (ConfigSet) IsStorageVersion() bool

IsStorageVersion returns true -- ConfigSet is used as the internal version. IsStorageVersion implements resource.Object

func (ConfigSet) NamespaceScoped added in v0.0.27

func (ConfigSet) NamespaceScoped() bool

NamespaceScoped returns if ConfigSet is a namespaced resource. NamespaceScoped implements resource.Object

func (ConfigSet) New added in v0.0.27

func (ConfigSet) New() runtime.Object

New return an empty resource New implements resource.Object

func (ConfigSet) NewList added in v0.0.27

func (ConfigSet) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*ConfigSet) PrepareForCreate added in v0.0.27

func (r *ConfigSet) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (*ConfigSet) PrepareForStatusUpdate added in v0.0.27

func (r *ConfigSet) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForStatusUpdate prepares the status update

func (*ConfigSet) PrepareForUpdate added in v0.0.27

func (r *ConfigSet) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (*ConfigSet) SetConditions added in v0.0.27

func (r *ConfigSet) SetConditions(c ...condition.Condition)

SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once

func (*ConfigSet) TableConvertor added in v0.0.27

func (r *ConfigSet) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor

TableConvertor return the table format of the resource

func (*ConfigSet) ValidateCreate added in v0.0.27

func (r *ConfigSet) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList

ValidateCreate statically validates

func (*ConfigSet) ValidateStatusUpdate added in v0.0.27

func (r *ConfigSet) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateStatusUpdate validates status updates

func (*ConfigSet) ValidateUpdate added in v0.0.27

func (r *ConfigSet) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

type ConfigSetFilter added in v0.0.27

type ConfigSetFilter struct {
	// Name filters by the name of the objects
	Name string `protobuf:"bytes,1,opt,name=name"`

	// Namespace filters by the namespace of the objects
	Namespace string `protobuf:"bytes,2,opt,name=namespace"`
}

func (*ConfigSetFilter) DeepCopy added in v0.0.27

func (in *ConfigSetFilter) DeepCopy() *ConfigSetFilter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSetFilter.

func (*ConfigSetFilter) DeepCopyInto added in v0.0.27

func (in *ConfigSetFilter) DeepCopyInto(out *ConfigSetFilter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ConfigSetFilter) Filter added in v0.0.27

func (r *ConfigSetFilter) Filter(ctx context.Context, obj runtime.Object) bool

type ConfigSetList

type ConfigSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []ConfigSet `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ConfigSetList contains a list of ConfigSets +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ConfigSetList) DeepCopy

func (in *ConfigSetList) DeepCopy() *ConfigSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSetList.

func (*ConfigSetList) DeepCopyInto

func (in *ConfigSetList) DeepCopyInto(out *ConfigSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ConfigSetList) DeepCopyObject

func (in *ConfigSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ConfigSetList) GetListMeta added in v0.0.27

func (r *ConfigSetList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type ConfigSetSpec

type ConfigSetSpec struct {
	// Targets defines the targets on which this configSet applies
	Target Target `json:"target" protobuf:"bytes,1,opt,name=target"`
	// Lifecycle determines the lifecycle policies the resource e.g. delete is orphan or delete
	// will follow
	Lifecycle Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,2,opt,name=lifecycle"`
	// Priority defines the priority of this config
	Priority int64 `json:"priority,omitempty" protobuf:"bytes,3,opt,name=priority"`
	// Config defines the configuration to be applied to a target device
	//+kubebuilder:pruning:PreserveUnknownFields
	Config []ConfigBlob `json:"config" protobuf:"bytes,4,rep,name=config"`
}

ConfigSetSpec defines the desired state of Config

func (*ConfigSetSpec) DeepCopy

func (in *ConfigSetSpec) DeepCopy() *ConfigSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSetSpec.

func (*ConfigSetSpec) DeepCopyInto

func (in *ConfigSetSpec) DeepCopyInto(out *ConfigSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConfigSetStatus

type ConfigSetStatus struct {
	// ConditionedStatus provides the status of the Readiness using conditions
	// if the condition is true the other attributes in the status are meaningful
	condition.ConditionedStatus `json:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
	// Targets defines the status of the configSet resource on the respective target
	Targets []TargetStatus `json:"targets,omitempty" protobuf:"bytes,2,rep,name=targets"`
}

ConfigSetStatus defines the observed state of Config

func (ConfigSetStatus) CopyTo added in v0.0.27

CopyTo copies the content of the status subresource to a parent resource. CopyTo implements the resource.StatusSubResource

func (*ConfigSetStatus) DeepCopy

func (in *ConfigSetStatus) DeepCopy() *ConfigSetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSetStatus.

func (*ConfigSetStatus) DeepCopyInto

func (in *ConfigSetStatus) DeepCopyInto(out *ConfigSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ConfigSetStatus) SubResourceName added in v0.0.27

func (ConfigSetStatus) SubResourceName() string

SubResourceName resturns the name of the subresource SubResourceName implements the resource.StatusSubResource

type ConfigSpec

type ConfigSpec struct {
	// Lifecycle determines the lifecycle policies the resource e.g. delete is orphan or delete
	// will follow
	Lifecycle Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,1,opt,name=lifecycle"`
	// Priority defines the priority of this config
	Priority int64 `json:"priority,omitempty" protobuf:"bytes,2,opt,name=priority"`
	// Config defines the configuration to be applied to a target device
	//+kubebuilder:pruning:PreserveUnknownFields
	Config []ConfigBlob `json:"config" protobuf:"bytes,3,rep,name=config"`
}

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 ConfigSpec.

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

type ConfigStatus struct {
	// ConditionedStatus provides the status of the Readiness using conditions
	// if the condition is true the other attributes in the status are meaningful
	condition.ConditionedStatus `json:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
	// LastKnownGoodSchema identifies the last known good schema used to apply the config successfully
	LastKnownGoodSchema *ConfigStatusLastKnownGoodSchema `json:"lastKnownGoodSchema,omitempty" protobuf:"bytes,2,opt,name=lastKnownGoodSchema"`
	// AppliedConfig defines the config applied to the target
	AppliedConfig *ConfigSpec `json:"appliedConfig,omitempty" protobuf:"bytes,3,opt,name=appliedConfig"`
	// Deviations identify the configuration deviation based on the last applied config
	Deviations []Deviation `json:"deviations,omitempty" protobuf:"bytes,4,rep,name=deviations"`
}

ConfigStatus defines the observed state of Config

func (ConfigStatus) CopyTo added in v0.0.27

CopyTo copies the content of the status subresource to a parent resource. CopyTo implements the resource.StatusSubResource

func (*ConfigStatus) DeepCopy

func (in *ConfigStatus) DeepCopy() *ConfigStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigStatus.

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.

func (ConfigStatus) SubResourceName added in v0.0.27

func (ConfigStatus) SubResourceName() string

SubResourceName resturns the name of the subresource SubResourceName implements the resource.StatusSubResource

type ConfigStatusLastKnownGoodSchema

type ConfigStatusLastKnownGoodSchema struct {
	// Schema Type
	Type string `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"`
	// Schema Vendor
	Vendor string `json:"vendor,omitempty" protobuf:"bytes,2,opt,name=vendor"`
	// Schema Version
	Version string `json:"version,omitempty" protobuf:"bytes,3,opt,name=version"`
}

func (*ConfigStatusLastKnownGoodSchema) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigStatusLastKnownGoodSchema.

func (*ConfigStatusLastKnownGoodSchema) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ConfigStatusLastKnownGoodSchema) FileString added in v0.0.27

func (r *ConfigStatusLastKnownGoodSchema) FileString() string

type DeletionPolicy

type DeletionPolicy string

A DeletionPolicy determines what should happen to the underlying external resource when a managed resource is deleted.

const (
	// DeletionOrphan means the external resource will orphaned when its managed
	// resource is deleted.
	DeletionOrphan DeletionPolicy = "orphan"

	// DeletionDelete means both the  external resource will be deleted when its
	// managed resource is deleted.
	DeletionDelete DeletionPolicy = "delete"
)

type Deviation

type Deviation struct {
	// Path of the config this deviation belongs to
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`
	// DesiredValue is the desired value of the config belonging to the path
	DesiredValue string `json:"desiredValue,omitempty" protobuf:"bytes,2,opt,name=desiredValue"`
	// CurrentValue defines the current value of the config belonging to the path
	// that is currently configured on the target
	CurrentValue string `json:"actualValue,omitempty" protobuf:"bytes,3,opt,name=actualValue"`
	// Reason defines the reason of the deviation
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`
}

func (*Deviation) DeepCopy

func (in *Deviation) DeepCopy() *Deviation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deviation.

func (*Deviation) DeepCopyInto

func (in *Deviation) DeepCopyInto(out *Deviation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Lifecycle

type Lifecycle struct {
	// DeletionPolicy specifies what will happen to the underlying resource
	// when this resource is deleted - either "delete" or "orphan" the
	// resource.
	DeletionPolicy DeletionPolicy `json:"deletionPolicy,omitempty" protobuf:"bytes,1,opt,name=deletionPolicy,casttype=DeletionPolicy"`
}

func (*Lifecycle) DeepCopy

func (in *Lifecycle) DeepCopy() *Lifecycle

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lifecycle.

func (*Lifecycle) DeepCopyInto

func (in *Lifecycle) DeepCopyInto(out *Lifecycle)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RunningConfig

type RunningConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   RunningConfigSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status RunningConfigStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

RunningConfig defines the Schema for the RunningConfig API

func BuildRunningConfig added in v0.0.27

func BuildRunningConfig(meta metav1.ObjectMeta, spec RunningConfigSpec, status RunningConfigStatus) *RunningConfig

BuildRunningConfig returns a reource from a client Object a Spec/Status

func (*RunningConfig) DeepCopy

func (in *RunningConfig) DeepCopy() *RunningConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunningConfig.

func (*RunningConfig) DeepCopyInto

func (in *RunningConfig) DeepCopyInto(out *RunningConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunningConfig) DeepCopyObject

func (in *RunningConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RunningConfig) FieldLabelConversion added in v0.0.27

func (r *RunningConfig) FieldLabelConversion() runtime.FieldLabelConversionFunc

FieldLabelConversion is the schema conversion function for normalizing the FieldSelector for the resource

func (*RunningConfig) FieldSelector added in v0.0.27

func (r *RunningConfig) FieldSelector() func(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

func (RunningConfig) GetCategories added in v0.0.27

func (RunningConfig) GetCategories() []string

GetCategories return the categories of the resource GetCategories implements resource.Object

func (RunningConfig) GetGroupVersionResource added in v0.0.27

func (RunningConfig) GetGroupVersionResource() schema.GroupVersionResource

func (*RunningConfig) GetObjectMeta added in v0.0.27

func (r *RunningConfig) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (RunningConfig) GetShortNames added in v0.0.27

func (RunningConfig) GetShortNames() []string

GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object

func (RunningConfig) GetSingularName added in v0.0.27

func (RunningConfig) GetSingularName() string

GetSingularName returns the singular name of the resource GetSingularName implements resource.Object

func (*RunningConfig) IsEqual added in v0.0.27

func (r *RunningConfig) IsEqual(ctx context.Context, obj, old runtime.Object) bool

IsEqual returns a bool indicating if the desired state of both resources is equal or not

func (RunningConfig) IsStorageVersion added in v0.0.27

func (RunningConfig) IsStorageVersion() bool

IsStorageVersion returns true -- RunningConfig is used as the internal version. IsStorageVersion implements resource.Object

func (RunningConfig) NamespaceScoped added in v0.0.27

func (RunningConfig) NamespaceScoped() bool

NamespaceScoped returns if RunningConfig is a namespaced resource. NamespaceScoped implements resource.Object

func (RunningConfig) New added in v0.0.27

New return an empty resource New implements resource.Object

func (RunningConfig) NewList added in v0.0.27

func (RunningConfig) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*RunningConfig) PrepareForCreate added in v0.0.27

func (r *RunningConfig) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (*RunningConfig) PrepareForUpdate added in v0.0.27

func (r *RunningConfig) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (*RunningConfig) TableConvertor added in v0.0.27

func (r *RunningConfig) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor

TableConvertor return the table format of the resource

func (*RunningConfig) ValidateCreate added in v0.0.27

func (r *RunningConfig) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList

ValidateCreate statically validates

func (*RunningConfig) ValidateUpdate added in v0.0.27

func (r *RunningConfig) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

type RunningConfigFilter added in v0.0.27

type RunningConfigFilter struct {
	// Name filters by the name of the objects
	Name string `protobuf:"bytes,1,opt,name=name"`

	// Namespace filters by the namespace of the objects
	Namespace string `protobuf:"bytes,2,opt,name=namespace"`
}

func (*RunningConfigFilter) DeepCopy added in v0.0.27

func (in *RunningConfigFilter) DeepCopy() *RunningConfigFilter

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunningConfigFilter.

func (*RunningConfigFilter) DeepCopyInto added in v0.0.27

func (in *RunningConfigFilter) DeepCopyInto(out *RunningConfigFilter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunningConfigFilter) Filter added in v0.0.27

func (r *RunningConfigFilter) Filter(ctx context.Context, obj runtime.Object) bool

type RunningConfigList

type RunningConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []RunningConfig `json:"items" protobuf:"bytes,2,rep,name=items"`
}

RunningConfigList contains a list of RunningConfigs +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*RunningConfigList) DeepCopy

func (in *RunningConfigList) DeepCopy() *RunningConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunningConfigList.

func (*RunningConfigList) DeepCopyInto

func (in *RunningConfigList) DeepCopyInto(out *RunningConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunningConfigList) DeepCopyObject

func (in *RunningConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RunningConfigList) GetListMeta added in v0.0.27

func (r *RunningConfigList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type RunningConfigSpec

type RunningConfigSpec struct {
}

RunningConfigSpec defines the desired state of RunningConfig

func (*RunningConfigSpec) DeepCopy

func (in *RunningConfigSpec) DeepCopy() *RunningConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunningConfigSpec.

func (*RunningConfigSpec) DeepCopyInto

func (in *RunningConfigSpec) DeepCopyInto(out *RunningConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RunningConfigStatus

type RunningConfigStatus struct {
	//+kubebuilder:pruning:PreserveUnknownFields
	Value runtime.RawExtension `json:"value" protobuf:"bytes,2,opt,name=value"`
}

RunningConfigStatus defines the observed state of RunningConfig

func (*RunningConfigStatus) DeepCopy

func (in *RunningConfigStatus) DeepCopy() *RunningConfigStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunningConfigStatus.

func (*RunningConfigStatus) DeepCopyInto

func (in *RunningConfigStatus) DeepCopyInto(out *RunningConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Target

type Target struct {
	// TargetSelector defines the selector used to select the targets to which the config applies
	TargetSelector *metav1.LabelSelector `json:"targetSelector,omitempty" protobuf:"bytes,1,opt,name=targetSelector"`
}

func (*Target) DeepCopy

func (in *Target) DeepCopy() *Target

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetStatus

type TargetStatus struct {
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// right now we assume the namespace of the config and target are aligned
	//NameSpace string `json:"namespace" protobuf:"bytes,2,opt,name=name"`
	// Condition of the configCR status
	condition.Condition `json:",inline" protobuf:"bytes,3,opt,name=condition"`
}

func (*TargetStatus) DeepCopy

func (in *TargetStatus) DeepCopy() *TargetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetStatus.

func (*TargetStatus) DeepCopyInto

func (in *TargetStatus) DeepCopyInto(out *TargetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UnManagedConfig

type UnManagedConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   UnManagedConfigSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status UnManagedConfigStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}
UnManagedConfig is the Schema for the UnManagedConfig API

+k8s:openapi-gen=true

func (*UnManagedConfig) DeepCopy added in v0.0.27

func (in *UnManagedConfig) DeepCopy() *UnManagedConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnManagedConfig.

func (*UnManagedConfig) DeepCopyInto added in v0.0.27

func (in *UnManagedConfig) DeepCopyInto(out *UnManagedConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UnManagedConfig) DeepCopyObject added in v0.0.27

func (in *UnManagedConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*UnManagedConfig) FieldLabelConversion added in v0.0.27

func (r *UnManagedConfig) FieldLabelConversion() runtime.FieldLabelConversionFunc

FieldLabelConversion is the schema conversion function for normalizing the FieldSelector for the resource

func (*UnManagedConfig) FieldSelector added in v0.0.27

func (r *UnManagedConfig) FieldSelector() func(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

func (UnManagedConfig) GetCategories added in v0.0.27

func (UnManagedConfig) GetCategories() []string

GetCategories return the categories of the resource GetCategories implements resource.Object

func (UnManagedConfig) GetGroupVersionResource added in v0.0.27

func (UnManagedConfig) GetGroupVersionResource() schema.GroupVersionResource

func (*UnManagedConfig) GetObjectMeta added in v0.0.27

func (r *UnManagedConfig) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (UnManagedConfig) GetShortNames added in v0.0.27

func (UnManagedConfig) GetShortNames() []string

GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object

func (UnManagedConfig) GetSingularName added in v0.0.27

func (UnManagedConfig) GetSingularName() string

GetSingularName returns the singular name of the resource GetSingularName implements resource.Object

func (*UnManagedConfig) GetStatus added in v0.0.27

GetStatus return the resource.StatusSubResource interface

func (*UnManagedConfig) IsEqual added in v0.0.27

func (r *UnManagedConfig) IsEqual(ctx context.Context, obj, old runtime.Object) bool

IsEqual returns a bool indicating if the desired state of both resources is equal or not

func (*UnManagedConfig) IsStatusEqual added in v0.0.27

func (r *UnManagedConfig) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool

IsStatusEqual returns a bool indicating if the status of both resources is equal or not

func (UnManagedConfig) IsStorageVersion added in v0.0.27

func (UnManagedConfig) IsStorageVersion() bool

IsStorageVersion returns true -- UnManagedConfig is used as the internal version. IsStorageVersion implements resource.Object

func (UnManagedConfig) NamespaceScoped added in v0.0.27

func (UnManagedConfig) NamespaceScoped() bool

NamespaceScoped returns if UnManagedConfig is a namespaced resource. NamespaceScoped implements resource.Object

func (UnManagedConfig) New added in v0.0.27

New return an empty resource New implements resource.Object

func (UnManagedConfig) NewList added in v0.0.27

func (UnManagedConfig) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*UnManagedConfig) PrepareForCreate added in v0.0.27

func (r *UnManagedConfig) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (*UnManagedConfig) PrepareForStatusUpdate added in v0.0.27

func (r *UnManagedConfig) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForStatusUpdate prepares the status update

func (*UnManagedConfig) PrepareForUpdate added in v0.0.27

func (r *UnManagedConfig) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (*UnManagedConfig) TableConvertor added in v0.0.27

func (r *UnManagedConfig) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor

TableConvertor return the table format of the resource

func (*UnManagedConfig) ValidateCreate added in v0.0.27

func (r *UnManagedConfig) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList

ValidateCreate statically validates

func (*UnManagedConfig) ValidateStatusUpdate added in v0.0.27

func (r *UnManagedConfig) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateStatusUpdate validates status updates

func (*UnManagedConfig) ValidateUpdate added in v0.0.27

func (r *UnManagedConfig) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

type UnManagedConfigFilter added in v0.0.27

type UnManagedConfigFilter struct {
	// Name filters by the name of the objects
	Name string `protobuf:"bytes,1,opt,name=name"`

	// Namespace filters by the namespace of the objects
	Namespace string `protobuf:"bytes,2,opt,name=namespace"`
}

func (*UnManagedConfigFilter) DeepCopy added in v0.0.27

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnManagedConfigFilter.

func (*UnManagedConfigFilter) DeepCopyInto added in v0.0.27

func (in *UnManagedConfigFilter) DeepCopyInto(out *UnManagedConfigFilter)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UnManagedConfigFilter) Filter added in v0.0.27

type UnManagedConfigList

type UnManagedConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []UnManagedConfig `json:"items" protobuf:"bytes,2,rep,name=items"`
}

UnManagedConfigList contains a list of UnManagedConfigs +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*UnManagedConfigList) DeepCopy added in v0.0.27

func (in *UnManagedConfigList) DeepCopy() *UnManagedConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnManagedConfigList.

func (*UnManagedConfigList) DeepCopyInto added in v0.0.27

func (in *UnManagedConfigList) DeepCopyInto(out *UnManagedConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UnManagedConfigList) DeepCopyObject added in v0.0.27

func (in *UnManagedConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*UnManagedConfigList) GetListMeta added in v0.0.27

func (r *UnManagedConfigList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type UnManagedConfigSpec

type UnManagedConfigSpec struct {
}

UnManagedConfigSpec defines the desired state of UnManagedConfig

func (*UnManagedConfigSpec) DeepCopy added in v0.0.27

func (in *UnManagedConfigSpec) DeepCopy() *UnManagedConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnManagedConfigSpec.

func (*UnManagedConfigSpec) DeepCopyInto added in v0.0.27

func (in *UnManagedConfigSpec) DeepCopyInto(out *UnManagedConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UnManagedConfigStatus

type UnManagedConfigStatus struct {
	// Deviations identify the configuration deviation based on the last applied config
	Deviations []Deviation `json:"deviations,omitempty" protobuf:"bytes,4,rep,name=deviations"`
}

UnManagedConfigStatus defines the observed state of UnManagedConfig

func (UnManagedConfigStatus) CopyTo added in v0.0.27

CopyTo copies the content of the status subresource to a parent resource. CopyTo implements the resource.StatusSubResource

func (*UnManagedConfigStatus) DeepCopy added in v0.0.27

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnManagedConfigStatus.

func (*UnManagedConfigStatus) DeepCopyInto added in v0.0.27

func (in *UnManagedConfigStatus) DeepCopyInto(out *UnManagedConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (UnManagedConfigStatus) SubResourceName added in v0.0.27

func (UnManagedConfigStatus) SubResourceName() string

SubResourceName resturns the name of the subresource SubResourceName implements the resource.StatusSubResource

Directories

Path Synopsis
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL