Documentation
¶
Index ¶
Constants ¶
const ( // Group in the kubernetes api Group = "lcnc.yndd.io" // Version in the kubernetes api Version = "v1" )
const ( ResourceContextKind = "ResourceContext" ResourceContextListKind = "ResourceContextList" ResourceContextSingular = "resourcecontext" ResourceContextPlural = "resourcecontexts" ResourceContextShortName = "ctx" )
Variables ¶
var ( GroupVersion = schema.GroupVersion{Group: Group, Version: Version} ResourceContextGroupKind = schema.GroupKind{Group: Group, Kind: ResourceContextKind}.String() ResourceContextKindAPIVersion = ResourceContextKind + "." + GroupVersion.String() ResourceContextGroupVersionKind = GroupVersion.WithKind(ResourceContextKind) ControllerPkgRevLabelKey = strings.ToLower(ResourceContextKind) + "/" + "PackageRevision" )
var AddToScheme = schemeBuilder.AddToScheme
Registers this API group and version to a scheme Note: Generator *requires* it to be called "AddToScheme"
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
Functions ¶
func Kind ¶
Takes an unqualified kind and returns a group-qualified GroupKind Note: Generator *requires* it to be called "Kind"
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group-qualified GroupResource.
Types ¶
type ResourceContext ¶
type ResourceContext struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ResourceContextSpec `json:"spec,omitempty"`
Status ResourceContextStatus `json:"status,omitempty"`
}
ResourceContext is the Schema for the lcnc runtime API +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status
func (*ResourceContext) DeepCopy ¶
func (in *ResourceContext) DeepCopy() *ResourceContext
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceContext.
func (*ResourceContext) DeepCopyInto ¶
func (in *ResourceContext) DeepCopyInto(out *ResourceContext)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceContext) DeepCopyObject ¶
func (in *ResourceContext) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceContextList ¶
type ResourceContextList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ResourceContext `json:"items"`
}
PackageRevisionResourcesList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true
func (*ResourceContextList) DeepCopy ¶
func (in *ResourceContextList) DeepCopy() *ResourceContextList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceContextList.
func (*ResourceContextList) DeepCopyInto ¶
func (in *ResourceContextList) DeepCopyInto(out *ResourceContextList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceContextList) DeepCopyObject ¶
func (in *ResourceContextList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceContextProperties ¶
type ResourceContextProperties struct {
// holds the input of the CR
Input map[string]KRMResource `json:"input,omitempty"`
// holds the allocation of the CR with the key being GVK in string format
Allocations map[string][]KRMResource `json:"allocations,omitempty"`
// holds the extra input of the CR with the key being GVK in string format
ExtraInput map[string][]KRMResource `json:"extraInput,omitempty"`
}
ResourceContextSpec defines the context of the resource of the controller
func (*ResourceContextProperties) DeepCopy ¶
func (in *ResourceContextProperties) DeepCopy() *ResourceContextProperties
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceContextProperties.
func (*ResourceContextProperties) DeepCopyInto ¶
func (in *ResourceContextProperties) DeepCopyInto(out *ResourceContextProperties)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceContextSpec ¶
type ResourceContextSpec struct {
Properties *ResourceContextProperties `json:"properties,omitempty"`
}
func (*ResourceContextSpec) DeepCopy ¶
func (in *ResourceContextSpec) DeepCopy() *ResourceContextSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceContextSpec.
func (*ResourceContextSpec) DeepCopyInto ¶
func (in *ResourceContextSpec) DeepCopyInto(out *ResourceContextSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceContextStatus ¶
type ResourceContextStatus struct {
}
ResourceContextSpec defines the context of the resource of the controller
func (*ResourceContextStatus) DeepCopy ¶
func (in *ResourceContextStatus) DeepCopy() *ResourceContextStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceContextStatus.
func (*ResourceContextStatus) DeepCopyInto ¶
func (in *ResourceContextStatus) DeepCopyInto(out *ResourceContextStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.