v1

package
v0.76.5 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the karina.flanksource.com v1 API group +kubebuilder:object:generate=true +groupName=karina.flanksource.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "karina.flanksource.com", Version: "v1"}

	// 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 KarinaConfig

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

	Spec   KarinaConfigSpec   `json:"spec,omitempty"`
	Status KarinaConfigStatus `json:"status,omitempty"`
}

KarinaConfig is the Schema for the KarinaConfigs API

func (*KarinaConfig) DeepCopy

func (in *KarinaConfig) DeepCopy() *KarinaConfig

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

func (*KarinaConfig) DeepCopyInto

func (in *KarinaConfig) DeepCopyInto(out *KarinaConfig)

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

func (*KarinaConfig) DeepCopyObject

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

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

type KarinaConfigList

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

KarinaConfigList contains a list of KarinaConfig

func (*KarinaConfigList) DeepCopy

func (in *KarinaConfigList) DeepCopy() *KarinaConfigList

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

func (*KarinaConfigList) DeepCopyInto

func (in *KarinaConfigList) DeepCopyInto(out *KarinaConfigList)

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

func (*KarinaConfigList) DeepCopyObject

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

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

type KarinaConfigSpec

type KarinaConfigSpec struct {
	DryRun       bool                      `json:"dryRun,omitempty"`
	Config       types.PlatformConfig      `json:"config,omitempty"`
	TemplateFrom map[string]TemplateSource `json:"templateFrom,omitempty"`
	Image        string                    `json:"image,omitempty"`
	Version      string                    `json:"version,omitempty"`
}

KarinaConfigSpec defines the desired state of KarinaConfig

func (*KarinaConfigSpec) DeepCopy

func (in *KarinaConfigSpec) DeepCopy() *KarinaConfigSpec

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

func (*KarinaConfigSpec) DeepCopyInto

func (in *KarinaConfigSpec) DeepCopyInto(out *KarinaConfigSpec)

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

type KarinaConfigStatus

type KarinaConfigStatus struct {
	LastApplied         metav1.Time  `json:"lastApplied,omitempty"`
	LastAppliedStatus   string       `json:"lastAppliedStatus,omitempty"`
	LastAppliedChecksum string       `json:"lastAppliedChecksum,omitempty"`
	PodName             string       `json:"podName,omitempty"`
	PodStatus           *v1.PodPhase `json:"podStatus,omitempty"`
	ConfigMapName       string       `json:"configMapName,omitempty"`
	SecretName          string       `json:"secretName,omitempty"`
}

KarinaConfigStatus defines the observed state of KarinaConfig

func (*KarinaConfigStatus) DeepCopy

func (in *KarinaConfigStatus) DeepCopy() *KarinaConfigStatus

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

func (*KarinaConfigStatus) DeepCopyInto

func (in *KarinaConfigStatus) DeepCopyInto(out *KarinaConfigStatus)

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

type TemplateSource

type TemplateSource struct {
	// Write the content of secret/configmap/template to a file
	// and set field to file name
	// +optional
	Tmpfile bool `json:"tmpFile,omitempty"`
	// Applies a Golang template
	// +optional
	Template *TemplateSourceValue `json:"templateValue,omitempty"`
	// Selects a key of a ConfigMap.
	// +optional
	ConfigMapKeyRef *v1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
	// Selects a key of a secret in the pod's namespace
	// +optional
	SecretKeyRef *v1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}

func (*TemplateSource) DeepCopy

func (in *TemplateSource) DeepCopy() *TemplateSource

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

func (*TemplateSource) DeepCopyInto

func (in *TemplateSource) DeepCopyInto(out *TemplateSource)

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

type TemplateSourceValue

type TemplateSourceValue struct {
	Template string `json:"template,omitempty"`
}

func (*TemplateSourceValue) DeepCopy

func (in *TemplateSourceValue) DeepCopy() *TemplateSourceValue

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

func (*TemplateSourceValue) DeepCopyInto

func (in *TemplateSourceValue) DeepCopyInto(out *TemplateSourceValue)

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