config

package
v1.2.37 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterID

func GetClusterID() (clusterID string)

func GetInstallerRoleArn

func GetInstallerRoleArn(hostedcp bool) (string, error)

Get installer role arn from ${SHARED_DIR}/account-roles-arns

Types

type AWS

type AWS struct {
	Sts Sts `json:"sts,omitempty"`
}

type Autoscaling

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

type ClusterConfig

type ClusterConfig struct {
	DisableScpChecks          bool        `json:"disable_scp_checks,omitempty"`
	DisableWorkloadMonitoring bool        `json:"disable_workload_monitoring,omitempty"`
	EnableCustomerManagedKey  bool        `json:"enable_customer_managed_key,omitempty"`
	EtcdEncryption            bool        `json:"etcd_encryption,omitempty"`
	Fips                      bool        `json:"fips,omitempty"`
	Hypershift                bool        `json:"hypershift,omitempty"`
	MultiAZ                   bool        `json:"multi_az,omitempty"`
	Private                   bool        `json:"private,omitempty"`
	PrivateLink               bool        `json:"private_link,omitempty"`
	Sts                       bool        `json:"sts,omitempty"`
	AuditLogArn               string      `json:"audit_log_arn,omitempty"`
	AvailabilityZones         string      `json:"availability_zones,omitempty"`
	DefaultMpLabels           string      `json:"default_mp_labels,omitempty"`
	Ec2MetadataHttpTokens     string      `json:"ec2_metadata_http_tokens,omitempty"`
	Name                      string      `json:"name,omitempty"`
	Region                    string      `json:"region,omitempty"`
	Tags                      string      `json:"tags,omitempty"`
	WorkerDiskSize            string      `json:"worker_disk_size,omitempty"`
	Autoscaling               Autoscaling `json:"autoscaling,omitempty"`
	Aws                       AWS         `json:"aws,omitempty"`
	Encryption                Encryption  `json:"encryption,omitempty"`
	Nodes                     Nodes       `json:"nodes,omitempty"`
	Properties                Properties  `json:"properties,omitempty"`
	Proxy                     Proxy       `json:"proxy,omitempty"`
	Subnets                   Subnets     `json:"subnets,omitempty"`
	Version                   Version     `json:"version,omitempty"`
}

func ParseClusterProfile

func ParseClusterProfile() (*ClusterConfig, error)

type Command

type Command interface {
	GetFullCommand() string
	GetFlagValue(flag string, flagWithVaue bool) string
	AddFlags(flags ...string)
	ReplaceFlagValue(flags map[string]string)
	DeleteFlag(flag string, flagWithVaue bool) error
}

func RetrieveClusterCreationCommand

func RetrieveClusterCreationCommand() (Command, error)

Get the rosa command for creating cluster from ${SHARED_DIR}/create_cluster.sh

type Encryption

type Encryption struct {
	KmsKeyArn            string `json:"kms_key_arn,omitempty"`
	EtcdEncryptionKmsArn string `json:"etcd_encryption_kms_arn,omitempty"`
}

type Nodes

type Nodes struct {
	Replicas    string `json:"replicas,omitempty"`
	MinReplicas string `json:"min_replicas,omitempty"`
	MaxReplicas string `json:"max_replicas,omitempty"`
}

type Properties

type Properties struct {
	ProvisionShardID string `json:"provision_shard_id,omitempty"`
}

type Proxy

type Proxy struct {
	Enabled         bool   `json:"enabled,omitempty"`
	Http            string `json:"http,omitempty"`
	Https           string `json:"https,omitempty"`
	TrustBundleFile string `json:"trust_bundle_file,omitempty"`
}

type Sts

type Sts struct {
	RoleArn             string `json:"role_arn,omitempty"`
	SupportRoleArn      string `json:"support_role_arn,omitempty"`
	WorkerRoleArn       string `json:"worker_role_arn,omitempty"`
	ControlPlaneRoleArn string `json:"control_plane_role_arn,omitempty"`
	OidcConfigID        string `json:"oidc_config_id,omitempty"`
	OperatorRolesPrefix string `json:"operator_roles_prefix,omitempty"`
}

type Subnets

type Subnets struct {
	PrivateSubnetIds string `json:"private_subnet_ids,omitempty"`
	PublicSubnetIds  string `json:"public_subnet_ids,omitempty"`
}

type Version

type Version struct {
	ChannelGroup string `json:"channel_group,omitempty"`
	RawID        string `json:"raw_id,omitempty"`
}

Jump to

Keyboard shortcuts

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