v1

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package v1 contains API Schema definitions for the infrastructuremanager v1 API group +kubebuilder:object:generate=true +groupName=infrastructuremanager.kyma-project.io

Index

Constants

View Source
const (
	Finalizer                              = "runtime-controller.infrastructure-manager.kyma-project.io/deletion-hook"
	AnnotationGardenerCloudDelConfirmation = "confirmation.gardener.cloud/deletion"
	LabelControlledByProvisioner           = "kyma-project.io/controlled-by-provisioner"
)
View Source
const (
	LabelKymaInstanceID      = "kyma-project.io/instance-id"
	LabelKymaRuntimeID       = "kyma-project.io/runtime-id"
	LabelKymaShootName       = "kyma-project.io/shoot-name"
	LabelKymaRegion          = "kyma-project.io/region"
	LabelKymaName            = "operator.kyma-project.io/kyma-name"
	LabelKymaBrokerPlanID    = "kyma-project.io/broker-plan-id"
	LabelKymaBrokerPlanName  = "kyma-project.io/broker-plan-name"
	LabelKymaGlobalAccountID = "kyma-project.io/global-account-id"
	LabelKymaSubaccountID    = "kyma-project.io/subaccount-id"
	LabelKymaManagedBy       = "operator.kyma-project.io/managed-by"
	LabelKymaInternal        = "operator.kyma-project.io/internal"
	LabelKymaPlatformRegion  = "kyma-project.io/platform-region"
)
View Source
const (
	RuntimeStateReady       = "Ready"
	RuntimeStateFailed      = "Failed"
	RuntimeStatePending     = "Pending"
	RuntimeStateTerminating = "Terminating"
)
View Source
const (
	ConditionReasonProcessing          = RuntimeConditionReason("Processing")
	ConditionReasonProcessingErr       = RuntimeConditionReason("ProcessingErr")
	ConditionReasonProcessingCompleted = RuntimeConditionReason("ProcessingCompleted")

	ConditionReasonInitialized            = RuntimeConditionReason("Initialised")
	ConditionReasonShootCreationPending   = RuntimeConditionReason("Pending")
	ConditionReasonShootCreationCompleted = RuntimeConditionReason("ShootCreationCompleted")

	ConditionReasonGardenerCRCreated      = RuntimeConditionReason("GardenerClusterCRCreated")
	ConditionReasonGardenerCRReady        = RuntimeConditionReason("GardenerClusterCRReady")
	ConditionReasonConfigurationCompleted = RuntimeConditionReason("ConfigurationCompleted")
	ConditionReasonConfigurationErr       = RuntimeConditionReason("ConfigurationError")

	ConditionReasonDeletion             = RuntimeConditionReason("Deletion")
	ConditionReasonGardenerCRDeleted    = RuntimeConditionReason("GardenerClusterCRDeleted")
	ConditionReasonGardenerShootDeleted = RuntimeConditionReason("GardenerShootDeleted")
	ConditionReasonDeletionErr          = RuntimeConditionReason("DeletionErr")
	ConditionReasonConversionError      = RuntimeConditionReason("ConversionErr")
	ConditionReasonCreationError        = RuntimeConditionReason("CreationErr")
	ConditionReasonGardenerError        = RuntimeConditionReason("GardenerErr")
	ConditionReasonKubernetesAPIErr     = RuntimeConditionReason("KubernetesErr")
	ConditionReasonSerializationError   = RuntimeConditionReason("SerializationErr")
	ConditionReasonDeleted              = RuntimeConditionReason("Deleted")

	ConditionReasonAuditLogError = RuntimeConditionReason("AuditLogErr")

	ConditionReasonAdministratorsConfigured = RuntimeConditionReason("AdministratorsConfigured")
	ConditionReasonOidcConfigured           = RuntimeConditionReason("OidcConfigured")
	ConditionReasonOidcError                = RuntimeConditionReason("OidcConfigurationErr")
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructuremanager.kyma-project.io", Version: "v1"} //nolint:gochecknoglobals

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

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

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	OidcConfig           gardener.OIDCConfig    `json:"oidcConfig,omitempty"`
	AdditionalOidcConfig *[]gardener.OIDCConfig `json:"additionalOidcConfig,omitempty"`
}

func (*APIServer) DeepCopy

func (in *APIServer) DeepCopy() *APIServer

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

func (*APIServer) DeepCopyInto

func (in *APIServer) DeepCopyInto(out *APIServer)

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

type ConditionReason

type ConditionReason string
const (
	ConditionReasonKubeconfigSecretCreated ConditionReason = "KubeconfigSecretCreated"
	ConditionReasonKubeconfigSecretRotated ConditionReason = "KubeconfigSecretRotated"
	ConditionReasonFailedToGetSecret       ConditionReason = "FailedToCheckSecret"
	ConditionReasonFailedToCreateSecret    ConditionReason = "ConditionReasonFailedToCreateSecret"
	ConditionReasonFailedToDeleteSecret    ConditionReason = "ConditionReasonFailedToDeleteSecret"
	ConditionReasonFailedToUpdateSecret    ConditionReason = "FailedToUpdateSecret"
	ConditionReasonFailedToGetKubeconfig   ConditionReason = "FailedToGetKubeconfig"
)

type ConditionType

type ConditionType string
const (
	ConditionTypeKubeconfigManagement ConditionType = "KubeconfigManagement"
)

type Egress

type Egress struct {
	Enabled bool `json:"enabled"`
}

func (*Egress) DeepCopy

func (in *Egress) DeepCopy() *Egress

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

func (*Egress) DeepCopyInto

func (in *Egress) DeepCopyInto(out *Egress)

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

type Filter

type Filter struct {
	Ingress *Ingress `json:"ingress,omitempty"`
	Egress  Egress   `json:"egress"`
}

func (*Filter) DeepCopy

func (in *Filter) DeepCopy() *Filter

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

func (*Filter) DeepCopyInto

func (in *Filter) DeepCopyInto(out *Filter)

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

type GardenerCluster

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

	Spec   GardenerClusterSpec   `json:"spec"`
	Status GardenerClusterStatus `json:"status,omitempty"`
}

GardenerCluster is the Schema for the clusters API

func (*GardenerCluster) DeepCopy

func (in *GardenerCluster) DeepCopy() *GardenerCluster

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

func (*GardenerCluster) DeepCopyInto

func (in *GardenerCluster) DeepCopyInto(out *GardenerCluster)

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

func (*GardenerCluster) DeepCopyObject

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

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

func (*GardenerCluster) UpdateConditionForErrorState

func (cluster *GardenerCluster) UpdateConditionForErrorState(conditionType ConditionType, reason ConditionReason, error error)

func (*GardenerCluster) UpdateConditionForReadyState

func (cluster *GardenerCluster) UpdateConditionForReadyState(conditionType ConditionType, reason ConditionReason, conditionStatus metav1.ConditionStatus)

type GardenerClusterList

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

GardenerClusterList contains a list of GardenerCluster

func (*GardenerClusterList) DeepCopy

func (in *GardenerClusterList) DeepCopy() *GardenerClusterList

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

func (*GardenerClusterList) DeepCopyInto

func (in *GardenerClusterList) DeepCopyInto(out *GardenerClusterList)

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

func (*GardenerClusterList) DeepCopyObject

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

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

type GardenerClusterSpec

type GardenerClusterSpec struct {
	Kubeconfig Kubeconfig `json:"kubeconfig"`
	Shoot      Shoot      `json:"shoot"`
}

GardenerClusterSpec defines the desired state of GardenerCluster

func (*GardenerClusterSpec) DeepCopy

func (in *GardenerClusterSpec) DeepCopy() *GardenerClusterSpec

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

func (*GardenerClusterSpec) DeepCopyInto

func (in *GardenerClusterSpec) DeepCopyInto(out *GardenerClusterSpec)

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

type GardenerClusterStatus

type GardenerClusterStatus struct {
	// State signifies current state of Gardener Cluster.
	// Value can be one of ("Ready", "Processing", "Error", "Deleting").
	State State `json:"state,omitempty"`

	// List of status conditions to indicate the status of a ServiceInstance.
	// +optional
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

GardenerClusterStatus defines the observed state of GardenerCluster

func (*GardenerClusterStatus) DeepCopy

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

func (*GardenerClusterStatus) DeepCopyInto

func (in *GardenerClusterStatus) DeepCopyInto(out *GardenerClusterStatus)

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

type Ingress

type Ingress struct {
	Enabled bool `json:"enabled"`
}

func (*Ingress) DeepCopy

func (in *Ingress) DeepCopy() *Ingress

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

func (*Ingress) DeepCopyInto

func (in *Ingress) DeepCopyInto(out *Ingress)

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

type Kubeconfig

type Kubeconfig struct {
	Secret Secret `json:"secret"`
}

Kubeconfig defines the desired kubeconfig location

func (*Kubeconfig) DeepCopy

func (in *Kubeconfig) DeepCopy() *Kubeconfig

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

func (*Kubeconfig) DeepCopyInto

func (in *Kubeconfig) DeepCopyInto(out *Kubeconfig)

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

type Kubernetes

type Kubernetes struct {
	Version       *string   `json:"version,omitempty"`
	KubeAPIServer APIServer `json:"kubeAPIServer,omitempty"`
}

func (*Kubernetes) DeepCopy

func (in *Kubernetes) DeepCopy() *Kubernetes

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

func (*Kubernetes) DeepCopyInto

func (in *Kubernetes) DeepCopyInto(out *Kubernetes)

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

type Networking

type Networking struct {
	Type     *string `json:"type,omitempty"`
	Pods     string  `json:"pods"`
	Nodes    string  `json:"nodes"`
	Services string  `json:"services"`
}

func (*Networking) DeepCopy

func (in *Networking) DeepCopy() *Networking

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

func (*Networking) DeepCopyInto

func (in *Networking) DeepCopyInto(out *Networking)

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

type NetworkingSecurity

type NetworkingSecurity struct {
	Filter Filter `json:"filter"`
}

func (*NetworkingSecurity) DeepCopy

func (in *NetworkingSecurity) DeepCopy() *NetworkingSecurity

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

func (*NetworkingSecurity) DeepCopyInto

func (in *NetworkingSecurity) DeepCopyInto(out *NetworkingSecurity)

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

type Provider

type Provider struct {
	//+kubebuilder:validation:Enum=aws;azure;gcp;openstack
	Type                 string                `json:"type"`
	Workers              []gardener.Worker     `json:"workers"`
	ControlPlaneConfig   *runtime.RawExtension `json:"controlPlaneConfig,omitempty"`
	InfrastructureConfig *runtime.RawExtension `json:"infrastructureConfig,omitempty"`
}

func (*Provider) DeepCopy

func (in *Provider) DeepCopy() *Provider

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

func (*Provider) DeepCopyInto

func (in *Provider) DeepCopyInto(out *Provider)

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

type Runtime

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

	Spec   RuntimeSpec   `json:"spec,omitempty"`
	Status RuntimeStatus `json:"status,omitempty"`
}

Runtime is the Schema for the runtimes API

func (*Runtime) DeepCopy

func (in *Runtime) DeepCopy() *Runtime

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

func (*Runtime) DeepCopyInto

func (in *Runtime) DeepCopyInto(out *Runtime)

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

func (*Runtime) DeepCopyObject

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

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

func (*Runtime) IsConditionSet

func (k *Runtime) IsConditionSet(c RuntimeConditionType, r RuntimeConditionReason) bool

func (*Runtime) IsConditionSetWithStatus

func (k *Runtime) IsConditionSetWithStatus(c RuntimeConditionType, r RuntimeConditionReason, s metav1.ConditionStatus) bool

func (*Runtime) IsControlledByProvisioner

func (k *Runtime) IsControlledByProvisioner() bool

func (*Runtime) IsStateWithConditionAndStatusSet

func (k *Runtime) IsStateWithConditionAndStatusSet(runtimeState State, c RuntimeConditionType, r RuntimeConditionReason, s metav1.ConditionStatus) bool

func (*Runtime) IsStateWithConditionSet

func (k *Runtime) IsStateWithConditionSet(runtimeState State, c RuntimeConditionType, r RuntimeConditionReason) bool

func (*Runtime) UpdateStateDeletion

func (k *Runtime) UpdateStateDeletion(c RuntimeConditionType, r RuntimeConditionReason, status, msg string)

func (*Runtime) UpdateStatePending

func (k *Runtime) UpdateStatePending(c RuntimeConditionType, r RuntimeConditionReason, status, msg string)

func (*Runtime) UpdateStateReady

func (k *Runtime) UpdateStateReady(c RuntimeConditionType, r RuntimeConditionReason, msg string)

func (*Runtime) ValidateRequiredLabels

func (k *Runtime) ValidateRequiredLabels() error

type RuntimeConditionReason

type RuntimeConditionReason string

type RuntimeConditionType

type RuntimeConditionType string
const (
	ConditionTypeRuntimeProvisioned       RuntimeConditionType = "Provisioned"
	ConditionTypeRuntimeProvisionedDryRun RuntimeConditionType = "ProvisionedDryRun"
	ConditionTypeRuntimeKubeconfigReady   RuntimeConditionType = "KubeconfigReady"
	ConditionTypeOidcConfigured           RuntimeConditionType = "OidcConfigured"
	ConditionTypeRuntimeConfigured        RuntimeConditionType = "Configured"
	ConditionTypeRuntimeDeprovisioned     RuntimeConditionType = "Deprovisioned"
)

type RuntimeList

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

RuntimeList contains a list of Runtime

func (*RuntimeList) DeepCopy

func (in *RuntimeList) DeepCopy() *RuntimeList

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

func (*RuntimeList) DeepCopyInto

func (in *RuntimeList) DeepCopyInto(out *RuntimeList)

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

func (*RuntimeList) DeepCopyObject

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

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

type RuntimeShoot

type RuntimeShoot struct {
	Name                string                 `json:"name"`
	Purpose             gardener.ShootPurpose  `json:"purpose"`
	PlatformRegion      string                 `json:"platformRegion"`
	Region              string                 `json:"region"`
	LicenceType         *string                `json:"licenceType,omitempty"`
	SecretBindingName   string                 `json:"secretBindingName"`
	EnforceSeedLocation *bool                  `json:"enforceSeedLocation,omitempty"`
	Kubernetes          Kubernetes             `json:"kubernetes,omitempty"`
	Provider            Provider               `json:"provider"`
	Networking          Networking             `json:"networking"`
	ControlPlane        *gardener.ControlPlane `json:"controlPlane,omitempty"`
}

func (*RuntimeShoot) DeepCopy

func (in *RuntimeShoot) DeepCopy() *RuntimeShoot

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

func (*RuntimeShoot) DeepCopyInto

func (in *RuntimeShoot) DeepCopyInto(out *RuntimeShoot)

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

type RuntimeSpec

type RuntimeSpec struct {
	Shoot    RuntimeShoot `json:"shoot"`
	Security Security     `json:"security"`
}

RuntimeSpec defines the desired state of Runtime

func (*RuntimeSpec) DeepCopy

func (in *RuntimeSpec) DeepCopy() *RuntimeSpec

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

func (*RuntimeSpec) DeepCopyInto

func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec)

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

type RuntimeStatus

type RuntimeStatus struct {
	// State signifies current state of Runtime
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=Pending;Ready;Terminating;Failed
	State State `json:"state,omitempty"`

	// List of status conditions to indicate the status of a ServiceInstance.
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

RuntimeStatus defines the observed state of Runtime

func (*RuntimeStatus) DeepCopy

func (in *RuntimeStatus) DeepCopy() *RuntimeStatus

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

func (*RuntimeStatus) DeepCopyInto

func (in *RuntimeStatus) DeepCopyInto(out *RuntimeStatus)

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

type Secret

type Secret struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Key       string `json:"key"`
}

SecretKeyRef defines the location, and structure of the secret containing kubeconfig

func (*Secret) DeepCopy

func (in *Secret) DeepCopy() *Secret

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

func (*Secret) DeepCopyInto

func (in *Secret) DeepCopyInto(out *Secret)

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

type Security

type Security struct {
	Administrators []string           `json:"administrators"`
	Networking     NetworkingSecurity `json:"networking"`
}

func (*Security) DeepCopy

func (in *Security) DeepCopy() *Security

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

func (*Security) DeepCopyInto

func (in *Security) DeepCopyInto(out *Security)

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

type Shoot

type Shoot struct {
	Name string `json:"name"`
}

Shoot defines the name of the Shoot resource

func (*Shoot) DeepCopy

func (in *Shoot) DeepCopy() *Shoot

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

func (*Shoot) DeepCopyInto

func (in *Shoot) DeepCopyInto(out *Shoot)

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

type State

type State string
const (
	ReadyState State = "Ready"
	ErrorState State = "Error"
)

Jump to

Keyboard shortcuts

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