v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the extension v1alpha1 API group +kubebuilder:object:generate=true +groupName=extension.projectsveltos.io

Index

Constants

View Source
const (
	JsonnetSourceKind = "JsonnetSourceKind"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "extension.projectsveltos.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type JsonnetSource

type JsonnetSource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   JsonnetSourceSpec   `json:"spec,omitempty"`
	Status JsonnetSourceStatus `json:"status,omitempty"`
}

JsonnetSource is the Schema for the jsonnetsources API

func (*JsonnetSource) DeepCopy

func (in *JsonnetSource) DeepCopy() *JsonnetSource

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

func (*JsonnetSource) DeepCopyInto

func (in *JsonnetSource) DeepCopyInto(out *JsonnetSource)

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

func (*JsonnetSource) DeepCopyObject

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

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

type JsonnetSourceList

type JsonnetSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []JsonnetSource `json:"items"`
}

JsonnetSourceList contains a list of JsonnetSource

func (*JsonnetSourceList) DeepCopy

func (in *JsonnetSourceList) DeepCopy() *JsonnetSourceList

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

func (*JsonnetSourceList) DeepCopyInto

func (in *JsonnetSourceList) DeepCopyInto(out *JsonnetSourceList)

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

func (*JsonnetSourceList) DeepCopyObject

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

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

type JsonnetSourceSpec

type JsonnetSourceSpec struct {
	// Namespace of the referenced resource.
	// Namespace can be left empty. In such a case, namespace will
	// be implicit set to cluster's namespace.
	Namespace string `json:"namespace"`

	// Name of the rreferenced resource.
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`

	// Kind of the resource. Supported kinds are:
	// - flux GitRepository;OCIRepository;Bucket
	// - ConfigMap/Secret (which will be mounted as volume)
	// +kubebuilder:validation:Enum=GitRepository;OCIRepository;Bucket;ConfigMap;Secret
	Kind string `json:"kind"`

	// Path to the jsonnet file.
	// Defaults to 'None', which translates to the root path of the SourceRef.
	// +optional
	Path string `json:"path,omitempty"`

	// Variables contains set of variable to pass to jsonnet
	Variables map[string]string `json:"variables,omitempty"`
}

JsonnetSourceSpec defines the desired state of JsonnetSource

func (*JsonnetSourceSpec) DeepCopy

func (in *JsonnetSourceSpec) DeepCopy() *JsonnetSourceSpec

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

func (*JsonnetSourceSpec) DeepCopyInto

func (in *JsonnetSourceSpec) DeepCopyInto(out *JsonnetSourceSpec)

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

type JsonnetSourceStatus

type JsonnetSourceStatus struct {
	// Resources contains the output of jsonnet, so the
	// resources to be deployed
	Resources string `json:"resources,omitempty"`

	// FailureMessage provides more information about the error.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

JsonnetSourceStatus defines the observed state of JsonnetSource

func (*JsonnetSourceStatus) DeepCopy

func (in *JsonnetSourceStatus) DeepCopy() *JsonnetSourceStatus

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

func (*JsonnetSourceStatus) DeepCopyInto

func (in *JsonnetSourceStatus) DeepCopyInto(out *JsonnetSourceStatus)

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