v1alpha2

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 10 Imported by: 46

Documentation

Overview

+groupName=infrastructure.giantswarm.io

Index

Constants

View Source
const (
	// ClusterConditionLimit is the maximum amount of conditions tracked in the
	// condition list of a tenant cluster's status. The limit here is applied to
	// equal condition pairs. For instance a cluster having transitioned through 6
	// cluster upgrades throughout its lifetime will only track 5 Updating/Updated
	// condition pairs in its condition list.
	//
	//     conditions:
	//     - lastTransitionTime: "2019-08-23T13:15:19.830177296Z"
	//       condition: Updated
	//     - lastTransitionTime: "2019-08-23T12:12:25.942680489Z"
	//       condition: Updating
	//     - lastTransitionTime: "2019-08-15T14:27:12.813903533Z"
	//       condition: Updated
	//     - lastTransitionTime: "2019-08-15T13:20:16.955248597Z"
	//       condition: Updating
	//     - lastTransitionTime: "2019-07-23T09:31:28.761118959Z"
	//       condition: Updated
	//     - lastTransitionTime: "2019-07-23T08:15:07.523067044Z"
	//       condition: Updating
	//     - lastTransitionTime: "2019-06-17T18:20:30.29872263Z"
	//       condition: Updated
	//     - lastTransitionTime: "2019-06-17T17:14:12.707323902Z"
	//       condition: Updating
	//     - lastTransitionTime: "2019-06-04T13:14:03.523010234Z"
	//       condition: Updated
	//     - lastTransitionTime: "2019-06-04T12:18:09.334829389Z"
	//       condition: Updating
	//     - lastTransitionTime: "2019-05-17T11:25:37.495980406Z"
	//       condition: Created
	//     - lastTransitionTime: "2019-05-17T10:16:25.736159078Z"
	//       condition: Creating
	//
	ClusterConditionLimit = 5
	// ClusterVersionLimit is the maximum amount of versions tracked in the
	// version list of a tenant cluster's status. The limit here is applied to the
	// total amount of the list's number of entries. For instance a cluster having
	// transitioned through 6 cluster upgrades throughout its lifetime will only
	// track 5 versions in its version list.
	//
	//     versions:
	//     - lastTransitionTime: "2019-02-14T11:18:25.212331926Z"
	//       version: 4.6.0
	//     - lastTransitionTime: "2018-12-05T16:57:58.21652461Z"
	//       version: 4.4.1
	//     - lastTransitionTime: "2018-12-05T15:42:22.443182449Z"
	//       version: 4.2.1
	//     - lastTransitionTime: "2018-10-29T03:31:08.874296621Z"
	//       version: 4.2.0
	//     - lastTransitionTime: "2018-10-29T02:09:20.393986006Z"
	//       version: 3.3.3
	//
	ClusterVersionLimit = 15
)
View Source
const (
	ClusterStatusConditionCreated  = "Created"
	ClusterStatusConditionCreating = "Creating"
)
View Source
const (
	ClusterStatusConditionDeleted  = "Deleted"
	ClusterStatusConditionDeleting = "Deleting"
)
View Source
const (
	ClusterStatusConditionUpdated  = "Updated"
	ClusterStatusConditionUpdating = "Updating"
)

Variables

View Source
var (

	// AddToScheme is used by the generated client.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   group,
	Version: version,
}

SchemeGroupVersion is group version used to register these objects

Functions

func NewAWSClusterTypeMeta

func NewAWSClusterTypeMeta() metav1.TypeMeta

func NewAWSControlPlaneTypeMeta

func NewAWSControlPlaneTypeMeta() metav1.TypeMeta

func NewAWSMachineDeploymentTypeMeta

func NewAWSMachineDeploymentTypeMeta() metav1.TypeMeta

func NewClusterCR added in v0.2.1

func NewClusterCR() *apiv1alpha2.Cluster

NewClusterCR returns a Cluster Custom Resource.

func NewClusterCRD

NewClusterCRD returns a new custom resource definition for Cluster (from Cluster API). This might look something like the following.

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: clusters.cluster.x-k8s.io
spec:
  group: cluster.x-k8s.io
  scope: Namespaced
  version: v1alpha2
  names:
    kind: Cluster
    plural: clusters
    singular: cluster
  subresources:
    status: {}

func NewClusterTypeMeta added in v0.2.1

func NewClusterTypeMeta() metav1.TypeMeta

func NewG8sControlPlaneTypeMeta

func NewG8sControlPlaneTypeMeta() metav1.TypeMeta

func NewMachineDeploymentCR added in v0.2.1

func NewMachineDeploymentCR() *apiv1alpha2.MachineDeployment

NewMachineDeploymentCR returns a MachineDeployment Custom Resource.

func NewMachineDeploymentCRD

func NewMachineDeploymentCRD() *apiextensionsv1beta1.CustomResourceDefinition

NewMachineDeploymentCRD returns a new custom resource definition for MachineDeployment (from Cluster API). This might look something like the following.

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: machinedeployments.cluster.x-k8s.io
spec:
  group: cluster.x-k8s.io
  scope: Namespaced
  version: v1alpha2
  names:
    kind: MachineDeployment
    plural: machinedeployments
    singular: machinedeployment
  subresources:
    status: {}

func NewMachineDeploymentTypeMeta added in v0.2.1

func NewMachineDeploymentTypeMeta() metav1.TypeMeta

NewMachineDeploymentTypeMeta returns the type block for a MachineDeployment CR.

Types

type AWSCluster

type AWSCluster struct {
	metav1.TypeMeta `json:",inline"`
	// metav1.ObjectMeta is standard Kubernetes resource metadata.
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AWSClusterSpec   `json:"spec" yaml:"spec"`
	Status            AWSClusterStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

AWSCluster is the infrastructure provider referenced in upstream CAPI Cluster CRs.

apiVersion: infrastructure.giantswarm.io/v1alpha2
kind: AWSCluster
metadata:
  labels:
    aws-operator.giantswarm.io/version: 6.2.0
    cluster-operator.giantswarm.io/version: 0.17.0
    giantswarm.io/cluster: "8y5kc"
    giantswarm.io/organization: "giantswarm"
    release.giantswarm.io/version: 7.3.1
  name: 8y5kc
spec:
  cluster:
    description: my fancy cluster
    dns:
      domain: gauss.eu-central-1.aws.gigantic.io
    oidc:
      claims:
        username: email
        groups: groups
      clientID: foobar-dex-client
      issuerURL: https://dex.gatekeeper.eu-central-1.aws.example.com
  provider:
    credentialSecret:
      name: credential-default
      namespace: giantswarm
    master:
      availabilityZone: eu-central-1a
      instanceType: m4.large
    region: eu-central-1
status:
  cluster:
    conditions:
    - lastTransitionTime: "2019-03-25T17:10:09.333633991Z"
      type: Created
    id: 8y5kc
    versions:
    - lastTransitionTime: "2019-03-25T17:10:09.995948706Z"
      version: 4.9.0
  provider:
    network:
      cidr: 10.1.6.0/24
      vpcID: vpc-1234567890abcdef0

func NewAWSClusterCR

func NewAWSClusterCR() *AWSCluster

NewAWSClusterCR returns an AWSCluster Custom Resource.

func (*AWSCluster) DeepCopy

func (in *AWSCluster) DeepCopy() *AWSCluster

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

func (*AWSCluster) DeepCopyInto

func (in *AWSCluster) DeepCopyInto(out *AWSCluster)

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

func (*AWSCluster) DeepCopyObject

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

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

func (*AWSCluster) GetCommonClusterStatus

func (c *AWSCluster) GetCommonClusterStatus() CommonClusterStatus

func (*AWSCluster) SetCommonClusterStatus

func (c *AWSCluster) SetCommonClusterStatus(s CommonClusterStatus)

type AWSClusterList

type AWSClusterList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata" yaml:"metadata"`
	Items           []AWSCluster `json:"items" yaml:"items"`
}

AWSClusterList is the type returned when listing AWSCLuster resources.

func (*AWSClusterList) DeepCopy

func (in *AWSClusterList) DeepCopy() *AWSClusterList

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

func (*AWSClusterList) DeepCopyInto

func (in *AWSClusterList) DeepCopyInto(out *AWSClusterList)

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

func (*AWSClusterList) DeepCopyObject

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

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

type AWSClusterSpec

type AWSClusterSpec struct {
	// Cluster provides cluster specification details.
	Cluster AWSClusterSpecCluster `json:"cluster" yaml:"cluster"`
	// Provider holds provider-specific configuration details.
	Provider AWSClusterSpecProvider `json:"provider" yaml:"provider"`
}

AWSClusterSpec is the spec part for the AWSCluster resource.

func (*AWSClusterSpec) DeepCopy

func (in *AWSClusterSpec) DeepCopy() *AWSClusterSpec

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

func (*AWSClusterSpec) DeepCopyInto

func (in *AWSClusterSpec) DeepCopyInto(out *AWSClusterSpec)

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

type AWSClusterSpecCluster

type AWSClusterSpecCluster struct {
	// Description is a user-friendly description that should explain the purpose of the
	// cluster to humans.
	Description string `json:"description" yaml:"description"`
	// DNS holds DNS configuration details.
	DNS AWSClusterSpecClusterDNS `json:"dns" yaml:"dns"`
	// OIDC holds configuration for OpenID Connect (OIDC) authentication.
	OIDC AWSClusterSpecClusterOIDC `json:"oidc,omitempty" yaml:"oidc,omitempty"`
}

AWSClusterSpecCluster provides cluster specification details.

func (*AWSClusterSpecCluster) DeepCopy

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

func (*AWSClusterSpecCluster) DeepCopyInto

func (in *AWSClusterSpecCluster) DeepCopyInto(out *AWSClusterSpecCluster)

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

type AWSClusterSpecClusterDNS

type AWSClusterSpecClusterDNS struct {
	Domain string `json:"domain" yaml:"domain"`
}

AWSClusterSpecClusterDNS holds DNS configuration details.

func (*AWSClusterSpecClusterDNS) DeepCopy

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

func (*AWSClusterSpecClusterDNS) DeepCopyInto

func (in *AWSClusterSpecClusterDNS) DeepCopyInto(out *AWSClusterSpecClusterDNS)

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

type AWSClusterSpecClusterOIDC

type AWSClusterSpecClusterOIDC struct {
	Claims    AWSClusterSpecClusterOIDCClaims `json:"claims,omitempty" yaml:"claims,omitempty"`
	ClientID  string                          `json:"clientID,omitempty" yaml:"clientID,omitempty"`
	IssuerURL string                          `json:"issuerURL,omitempty" yaml:"issuerURL,omitempty"`
}

AWSClusterSpecClusterOIDC holds configuration for OpenID Connect (OIDC) authentication.

func (*AWSClusterSpecClusterOIDC) DeepCopy

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

func (*AWSClusterSpecClusterOIDC) DeepCopyInto

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

type AWSClusterSpecClusterOIDCClaims

type AWSClusterSpecClusterOIDCClaims struct {
	Username string `json:"username,omitempty" yaml:"username,omitempty"`
	Groups   string `json:"groups,omitempty" yaml:"groups,omitempty"`
}

AWSClusterSpecClusterOIDCClaims defines OIDC claims.

func (*AWSClusterSpecClusterOIDCClaims) DeepCopy

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

func (*AWSClusterSpecClusterOIDCClaims) DeepCopyInto

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

type AWSClusterSpecProvider

type AWSClusterSpecProvider struct {
	// CredentialSecret specifies the location of the secret providing the ARN of AWS IAM identity
	// to use with this cluster.
	CredentialSecret AWSClusterSpecProviderCredentialSecret `json:"credentialSecret" yaml:"credentialSecret"`
	// Master holds master node configuration details.
	Master AWSClusterSpecProviderMaster `json:"master" yaml:"master"`
	// Region is the AWS region the cluster is to be running in.
	Region string `json:"region" yaml:"region"`
}

AWSClusterSpecProvider holds some AWS details.

func (*AWSClusterSpecProvider) DeepCopy

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

func (*AWSClusterSpecProvider) DeepCopyInto

func (in *AWSClusterSpecProvider) DeepCopyInto(out *AWSClusterSpecProvider)

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

type AWSClusterSpecProviderCredentialSecret

type AWSClusterSpecProviderCredentialSecret struct {
	// Name is the name of the provider credential resoure.
	Name string `json:"name" yaml:"name"`
	// Namespace is the kubernetes namespace that holds the provider credential.
	Namespace string `json:"namespace" yaml:"namespace"`
}

AWSClusterSpecProviderCredentialSecret details how to chose the AWS IAM identity ARN to use with this cluster.

func (*AWSClusterSpecProviderCredentialSecret) DeepCopy

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

func (*AWSClusterSpecProviderCredentialSecret) DeepCopyInto

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

type AWSClusterSpecProviderMaster

type AWSClusterSpecProviderMaster struct {
	// AvailabilityZone is the AWS availability zone to place the master node in.
	AvailabilityZone string `json:"availabilityZone" yaml:"availabilityZone"`
	// InstanceType specifies the AWS EC2 instance type to use for the master node.
	InstanceType string `json:"instanceType" yaml:"instanceType"`
}

AWSClusterSpecProviderMaster holds master node configuration details.

func (*AWSClusterSpecProviderMaster) DeepCopy

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

func (*AWSClusterSpecProviderMaster) DeepCopyInto

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

type AWSClusterStatus

type AWSClusterStatus struct {
	// Cluster provides cluster-specific status details, including conditions and versions.
	Cluster CommonClusterStatus `json:"cluster,omitempty" yaml:"cluster,omitempty"`
	// Provider provides provider-specific status details.
	Provider AWSClusterStatusProvider `json:"provider,omitempty" yaml:"provider,omitempty"`
}

AWSClusterStatus holds status information about the cluster, populated once the cluster is in creation or created.

func (*AWSClusterStatus) DeepCopy

func (in *AWSClusterStatus) DeepCopy() *AWSClusterStatus

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

func (*AWSClusterStatus) DeepCopyInto

func (in *AWSClusterStatus) DeepCopyInto(out *AWSClusterStatus)

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

type AWSClusterStatusProvider

type AWSClusterStatusProvider struct {
	// Network provides network-specific configuration details
	Network AWSClusterStatusProviderNetwork `json:"network" yaml:"network"`
}

AWSClusterStatusProvider holds provider-specific status details.

func (*AWSClusterStatusProvider) DeepCopy

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

func (*AWSClusterStatusProvider) DeepCopyInto

func (in *AWSClusterStatusProvider) DeepCopyInto(out *AWSClusterStatusProvider)

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

type AWSClusterStatusProviderNetwork

type AWSClusterStatusProviderNetwork struct {
	// IPv4 address block used by the tenant cluster, in CIDR notation.
	CIDR string `json:"cidr" yaml:"cidr"`
	// VPCID contains the ID of the tenant cluster, e.g. vpc-1234567890abcdef0.
	VPCID string `json:"vpcID" yaml:"vpcID"`
}

AWSClusterStatusProviderNetwork holds network details.

func (*AWSClusterStatusProviderNetwork) DeepCopy

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

func (*AWSClusterStatusProviderNetwork) DeepCopyInto

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

type AWSControlPlane

type AWSControlPlane struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AWSControlPlaneSpec   `json:"spec" yaml:"spec"`
	Status            AWSControlPlaneStatus `json:"status,omitempty" yaml:"status,omitempty"`
}

AWSControlPlane is the infrastructure provider referenced in ControlPlane CRs.

apiVersion: infrastructure.giantswarm.io/v1alpha2
kind: AWSControlPlane
metadata:
  annotations:
    giantswarm.io/docs: https://docs.giantswarm.io/reference/awscontrolplanes.infrastructure.giantswarm.io/v1alpha2/
  labels:
    aws-operator.giantswarm.io/version: "6.2.0"
    giantswarm.io/cluster: 8y5kc
    giantswarm.io/organization: giantswarm
    release.giantswarm.io/version: "7.3.1"
  name: 8y5kc
  ownerReferences:
    - apiVersion: infrastructure.giantswarm.io/v1alpha2
      kind: G8sControlPlane
      name: 8y5kc
spec:
  availabilityZones:
    - eu-central-1a
    - eu-central-1b
    - eu-central-1c
  instanceType: m4.large

func NewAWSControlPlaneCR added in v0.2.1

func NewAWSControlPlaneCR() *AWSControlPlane

NewAWSControlPlaneCR returns an AWSControlPlane Custom Resource.

func (*AWSControlPlane) DeepCopy

func (in *AWSControlPlane) DeepCopy() *AWSControlPlane

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

func (*AWSControlPlane) DeepCopyInto

func (in *AWSControlPlane) DeepCopyInto(out *AWSControlPlane)

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

func (*AWSControlPlane) DeepCopyObject

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

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

type AWSControlPlaneList

type AWSControlPlaneList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata" yaml:"metadata"`
	Items           []AWSControlPlane `json:"items" yaml:"items"`
}

func (*AWSControlPlaneList) DeepCopy

func (in *AWSControlPlaneList) DeepCopy() *AWSControlPlaneList

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

func (*AWSControlPlaneList) DeepCopyInto

func (in *AWSControlPlaneList) DeepCopyInto(out *AWSControlPlaneList)

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

func (*AWSControlPlaneList) DeepCopyObject

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

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

type AWSControlPlaneSpec

type AWSControlPlaneSpec struct {
	AvailabilityZones []string `json:"availabilityZones" yaml:"availabilityZones"`
	InstanceType      string   `json:"instanceType" yaml:"instanceType"`
}

func (*AWSControlPlaneSpec) DeepCopy

func (in *AWSControlPlaneSpec) DeepCopy() *AWSControlPlaneSpec

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

func (*AWSControlPlaneSpec) DeepCopyInto

func (in *AWSControlPlaneSpec) DeepCopyInto(out *AWSControlPlaneSpec)

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

type AWSControlPlaneStatus

type AWSControlPlaneStatus struct {
	Status string `json:"status,omitempty" yaml:"status,omitempty"`
}

TODO

func (*AWSControlPlaneStatus) DeepCopy

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

func (*AWSControlPlaneStatus) DeepCopyInto

func (in *AWSControlPlaneStatus) DeepCopyInto(out *AWSControlPlaneStatus)

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

type AWSMachineDeployment

type AWSMachineDeployment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AWSMachineDeploymentSpec   `json:"spec" yaml:"spec"`
	Status            AWSMachineDeploymentStatus `json:"status" yaml:"status"`
}

AWSMachineDeployment is the infrastructure provider referenced in upstream CAPI MachineDeployment CRs.

apiVersion: infrastructure.giantswarm.io/v1alpha2
kind: AWSMachineDeployment
metadata:
  labels:
    aws-operator.giantswarm.io/version: 6.2.0
    cluster-operator.giantswarm.io/version: 0.17.0
    giantswarm.io/cluster: 8y5kc
    giantswarm.io/organization: "giantswarm"
    giantswarm.io/machine-deployment: al9qy
    release.giantswarm.io/version: 7.3.1
  name: al9qy
spec:
  nodePool:
    description: my fancy node pool
    machine:
      dockerVolumeSizeGB: 100
      kubeletVolumeSizeGB: 100
    scaling:
      max: 3
      min: 3
  provider:
    availabilityZones:
      - eu-central-1a
    instanceDistribution:
      onDemandBaseCapacity: 0
      onDemandPercentageAboveBaseCapacity: 0
    worker:
      instanceType: m4.xlarge
      useAlikeInstanceTypes: true
status:
  provider:
    worker:
      instanceTypes:
        - "m4.xlarge"
        - "m5.xlarge"
      spotInstances: 39

func NewAWSMachineDeploymentCR added in v0.1.1

func NewAWSMachineDeploymentCR() *AWSMachineDeployment

NewAWSMachineDeploymentCR returns an AWSMachineDeployment Custom Resource.

func (*AWSMachineDeployment) DeepCopy

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

func (*AWSMachineDeployment) DeepCopyInto

func (in *AWSMachineDeployment) DeepCopyInto(out *AWSMachineDeployment)

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

func (*AWSMachineDeployment) DeepCopyObject

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

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

type AWSMachineDeploymentList

type AWSMachineDeploymentList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata" yaml:"metadata"`
	Items           []AWSMachineDeployment `json:"items" yaml:"items"`
}

func (*AWSMachineDeploymentList) DeepCopy

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

func (*AWSMachineDeploymentList) DeepCopyInto

func (in *AWSMachineDeploymentList) DeepCopyInto(out *AWSMachineDeploymentList)

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

func (*AWSMachineDeploymentList) DeepCopyObject

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

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

type AWSMachineDeploymentSpec

type AWSMachineDeploymentSpec struct {
	NodePool AWSMachineDeploymentSpecNodePool `json:"nodePool" yaml:"nodePool"`
	Provider AWSMachineDeploymentSpecProvider `json:"provider" yaml:"provider"`
}

func (*AWSMachineDeploymentSpec) DeepCopy

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

func (*AWSMachineDeploymentSpec) DeepCopyInto

func (in *AWSMachineDeploymentSpec) DeepCopyInto(out *AWSMachineDeploymentSpec)

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

type AWSMachineDeploymentSpecInstanceDistribution added in v0.2.1

type AWSMachineDeploymentSpecInstanceDistribution struct {
	OnDemandBaseCapacity                int `json:"onDemandBaseCapacity" yaml:"onDemandBaseCapacity"`
	OnDemandPercentageAboveBaseCapacity int `json:"onDemandPercentageAboveBaseCapacity" yaml:"onDemandPercentageAboveBaseCapacity"`
}

func (*AWSMachineDeploymentSpecInstanceDistribution) DeepCopy added in v0.2.1

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

func (*AWSMachineDeploymentSpecInstanceDistribution) DeepCopyInto added in v0.2.1

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

type AWSMachineDeploymentSpecNodePool

type AWSMachineDeploymentSpecNodePool struct {
	Description string                                  `json:"description" yaml:"description"`
	Machine     AWSMachineDeploymentSpecNodePoolMachine `json:"machine" yaml:"machine"`
	Scaling     AWSMachineDeploymentSpecNodePoolScaling `json:"scaling" yaml:"scaling"`
}

func (*AWSMachineDeploymentSpecNodePool) DeepCopy

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

func (*AWSMachineDeploymentSpecNodePool) DeepCopyInto

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

type AWSMachineDeploymentSpecNodePoolMachine

type AWSMachineDeploymentSpecNodePoolMachine struct {
	DockerVolumeSizeGB  int `json:"dockerVolumeSizeGB" yaml:"dockerVolumeSizeGB"`
	KubeletVolumeSizeGB int `json:"kubeletVolumeSizeGB" yaml:"kubeletVolumeSizeGB"`
}

func (*AWSMachineDeploymentSpecNodePoolMachine) DeepCopy

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

func (*AWSMachineDeploymentSpecNodePoolMachine) DeepCopyInto

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

type AWSMachineDeploymentSpecNodePoolScaling

type AWSMachineDeploymentSpecNodePoolScaling struct {
	Max int `json:"max" yaml:"max"`
	Min int `json:"min" yaml:"min"`
}

func (*AWSMachineDeploymentSpecNodePoolScaling) DeepCopy

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

func (*AWSMachineDeploymentSpecNodePoolScaling) DeepCopyInto

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

type AWSMachineDeploymentSpecProvider

type AWSMachineDeploymentSpecProvider struct {
	AvailabilityZones    []string                                     `json:"availabilityZones" yaml:"availabilityZones"`
	InstanceDistribution AWSMachineDeploymentSpecInstanceDistribution `json:"instanceDistribution" yaml:"instanceDistribution"`
	Worker               AWSMachineDeploymentSpecProviderWorker       `json:"worker" yaml:"worker"`
}

func (*AWSMachineDeploymentSpecProvider) DeepCopy

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

func (*AWSMachineDeploymentSpecProvider) DeepCopyInto

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

type AWSMachineDeploymentSpecProviderWorker

type AWSMachineDeploymentSpecProviderWorker struct {
	InstanceType          string `json:"instanceType" yaml:"instanceType"`
	UseAlikeInstanceTypes bool   `json:"useAlikeInstanceTypes" yaml:"useAlikeInstanceTypes"`
}

func (*AWSMachineDeploymentSpecProviderWorker) DeepCopy

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

func (*AWSMachineDeploymentSpecProviderWorker) DeepCopyInto

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

type AWSMachineDeploymentStatus added in v0.2.1

type AWSMachineDeploymentStatus struct {
	Provider AWSMachineDeploymentStatusProvider `json:"provider" yaml:"provider"`
}

func (*AWSMachineDeploymentStatus) DeepCopy added in v0.2.1

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

func (*AWSMachineDeploymentStatus) DeepCopyInto added in v0.2.1

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

type AWSMachineDeploymentStatusProvider added in v0.2.1

type AWSMachineDeploymentStatusProvider struct {
	Worker AWSMachineDeploymentStatusProviderWorker `json:"worker" yaml:"worker"`
}

func (*AWSMachineDeploymentStatusProvider) DeepCopy added in v0.2.1

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

func (*AWSMachineDeploymentStatusProvider) DeepCopyInto added in v0.2.1

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

type AWSMachineDeploymentStatusProviderWorker added in v0.2.1

type AWSMachineDeploymentStatusProviderWorker struct {
	InstanceTypes []string `json:"instanceTypes" yaml:"instanceTypes"`
	SpotInstances int      `json:"spotInstances" yaml:"spotInstances"`
}

func (*AWSMachineDeploymentStatusProviderWorker) DeepCopy added in v0.2.1

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

func (*AWSMachineDeploymentStatusProviderWorker) DeepCopyInto added in v0.2.1

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

type CommonClusterObject

type CommonClusterObject interface {
	metav1.Object
	runtime.Object
	CommonClusterStatusGetSetter
}

CommonClusterObject represents common interface for all provider specific cluster objects.

type CommonClusterStatus

type CommonClusterStatus struct {
	// One or several conditions that are currently applicable to the cluster.
	Conditions []CommonClusterStatusCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
	// Identifier of the cluster.
	ID string `json:"id" yaml:"id"`
	// Release versions the cluster used so far.
	Versions []CommonClusterStatusVersion `json:"versions,omitempty" yaml:"versions,omitempty"`
}

CommonClusterStatus is shared type to contain provider independent cluster status information.

func (*CommonClusterStatus) DeepCopy

func (in *CommonClusterStatus) DeepCopy() *CommonClusterStatus

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

func (*CommonClusterStatus) DeepCopyInto

func (in *CommonClusterStatus) DeepCopyInto(out *CommonClusterStatus)

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

func (CommonClusterStatus) GetCreatedCondition

func (s CommonClusterStatus) GetCreatedCondition() CommonClusterStatusCondition

func (CommonClusterStatus) GetCreatingCondition

func (s CommonClusterStatus) GetCreatingCondition() CommonClusterStatusCondition

func (CommonClusterStatus) GetDeletedCondition

func (s CommonClusterStatus) GetDeletedCondition() CommonClusterStatusCondition

func (CommonClusterStatus) GetDeletingCondition

func (s CommonClusterStatus) GetDeletingCondition() CommonClusterStatusCondition

func (CommonClusterStatus) GetUpdatedCondition

func (s CommonClusterStatus) GetUpdatedCondition() CommonClusterStatusCondition

func (CommonClusterStatus) GetUpdatingCondition

func (s CommonClusterStatus) GetUpdatingCondition() CommonClusterStatusCondition

func (CommonClusterStatus) HasCreatedCondition

func (s CommonClusterStatus) HasCreatedCondition() bool

func (CommonClusterStatus) HasCreatingCondition

func (s CommonClusterStatus) HasCreatingCondition() bool

func (CommonClusterStatus) HasDeletedCondition

func (s CommonClusterStatus) HasDeletedCondition() bool

func (CommonClusterStatus) HasDeletingCondition

func (s CommonClusterStatus) HasDeletingCondition() bool

func (CommonClusterStatus) HasUpdatedCondition

func (s CommonClusterStatus) HasUpdatedCondition() bool

func (CommonClusterStatus) HasUpdatingCondition

func (s CommonClusterStatus) HasUpdatingCondition() bool

func (CommonClusterStatus) HasVersion

func (s CommonClusterStatus) HasVersion(semver string) bool

func (CommonClusterStatus) LatestCondition

func (s CommonClusterStatus) LatestCondition() string

func (CommonClusterStatus) LatestVersion

func (s CommonClusterStatus) LatestVersion() string

func (CommonClusterStatus) WithCreatedCondition

func (s CommonClusterStatus) WithCreatedCondition() []CommonClusterStatusCondition

func (CommonClusterStatus) WithCreatingCondition

func (s CommonClusterStatus) WithCreatingCondition() []CommonClusterStatusCondition

func (CommonClusterStatus) WithDeletedCondition

func (s CommonClusterStatus) WithDeletedCondition() []CommonClusterStatusCondition

func (CommonClusterStatus) WithDeletingCondition

func (s CommonClusterStatus) WithDeletingCondition() []CommonClusterStatusCondition

func (CommonClusterStatus) WithNewVersion

func (s CommonClusterStatus) WithNewVersion(version string) []CommonClusterStatusVersion

func (CommonClusterStatus) WithUpdatedCondition

func (s CommonClusterStatus) WithUpdatedCondition() []CommonClusterStatusCondition

func (CommonClusterStatus) WithUpdatingCondition

func (s CommonClusterStatus) WithUpdatingCondition() []CommonClusterStatusCondition

type CommonClusterStatusCondition

type CommonClusterStatusCondition struct {
	// Time the condition occurred.
	LastTransitionTime DeepCopyTime `json:"lastTransitionTime" yaml:"lastTransitionTime"`
	// Condition string, e. g. `Creating`, `Created`, `Upgraded`
	Condition string `json:"condition" yaml:"condition"`
}

CommonClusterStatusCondition explains the current condition(s) of the cluster.

func (*CommonClusterStatusCondition) DeepCopy

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

func (*CommonClusterStatusCondition) DeepCopyInto

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

type CommonClusterStatusGetSetter

type CommonClusterStatusGetSetter interface {
	GetCommonClusterStatus() CommonClusterStatus
	SetCommonClusterStatus(ccs CommonClusterStatus)
}

CommonClusterStatusGetSetter provides abstract way to manipulate common provider independent cluster status field in provider CR's status.

type CommonClusterStatusVersion

type CommonClusterStatusVersion struct {
	// Time the cluster assumed the given version.
	LastTransitionTime DeepCopyTime `json:"lastTransitionTime" yaml:"lastTransitionTime"`
	// The aws-operator version responsible for handling the cluster.
	Version string `json:"version" yaml:"version"`
}

CommonClusterStatusVersion informs which aws-operator version was/responsible for this cluster.

func (*CommonClusterStatusVersion) DeepCopy

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

func (*CommonClusterStatusVersion) DeepCopyInto

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

type DeepCopyTime

type DeepCopyTime struct {
	time.Time
}

DeepCopyTime implements the deep copy logic for time.Time which the k8s codegen is not able to generate out of the box.

func (*DeepCopyTime) DeepCopy

func (in *DeepCopyTime) DeepCopy() *DeepCopyTime

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

func (*DeepCopyTime) DeepCopyInto

func (in *DeepCopyTime) DeepCopyInto(out *DeepCopyTime)

type G8sControlPlane

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

G8sControlPlane defines the Control Plane Nodes (Kubernetes Master Nodes) of a Giant Swarm Tenant Cluster

apiVersion: infrastructure.giantswarm.io/v1alpha2
kind: G8sControlPlane
metadata:
  annotations:
    giantswarm.io/docs: https://docs.giantswarm.io/reference/g8scontrolplanes.infrastructure.giantswarm.io/v1alpha2/
  labels:
    aws-operator.giantswarm.io/version: "6.2.0"
    cluster-operator.giantswarm.io/version: "0.17.0"
    giantswarm.io/cluster: 8y5kc
    giantswarm.io/organization: giantswarm
    release.giantswarm.io/version: "7.3.1"
  name: 8y5kc
spec:
  infrastructureRef:
    apiVersion: infrastructure.giantswarm.io/v1alpha2
    kind: AWSControlPlane
    name: 5f3kb
    namespace: default
  replicas: 3
status:
  readyReplicas: 3
  replicas: 3

func (*G8sControlPlane) DeepCopy

func (in *G8sControlPlane) DeepCopy() *G8sControlPlane

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

func (*G8sControlPlane) DeepCopyInto

func (in *G8sControlPlane) DeepCopyInto(out *G8sControlPlane)

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

func (*G8sControlPlane) DeepCopyObject

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

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

type G8sControlPlaneList

type G8sControlPlaneList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []G8sControlPlane `json:"items"`
}

func (*G8sControlPlaneList) DeepCopy

func (in *G8sControlPlaneList) DeepCopy() *G8sControlPlaneList

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

func (*G8sControlPlaneList) DeepCopyInto

func (in *G8sControlPlaneList) DeepCopyInto(out *G8sControlPlaneList)

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

func (*G8sControlPlaneList) DeepCopyObject

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

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

type G8sControlPlaneSpec

type G8sControlPlaneSpec struct {
	// Replicas is the number replicas of the master node.
	Replicas int `json:"replicas" yaml:"replicas"`
	// InfrastructureRef is a required reference to provider-specific
	// Infrastructure.
	InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"`
}

func (*G8sControlPlaneSpec) DeepCopy

func (in *G8sControlPlaneSpec) DeepCopy() *G8sControlPlaneSpec

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

func (*G8sControlPlaneSpec) DeepCopyInto

func (in *G8sControlPlaneSpec) DeepCopyInto(out *G8sControlPlaneSpec)

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

type G8sControlPlaneStatus

type G8sControlPlaneStatus struct {
	// Total number of non-terminated machines targeted by this control plane
	// (their labels match the selector).
	// +optional
	Replicas int32 `json:"replicas,omitempty"`
	// Total number of fully running and ready control plane machines.
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty"`
}

G8sControlPlaneStatus defines the observed state of G8sControlPlane.

func (*G8sControlPlaneStatus) DeepCopy

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

func (*G8sControlPlaneStatus) DeepCopyInto

func (in *G8sControlPlaneStatus) DeepCopyInto(out *G8sControlPlaneStatus)

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