v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Group in the kubernetes api
	Group = "lcnc.yndd.io"
	// Version in the kubernetes api
	Version = "v1"
)
View Source
const (
	ResourceContextKind     = "ResourceContext"
	ResourceContextListKind = "ResourceContextList"

	ResourceContextSingular  = "resourcecontext"
	ResourceContextPlural    = "resourcecontexts"
	ResourceContextShortName = "ctx"
)

Variables

View Source
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"
)
View Source
var AddToScheme = schemeBuilder.AddToScheme

Registers this API group and version to a scheme Note: Generator *requires* it to be called "AddToScheme"

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

Functions

func Kind

func Kind(kind string) schema.GroupKind

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 KRMResource

type KRMResource string

string is a string representation of the KRM resource

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

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

func (*ResourceContextProperties) DeepCopyInto

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

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.

Jump to

Keyboard shortcuts

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