v1alpha1

package
v0.0.0-...-a80b3ab Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

View Source
const (
	CloudAmazon       = "amazon"
	CloudAzure        = "azure"
	CloudGoogle       = "google"
	CloudBaremetal    = "baremetal"
	CloudDigitalOcean = "digitalocean"
)
View Source
const (
	ClusterTypeHub           = "hub"
	ClusterTypeClusterSingle = "cluster-single"
	ClusterTypeClusterMulti  = "cluster-multi"
)
View Source
const (
	PrometheusModeFull                      = "Full"
	PrometheusModeExternalExportersOnly     = "ExternalExportersOnly"
	PrometheusModeExternalScrapeTargetsOnly = "ExternalScrapeTargetsOnly"
)
View Source
const (
	KubernetesMasterRoleName = "master"
	KubernetesWorkerRoleName = "worker"
	KubernetesEtcdRoleName   = "etcd"

	ImageBaseDefault       = "centos-puppet-agent"
	ImageBaseDefaultWorker = "centos-puppet-agent-k8s-worker"
)

constants for kubernetes role names

View Source
const (
	InstancePoolSizeTiny   = "tiny"
	InstancePoolSizeSmall  = "small"
	InstancePoolSizeMedium = "medium"
	InstancePoolSizeLarge  = "large"
)
View Source
const (
	InstancePoolTypeMaster     = "master"
	InstancePoolTypeWorker     = "worker"
	InstancePoolTypeEtcd       = "etcd"
	InstancePoolTypeBastion    = "bastion" // bastion node with public IP
	InstancePoolTypeJenkins    = "jenkins" // jenkins CI/CD node
	InstancePoolTypeVault      = "vault"
	InstancePoolTypeAll        = "all"         // master + worker + etcd
	InstancePoolTypeMasterEtcd = "master-etcd" // master + etcd
	InstancePoolTypeHybrid     = "hybrid"      // master + worker
)
View Source
const (
	LoggingSinkTypePlatform    = LoggingSinkType("platform")    // kernel, systemd, platform namespaces
	LoggingSinkTypeApplication = LoggingSinkType("application") // all other namespaces
	LoggingSinkTypeAudit       = LoggingSinkType("audit")       // api server audit logs
	LoggingSinkTypeAll         = LoggingSinkType("all")
)
View Source
const (
	ExistingVPCAnnotationKey              = "tarmak.io/existing-vpc-id"
	ExistingPublicSubnetIDsAnnotationKey  = "tarmak.io/existing-public-subnet-ids"
	ExistingPrivateSubnetIDsAnnotationKey = "tarmak.io/existing-private-subnet-ids"
)

exisiting VPC annotations

View Source
const (
	NetworkTypeLocal   = "local"
	NetworkTypePublic  = "public"
	NetworkTypePrivate = "private"
)
View Source
const (
	VolumeTypeHDD = "hdd"
	VolumeTypeSSD = "ssd"
)
View Source
const (
	// represents Terraform in a destroy state
	StateDestroy = "destroy"
)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "cluster.k8s.io", Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_Cluster

func SetDefaults_Cluster(obj *Cluster)

func SetDefaults_ClusterKubernetesAPIServerAmazonAccessLogs

func SetDefaults_ClusterKubernetesAPIServerAmazonAccessLogs(obj *ClusterKubernetesAPIServerAmazonAccessLogs)

func SetDefaults_ClusterKubernetesClusterAutoscaler

func SetDefaults_ClusterKubernetesClusterAutoscaler(obj *ClusterKubernetesClusterAutoscaler)

func SetDefaults_InstancePool

func SetDefaults_InstancePool(obj *InstancePool)

func SetDefaults_Volume

func SetDefaults_Volume(obj *Volume)

func SetObjectDefaults_Cluster

func SetObjectDefaults_Cluster(in *Cluster)

func SetObjectDefaults_ClusterList

func SetObjectDefaults_ClusterList(in *ClusterList)

func SetObjectDefaults_InstancePool

func SetObjectDefaults_InstancePool(in *InstancePool)

func SetObjectDefaults_Volume

func SetObjectDefaults_Volume(in *Volume)

Types

type AmazonESProxy

type AmazonESProxy struct {
	Port int `json:"port,omitempty"`
}

func (*AmazonESProxy) DeepCopy

func (in *AmazonESProxy) DeepCopy() *AmazonESProxy

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

func (*AmazonESProxy) DeepCopyInto

func (in *AmazonESProxy) DeepCopyInto(out *AmazonESProxy)

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

type Cluster

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

	CloudId         string              `json:"cloudId,omitempty"`
	InstancePools   []InstancePool      `json:"instancePools,omitempty"`
	Cloud           string              `json:"cloud,omitempty"`
	Location        string              `json:"location,omitempty"`
	Network         *Network            `json:"network,omitempty"`
	LoggingSinks    []*LoggingSink      `json:"loggingSinks,omitempty"`
	Values          *Values             `json:"values,omitempty"`
	KubernetesAPI   *KubernetesAPI      `json:"kubernetesAPI,omitempty"`
	GroupIdentifier string              `json:"groupIdentifier,omitempty"`
	VaultHelper     *ClusterVaultHelper `json:"vaultHelper,omitempty"`

	Environment string             `json:"environment,omitempty"`
	Kubernetes  *ClusterKubernetes `json:"kubernetes,omitempty"`

	Type string `json:"-"` // This specifies if a cluster is a hub, single or multi

	// Amazon specific options
	Amazon *ClusterAmazon `json:"amazon"`
}

func NewCluster

func NewCluster(name string) *Cluster

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

type ClusterAmazon

type ClusterAmazon struct {
	// This fields contains ARNs for additional IAM policies to be added to
	// this instance pool
	AdditionalIAMPolicies []string `json:"additionalIAMPolicies,omitempty"`
	// When set to true, AWS Elastic Block Storage volumes are encrypted
	EBSEncrypted *bool `json:"ebsEncrypted,omitempty"`
}

ClusterAmazon offers Amazon-specific settings for that instance pool

func (*ClusterAmazon) DeepCopy

func (in *ClusterAmazon) DeepCopy() *ClusterAmazon

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

func (*ClusterAmazon) DeepCopyInto

func (in *ClusterAmazon) DeepCopyInto(out *ClusterAmazon)

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

type ClusterKubernetes

type ClusterKubernetes struct {
	Zone              string                              `json:"zone,omitempty"`
	Version           string                              `json:"version,omitempty"`
	PodCIDR           string                              `json:"podCIDR,omitempty"`
	ServiceCIDR       string                              `json:"serviceCIDR,omitempty"`
	ClusterAutoscaler *ClusterKubernetesClusterAutoscaler `json:"clusterAutoscaler,omitempty"`
	Tiller            *ClusterKubernetesTiller            `json:"tiller,omitempty"`
	Dashboard         *ClusterKubernetesDashboard         `json:"dashboard,omitempty"`
	PodSecurityPolicy *ClusterPodSecurityPolicy           `json:"podSecurityPolicy,omitempty"`
	Prometheus        *ClusterKubernetesPrometheus        `json:"prometheus,omitempty"`
	Grafana           *ClusterKubernetesGrafana           `json:"grafana,omiempty"`
	Heapster          *ClusterKubernetesHeapster          `json:"heapster,omiempty"`
	InfluxDB          *ClusterKubernetesInfluxDB          `json:"influxDB,omiempty"`

	APIServer         *ClusterKubernetesAPIServer         `json:"apiServer,omitempty"`
	Kubelet           *ClusterKubernetesKubelet           `json:"kubelet,omitempty"`
	Scheduler         *ClusterKubernetesScheduler         `json:"scheduler,omitempty"`
	Proxy             *ClusterKubernetesProxy             `json:"proxy,omitempty"`
	ControllerManager *ClusterKubernetesControllerManager `json:"controllerManager,omitempty"`
	Calico            *ClusterKubernetesCalico            `json:"calico,omitempty"`

	GlobalFeatureGates map[string]bool `json:"globalFeatureGates,omitempty"`
	Hyperkube          *bool           `json:"hyperkube,omitempty"`
}

func (*ClusterKubernetes) DeepCopy

func (in *ClusterKubernetes) DeepCopy() *ClusterKubernetes

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

func (*ClusterKubernetes) DeepCopyInto

func (in *ClusterKubernetes) DeepCopyInto(out *ClusterKubernetes)

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

type ClusterKubernetesAPIServer

type ClusterKubernetesAPIServer struct {
	// expose the API server through a public load balancer
	Public     bool     `json:"public,omitempty"`
	AllowCIDRs []string `json:"allowCIDRs,omitempty"`

	// create DNS record for the private load balancer, and optionally lock it down
	PrivateRecord     bool     `json:"privateRecord,omitempty"`
	PrivateAllowCIDRs []string `json:"privateAllowCIDRs,omitempty"`

	EnableAdmissionControllers  []string `json:"enableAdmissionControllers,omitempty"`
	DisableAdmissionControllers []string `json:"disableAdmissionControllers,omitempty"`

	// OIDC
	OIDC *ClusterKubernetesAPIServerOIDC `json:"oidc,omitempty"`

	// AWS specific options
	Amazon *ClusterKubernetesAPIServerAmazon `json:"amazon,omitempty"`

	AuthTokenWebhookFile string `json:"authTokenWebhookFile,omitempty"`

	FeatureGates map[string]bool `json:"featureGates,omitempty"`
}

func (*ClusterKubernetesAPIServer) DeepCopy

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

func (*ClusterKubernetesAPIServer) DeepCopyInto

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

type ClusterKubernetesAPIServerAmazon

type ClusterKubernetesAPIServerAmazon struct {
	PublicELBAccessLogs     *ClusterKubernetesAPIServerAmazonAccessLogs `json:"publicELBAccessLogs,omitempty"`
	InternalELBAccessLogs   *ClusterKubernetesAPIServerAmazonAccessLogs `json:"internalELBAccessLogs,omitempty"`
	AwsIAMAuthenticatorInit bool                                        `json:"awsIAMAuthenticatorInit,omitempty"`
}

func (*ClusterKubernetesAPIServerAmazon) DeepCopy

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

func (*ClusterKubernetesAPIServerAmazon) DeepCopyInto

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

type ClusterKubernetesAPIServerAmazonAccessLogs

type ClusterKubernetesAPIServerAmazonAccessLogs struct {
	Enabled      *bool  `json:"enabled,omitempty"`
	Bucket       string `json:"bucket,omitempty"`
	BucketPrefix string `json:"bucketPrefix,omitempty"`
	Interval     *int   `json:"interval,omitempty"`
}

func (*ClusterKubernetesAPIServerAmazonAccessLogs) DeepCopy

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

func (*ClusterKubernetesAPIServerAmazonAccessLogs) DeepCopyInto

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

type ClusterKubernetesAPIServerOIDC

type ClusterKubernetesAPIServerOIDC struct {
	// The client ID for the OpenID Connect client, must be set if oidc-issuer-url is set.
	ClientID string `json:"clientID,omitempty" hiera:"kubernetes::apiserver::oidc_client_id"`

	// If provided, the name of a custom OpenID Connect claim for specifying
	// user groups. The claim value is expected to be a string or array of
	// strings. This flag is experimental, please see the authentication
	// documentation for further details.
	GroupsClaim string `json:"groupsClaim,omitempty" hiera:"kubernetes::apiserver::oidc_groups_claim"`

	// If provided, all groups will be prefixed with this value to prevent
	// conflicts with other authentication strategies.
	GroupsPrefix string `json:"groupsPrefix,omitempty" hiera:"kubernetes::apiserver::oidc_groups_prefix"`
	// The URL of the OpenID issuer, only HTTPS scheme will be accepted. If
	// set, it will be used to verify the OIDC JSON Web Token (JWT).
	IssuerURL string `json:"issuerURL,omitempty" hiera:"kubernetes::apiserver::oidc_issuer_url"`

	// Comma-separated list of allowed JOSE asymmetric signing algorithms. JWTs
	// with a 'alg' header value not in this list will be rejected. Values are
	// defined by RFC 7518 https://tools.ietf.org/html/rfc7518#section-3.1.
	// (default [RS256])
	SigningAlgs []string `json:"signingAlgs,omitempty" hiera:"kubernetes::apiserver::oidc_signing_algs"`

	// The OpenID claim to use as the user name. Note that claims other than
	// the default ('sub') is not guaranteed to be unique and immutable. This
	// flag is experimental, please see the authentication documentation for
	// further details. (default "sub")
	UsernameClaim string `json:"usernameClaim,omitempty" hiera:"kubernetes::apiserver::oidc_username_claim"`

	// If provided, all usernames will be prefixed with this value. If not
	// provided, username claims other than 'email' are prefixed by the issuer
	// URL to avoid clashes. To skip any prefixing, provide the value '-'.
	UsernamePrefix string `json:"usernamePrefix,omitempty" hiera:"kubernetes::apiserver::oidc_username_prefix"`
}

func (*ClusterKubernetesAPIServerOIDC) DeepCopy

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

func (*ClusterKubernetesAPIServerOIDC) DeepCopyInto

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

type ClusterKubernetesCalico

type ClusterKubernetesCalico struct {
	Backend ClusterKubernetesCalicoBackend `json:"backend"`

	EnableTypha   bool `json:"enableTypha"`
	TyphaReplicas *int `json:"typhaReplicas"`
}

func (*ClusterKubernetesCalico) DeepCopy

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

func (*ClusterKubernetesCalico) DeepCopyInto

func (in *ClusterKubernetesCalico) DeepCopyInto(out *ClusterKubernetesCalico)

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

type ClusterKubernetesCalicoBackend

type ClusterKubernetesCalicoBackend string
const (
	CalicoBackendEtcd       ClusterKubernetesCalicoBackend = "etcd"
	CalicoBackendKubernetes ClusterKubernetesCalicoBackend = "kubernetes"
)

type ClusterKubernetesClusterAutoscaler

type ClusterKubernetesClusterAutoscaler struct {
	Enabled                       bool                                                `json:"enabled,omitempty"`
	Image                         string                                              `json:"image,omitempty"`
	Version                       string                                              `json:"version,omitempty"`
	ScaleDownUtilizationThreshold *float64                                            `json:"scaleDownUtilizationThreshold,omitempty"`
	Overprovisioning              *ClusterKubernetesClusterAutoscalerOverprovisioning `json:"overprovisioning,omitempty"`
}

func (*ClusterKubernetesClusterAutoscaler) DeepCopy

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

func (*ClusterKubernetesClusterAutoscaler) DeepCopyInto

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

type ClusterKubernetesClusterAutoscalerOverprovisioning

type ClusterKubernetesClusterAutoscalerOverprovisioning struct {
	Enabled                      bool   `json:"enabled,omitempty"`
	Image                        string `json:"image,omitempty"`
	Version                      string `json:"version,omitempty"`
	ReservedMillicoresPerReplica int    `json:"reservedMillicoresPerReplica,omitempty"`
	ReservedMegabytesPerReplica  int    `json:"reservedMegabytesPerReplica,omitempty"`
	CoresPerReplica              int    `json:"coresPerReplica,omitempty"`
	NodesPerReplica              int    `json:"nodesPerReplica,omitempty"`
	ReplicaCount                 int    `json:"replicaCount,omitempty"`
}

func (*ClusterKubernetesClusterAutoscalerOverprovisioning) DeepCopy

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

func (*ClusterKubernetesClusterAutoscalerOverprovisioning) DeepCopyInto

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

type ClusterKubernetesControllerManager

type ClusterKubernetesControllerManager struct {
	FeatureGates map[string]bool `json:"featureGates,omitempty"`
}

func (*ClusterKubernetesControllerManager) DeepCopy

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

func (*ClusterKubernetesControllerManager) DeepCopyInto

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

type ClusterKubernetesDashboard

type ClusterKubernetesDashboard struct {
	Enabled bool   `json:"enabled,omitempty"`
	Image   string `json:"image,omitempty"`
	Version string `json:"version,omitempty"`
}

func (*ClusterKubernetesDashboard) DeepCopy

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

func (*ClusterKubernetesDashboard) DeepCopyInto

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

type ClusterKubernetesGrafana

type ClusterKubernetesGrafana struct {
	Enabled bool `json:"enabled,omitempty"`
}

func (*ClusterKubernetesGrafana) DeepCopy

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

func (*ClusterKubernetesGrafana) DeepCopyInto

func (in *ClusterKubernetesGrafana) DeepCopyInto(out *ClusterKubernetesGrafana)

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

type ClusterKubernetesHeapster

type ClusterKubernetesHeapster struct {
	Enabled bool `json:"enabled,omitempty"`
}

func (*ClusterKubernetesHeapster) DeepCopy

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

func (*ClusterKubernetesHeapster) DeepCopyInto

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

type ClusterKubernetesInfluxDB

type ClusterKubernetesInfluxDB struct {
	Enabled bool `json:"enabled,omitempty"`
}

func (*ClusterKubernetesInfluxDB) DeepCopy

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

func (*ClusterKubernetesInfluxDB) DeepCopyInto

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

type ClusterKubernetesKubelet

type ClusterKubernetesKubelet struct {
	FeatureGates map[string]bool `json:"featureGates,omitempty"`
}

func (*ClusterKubernetesKubelet) DeepCopy

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

func (*ClusterKubernetesKubelet) DeepCopyInto

func (in *ClusterKubernetesKubelet) DeepCopyInto(out *ClusterKubernetesKubelet)

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

type ClusterKubernetesPrometheus

type ClusterKubernetesPrometheus struct {
	// Enable a cluster internal prometheus deployment, default: true
	Enabled bool `json:"enabled,omitempty"`
	// Mode defines which components are installed
	Mode string `json:"mode,omitempty"`
}

Configure the cluster internal deployment of prometheus

func (*ClusterKubernetesPrometheus) DeepCopy

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

func (*ClusterKubernetesPrometheus) DeepCopyInto

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

type ClusterKubernetesProxy

type ClusterKubernetesProxy struct {
	FeatureGates map[string]bool `json:"featureGates,omitempty"`
}

func (*ClusterKubernetesProxy) DeepCopy

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

func (*ClusterKubernetesProxy) DeepCopyInto

func (in *ClusterKubernetesProxy) DeepCopyInto(out *ClusterKubernetesProxy)

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

type ClusterKubernetesScheduler

type ClusterKubernetesScheduler struct {
	FeatureGates map[string]bool `json:"featureGates,omitempty"`
}

func (*ClusterKubernetesScheduler) DeepCopy

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

func (*ClusterKubernetesScheduler) DeepCopyInto

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

type ClusterKubernetesTiller

type ClusterKubernetesTiller struct {
	Enabled bool   `json:"enabled,omitempty"`
	Image   string `json:"image,omitempty"`
	Version string `json:"version,omitempty"`
}

func (*ClusterKubernetesTiller) DeepCopy

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

func (*ClusterKubernetesTiller) DeepCopyInto

func (in *ClusterKubernetesTiller) DeepCopyInto(out *ClusterKubernetesTiller)

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

type ClusterList

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

	Items []Cluster `json:"items"`
}

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterPodSecurityPolicy

type ClusterPodSecurityPolicy struct {
	Enabled bool `json:"enabled,omitempty"`
}

func (*ClusterPodSecurityPolicy) DeepCopy

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

func (*ClusterPodSecurityPolicy) DeepCopyInto

func (in *ClusterPodSecurityPolicy) DeepCopyInto(out *ClusterPodSecurityPolicy)

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

type ClusterVaultHelper

type ClusterVaultHelper struct {
	URL string `json:"url,omitempty"`
}

func (*ClusterVaultHelper) DeepCopy

func (in *ClusterVaultHelper) DeepCopy() *ClusterVaultHelper

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

func (*ClusterVaultHelper) DeepCopyInto

func (in *ClusterVaultHelper) DeepCopyInto(out *ClusterVaultHelper)

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

type EgressRule

type EgressRule struct {
	Shared            `json:",inline"`
	EgressToPort      string `json:"egressToPort,omitempty"` //this thing should be a string.
	EgressDestination string `json:"egressDestination,omitempty"`
	EgressProtocol    string `json:"egressProtocol,omitempty"`
}

EgressRule parameters for the firewall

func (*EgressRule) DeepCopy

func (in *EgressRule) DeepCopy() *EgressRule

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

func (*EgressRule) DeepCopyInto

func (in *EgressRule) DeepCopyInto(out *EgressRule)

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

type Firewall

type Firewall struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Identifier        string         `json:"identifier,omitempty"`
	IngressRules      []*IngressRule `json:"ingressRules,omitempty"`
	EgressRules       []*EgressRule  `json:"egressRules,omitempty"`
}

Firewall contains the configuration a user expects to be applied.

func (*Firewall) DeepCopy

func (in *Firewall) DeepCopy() *Firewall

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

func (*Firewall) DeepCopyInto

func (in *Firewall) DeepCopyInto(out *Firewall)

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

type HTTPBasicAuth

type HTTPBasicAuth struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

func (*HTTPBasicAuth) DeepCopy

func (in *HTTPBasicAuth) DeepCopy() *HTTPBasicAuth

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

func (*HTTPBasicAuth) DeepCopyInto

func (in *HTTPBasicAuth) DeepCopyInto(out *HTTPBasicAuth)

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

type IngressRule

type IngressRule struct {
	Shared          `json:",inline"`
	IngressFromPort string `json:"ingressFromPort,omitempty"`
	IngressToPort   string `json:"ingressToPort,omitempty"` //this thing should be a string.
	IngressSource   string `json:"ingressSource,omitempty"`
	IngressProtocol string `json:"ingressProtocol,omitempty"`
}

IngressRule parameters for the firewall

func (*IngressRule) DeepCopy

func (in *IngressRule) DeepCopy() *IngressRule

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

func (*IngressRule) DeepCopyInto

func (in *IngressRule) DeepCopyInto(out *IngressRule)

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

type InstancePool

type InstancePool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Identifier        string                  `json:"identifier,omitempty"`
	MinCount          int                     `json:"minCount,omitempty"`
	MaxCount          int                     `json:"maxCount,omitempty"`
	Type              string                  `json:"type,omitempty"`
	Image             string                  `json:"image,omitempty"`
	Size              string                  `json:"size,omitempty"`
	SpotPrice         string                  `json:"spotPrice,omitempty"`
	BootstrapScripts  []string                `json:"bootstrapScripts,omitempty"`
	Subnets           []*Subnet               `json:"subnets,omitempty"`
	Firewalls         []*Firewall             `json:"firewalls,omitempty"`
	Volumes           []Volume                `json:"volumes,omitempty"`
	Kubernetes        *InstancePoolKubernetes `json:"kubernetes,omitempty"`
	AllowCIDRs        []string                `json:"allowCIDRs,omitempty"`
	PrivateAllowCIDRs []string                `json:"privateAllowCIDRs,omitempty"`
	Labels            []*Label                `json:"labels,omitempty"`
	Taints            []*Taint                `json:"taints,omitempty"`

	// Amazon specific settings for that instance pool
	Amazon *InstancePoolAmazon `json:"amazon,omitempty"`
}

func (*InstancePool) DeepCopy

func (in *InstancePool) DeepCopy() *InstancePool

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

func (*InstancePool) DeepCopyInto

func (in *InstancePool) DeepCopyInto(out *InstancePool)

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

func (*InstancePool) DeepCopyObject

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

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

type InstancePoolAmazon

type InstancePoolAmazon struct {
	// This fields contains ARNs for additional IAM policies to be added to
	// this instance pool
	AdditionalIAMPolicies []string `json:"additionalIAMPolicies,omitempty"`
}

Amazon specific settings for that instance pool

func (*InstancePoolAmazon) DeepCopy

func (in *InstancePoolAmazon) DeepCopy() *InstancePoolAmazon

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

func (*InstancePoolAmazon) DeepCopyInto

func (in *InstancePoolAmazon) DeepCopyInto(out *InstancePoolAmazon)

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

type InstancePoolKubernetes

type InstancePoolKubernetes struct {
	Version string `json:"version,omitempty"`
}

func (*InstancePoolKubernetes) DeepCopy

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

func (*InstancePoolKubernetes) DeepCopyInto

func (in *InstancePoolKubernetes) DeepCopyInto(out *InstancePoolKubernetes)

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

type InternetGW

type InternetGW struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Identifier        string `json:"identifier,omitempty"`
}

func (*InternetGW) DeepCopy

func (in *InternetGW) DeepCopy() *InternetGW

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

func (*InternetGW) DeepCopyInto

func (in *InternetGW) DeepCopyInto(out *InternetGW)

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

type KubernetesAPI

type KubernetesAPI struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Endpoint          string `json:"endpoint,omitempty"`
	Port              string `json:"port,omitempty"`
}

func (*KubernetesAPI) DeepCopy

func (in *KubernetesAPI) DeepCopy() *KubernetesAPI

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

func (*KubernetesAPI) DeepCopyInto

func (in *KubernetesAPI) DeepCopyInto(out *KubernetesAPI)

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

type Label

type Label struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

Label structure for instancepool node labels

func (*Label) DeepCopy

func (in *Label) DeepCopy() *Label

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

func (*Label) DeepCopyInto

func (in *Label) DeepCopyInto(out *Label)

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

type LoggingSink

type LoggingSink struct {
	Elasticsearch *LoggingSinkElasticsearch `json:"elasticsearch,omitempty"`
	Types         []LoggingSinkType         `json:"types,omitempty"`
}

func (*LoggingSink) DeepCopy

func (in *LoggingSink) DeepCopy() *LoggingSink

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

func (*LoggingSink) DeepCopyInto

func (in *LoggingSink) DeepCopyInto(out *LoggingSink)

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

type LoggingSinkElasticsearch

type LoggingSinkElasticsearch struct {
	// https://fluentbit.io/documentation/0.12/output/elasticsearch.html
	Host           string         `json:"host,omitempty"`
	Port           int            `json:"port,omitempty"`
	LogstashPrefix string         `json:"logstashPrefix,omitempty"`
	TLS            *bool          `json:"tls,omitempty"`
	TLSVerify      bool           `json:"tlsVerify,omitempty"`
	TLSCA          string         `json:"tlsCA,omitempty"`
	HTTPBasicAuth  *HTTPBasicAuth `json:"httpBasicAuth,omitempty"`
	AmazonESProxy  *AmazonESProxy `json:"amazonESProxy,omitempty"`
}

func (*LoggingSinkElasticsearch) DeepCopy

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

func (*LoggingSinkElasticsearch) DeepCopyInto

func (in *LoggingSinkElasticsearch) DeepCopyInto(out *LoggingSinkElasticsearch)

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

type LoggingSinkType

type LoggingSinkType string

type Network

type Network struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	CIDR              string      `json:"cidr,omitempty"`
	Identifier        string      `json:"identifier,omitempty"`
	Type              string      `json:"type,omitempty"`
	InternetGW        *InternetGW `json:"internetGW,omitempty"`
}

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

type SSH

type SSH struct {
	metav1.TypeMeta      `json:",inline"`
	metav1.ObjectMeta    `json:"metadata,omitempty"`
	User                 string `json:"user,omitempty"`
	Identifier           string `json:"identifier,omitempty"`
	PublicKeyPath        string `json:"publicKeyPath,omitempty"`
	PublicKeyData        []byte `json:"publicKeyData,omitempty"`
	PublicKeyFingerprint string `json:"publicKeyFingerprint,omitempty"`
	PrivateKeyPath       string `json:"privateKeyPath,omitempty"`
}

func (*SSH) DeepCopy

func (in *SSH) DeepCopy() *SSH

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

func (*SSH) DeepCopyInto

func (in *SSH) DeepCopyInto(out *SSH)

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

type Shared

type Shared struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Identifier        string `json:"identifier,omitempty"`
}

Shared object infor among rules.

func (*Shared) DeepCopy

func (in *Shared) DeepCopy() *Shared

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

func (*Shared) DeepCopyInto

func (in *Shared) DeepCopyInto(out *Shared)

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

type Subnet

type Subnet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Identifier        string `json:"identifier,omitempty"`
	CIDR              string `json:"cidr,omitempty"`
	Location          string `json:"location,omitempty"`
	Zone              string `json:"zone,omitempty"`
}

func (*Subnet) DeepCopy

func (in *Subnet) DeepCopy() *Subnet

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

func (*Subnet) DeepCopyInto

func (in *Subnet) DeepCopyInto(out *Subnet)

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

type Taint

type Taint struct {
	Key    string `json:"key,omitempty"`
	Value  string `json:"value,omitempty"`
	Effect string `json:"effect,omitempty"`
}

Taint structure for instancepool node taints

func (*Taint) DeepCopy

func (in *Taint) DeepCopy() *Taint

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

func (*Taint) DeepCopyInto

func (in *Taint) DeepCopyInto(out *Taint)

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

type Values

type Values struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	ItemMap           map[string]string `json:"itemMap,omitempty"`
}

func (*Values) DeepCopy

func (in *Values) DeepCopy() *Values

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

func (*Values) DeepCopyInto

func (in *Values) DeepCopyInto(out *Values)

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

type Volume

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

	Size *resource.Quantity `json:"size,omitempty"` // Volume Size
	Type string             `json:"type,omitempty"` // Volume Type
}

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

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

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

func (*Volume) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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