v1alpha1

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

+gengo:deepcopy +gengo:runtimedoc

Package v1alpha1 GENERATED BY gengo:deepcopy DON'T EDIT THIS FILE

Package v1alpha1 GENERATED BY gengo:enum DON'T EDIT THIS FILE

Package v1alpha1 GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

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

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

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

Functions

func PortNameAndHostPort added in v0.5.4

func PortNameAndHostPort(n string) (string, int32)

func PortProtocol added in v0.4.0

func PortProtocol(n string) corev1.Protocol

func SubResourceName added in v0.4.0

func SubResourceName(kpkg *KubePkg, name string) string

func VolumesFrom added in v0.4.0

func VolumesFrom(kpkg *KubePkg) map[string]Volume

Types

type ConfigurationDatabase added in v0.4.0

type ConfigurationDatabase struct {
	Scheme   string
	Host     string
	Username string
	Password string
	Name     string
	Extra    string
}

func (*ConfigurationDatabase) DeepCopy added in v0.4.0

func (*ConfigurationDatabase) DeepCopyInto added in v0.4.0

func (in *ConfigurationDatabase) DeepCopyInto(out *ConfigurationDatabase)

func (ConfigurationDatabase) Endpoint added in v0.4.0

func (c ConfigurationDatabase) Endpoint() string

func (ConfigurationDatabase) RuntimeDoc added in v0.4.0

func (v ConfigurationDatabase) RuntimeDoc(names ...string) ([]string, bool)

type Container added in v0.2.0

type Container struct {
	Image Image `json:"image"`

	WorkingDir string                       `json:"workingDir,omitempty"`
	Command    []string                     `json:"command,omitempty"`
	Args       []string                     `json:"args,omitempty"`
	Env        map[string]EnvVarValueOrFrom `json:"env,omitempty"`

	// Ports: [PortName]: ContainerPort
	Ports map[string]int32 `json:"ports,omitempty"`

	Stdin     bool `json:"stdin,omitempty"`
	StdinOnce bool `json:"stdinOnce,omitempty"`
	TTY       bool `json:"tty,omitempty"`

	Resources      *corev1.ResourceRequirements `json:"resources,omitempty"`
	LivenessProbe  *corev1.Probe                `json:"livenessProbe,omitempty"`
	ReadinessProbe *corev1.Probe                `json:"readinessProbe,omitempty"`
	StartupProbe   *corev1.Probe                `json:"startupProbe,omitempty"`
	Lifecycle      *corev1.Lifecycle            `json:"lifecycle,omitempty"`

	SecurityContext          *corev1.SecurityContext         `json:"securityContext,omitempty"`
	TerminationMessagePath   string                          `json:"terminationMessagePath,omitempty"`
	TerminationMessagePolicy corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"`
}

func (*Container) DeepCopy added in v0.4.0

func (in *Container) DeepCopy() *Container

func (*Container) DeepCopyInto added in v0.4.0

func (in *Container) DeepCopyInto(out *Container)

func (Container) RuntimeDoc added in v0.2.0

func (v Container) RuntimeDoc(names ...string) ([]string, bool)

type Deploy added in v0.2.0

type Deploy struct {
	Deployer `json:"-"`
}

+gengo:deepcopy=false

func (*Deploy) DeepCopy added in v0.4.0

func (in *Deploy) DeepCopy() *Deploy

func (*Deploy) DeepCopyInto added in v0.4.0

func (in *Deploy) DeepCopyInto(out *Deploy)

func (Deploy) Discriminator added in v0.4.0

func (Deploy) Discriminator() string

func (Deploy) Mapping added in v0.4.0

func (Deploy) Mapping() map[string]any

func (Deploy) MarshalJSON added in v0.4.0

func (d Deploy) MarshalJSON() ([]byte, error)

func (Deploy) RuntimeDoc added in v0.2.0

func (v Deploy) RuntimeDoc(names ...string) ([]string, bool)

func (*Deploy) UnmarshalJSON added in v0.4.0

func (d *Deploy) UnmarshalJSON(data []byte) error

type DeployConfigMap added in v0.4.0

type DeployConfigMap struct {
	Kind        string            `json:"kind" validate:"@string{ConfigMap}"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*DeployConfigMap) DeepCopy added in v0.4.0

func (in *DeployConfigMap) DeepCopy() *DeployConfigMap

func (*DeployConfigMap) DeepCopyInto added in v0.4.0

func (in *DeployConfigMap) DeepCopyInto(out *DeployConfigMap)

func (DeployConfigMap) RuntimeDoc added in v0.4.0

func (v DeployConfigMap) RuntimeDoc(names ...string) ([]string, bool)

func (*DeployConfigMap) ToResource added in v0.4.0

func (x *DeployConfigMap) ToResource(kpkg *KubePkg) (client.Object, error)

type DeployCronJob added in v0.4.0

type DeployCronJob struct {
	Kind        string              `json:"kind" validate:"@string{CronJob}"`
	Annotations map[string]string   `json:"annotations,omitempty"`
	Spec        batchv1.CronJobSpec `json:"spec,omitempty"`
}

func (*DeployCronJob) DeepCopy added in v0.4.0

func (in *DeployCronJob) DeepCopy() *DeployCronJob

func (*DeployCronJob) DeepCopyInto added in v0.4.0

func (in *DeployCronJob) DeepCopyInto(out *DeployCronJob)

func (DeployCronJob) RuntimeDoc added in v0.4.0

func (v DeployCronJob) RuntimeDoc(names ...string) ([]string, bool)

func (*DeployCronJob) ToResource added in v0.4.0

func (x *DeployCronJob) ToResource(kpkg *KubePkg) (client.Object, error)

type DeployDaemonSet added in v0.4.0

type DeployDaemonSet struct {
	Kind        string               `json:"kind" validate:"@string{DaemonSet}"`
	Annotations map[string]string    `json:"annotations,omitempty"`
	Spec        appsv1.DaemonSetSpec `json:"spec,omitempty"`
}

func (*DeployDaemonSet) DeepCopy added in v0.4.0

func (in *DeployDaemonSet) DeepCopy() *DeployDaemonSet

func (*DeployDaemonSet) DeepCopyInto added in v0.4.0

func (in *DeployDaemonSet) DeepCopyInto(out *DeployDaemonSet)

func (DeployDaemonSet) RuntimeDoc added in v0.4.0

func (v DeployDaemonSet) RuntimeDoc(names ...string) ([]string, bool)

func (*DeployDaemonSet) ToResource added in v0.4.0

func (x *DeployDaemonSet) ToResource(kpkg *KubePkg) (client.Object, error)

type DeployDeployment added in v0.4.0

type DeployDeployment struct {
	Kind        string                `json:"kind" validate:"@string{Deployment}"`
	Annotations map[string]string     `json:"annotations,omitempty"`
	Spec        appsv1.DeploymentSpec `json:"spec,omitempty"`
}

func (*DeployDeployment) DeepCopy added in v0.4.0

func (in *DeployDeployment) DeepCopy() *DeployDeployment

func (*DeployDeployment) DeepCopyInto added in v0.4.0

func (in *DeployDeployment) DeepCopyInto(out *DeployDeployment)

func (DeployDeployment) RuntimeDoc added in v0.4.0

func (v DeployDeployment) RuntimeDoc(names ...string) ([]string, bool)

func (*DeployDeployment) ToResource added in v0.4.0

func (x *DeployDeployment) ToResource(kpkg *KubePkg) (client.Object, error)

type DeployJob added in v0.4.0

type DeployJob struct {
	Kind        string            `json:"kind" validate:"@string{Job}"`
	Annotations map[string]string `json:"annotations,omitempty"`
	Spec        batchv1.JobSpec   `json:"spec,omitempty"`
}

func (*DeployJob) DeepCopy added in v0.4.0

func (in *DeployJob) DeepCopy() *DeployJob

func (*DeployJob) DeepCopyInto added in v0.4.0

func (in *DeployJob) DeepCopyInto(out *DeployJob)

func (DeployJob) RuntimeDoc added in v0.4.0

func (v DeployJob) RuntimeDoc(names ...string) ([]string, bool)

func (*DeployJob) ToResource added in v0.4.0

func (x *DeployJob) ToResource(kpkg *KubePkg) (client.Object, error)

type DeploySecret added in v0.4.0

type DeploySecret struct {
	Kind        string            `json:"kind" validate:"@string{Secret}"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*DeploySecret) DeepCopy added in v0.4.0

func (in *DeploySecret) DeepCopy() *DeploySecret

func (*DeploySecret) DeepCopyInto added in v0.4.0

func (in *DeploySecret) DeepCopyInto(out *DeploySecret)

func (DeploySecret) RuntimeDoc added in v0.4.0

func (v DeploySecret) RuntimeDoc(names ...string) ([]string, bool)

func (*DeploySecret) ToResource added in v0.4.0

func (x *DeploySecret) ToResource(kpkg *KubePkg) (client.Object, error)

type DeployStatefulSet added in v0.4.0

type DeployStatefulSet struct {
	Kind        string                 `json:"kind" validate:"@string{StatefulSet}"`
	Annotations map[string]string      `json:"annotations,omitempty"`
	Spec        appsv1.StatefulSetSpec `json:"spec,omitempty"`
}

func (*DeployStatefulSet) DeepCopy added in v0.4.0

func (in *DeployStatefulSet) DeepCopy() *DeployStatefulSet

func (*DeployStatefulSet) DeepCopyInto added in v0.4.0

func (in *DeployStatefulSet) DeepCopyInto(out *DeployStatefulSet)

func (DeployStatefulSet) RuntimeDoc added in v0.4.0

func (v DeployStatefulSet) RuntimeDoc(names ...string) ([]string, bool)

func (*DeployStatefulSet) ToResource added in v0.4.0

func (x *DeployStatefulSet) ToResource(kpkg *KubePkg) (client.Object, error)

type Deployer added in v0.4.0

type Deployer interface {
	ToResource(kpkg *KubePkg) (client.Object, error)
}

type DigestMeta

type DigestMeta struct {
	Type     DigestMetaType `json:"type"`
	Digest   string         `json:"digest"`
	Name     string         `json:"name"`
	Size     FileSize       `json:"size"`
	Tag      string         `json:"tag,omitempty"`
	Platform string         `json:"platform,omitempty"`
}

func (*DigestMeta) DeepCopy

func (in *DigestMeta) DeepCopy() *DigestMeta

func (*DigestMeta) DeepCopyInto

func (in *DigestMeta) DeepCopyInto(out *DigestMeta)

func (DigestMeta) RuntimeDoc added in v0.2.0

func (v DigestMeta) RuntimeDoc(names ...string) ([]string, bool)

type DigestMetaType added in v0.2.0

type DigestMetaType string

+gengo:enum

const (
	DigestMetaManifest DigestMetaType = "manifest"
	DigestMetaBlob     DigestMetaType = "blob"
)

func (*DigestMetaType) DeepCopy added in v0.4.0

func (in *DigestMetaType) DeepCopy() *DigestMetaType

func (*DigestMetaType) DeepCopyInto added in v0.4.0

func (in *DigestMetaType) DeepCopyInto(out *DigestMetaType)

func (DigestMetaType) EnumValues added in v0.2.0

func (DigestMetaType) EnumValues() []any

func (DigestMetaType) RuntimeDoc added in v0.2.0

func (DigestMetaType) RuntimeDoc(names ...string) ([]string, bool)

type EnvVarValueOrFrom added in v0.2.0

type EnvVarValueOrFrom struct {
	Value     string
	ValueFrom *corev1.EnvVarSource
}

func (*EnvVarValueOrFrom) DeepCopy added in v0.4.0

func (in *EnvVarValueOrFrom) DeepCopy() *EnvVarValueOrFrom

func (*EnvVarValueOrFrom) DeepCopyInto added in v0.4.0

func (in *EnvVarValueOrFrom) DeepCopyInto(out *EnvVarValueOrFrom)

func (EnvVarValueOrFrom) MarshalText added in v0.2.0

func (envVar EnvVarValueOrFrom) MarshalText() ([]byte, error)

func (EnvVarValueOrFrom) RuntimeDoc added in v0.2.0

func (v EnvVarValueOrFrom) RuntimeDoc(names ...string) ([]string, bool)

func (*EnvVarValueOrFrom) UnmarshalText added in v0.2.0

func (envVar *EnvVarValueOrFrom) UnmarshalText(text []byte) (err error)

type Expose added in v0.2.0

type Expose struct {
	// Type NodePort | Ingress
	Type    string   `json:"type"`
	Gateway []string `json:"gateway,omitempty"`
}

func (*Expose) DeepCopy added in v0.4.0

func (in *Expose) DeepCopy() *Expose

func (*Expose) DeepCopyInto added in v0.4.0

func (in *Expose) DeepCopyInto(out *Expose)

func (Expose) RuntimeDoc added in v0.2.0

func (v Expose) RuntimeDoc(names ...string) ([]string, bool)

type FileSize

type FileSize int64

func (*FileSize) DeepCopy added in v0.4.0

func (in *FileSize) DeepCopy() *FileSize

func (*FileSize) DeepCopyInto added in v0.4.0

func (in *FileSize) DeepCopyInto(out *FileSize)

func (FileSize) RuntimeDoc added in v0.2.0

func (FileSize) RuntimeDoc(names ...string) ([]string, bool)

func (FileSize) String

func (f FileSize) String() string

type Image added in v0.2.0

type Image struct {
	Name       string            `json:"name"`
	Tag        string            `json:"tag,omitempty"`
	Digest     string            `json:"digest,omitempty"`
	Platforms  []string          `json:"platforms,omitempty"`
	PullPolicy corev1.PullPolicy `json:"pullPolicy,omitempty"`
}

func (*Image) DeepCopy added in v0.4.0

func (in *Image) DeepCopy() *Image

func (*Image) DeepCopyInto added in v0.4.0

func (in *Image) DeepCopyInto(out *Image)

func (Image) FullName added in v0.2.0

func (v Image) FullName() string

func (Image) RuntimeDoc added in v0.2.0

func (v Image) RuntimeDoc(names ...string) ([]string, bool)

type KubePkg

type KubePkg struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              Spec    `json:"spec"`
	Status            *Status `json:"status,omitempty"`
}

KubePkg +gengo:deepcopy:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*KubePkg) DeepCopy

func (in *KubePkg) DeepCopy() *KubePkg

func (*KubePkg) DeepCopyInto

func (in *KubePkg) DeepCopyInto(out *KubePkg)

func (*KubePkg) DeepCopyObject

func (in *KubePkg) DeepCopyObject() k8s_io_apimachinery_pkg_runtime.Object

func (KubePkg) RuntimeDoc added in v0.2.0

func (v KubePkg) RuntimeDoc(names ...string) ([]string, bool)

type KubePkgList

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

KubePkgList +gengo:deepcopy:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*KubePkgList) DeepCopy

func (in *KubePkgList) DeepCopy() *KubePkgList

func (*KubePkgList) DeepCopyInto

func (in *KubePkgList) DeepCopyInto(out *KubePkgList)

func (*KubePkgList) DeepCopyObject

func (in *KubePkgList) DeepCopyObject() k8s_io_apimachinery_pkg_runtime.Object

func (KubePkgList) RuntimeDoc added in v0.2.0

func (v KubePkgList) RuntimeDoc(names ...string) ([]string, bool)

type Manifests

type Manifests map[string]any

func (Manifests) DeepCopy

func (in Manifests) DeepCopy() Manifests

func (Manifests) DeepCopyInto

func (in Manifests) DeepCopyInto(out Manifests)

func (Manifests) RuntimeDoc added in v0.2.0

func (Manifests) RuntimeDoc(names ...string) ([]string, bool)

type MountResult added in v0.4.0

type MountResult struct {
	Reload        string
	ResourceName  string
	Volume        *v1.Volume
	EnvFromSource *v1.EnvFromSource
	VolumeMount   *v1.VolumeMount
}

func (*MountResult) DeepCopy added in v0.4.0

func (in *MountResult) DeepCopy() *MountResult

func (*MountResult) DeepCopyInto added in v0.4.0

func (in *MountResult) DeepCopyInto(out *MountResult)

func (MountResult) RuntimeDoc added in v0.4.0

func (v MountResult) RuntimeDoc(names ...string) ([]string, bool)

type ScopeType added in v0.2.0

type ScopeType string

+gengo:enum

const (
	ScopeTypeCluster   ScopeType = "Cluster"
	ScopeTypeNamespace ScopeType = "Namespace"
)

func (*ScopeType) DeepCopy added in v0.4.0

func (in *ScopeType) DeepCopy() *ScopeType

func (*ScopeType) DeepCopyInto added in v0.4.0

func (in *ScopeType) DeepCopyInto(out *ScopeType)

func (ScopeType) EnumValues added in v0.2.0

func (ScopeType) EnumValues() []any

func (ScopeType) RuntimeDoc added in v0.2.0

func (ScopeType) RuntimeDoc(names ...string) ([]string, bool)

type Service added in v0.2.0

type Service struct {
	// Ports [PortName]servicePort
	Ports map[string]int32 `json:"ports,omitempty"`
	// Paths [PortName]BashPath
	Paths map[string]string `json:"paths,omitempty"`

	ClusterIP string  `json:"clusterIP,omitempty"`
	Expose    *Expose `json:"expose,omitempty"`
}

func (*Service) DeepCopy added in v0.4.0

func (in *Service) DeepCopy() *Service

func (*Service) DeepCopyInto added in v0.4.0

func (in *Service) DeepCopyInto(out *Service)

func (Service) RuntimeDoc added in v0.2.0

func (v Service) RuntimeDoc(names ...string) ([]string, bool)

type ServiceAccount added in v0.2.0

type ServiceAccount struct {
	Scope ScopeType           `json:"scope,omitempty"`
	Rules []rbacv1.PolicyRule `json:"rules"`
}

func (*ServiceAccount) DeepCopy added in v0.4.0

func (in *ServiceAccount) DeepCopy() *ServiceAccount

func (*ServiceAccount) DeepCopyInto added in v0.4.0

func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)

func (ServiceAccount) RuntimeDoc added in v0.2.0

func (v ServiceAccount) RuntimeDoc(names ...string) ([]string, bool)

type Spec added in v0.2.0

type Spec struct {
	Version        string                       `json:"version"`
	Deploy         Deploy                       `json:"deploy,omitempty"`
	Config         map[string]EnvVarValueOrFrom `json:"config,omitempty"`
	Containers     map[string]Container         `json:"containers,omitempty"`
	Volumes        map[string]Volume            `json:"volumes,omitempty"`
	Services       map[string]Service           `json:"services,omitempty"`
	ServiceAccount *ServiceAccount              `json:"serviceAccount,omitempty"`

	Manifests Manifests `json:"manifests,omitempty"`
}

func (*Spec) DeepCopy added in v0.2.0

func (in *Spec) DeepCopy() *Spec

func (*Spec) DeepCopyInto added in v0.2.0

func (in *Spec) DeepCopyInto(out *Spec)

func (Spec) RuntimeDoc added in v0.2.0

func (v Spec) RuntimeDoc(names ...string) ([]string, bool)

type SpecData added in v0.4.0

type SpecData struct {
	Data map[string]string `json:"data"`
}

func (*SpecData) DeepCopy added in v0.4.0

func (in *SpecData) DeepCopy() *SpecData

func (*SpecData) DeepCopyInto added in v0.4.0

func (in *SpecData) DeepCopyInto(out *SpecData)

func (SpecData) RuntimeDoc added in v0.4.0

func (v SpecData) RuntimeDoc(names ...string) ([]string, bool)

type Status added in v0.2.0

type Status struct {
	Endpoint  map[string]string `json:"endpoint,omitempty"`
	Resources []map[string]any  `json:"resources,omitempty"`
	Images    map[string]string `json:"images,omitempty"`
	Digests   []DigestMeta      `json:"digests,omitempty"`
}

func (*Status) AppendResourceStatus added in v0.2.0

func (v *Status) AppendResourceStatus(name string, gvk schema.GroupVersionKind, status map[string]any)

func (*Status) DeepCopy added in v0.4.0

func (in *Status) DeepCopy() *Status

func (*Status) DeepCopyInto added in v0.4.0

func (in *Status) DeepCopyInto(out *Status)

func (Status) RuntimeDoc added in v0.2.0

func (v Status) RuntimeDoc(names ...string) ([]string, bool)

type Statuses

type Statuses map[string]any

func (Statuses) DeepCopy

func (in Statuses) DeepCopy() Statuses

func (Statuses) DeepCopyInto

func (in Statuses) DeepCopyInto(out Statuses)

func (Statuses) RuntimeDoc added in v0.2.0

func (Statuses) RuntimeDoc(names ...string) ([]string, bool)

type Volume added in v0.2.0

type Volume struct {
	VolumeSource `json:"-"`
}

+gengo:deepcopy=false

func (*Volume) DeepCopy added in v0.4.0

func (in *Volume) DeepCopy() *Volume

func (*Volume) DeepCopyInto added in v0.4.0

func (in *Volume) DeepCopyInto(out *Volume)

func (Volume) Discriminator added in v0.4.0

func (Volume) Discriminator() string

func (Volume) Mapping added in v0.4.0

func (Volume) Mapping() map[string]any

func (Volume) MarshalJSON added in v0.4.0

func (d Volume) MarshalJSON() ([]byte, error)

func (Volume) RuntimeDoc added in v0.2.0

func (v Volume) RuntimeDoc(names ...string) ([]string, bool)

func (*Volume) UnmarshalJSON added in v0.4.0

func (d *Volume) UnmarshalJSON(data []byte) error

type VolumeConfigMap added in v0.4.0

type VolumeConfigMap struct {
	Type string                    `json:"type" validate:"@string{ConfigMap}"`
	Opt  *v1.ConfigMapVolumeSource `json:"opt,omitempty"`
	Spec *SpecData                 `json:"spec,omitempty"`
	VolumeMount
}

func (*VolumeConfigMap) DeepCopy added in v0.4.0

func (in *VolumeConfigMap) DeepCopy() *VolumeConfigMap

func (*VolumeConfigMap) DeepCopyInto added in v0.4.0

func (in *VolumeConfigMap) DeepCopyInto(out *VolumeConfigMap)

func (*VolumeConfigMap) Mount added in v0.4.0

func (v *VolumeConfigMap) Mount(name string) *MountResult

func (VolumeConfigMap) RuntimeDoc added in v0.4.0

func (v VolumeConfigMap) RuntimeDoc(names ...string) ([]string, bool)

func (*VolumeConfigMap) ToResource added in v0.4.0

func (v *VolumeConfigMap) ToResource(kpkg *KubePkg, resourceName string) (client.Object, error)

type VolumeEmptyDir added in v0.4.0

type VolumeEmptyDir struct {
	Type string                       `json:"type" validate:"@string{EmptyDir}"`
	Opt  *corev1.EmptyDirVolumeSource `json:"opt,omitempty"`
	VolumeMount
}

func (*VolumeEmptyDir) DeepCopy added in v0.4.0

func (in *VolumeEmptyDir) DeepCopy() *VolumeEmptyDir

func (*VolumeEmptyDir) DeepCopyInto added in v0.4.0

func (in *VolumeEmptyDir) DeepCopyInto(out *VolumeEmptyDir)

func (*VolumeEmptyDir) Mount added in v0.4.0

func (v *VolumeEmptyDir) Mount(name string) *MountResult

func (VolumeEmptyDir) RuntimeDoc added in v0.4.0

func (v VolumeEmptyDir) RuntimeDoc(names ...string) ([]string, bool)

func (*VolumeEmptyDir) ToResource added in v0.4.0

func (v *VolumeEmptyDir) ToResource(kpkg *KubePkg, resourceName string) (client.Object, error)

type VolumeHostPath added in v0.4.0

type VolumeHostPath struct {
	Type string                       `json:"type" validate:"@string{HostPath}"`
	Opt  *corev1.HostPathVolumeSource `json:"opt,omitempty"`
	VolumeMount
}

func (*VolumeHostPath) DeepCopy added in v0.4.0

func (in *VolumeHostPath) DeepCopy() *VolumeHostPath

func (*VolumeHostPath) DeepCopyInto added in v0.4.0

func (in *VolumeHostPath) DeepCopyInto(out *VolumeHostPath)

func (*VolumeHostPath) Mount added in v0.4.0

func (v *VolumeHostPath) Mount(name string) *MountResult

func (VolumeHostPath) RuntimeDoc added in v0.4.0

func (v VolumeHostPath) RuntimeDoc(names ...string) ([]string, bool)

func (*VolumeHostPath) ToResource added in v0.4.0

func (v *VolumeHostPath) ToResource(kpkg *KubePkg, resourceName string) (client.Object, error)

type VolumeMount added in v0.4.0

type VolumeMount struct {
	MountPath string `json:"mountPath"`

	MountPropagation string `json:"mountPropagation,omitempty" validate:"@string{Bidirectional,HostToContainer}"`

	// Prefix mountPath == export, use as envFrom
	Prefix   string `json:"prefix,omitempty"`
	Optional *bool  `json:"optional,omitempty"`

	// else volumeMounts
	ReadOnly bool   `json:"readOnly,omitempty"`
	SubPath  string `json:"subPath,omitempty"`
}

func (*VolumeMount) DeepCopy added in v0.4.0

func (in *VolumeMount) DeepCopy() *VolumeMount

func (*VolumeMount) DeepCopyInto added in v0.4.0

func (in *VolumeMount) DeepCopyInto(out *VolumeMount)

func (*VolumeMount) MountTo added in v0.5.4

func (v *VolumeMount) MountTo(vv *v1.VolumeMount)

func (VolumeMount) RuntimeDoc added in v0.4.0

func (v VolumeMount) RuntimeDoc(names ...string) ([]string, bool)

type VolumePersistentVolumeClaim added in v0.4.0

type VolumePersistentVolumeClaim struct {
	Type string                                    `json:"type" validate:"@string{PersistentVolumeClaim}"`
	Opt  *corev1.PersistentVolumeClaimVolumeSource `json:"opt,omitempty"`
	Spec corev1.PersistentVolumeClaimSpec          `json:"spec"`
	VolumeMount
}

func (*VolumePersistentVolumeClaim) DeepCopy added in v0.4.0

func (*VolumePersistentVolumeClaim) DeepCopyInto added in v0.4.0

func (*VolumePersistentVolumeClaim) Mount added in v0.4.0

func (VolumePersistentVolumeClaim) RuntimeDoc added in v0.4.0

func (v VolumePersistentVolumeClaim) RuntimeDoc(names ...string) ([]string, bool)

func (*VolumePersistentVolumeClaim) ToResource added in v0.4.0

func (v *VolumePersistentVolumeClaim) ToResource(kpkg *KubePkg, resourceName string) (client.Object, error)

type VolumeSecret added in v0.4.0

type VolumeSecret struct {
	Type string                     `json:"type" validate:"@string{Secret}"`
	Opt  *corev1.SecretVolumeSource `json:"opt,omitempty"`
	Spec *SpecData                  `json:"spec,omitempty"`
	VolumeMount
}

func (*VolumeSecret) DeepCopy added in v0.4.0

func (in *VolumeSecret) DeepCopy() *VolumeSecret

func (*VolumeSecret) DeepCopyInto added in v0.4.0

func (in *VolumeSecret) DeepCopyInto(out *VolumeSecret)

func (*VolumeSecret) Mount added in v0.4.0

func (v *VolumeSecret) Mount(name string) *MountResult

func (VolumeSecret) RuntimeDoc added in v0.4.0

func (v VolumeSecret) RuntimeDoc(names ...string) ([]string, bool)

func (*VolumeSecret) ToResource added in v0.4.0

func (v *VolumeSecret) ToResource(kpkg *KubePkg, resourceName string) (client.Object, error)

type VolumeSource added in v0.4.0

type VolumeSource interface {
	ToResource(kpkg *KubePkg, name string) (client.Object, error)
	Mount(name string) *MountResult
}

Jump to

Keyboard shortcuts

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