Documentation ¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- Constants
- Variables
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_Config(obj *Config)
- func SetDefaults_Environment(obj *Environment)
- func SetDefaults_Provider(obj *Provider)
- func SetObjectDefaults_Config(in *Config)
- func SetObjectDefaults_ConfigList(in *ConfigList)
- func SetObjectDefaults_Environment(in *Environment)
- func SetObjectDefaults_EnvironmentList(in *EnvironmentList)
- func SetObjectDefaults_Provider(in *Provider)
- func SetObjectDefaults_ProviderList(in *ProviderList)
- type ClusterApplyFlags
- type ClusterDestroyFlags
- type ClusterFlags
- type ClusterImagesBuildFlags
- type ClusterImagesFlags
- type ClusterKubeconfigFlags
- type ClusterLogsFlags
- type ClusterPlanFlags
- type Config
- type ConfigList
- type Environment
- type EnvironmentDestroyFlags
- type EnvironmentFlags
- type EnvironmentList
- type Flags
- type Image
- type Provider
- type ProviderAmazon
- type ProviderAzure
- type ProviderGCP
- type ProviderList
Constants ¶
const ( StackNameState = "state" StackNameNetwork = "network" StackNameExistingNetwork = "network-existing-vpc" StackNameTools = "tools" StackNameVault = "vault" StackNameKubernetes = "kubernetes" )
const ( ImageTagEnvironment = "tarmak_environment" ImageTagBaseImageName = "tarmak_base_image_name" ImageTagKubernetesVersion = "kubernetes_version" )
const ( EnvironmentTypeEmpty = "empty" // an environment that contains no cluster at all EnvironmentTypeMulti = "multi" // an environment that contains a hub and 0-n clusters EnvironmentTypeSingle = "single" // an environment that contains exactly one cluster )
Variables ¶
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 )
var KubernetesEpoch time.Time = time.Unix(1437436800, 0)
var SchemeGroupVersion = schema.GroupVersion{Group: "api.tarmak.io", Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func RegisterDefaults ¶
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_Config ¶
func SetDefaults_Config(obj *Config)
func SetDefaults_Environment ¶
func SetDefaults_Environment(obj *Environment)
func SetDefaults_Provider ¶
func SetDefaults_Provider(obj *Provider)
func SetObjectDefaults_Config ¶
func SetObjectDefaults_Config(in *Config)
func SetObjectDefaults_ConfigList ¶
func SetObjectDefaults_ConfigList(in *ConfigList)
func SetObjectDefaults_Environment ¶
func SetObjectDefaults_Environment(in *Environment)
func SetObjectDefaults_EnvironmentList ¶
func SetObjectDefaults_EnvironmentList(in *EnvironmentList)
func SetObjectDefaults_Provider ¶
func SetObjectDefaults_Provider(in *Provider)
func SetObjectDefaults_ProviderList ¶
func SetObjectDefaults_ProviderList(in *ProviderList)
Types ¶
type ClusterApplyFlags ¶
type ClusterApplyFlags struct { DryRun bool `json:"dryRun,omitempty"` // just show what would be done InfrastructureOnly bool `json:"infrastructureOnly,omitempty"` // only run terraform ConfigurationOnly bool `json:"configurationOnly,omitempty"` // only run puppet AutoApprove bool `json:"autoApprove,omitempty"` // auto approve apply queries AutoApproveDeletingData bool `json:"autoApproveDeletingData,omitempty"` // auto approve apply queries about deleting data PlanFileLocation string `json:"planFileLocation,omitempty"` // file location where plan file is to be used WaitForConvergence bool `json:"waitForConvergence,omitempty"` // wait for wing convergence when applying }
Contains the cluster apply flags
func (*ClusterApplyFlags) DeepCopy ¶
func (in *ClusterApplyFlags) DeepCopy() *ClusterApplyFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterApplyFlags.
func (*ClusterApplyFlags) DeepCopyInto ¶
func (in *ClusterApplyFlags) DeepCopyInto(out *ClusterApplyFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDestroyFlags ¶
type ClusterDestroyFlags struct {
DryRun bool `json:"dryRun,omitempty"` // just show what would be done
}
Contains the cluster destroy flags
func (*ClusterDestroyFlags) DeepCopy ¶
func (in *ClusterDestroyFlags) DeepCopy() *ClusterDestroyFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDestroyFlags.
func (*ClusterDestroyFlags) DeepCopyInto ¶
func (in *ClusterDestroyFlags) DeepCopyInto(out *ClusterDestroyFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterFlags ¶
type ClusterFlags struct { Apply ClusterApplyFlags `json:"apply,omitempty"` // flags for applying clusters Destroy ClusterDestroyFlags `json:"destroy,omitempty"` // flags for destroying clusters Images ClusterImagesFlags `json:"images,omitempty"` // flags for handling images Plan ClusterPlanFlags `json:"plan,omitempty"` // flags for planning clusters Kubeconfig ClusterKubeconfigFlags `json:"kubeconfig,omitempty"` // flags for kubeconfig of clusters Logs ClusterLogsFlags `json:"logs,omitempty"` // flags for getting logs from clusters }
This contains the cluster specifc operation flags
func (*ClusterFlags) DeepCopy ¶
func (in *ClusterFlags) DeepCopy() *ClusterFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterFlags.
func (*ClusterFlags) DeepCopyInto ¶
func (in *ClusterFlags) DeepCopyInto(out *ClusterFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterImagesBuildFlags ¶
type ClusterImagesBuildFlags struct {
RebuildExisting bool `json:"rebuildExisting,omitempty"` // build all images regardless whether they already exist
}
Contains the cluster images build flags
func (*ClusterImagesBuildFlags) DeepCopy ¶
func (in *ClusterImagesBuildFlags) DeepCopy() *ClusterImagesBuildFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterImagesBuildFlags.
func (*ClusterImagesBuildFlags) DeepCopyInto ¶
func (in *ClusterImagesBuildFlags) DeepCopyInto(out *ClusterImagesBuildFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterImagesFlags ¶
type ClusterImagesFlags struct {
Build ClusterImagesBuildFlags `json:"build,omitempty"` // flags for handling building images
}
Contains the cluster images flags
func (*ClusterImagesFlags) DeepCopy ¶
func (in *ClusterImagesFlags) DeepCopy() *ClusterImagesFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterImagesFlags.
func (*ClusterImagesFlags) DeepCopyInto ¶
func (in *ClusterImagesFlags) DeepCopyInto(out *ClusterImagesFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterKubeconfigFlags ¶
type ClusterKubeconfigFlags struct {
Path string `json:"path,omitempty"` // Path to save kubeconfig to
}
Contains the cluster kubeconfig flags
func (*ClusterKubeconfigFlags) DeepCopy ¶
func (in *ClusterKubeconfigFlags) DeepCopy() *ClusterKubeconfigFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterKubeconfigFlags.
func (*ClusterKubeconfigFlags) DeepCopyInto ¶
func (in *ClusterKubeconfigFlags) DeepCopyInto(out *ClusterKubeconfigFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterLogsFlags ¶
type ClusterLogsFlags struct { Path string `json:"path,omitempty"` // path to store logs bundle Since string `json:"since,omitempty"` // fetch logs since date Until string `json:"until,omitempty"` // fetch logs until date }
Contains the cluster logs flags
func (*ClusterLogsFlags) DeepCopy ¶
func (in *ClusterLogsFlags) DeepCopy() *ClusterLogsFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterLogsFlags.
func (*ClusterLogsFlags) DeepCopyInto ¶
func (in *ClusterLogsFlags) DeepCopyInto(out *ClusterLogsFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPlanFlags ¶
type ClusterPlanFlags struct {
PlanFileStore string `json:"planFileStore,omitempty"` // file location where plan file is to be stored
}
Contains the cluster plan flags
func (*ClusterPlanFlags) DeepCopy ¶
func (in *ClusterPlanFlags) DeepCopy() *ClusterPlanFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPlanFlags.
func (*ClusterPlanFlags) DeepCopyInto ¶
func (in *ClusterPlanFlags) DeepCopyInto(out *ClusterPlanFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Config ¶
type Config struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` CurrentCluster string `json:"currentCluster,omitempty"` // <environmentName>-<clusterName> Contact string `json:"contact,omitempty"` Project string `json:"project,omitempty"` Clusters []clusterv1alpha1.Cluster `json:"clusters,omitempty"` Providers []Provider `json:"providers,omitempty"` Environments []Environment `json:"environments,omitempty"` }
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigList ¶
type ConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Items []Config `json:"items"` }
func (*ConfigList) DeepCopy ¶
func (in *ConfigList) DeepCopy() *ConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigList.
func (*ConfigList) DeepCopyInto ¶
func (in *ConfigList) DeepCopyInto(out *ConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigList) DeepCopyObject ¶
func (in *ConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Environment ¶
type Environment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Provider string `json:"provider,omitempty"` Contact string `json:"contact,omitempty"` Project string `json:"project,omitempty"` Location string `json:"location,omitempty"` SSH *clusterv1alpha1.SSH `json:"ssh,omitempty"` PrivateZone string `json:"privateZone,omitempty"` AdminCIDRs []string `json:"adminCIDRs,omitempty"` }
func (*Environment) DeepCopy ¶
func (in *Environment) DeepCopy() *Environment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Environment.
func (*Environment) DeepCopyInto ¶
func (in *Environment) DeepCopyInto(out *Environment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Environment) DeepCopyObject ¶
func (in *Environment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EnvironmentDestroyFlags ¶
type EnvironmentDestroyFlags struct {
AutoApprove bool `json:"autoApprove,omitempty"` // auto-approve destroying a whole environment
}
Contains the environment destroy flags
func (*EnvironmentDestroyFlags) DeepCopy ¶
func (in *EnvironmentDestroyFlags) DeepCopy() *EnvironmentDestroyFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentDestroyFlags.
func (*EnvironmentDestroyFlags) DeepCopyInto ¶
func (in *EnvironmentDestroyFlags) DeepCopyInto(out *EnvironmentDestroyFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvironmentFlags ¶
type EnvironmentFlags struct {
Destroy EnvironmentDestroyFlags `json:"destroy,omitempty"` // flags for destroying environment
}
This contains the environment specific operation flags
func (*EnvironmentFlags) DeepCopy ¶
func (in *EnvironmentFlags) DeepCopy() *EnvironmentFlags
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentFlags.
func (*EnvironmentFlags) DeepCopyInto ¶
func (in *EnvironmentFlags) DeepCopyInto(out *EnvironmentFlags)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvironmentList ¶
type EnvironmentList struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Items []Environment `json:"items"` }
func (*EnvironmentList) DeepCopy ¶
func (in *EnvironmentList) DeepCopy() *EnvironmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList.
func (*EnvironmentList) DeepCopyInto ¶
func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EnvironmentList) DeepCopyObject ¶
func (in *EnvironmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Flags ¶
type Flags struct { Verbose bool `json:"verbose,omitempty"` // logrus log level to run with ConfigDirectory string `json:"configDirectory,omitempty"` // path to config directory KeepContainers bool `json:"keepContainers,omitempty"` // do not clean-up terraform/packer containers after running them Initialize bool `json:"initialize,omitempty"` // run tarmak in initialize mode, don't parse config before rnning init CurrentCluster string `json:"currentCluster,omitempty"` // override the current cluster set in tarmak config Cluster ClusterFlags `json:"cluster,omitempty"` // cluster specific flags Environment EnvironmentFlags `json:"environment,omitempty"` // environment specific flags WingDevMode bool `json:"wingDevMode,omitempty"` // use a bundled wing version rather than a tagged release from GitHub PublicAPIEndpoint bool `json:"publicAPIEndpoint,omitempty"` // Use public endpoint to point kubeconfig to // Do not error when instances are missing their public key tags. Instead use first connection as fallback IgnoreMissingPublicKeyTags bool `json:"ignoreMissingPublicKeyTags"` }
This represents tarmaks global flags
func (*Flags) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Flags.
func (*Flags) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Image ¶
type Image struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` BaseImage string `json:"baseImage,omitempty"` Location string `json:"location,omitempty"` Encrypted bool `json:"encrypted,omitempty"` }
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Image) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Provider ¶
type Provider struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Amazon *ProviderAmazon `json:"amazon,omitempty"` GCP *ProviderGCP `json:"gcp,omitempty"` Azure *ProviderAzure `json:"azure,omitempty"` }
+genclient=true +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +resource:path=providers
func (*Provider) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provider.
func (*Provider) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Provider) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderAmazon ¶
type ProviderAmazon struct { VaultPath string `json:"vaultPath,omitempty"` AllowedAccountIDs []string `json:"allowedAccountIDs,omitempty"` Profile string `json:"profile,omitempty"` BucketPrefix string `json:"bucketPrefix,omitempty"` KeyName string `json:"keyName,omitempty"` PublicZone string `json:"publicZone,omitempty"` PublicHostedZoneID string `json:"publicHostedZoneID,omitempty"` }
func (*ProviderAmazon) DeepCopy ¶
func (in *ProviderAmazon) DeepCopy() *ProviderAmazon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderAmazon.
func (*ProviderAmazon) DeepCopyInto ¶
func (in *ProviderAmazon) DeepCopyInto(out *ProviderAmazon)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderAzure ¶
type ProviderAzure struct {
SubscriptionID string `json:"subscriptionID,omitempty"`
}
func (*ProviderAzure) DeepCopy ¶
func (in *ProviderAzure) DeepCopy() *ProviderAzure
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderAzure.
func (*ProviderAzure) DeepCopyInto ¶
func (in *ProviderAzure) DeepCopyInto(out *ProviderAzure)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderGCP ¶
type ProviderGCP struct {
Project string `json:"project,omitempty"`
}
func (*ProviderGCP) DeepCopy ¶
func (in *ProviderGCP) DeepCopy() *ProviderGCP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderGCP.
func (*ProviderGCP) DeepCopyInto ¶
func (in *ProviderGCP) DeepCopyInto(out *ProviderGCP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderList ¶
type ProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Items []Provider `json:"items"` }
func (*ProviderList) DeepCopy ¶
func (in *ProviderList) DeepCopy() *ProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderList.
func (*ProviderList) DeepCopyInto ¶
func (in *ProviderList) DeepCopyInto(out *ProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderList) DeepCopyObject ¶
func (in *ProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.