v1beta1

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the grafana-org-operator v1beta1 API group +kubebuilder:object:generate=true +groupName=grafana-org-operator.kubitus-project.gitlab.io

Index

Constants

View Source
const (
	Reconciling     = "Reconciling"
	Unreachable     = "Unreachable"
	CreationFailure = "CreationFailure"
	Reconciled      = "Reconciled"
	DeletionFailure = "DeletionFailure"
	DeletionBlocked = "DeletionBlocked"
)

Definitions to manage status condition reasons

View Source
const (
	// ConditionReconciled represents the status of the resource reconciliation
	ConditionReconciled = "Reconciled"
)

Definitions to manage status condition types

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "grafana-org-operator.kubitus-project.gitlab.io", Version: "v1beta1"}

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

type EnvFromSource struct {
	// the Secret to select from
	SecretRef *SecretEnvSource `json:"secretRef,omitempty"`
}

EnvFromSource represents the source of environment variables.

func (*EnvFromSource) DeepCopy

func (in *EnvFromSource) DeepCopy() *EnvFromSource

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

func (*EnvFromSource) DeepCopyInto

func (in *EnvFromSource) DeepCopyInto(out *EnvFromSource)

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

type GrafanaInstance

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

	Spec   GrafanaInstanceSpec   `json:"spec,omitempty"`
	Status GrafanaInstanceStatus `json:"status,omitempty"`
}

GrafanaInstance is the Schema for the grafanainstances API +kubebuilder:printcolumn:JSONPath=".spec.url",name=URL,type=string

func (*GrafanaInstance) DeepCopy

func (in *GrafanaInstance) DeepCopy() *GrafanaInstance

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

func (*GrafanaInstance) DeepCopyInto

func (in *GrafanaInstance) DeepCopyInto(out *GrafanaInstance)

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

func (*GrafanaInstance) DeepCopyObject

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

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

type GrafanaInstanceList

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

GrafanaInstanceList contains a list of GrafanaInstance

func (*GrafanaInstanceList) DeepCopy

func (in *GrafanaInstanceList) DeepCopy() *GrafanaInstanceList

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

func (*GrafanaInstanceList) DeepCopyInto

func (in *GrafanaInstanceList) DeepCopyInto(out *GrafanaInstanceList)

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

func (*GrafanaInstanceList) DeepCopyObject

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

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

type GrafanaInstanceSpec

type GrafanaInstanceSpec struct {
	// the Grafana instance URL
	// +required
	// +kubebuilder:validation:Required
	URL string `json:"url"`

	// the name of the Kubernetes secret in the same namespace which
	// provides the credentials to authenticate to Grafana's admin API.
	// The secret must have a keys named `username` and `password`.
	// +required
	// +kubebuilder:validation:Required
	SecretRef string `json:"secretRef"`

	// list of namespace names or wildcards allowed to use this Grafana instance.
	// For example: ["*"] allows all namespaces,
	// ["project-*","foobar"] allows namespaces prefixed by "project-" and
	// the "foobar" namespace.
	// When unset, only the GrafanaInstance's namespace is allowed.
	// +kubebuilder:validation:MaxItems=1024
	AllowedNamespaces []NamespaceWildcard `json:"allowedNamespaces,omitempty"`

	// SSO settings
	// +patchMergeKey=provider
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=provider
	SsoSettings []GrafanaInstanceSsoSettings `json:"ssoSettings,omitempty"`

	// list of sources to populate .env variable of templated data.
	// When a key exists in multiple sources, the value associated
	// with the last source will take precedence.
	EnvFrom []EnvFromSource `json:"envFrom,omitempty"`

	// list of SSO providers to populate the .orgMapping variable
	// of templated data.
	// If not empty, OrgMapping from child GrafanaOrgs is
	// aggregated.
	AggregateOrgMappingFromProviders []string `json:"aggregateOrgMappingFromProviders,omitempty"`
}

GrafanaInstanceSpec defines the desired state of GrafanaInstance

func (*GrafanaInstanceSpec) DeepCopy

func (in *GrafanaInstanceSpec) DeepCopy() *GrafanaInstanceSpec

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

func (*GrafanaInstanceSpec) DeepCopyInto

func (in *GrafanaInstanceSpec) DeepCopyInto(out *GrafanaInstanceSpec)

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

type GrafanaInstanceSsoSettings

type GrafanaInstanceSsoSettings struct {
	// Provider name
	// +required
	// +kubebuilder:validation:Required
	Provider string `json:"provider"`

	// Provider settings
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Type=object
	Settings json.RawMessage `json:"settings,omitempty"`
}

func (*GrafanaInstanceSsoSettings) DeepCopy

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

func (*GrafanaInstanceSsoSettings) DeepCopyInto

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

type GrafanaInstanceStatus

type GrafanaInstanceStatus struct {
	// Represents the observations of a Gragana Instance's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

GrafanaInstanceStatus defines the observed state of GrafanaInstance

func (*GrafanaInstanceStatus) DeepCopy

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

func (*GrafanaInstanceStatus) DeepCopyInto

func (in *GrafanaInstanceStatus) DeepCopyInto(out *GrafanaInstanceStatus)

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

type GrafanaOrg

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

	Spec   GrafanaOrgSpec   `json:"spec,omitempty"`
	Status GrafanaOrgStatus `json:"status,omitempty"`
}

GrafanaOrg is the Schema for the grafanaorgs API +kubebuilder:printcolumn:JSONPath=".spec.orgName",name=OrgName,type=string +kubebuilder:printcolumn:JSONPath=".spec.grafanaInstanceRef",name=Instance,type=string

func (*GrafanaOrg) DeepCopy

func (in *GrafanaOrg) DeepCopy() *GrafanaOrg

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

func (*GrafanaOrg) DeepCopyInto

func (in *GrafanaOrg) DeepCopyInto(out *GrafanaOrg)

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

func (*GrafanaOrg) DeepCopyObject

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

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

type GrafanaOrgDashboard added in v1.2.0

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

	Spec   GrafanaOrgDashboardSpec   `json:"spec,omitempty"`
	Status GrafanaOrgDashboardStatus `json:"status,omitempty"`
}

GrafanaOrgDashboard is the Schema for the grafanaorgdashboards API

func (*GrafanaOrgDashboard) DeepCopy added in v1.2.0

func (in *GrafanaOrgDashboard) DeepCopy() *GrafanaOrgDashboard

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

func (*GrafanaOrgDashboard) DeepCopyInto added in v1.2.0

func (in *GrafanaOrgDashboard) DeepCopyInto(out *GrafanaOrgDashboard)

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

func (*GrafanaOrgDashboard) DeepCopyObject added in v1.2.0

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

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

type GrafanaOrgDashboardList added in v1.2.0

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

GrafanaOrgDashboardList contains a list of GrafanaOrgDashboard

func (*GrafanaOrgDashboardList) DeepCopy added in v1.2.0

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

func (*GrafanaOrgDashboardList) DeepCopyInto added in v1.2.0

func (in *GrafanaOrgDashboardList) DeepCopyInto(out *GrafanaOrgDashboardList)

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

func (*GrafanaOrgDashboardList) DeepCopyObject added in v1.2.0

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

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

type GrafanaOrgDashboardSpec added in v1.2.0

type GrafanaOrgDashboardSpec struct {
	// the name of the GrafanaOrg in the same namespace
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="grafanaOrgRef is immutable"
	GrafanaOrgRef ObjectName `json:"grafanaOrgRef"`

	// the complete dashboard model
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Type=object
	Dashboard json.RawMessage `json:"dashboard,omitempty"`
}

GrafanaOrgDashboardSpec defines the desired state of GrafanaOrgDashboard

func (*GrafanaOrgDashboardSpec) DeepCopy added in v1.2.0

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

func (*GrafanaOrgDashboardSpec) DeepCopyInto added in v1.2.0

func (in *GrafanaOrgDashboardSpec) DeepCopyInto(out *GrafanaOrgDashboardSpec)

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

type GrafanaOrgDashboardStatus added in v1.2.0

type GrafanaOrgDashboardStatus struct {
	// Represents the observations of a GrafanaOrgDashboard's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// The Org Name.
	OrgName string `json:"orgName,omitempty"`

	// The Org ID.
	OrgID int64 `json:"orgID,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`
}

GrafanaOrgDashboardStatus defines the observed state of GrafanaOrgDashboard

func (*GrafanaOrgDashboardStatus) DeepCopy added in v1.2.0

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

func (*GrafanaOrgDashboardStatus) DeepCopyInto added in v1.2.0

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

type GrafanaOrgDatasource

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

	Spec   GrafanaOrgDatasourceSpec   `json:"spec,omitempty"`
	Status GrafanaOrgDatasourceStatus `json:"status,omitempty"`
}

GrafanaOrgDatasource is the Schema for the grafanaorgdatasources API +kubebuilder:printcolumn:JSONPath=".spec.type",name=Type,type=string +kubebuilder:printcolumn:JSONPath=".spec.url",name=URL,type=string

func (*GrafanaOrgDatasource) DeepCopy

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

func (*GrafanaOrgDatasource) DeepCopyInto

func (in *GrafanaOrgDatasource) DeepCopyInto(out *GrafanaOrgDatasource)

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

func (*GrafanaOrgDatasource) DeepCopyObject

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

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

type GrafanaOrgDatasourceList

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

GrafanaOrgDatasourceList contains a list of GrafanaOrgDatasource

func (*GrafanaOrgDatasourceList) DeepCopy

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

func (*GrafanaOrgDatasourceList) DeepCopyInto

func (in *GrafanaOrgDatasourceList) DeepCopyInto(out *GrafanaOrgDatasourceList)

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

func (*GrafanaOrgDatasourceList) DeepCopyObject

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

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

type GrafanaOrgDatasourceSpec

type GrafanaOrgDatasourceSpec struct {
	// the name of the GrafanaOrg in the same namespace
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="grafanaOrgRef is immutable"
	GrafanaOrgRef ObjectName `json:"grafanaOrgRef"`

	// access
	// +kubebuilder:validation:Pattern=`^(proxy|direct)$`
	Access string `json:"access,omitempty"`

	// basic auth
	BasicAuth bool `json:"basicAuth,omitempty"`

	// basic auth user
	BasicAuthUser string `json:"basicAuthUser,omitempty"`

	// database
	Database string `json:"database,omitempty"`

	// is default
	IsDefault bool `json:"isDefault,omitempty"`

	// json data
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:Type=object
	JSONData json.RawMessage `json:"jsonData,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// secure Json data
	SecureJSONData map[string]string `json:"secureJsonData,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// user
	User string `json:"user,omitempty"`

	// version
	Version int64 `json:"version,omitempty"`

	// with credentials
	WithCredentials bool `json:"withCredentials,omitempty"`

	// list of sources to populate .env variable of templated data.
	// When a key exists in multiple sources, the value associated
	// with the last source will take precedence.
	EnvFrom []EnvFromSource `json:"envFrom,omitempty"`
}

GrafanaOrgDatasourceSpec defines the desired state of GrafanaOrgDatasource

func (*GrafanaOrgDatasourceSpec) DeepCopy

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

func (*GrafanaOrgDatasourceSpec) DeepCopyInto

func (in *GrafanaOrgDatasourceSpec) DeepCopyInto(out *GrafanaOrgDatasourceSpec)

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

type GrafanaOrgDatasourceStatus

type GrafanaOrgDatasourceStatus struct {
	// Represents the observations of a GrafanaOrgDatasource's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// The Org Name.
	OrgName string `json:"orgName,omitempty"`

	// The Org ID.
	OrgID int64 `json:"orgID,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`
}

GrafanaOrgDatasourceStatus defines the observed state of GrafanaOrgDatasource

func (*GrafanaOrgDatasourceStatus) DeepCopy

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

func (*GrafanaOrgDatasourceStatus) DeepCopyInto

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

type GrafanaOrgList

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

GrafanaOrgList contains a list of GrafanaOrg

func (*GrafanaOrgList) DeepCopy

func (in *GrafanaOrgList) DeepCopy() *GrafanaOrgList

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

func (*GrafanaOrgList) DeepCopyInto

func (in *GrafanaOrgList) DeepCopyInto(out *GrafanaOrgList)

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

func (*GrafanaOrgList) DeepCopyObject

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

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

type GrafanaOrgOrgMapping

type GrafanaOrgOrgMapping struct {
	// The name of the group in the authentication provider
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^[a-zA-Z0-9_-]+$`
	Group string `json:"group"`

	// The name of the role given to the group
	// +required
	// +kubebuilder:validation:Required
	Role GrafanaOrgRole `json:"role"`

	// The name of the provider. All providers if not set.
	Provider string `json:"provider,omitempty"`
}

GrafanaOrgOrgMapping represents a mapping within the Org.

func (*GrafanaOrgOrgMapping) DeepCopy

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

func (*GrafanaOrgOrgMapping) DeepCopyInto

func (in *GrafanaOrgOrgMapping) DeepCopyInto(out *GrafanaOrgOrgMapping)

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

type GrafanaOrgRole

type GrafanaOrgRole string

GrafanaOrgRole is a valid Role. +kubebuilder:validation:Pattern=`^(None|Viewer|Editor|Admin)$`

type GrafanaOrgSpec

type GrafanaOrgSpec struct {
	// The name of the GrafanaInstance in the same namespace
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="grafanaInstanceRef is immutable"
	GrafanaInstanceRef ObjectNamespacedName `json:"grafanaInstanceRef"`

	// The Org Name.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="orgName is immutable"
	OrgName string `json:"orgName"`

	// The Org Mappings
	// +patchMergeKey=group
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=group
	OrgMapping []GrafanaOrgOrgMapping `json:"orgMapping,omitempty"`
}

GrafanaOrgSpec defines the desired state of GrafanaOrg

func (*GrafanaOrgSpec) DeepCopy

func (in *GrafanaOrgSpec) DeepCopy() *GrafanaOrgSpec

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

func (*GrafanaOrgSpec) DeepCopyInto

func (in *GrafanaOrgSpec) DeepCopyInto(out *GrafanaOrgSpec)

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

type GrafanaOrgStatus

type GrafanaOrgStatus struct {
	// Represents the observations of a GraganaOrg's current state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// The Org Name.
	OrgName string `json:"orgName,omitempty"`

	// The Org ID.
	OrgID int64 `json:"orgID,omitempty"`
}

GrafanaOrgStatus defines the observed state of GrafanaOrg

func (*GrafanaOrgStatus) DeepCopy

func (in *GrafanaOrgStatus) DeepCopy() *GrafanaOrgStatus

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

func (*GrafanaOrgStatus) DeepCopyInto

func (in *GrafanaOrgStatus) DeepCopyInto(out *GrafanaOrgStatus)

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

type NamespaceWildcard

type NamespaceWildcard string

NamespaceWildcard is a wildcard matching a namespace. +kubebuilder:validation:Pattern=`^\*?[-a-z0-9]*\*?$` +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=63

func (NamespaceWildcard) Matches

func (nw NamespaceWildcard) Matches(s string) bool

type ObjectName

type ObjectName string

ObjectName refers to the name of a Kubernetes object. It must be a RFC 1123 label. +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$` +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=63

type ObjectNamespace

type ObjectNamespace string

ObjectNamespace refers to a Kubernetes namespace. It must be a RFC 1123 label. +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$` +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=63

type ObjectNamespacedName

type ObjectNamespacedName string

ObjectNamespacedName refers to the name of a Kubernetes object optionally prefixed with a namespace and a slash. Each part must be a RFC 1123 label. +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?(/[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])?)?$` +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=127

func (ObjectNamespacedName) NamespacedName

func (o ObjectNamespacedName) NamespacedName(sourceNamespace string) types.NamespacedName

type SecretEnvSource

type SecretEnvSource struct {
	// The Secret to select from.
	// +required
	// +kubebuilder:validation:Required
	Name ObjectName `json:"name"`
}

SecretEnvSource selects a Secret to populate the environment variables with.

The contents of the target Secret's Data field will represent the key-value pairs as environment variables.

func (*SecretEnvSource) DeepCopy

func (in *SecretEnvSource) DeepCopy() *SecretEnvSource

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

func (*SecretEnvSource) DeepCopyInto

func (in *SecretEnvSource) DeepCopyInto(out *SecretEnvSource)

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