options

package
v0.0.0-...-0d7ca9c Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	CommonBuildOptions      *build.Options
	UpdateLatestGreenMarker bool   `flag:"~update-latest-green-marker" desc:"When set to true, will update the latest-green-x.y.txt marker on GCS."`
	BuildScript             string `flag:"~build-script" desc:"Only used with the gke_make build. Absolute path to the gke_make build script."`
}

func (*BuildOptions) Build

func (bo *BuildOptions) Build() (string, error)

func (*BuildOptions) Stage

func (bo *BuildOptions) Stage(version string) error

func (*BuildOptions) Validate

func (bo *BuildOptions) Validate() error

type ClusterOptions

type ClusterOptions struct {
	Environment string `` /* 150-byte string literal not displayed */

	GcloudCommandGroup string `flag:"~gcloud-command-group" desc:"gcloud command group, can be one of empty, alpha, beta."`
	Autopilot          bool   `flag:"~autopilot" desc:"Whether to create GKE Autopilot clusters or not."`
	GcloudExtraFlags   string `flag:"~gcloud-extra-flags" desc:"Extra gcloud flags to pass when creating the clusters."`
	CreateCommandFlag  string `` /* 231-byte string literal not displayed */

	Regions []string `` /* 213-byte string literal not displayed */
	Zones   []string `` /* 203-byte string literal not displayed */

	NumClusters             int      `flag:"~num-clusters" desc:"Number of clusters to create, will auto-generate names as (kt2-<run-id>-<index>)."`
	Clusters                []string `` /* 213-byte string literal not displayed */
	MachineType             string   `flag:"~machine-type" desc:"For use with gcloud commands to specify the machine type for the cluster."`
	NumNodes                int      `flag:"~num-nodes" desc:"For use with gcloud commands to specify the number of nodes for each of the cluster's zones."`
	ImageType               string   `flag:"~image-type" desc:"The image type to use for the cluster."`
	ReleaseChannel          string   `` /* 158-byte string literal not displayed */
	LegacyClusterVersion    string   `flag:"~version,deprecated" desc:"Use --cluster-version instead"`
	ClusterVersion          string   `` /* 147-byte string literal not displayed */
	WorkloadIdentityEnabled bool     `` /* 189-byte string literal not displayed */
	FirewallRuleAllow       string   `desc:"A list of protocols and ports whose traffic will be allowed for the firewall rules created for the cluster."`

	WindowsEnabled     bool   `flag:"~enable-windows" desc:"Whether enable Windows node pool in the cluster or not."`
	WindowsNumNodes    int    `` /* 131-byte string literal not displayed */
	WindowsMachineType string `flag:"~windows-machine-type" desc:"For use with gcloud commands to specify the machine type for Windows node in the cluster."`
	WindowsImageType   string `flag:"~windows-image-type" desc:"The Windows image type to use for the cluster."`

	NodePoolCreateConcurrency int      `flag:"~nodepool-create-concurrency" desc:"Number of nodepools to create concurrently, default is 1"`
	ExtraNodePool             []string `` /* 190-byte string literal not displayed */

	RetryableErrorPatterns []string `` /* 130-byte string literal not displayed */
}

func (*ClusterOptions) Validate

func (uo *ClusterOptions) Validate() error

type CommonOptions

type CommonOptions struct {
	RepoRoot          string `desc:"Path to root of the kubernetes repo. Used with --build and for dumping cluster logs."`
	GCPServiceAccount string `flag:"~gcp-service-account" desc:"Service account to activate before using gcloud."`
	GCPSSHKeyIgnored  bool   `flag:"~ignore-gcp-ssh-key" desc:"Whether the GCP SSH key should be ignored or not for bringing up the cluster."`
}

type ExtraNodePoolOptions

type ExtraNodePoolOptions struct {
	Name        string
	MachineType string
	ImageType   string
	NumNodes    int
}

type NetworkOptions

type NetworkOptions struct {
	Network string `` /* 159-byte string literal not displayed */

	PrivateClusterAccessLevel    string   `` /* 229-byte string literal not displayed */
	PrivateClusterMasterIPRanges []string `` /* 198-byte string literal not displayed */
	SubnetworkRanges             []string `` /* 516-byte string literal not displayed */
}

type ProjectOptions

type ProjectOptions struct {
	Projects []string `flag:"~project" desc:"Comma separated list of GCP Project(s) to use for creating the cluster."`

	BoskosLocation                 string   `flag:"~boskos-location" desc:"If set, manually specifies the location of the Boskos server."`
	BoskosAcquireTimeoutSeconds    int      `` /* 137-byte string literal not displayed */
	BoskosHeartbeatIntervalSeconds int      `` /* 154-byte string literal not displayed */
	BoskosResourceType             []string `flag:"~boskos-resource-type" desc:"If set, manually specifies the resource type(s) of GCP projects to acquire from Boskos."`
	BoskosProjectsRequested        []int    `` /* 149-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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