exec

package
v1.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// MaxExpiration in unit of hour
	MaxExpiration = 168

	// MaxNodeNumber means max node number per cluster/machinepool
	MaxNodeNumber = 180

	// MaxNameLength means cluster name will be trimed when request certificate
	MaxNameLength = 15

	MaxIngressNumber = 2
)

****************************************************** RHCS test cases used

View Source
const (
	FastChannel      = "fast"
	StableChannel    = "stable"
	NightlyChannel   = "nightly"
	CandidateChannel = "candidate"
)

version channel_groups

Variables

This section is empty.

Functions

func CleanTFTempFiles

func CleanTFTempFiles(providerDir string) error

func ReadTerraformTFVars added in v1.5.1

func ReadTerraformTFVars(dirPath string) map[string]string

Function to read terraform.tfvars file and return its content as a map

Types

type AccountRoleService

type AccountRoleService struct {
	CreationArgs *AccountRolesArgs
	ManifestDir  string
	Context      context.Context
}

func NewAccountRoleService

func NewAccountRoleService(manifestDir ...string) (*AccountRoleService, error)

func (*AccountRoleService) Apply added in v1.5.0

func (acc *AccountRoleService) Apply(createArgs *AccountRolesArgs, recordtfvars bool, extraArgs ...string) (*AccountRolesOutput, error)

func (*AccountRoleService) Destroy

func (acc *AccountRoleService) Destroy(createArgs ...*AccountRolesArgs) error

func (*AccountRoleService) Init

func (acc *AccountRoleService) Init(manifestDirs ...string) error

func (*AccountRoleService) Output

func (acc *AccountRoleService) Output() (*AccountRolesOutput, error)

type AccountRolesArgs

type AccountRolesArgs struct {
	AccountRolePrefix   string `json:"account_role_prefix,omitempty"`
	OCMENV              string `json:"rhcs_environment,omitempty"`
	OpenshiftVersion    string `json:"openshift_version,omitempty"`
	URL                 string `json:"url,omitempty"`
	ChannelGroup        string `json:"channel_group,omitempty"`
	UnifiedAccRolesPath string `json:"path,omitempty"`
	SharedVpcRoleArn    string `json:"shared_vpc_role_arn,omitempty"`
}

type AccountRolesOutput added in v1.4.0

type AccountRolesOutput struct {
	AccountRolePrefix string        `json:"account_role_prefix,omitempty"`
	MajorVersion      string        `json:"major_version,omitempty"`
	ChannelGroup      string        `json:"channel_group,omitempty"`
	RHCSGatewayUrl    string        `json:"rhcs_gateway_url,omitempty"`
	RHCSVersions      []interface{} `json:"rhcs_versions,omitempty"`
	InstallerRoleArn  string        `json:"installer_role_arn,omitempty"`
	AWSAccountId      string        `json:"aws_account_id,omitempty"`
}

type ClusterCreationArgs

type ClusterCreationArgs struct {
	AccountRolePrefix                    string             `json:"account_role_prefix,omitempty"`
	OCMENV                               string             `json:"rhcs_environment,omitempty"`
	ClusterName                          string             `json:"cluster_name,omitempty"`
	OperatorRolePrefix                   string             `json:"operator_role_prefix,omitempty"`
	OpenshiftVersion                     string             `json:"openshift_version,omitempty"`
	URL                                  string             `json:"url,omitempty"`
	AWSRegion                            string             `json:"aws_region,omitempty"`
	AWSAvailabilityZones                 []string           `json:"aws_availability_zones,omitempty"`
	Replicas                             int                `json:"replicas,omitempty"`
	ChannelGroup                         string             `json:"channel_group,omitempty"`
	Ec2MetadataHttpTokens                string             `json:"ec2_metadata_http_tokens,omitempty"`
	PrivateLink                          bool               `json:"private_link,omitempty"`
	Private                              bool               `json:"private,omitempty"`
	Fips                                 bool               `json:"fips,omitempty"`
	Tagging                              map[string]string  `json:"tags,omitempty"`
	AuditLogForward                      bool               `json:"audit_log_forward,omitempty"`
	Autoscale                            bool               `json:"autoscaling_enabled,omitempty"`
	Etcd                                 bool               `json:"etcd_encryption,omitempty"`
	KmsKeyARN                            string             `json:"kms_key_arn,omitempty"`
	AWSSubnetIDs                         []string           `json:"aws_subnet_ids,omitempty"`
	ComputeMachineType                   string             `json:"compute_machine_type,omitempty"`
	DefaultMPLabels                      map[string]string  `json:"default_mp_labels,omitempty"`
	DisableSCPChecks                     bool               `json:"disable_scp_checks,omitempty"`
	MultiAZ                              bool               `json:"multi_az,omitempty"`
	CustomProperties                     map[string]string  `json:"custom_properties,omitempty"`
	WorkerDiskSize                       int                `json:"worker_disk_size,omitempty"`
	AdditionalComputeSecurityGroups      []string           `json:"additional_compute_security_groups,omitempty"`
	AdditionalInfraSecurityGroups        []string           `json:"additional_infra_security_groups,omitempty"`
	AdditionalControlPlaneSecurityGroups []string           `json:"additional_control_plane_security_groups,omitempty"`
	MachineCIDR                          string             `json:"machine_cidr,omitempty"`
	OIDCConfigID                         string             `json:"oidc_config_id,omitempty"`
	AdminCredentials                     map[string]string  `json:"admin_credentials,omitempty"`
	DisableUWM                           bool               `json:"disable_workload_monitoring,omitempty"`
	Proxy                                *Proxy             `json:"proxy,omitempty"`
	UnifiedAccRolesPath                  string             `json:"path,omitempty"`
	UpgradeAcknowledgementsFor           string             `json:"upgrade_acknowledgements_for,omitempty"`
	BaseDnsDomain                        string             `json:"base_dns_domain,omitempty"`
	PrivateHostedZone                    *PrivateHostedZone `json:"private_hosted_zone,omitempty"`
}

type ClusterOutput added in v1.5.0

type ClusterOutput struct {
	ClusterID                            string   `json:"cluster_id,omitempty"`
	ClusterName                          string   `json:"name,omitempty"`
	AdditionalComputeSecurityGroups      []string `json:"additional_compute_security_groups,omitempty"`
	AdditionalInfraSecurityGroups        []string `json:"additional_infra_security_groups,omitempty"`
	AdditionalControlPlaneSecurityGroups []string `json:"additional_control_plane_security_groups,omitempty"`
}

Just a placeholder, not research what to output yet.

type ClusterService

type ClusterService struct {
	CreationArgs *ClusterCreationArgs
	ManifestDir  string
	Context      context.Context
}

func NewClusterService

func NewClusterService(manifestDir string) (*ClusterService, error)

func (*ClusterService) Apply added in v1.5.0

func (creator *ClusterService) Apply(createArgs *ClusterCreationArgs, recordtfvars bool, tfvarsDeletion bool, extraArgs ...string) error

func (*ClusterService) Destroy

func (creator *ClusterService) Destroy(createArgs *ClusterCreationArgs, extraArgs ...string) (string, error)

func (*ClusterService) Init

func (creator *ClusterService) Init(manifestDir string) error

func (*ClusterService) Output

func (creator *ClusterService) Output() (*ClusterOutput, error)

func (*ClusterService) Plan added in v1.5.0

func (creator *ClusterService) Plan(planargs *ClusterCreationArgs, extraArgs ...string) (string, error)

type DnsDomainArgs added in v1.5.0

type DnsDomainArgs struct {
	ID string `json:"id,omitempty"`
}

type DnsDomainOutput added in v1.6.0

type DnsDomainOutput struct {
	DnsDomainId string `json:"dns_domain_id,omitempty"`
}

type DnsService added in v1.5.0

type DnsService struct {
	CreationArgs *DnsDomainArgs
	ManifestDir  string
	Context      context.Context
}

func NewDnsDomainService added in v1.5.0

func NewDnsDomainService(manifestDir ...string) (*DnsService, error)

func (*DnsService) Create added in v1.5.0

func (dns *DnsService) Create(createArgs *DnsDomainArgs, extraArgs ...string) error

func (*DnsService) Destroy added in v1.5.0

func (dns *DnsService) Destroy(createArgs ...*DnsDomainArgs) error

func (*DnsService) Init added in v1.5.0

func (dns *DnsService) Init(manifestDirs ...string) error

func (*DnsService) Output added in v1.6.0

func (dns *DnsService) Output() (DnsDomainOutput, error)

type IDPArgs added in v1.4.0

type IDPArgs struct {
	ClusterID     string        `json:"cluster_id,omitempty"`
	Name          string        `json:"name,omitempty"`
	ID            string        `json:"id,omitempty"`
	OCMENV        string        `json:"ocm_environment,omitempty"`
	URL           string        `json:"url,omitempty"`
	CA            string        `json:"ca,omitempty"`
	Attributes    interface{}   `json:"attributes,omitempty"`
	ClientID      string        `json:"client_id,omitempty"`
	ClientSecret  string        `json:"client_secret,omitempty"`
	Organizations []string      `json:"organizations,omitempty"`
	HostedDomain  string        `json:"hosted_domain,omitempty"`
	Insecure      bool          `json:"insecure,omitempty"`
	MappingMethod string        `json:"mapping_method,omitempty"`
	HtpasswdUsers []interface{} `json:"htpasswd_users,omitempty"`
}

type IDPOutput added in v1.4.0

type IDPOutput struct {
	ID string `json:"idp_id,omitempty"`
}

for now holds only ID, additional vars might be needed in the future

type IDPService added in v1.4.0

type IDPService struct {
	CreationArgs *IDPArgs
	ManifestDir  string
	Context      context.Context
}

func NewIDPService added in v1.4.0

func NewIDPService(manifestDir ...string) *IDPService

func (*IDPService) Apply added in v1.5.0

func (idp *IDPService) Apply(createArgs *IDPArgs, recordtfvars bool, extraArgs ...string) error

func (*IDPService) Destroy added in v1.4.0

func (idp *IDPService) Destroy(createArgs ...*IDPArgs) error

func (*IDPService) Init added in v1.4.0

func (idp *IDPService) Init(manifestDirs ...string) error

func (*IDPService) Output added in v1.4.0

func (idp *IDPService) Output() (IDPOutput, error)

type ImportArgs added in v1.5.0

type ImportArgs struct {
	URL          string `json:"url,omitempty"`
	ResourceKind string `json:"resource_kind,omitempty"`
	ResourceName string `json:"resource_name,omitempty"`
	ClusterID    string `json:"cluster_id,omitempty"`
	ObjectName   string `json:"obj_name,omitempty"`
}

type ImportService added in v1.5.0

type ImportService struct {
	CreationArgs *ImportArgs
	ManifestDir  string
	Context      context.Context
}

func NewImportService added in v1.5.0

func NewImportService(manifestDir ...string) *ImportService

func (*ImportService) Destroy added in v1.5.1

func (importService *ImportService) Destroy(createArgs ...*ImportArgs) (output string, err error)

func (*ImportService) Import added in v1.5.0

func (importService *ImportService) Import(importArgs *ImportArgs, extraArgs ...string) error

func (*ImportService) InitImport added in v1.5.0

func (importTF *ImportService) InitImport(manifestDirs ...string) error

func (*ImportService) ShowState added in v1.5.0

func (importService *ImportService) ShowState(importArgs *ImportArgs) (string, error)

type KMSArgs added in v1.5.1

type KMSArgs struct {
	KMSName           string `json:"kms_name,omitempty"`
	AWSRegion         string `json:"aws_region,omitempty"`
	AccountRolePrefix string `json:"account_role_prefix,omitempty"`
	AccountRolePath   string `json:"path,omitempty"`
	TagKey            string `json:"tag_key,omitempty"`
	TagValue          string `json:"tag_value,omitempty"`
	TagDescription    string `json:"tag_description,omitempty"`
	HCP               bool   `json:"hcp,omitempty"`
}

type KMSOutput added in v1.5.1

type KMSOutput struct {
	KeyARN string `json:"arn,omitempty"`
}

type KMSService added in v1.5.1

type KMSService struct {
	CreationArgs *KMSArgs
	ManifestDir  string
	Context      context.Context
}

func NewKMSService added in v1.5.1

func NewKMSService(manifestDir ...string) (*KMSService, error)

func (*KMSService) Apply added in v1.5.1

func (kms *KMSService) Apply(createArgs *KMSArgs, recordtfvars bool, extraArgs ...string) error

func (*KMSService) Destroy added in v1.5.1

func (kms *KMSService) Destroy(createArgs ...*KMSArgs) error

func (*KMSService) Init added in v1.5.1

func (kms *KMSService) Init(manifestDirs ...string) error

func (*KMSService) Output added in v1.5.1

func (kms *KMSService) Output() (KMSOutput, error)

type KubeletConfigArgs added in v1.5.1

type KubeletConfigArgs struct {
	URL          string `json:"url,omitempty"`
	Cluster      string `json:"cluster,omitempty"`
	PodPidsLimit int    `json:"pod_pids_limit,omitempty"`
}

type KubeletConfigOutput added in v1.5.1

type KubeletConfigOutput struct {
	Cluster      string `json:"cluster,omitempty"`
	PodPidsLimit int    `json:"pod_pids_limit,omitempty"`
}

type KubeletConfigService added in v1.5.1

type KubeletConfigService struct {
	CreationArgs *KubeletConfigArgs
	ManifestDir  string
	Context      context.Context
}

func NewKubeletConfigService added in v1.5.1

func NewKubeletConfigService(manifestDir ...string) (*KubeletConfigService, error)

func (*KubeletConfigService) Apply added in v1.5.1

func (kc *KubeletConfigService) Apply(createArgs *KubeletConfigArgs, recordtfvars bool, extraArgs ...string) (*KubeletConfigOutput, error)

func (*KubeletConfigService) Destroy added in v1.5.1

func (kc *KubeletConfigService) Destroy(createArgs ...*KubeletConfigArgs) (string, error)

func (*KubeletConfigService) Init added in v1.5.1

func (kc *KubeletConfigService) Init(manifestDirs ...string) error

func (*KubeletConfigService) Output added in v1.5.1

func (*KubeletConfigService) Plan added in v1.5.1

func (kc *KubeletConfigService) Plan(createArgs *KubeletConfigArgs, extraArgs ...string) (string, error)

type MachinePoolArgs

type MachinePoolArgs struct {
	Cluster                  string               `json:"cluster,omitempty"`
	OCMENV                   string               `json:"ocm_environment,omitempty"`
	Name                     *string              `json:"name,omitempty"`
	URL                      string               `json:"url,omitempty"`
	MachineType              *string              `json:"machine_type,omitempty"`
	Replicas                 *int                 `json:"replicas,omitempty"`
	AutoscalingEnabled       *bool                `json:"autoscaling_enabled,omitempty"`
	UseSpotInstances         *bool                `json:"use_spot_instances,omitempty"`
	MaxReplicas              *int                 `json:"max_replicas,omitempty"`
	MinReplicas              *int                 `json:"min_replicas,omitempty"`
	MaxSpotPrice             *float64             `json:"max_spot_price,omitempty"`
	Labels                   *map[string]string   `json:"labels,omitempty"`
	Taints                   *[]map[string]string `json:"taints,omitempty"`
	ID                       *string              `json:"id,omitempty"`
	AvailabilityZone         *string              `json:"availability_zone,omitempty"`
	SubnetID                 *string              `json:"subnet_id,omitempty"`
	MultiAZ                  *bool                `json:"multi_availability_zone,omitempty"`
	DiskSize                 *int                 `json:"disk_size,omitempty"`
	AdditionalSecurityGroups *[]string            `json:"additional_security_groups,omitempty"`
}

func BuildDefaultMachinePoolArgsFromClusterState added in v1.5.0

func BuildDefaultMachinePoolArgsFromClusterState(clusterResource interface{}) (MachinePoolArgs, error)

func BuildDefaultMachinePoolArgsFromDefaultMachinePoolState added in v1.5.0

func BuildDefaultMachinePoolArgsFromDefaultMachinePoolState(defaultMachinePoolResource interface{}) (MachinePoolArgs, error)

func BuildMachinePoolArgsFromCSResponse added in v1.5.1

func BuildMachinePoolArgsFromCSResponse(machinePool *cmv1.MachinePool) MachinePoolArgs
    This func will return MachinePoolArgs with mapping the values from the backend
	    Name    done
		MachineType      				done
		Replicas         				done
		AutoscalingEnabled  			done
		UseSpotInstances     			done
		MaxReplicas       				done
		MinReplicas      				done
		MaxSpotPrice           			done
		Labels                			done
		Taints                			done
		ID                  		It's same with machinepool name and not required.
		AvailabilityZone     	    Todo
		SubnetID                	Todo
		MultiAZ                     not a part of CMS machinepool endpoint reponse till now
		DiskSize                 	done
		AdditionalSecurityGroups *[]string           done

type MachinePoolOutput

type MachinePoolOutput struct {
	ID                 string            `json:"machine_pool_id,omitempty"`
	Name               string            `json:"name,omitempty"`
	ClusterID          string            `json:"cluster_id,omitempty"`
	Replicas           int               `json:"replicas,omitempty"`
	MachineType        string            `json:"machine_type,omitempty"`
	AutoscalingEnabled bool              `json:"autoscaling_enabled,omitempty"`
	Labels             map[string]string `json:"labels,omitempty"`
}

type MachinePoolService

type MachinePoolService struct {
	CreationArgs *MachinePoolArgs
	ManifestDir  string
	Context      context.Context
}

func NewMachinePoolService

func NewMachinePoolService(manifestDir ...string) *MachinePoolService

func (*MachinePoolService) Apply added in v1.5.0

func (mp *MachinePoolService) Apply(createArgs *MachinePoolArgs, recordtfargs bool, extraArgs ...string) (string, error)

func (*MachinePoolService) Destroy

func (mp *MachinePoolService) Destroy(createArgs ...*MachinePoolArgs) (output string, err error)

func (*MachinePoolService) Init

func (mp *MachinePoolService) Init(manifestDirs ...string) error

func (*MachinePoolService) MagicImport added in v1.5.0

func (mp *MachinePoolService) MagicImport(createArgs *MachinePoolArgs, extraArgs ...string) error

func (*MachinePoolService) Output

func (mp *MachinePoolService) Output() (MachinePoolOutput, error)

func (*MachinePoolService) Plan added in v1.5.0

func (mp *MachinePoolService) Plan(createArgs *MachinePoolArgs, extraArgs ...string) (string, error)

type OIDCProviderOperatorRolesArgs added in v1.4.0

type OIDCProviderOperatorRolesArgs struct {
	AccountRolePrefix   string `json:"account_role_prefix,omitempty"`
	OperatorRolePrefix  string `json:"operator_role_prefix,omitempty"`
	URL                 string `json:"url,omitempty"`
	OIDCConfig          string `json:"oidc_config,omitempty"`
	AWSRegion           string `json:"aws_region,omitempty"`
	OCMENV              string `json:"rhcs_environment,omitempty"`
	UnifiedAccRolesPath string `json:"path,omitempty"`
}

type OIDCProviderOperatorRolesOutput added in v1.4.0

type OIDCProviderOperatorRolesOutput struct {
	OIDCConfigID           string `json:"oidc_config_id,omitempty"`
	AccountRolePrefix      string `json:"account_role_prefix,omitempty"`
	OperatorRolePrefix     string `json:"operator_role_prefix,omitempty"`
	IngressOperatorRoleArn string `json:"ingress_operator_role_arn,omitempty"`
}

type OIDCProviderOperatorRolesService added in v1.4.0

type OIDCProviderOperatorRolesService struct {
	CreationArgs *OIDCProviderOperatorRolesArgs
	ManifestDir  string
	Context      context.Context
}

func NewOIDCProviderOperatorRolesService added in v1.4.0

func NewOIDCProviderOperatorRolesService(manifestDir ...string) (*OIDCProviderOperatorRolesService, error)

func (*OIDCProviderOperatorRolesService) Apply added in v1.5.0

func (oidcOP *OIDCProviderOperatorRolesService) Apply(createArgs *OIDCProviderOperatorRolesArgs, recordtfvars bool, extraArgs ...string) (
	*OIDCProviderOperatorRolesOutput, error)

func (*OIDCProviderOperatorRolesService) Destroy added in v1.4.0

func (*OIDCProviderOperatorRolesService) Init added in v1.4.0

func (oidcOP *OIDCProviderOperatorRolesService) Init(manifestDirs ...string) error

func (*OIDCProviderOperatorRolesService) Output added in v1.4.0

type PrivateHostedZone added in v1.6.0

type PrivateHostedZone struct {
	ID      string `json:"id,omitempty"`
	RoleArn string `json:"role_arn,omitempty"`
}

type Proxy added in v1.5.0

type Proxy struct {
	HTTPProxy             string `json:"http_proxy,omitempty"`
	HTTPSProxy            string `json:"https_proxy,omitempty"`
	AdditionalTrustBundle string `json:"additional_trust_bundle,omitempty"`
	NoProxy               string `json:"no_proxy,omitempty"`
}

type ProxyArgs added in v1.5.1

type ProxyArgs struct {
	Region              string `json:"aws_region,omitempty"`
	VPCID               string `json:"vpc_id,omitempty"`
	PublicSubnetID      string `json:"subnet_public_id,omitempty"`
	TrustBundleFilePath string `json:"trust_bundle_path,omitempty"`
}

type ProxyOutput added in v1.5.1

type ProxyOutput struct {
	HttpProxy             string `json:"http_proxy,omitempty"`
	HttpsProxy            string `json:"https_proxy,omitempty"`
	NoProxy               string `json:"no_proxy,omitempty"`
	AdditionalTrustBundle string `json:"additional_trust_bundle,omitempty"`
}

for now holds only ID, additional vars might be needed in the future

type ProxyService added in v1.5.1

type ProxyService struct {
	CreationArgs *ProxyArgs
	ManifestDir  string
	Context      context.Context
}

func NewProxyService added in v1.5.1

func NewProxyService(manifestDir ...string) (*ProxyService, error)

func (*ProxyService) Apply added in v1.5.1

func (proxy *ProxyService) Apply(createArgs *ProxyArgs, recordtfvars bool, extraArgs ...string) error

func (*ProxyService) Destroy added in v1.5.1

func (proxy *ProxyService) Destroy(createArgs ...*ProxyArgs) error

func (*ProxyService) Init added in v1.5.1

func (proxy *ProxyService) Init(manifestDirs ...string) error

func (*ProxyService) Output added in v1.5.1

func (proxy *ProxyService) Output() (ProxyOutput, error)

type RhcsInfoArgs added in v1.5.0

type RhcsInfoArgs struct {
	ID           string `json:"id,omitempty"`
	ResourceName string `json:"resource_name,omitempty"`
	ResourceKind string `json:"resource_kind,omitempty"`
}

type RhcsInfoService added in v1.5.0

type RhcsInfoService struct {
	CreationArgs *RhcsInfoArgs
	ManifestDir  string
	Context      context.Context
}

func NewRhcsInfoService added in v1.5.0

func NewRhcsInfoService(manifestDir ...string) *RhcsInfoService

func (*RhcsInfoService) Create added in v1.5.0

func (rhcsInfo *RhcsInfoService) Create(createArgs *RhcsInfoArgs, extraArgs ...string) error

func (*RhcsInfoService) Destroy added in v1.5.0

func (rhcsInfo *RhcsInfoService) Destroy(createArgs ...*RhcsInfoArgs) error

func (*RhcsInfoService) Init added in v1.5.0

func (rhcsInfo *RhcsInfoService) Init(manifestDirs ...string) error

func (*RhcsInfoService) ShowState added in v1.5.0

func (rhcsInfoService *RhcsInfoService) ShowState(rhcsInfoArgs *RhcsInfoArgs) (string, error)

type SecurityGroupArgs added in v1.5.0

type SecurityGroupArgs struct {
	NamePrefix  string `json:"name_prefix,omitempty"`
	SGNumber    int    `json:"sg_number,omitempty"`
	VPCID       string `json:"vpc_id,omitempty"`
	Description string `json:"description,omitempty"`
	AWSRegion   string `json:"aws_region,omitempty"`
}

type SecurityGroupService added in v1.5.0

type SecurityGroupService struct {
	CreationArgs *SecurityGroupArgs
	ManifestDir  string
	Context      context.Context
}

func NewSecurityGroupService added in v1.5.0

func NewSecurityGroupService(manifestDir ...string) *SecurityGroupService

func (*SecurityGroupService) Apply added in v1.5.0

func (sgs *SecurityGroupService) Apply(createArgs *SecurityGroupArgs, recordtfvars bool, extraArgs ...string) error

func (*SecurityGroupService) Destroy added in v1.5.0

func (sgs *SecurityGroupService) Destroy(createArgs ...*SecurityGroupArgs) error

func (*SecurityGroupService) Init added in v1.5.0

func (sgs *SecurityGroupService) Init(manifestDirs ...string) error

func (*SecurityGroupService) Output added in v1.5.0

type SecurityGroupsOutput added in v1.5.0

type SecurityGroupsOutput struct {
	SGIDs []string `json:"sg_ids,omitempty"`
}

type SharedVpcPolicyAndHostedZoneArgs added in v1.6.0

type SharedVpcPolicyAndHostedZoneArgs struct {
	SharedVpcAWSSharedCredentialsFiles []string `json:"shared_vpc_aws_shared_credentials_files,omitempty"`
	Region                             string   `json:"region,omitempty"`
	ClusterName                        string   `json:"cluster_name,omitempty"`
	DnsDomainId                        string   `json:"dns_domain_id,omitempty"`
	IngressOperatorRoleArn             string   `json:"ingress_operator_role_arn,omitempty"`
	InstallerRoleArn                   string   `json:"installer_role_arn,omitempty"`
	ClusterAWSAccount                  string   `json:"cluster_aws_account,omitempty"`
	VpcId                              string   `json:"vpc_id,omitempty"`
	Subnets                            []string `json:"subnets,omitempty"`
}

type SharedVpcPolicyAndHostedZoneOutput added in v1.6.0

type SharedVpcPolicyAndHostedZoneOutput struct {
	SharedRole   string   `json:"shared_role,omitempty"`
	HostedZoneId string   `json:"hosted_zone_id,omitempty"`
	AZs          []string `json:"azs,omitempty"`
}

type SharedVpcPolicyAndHostedZoneService added in v1.6.0

type SharedVpcPolicyAndHostedZoneService struct {
	CreationArgs *SharedVpcPolicyAndHostedZoneArgs
	ManifestDir  string
	Context      context.Context
}

func NewSharedVpcPolicyAndHostedZoneService added in v1.6.0

func NewSharedVpcPolicyAndHostedZoneService(manifestDir ...string) (*SharedVpcPolicyAndHostedZoneService, error)

func (*SharedVpcPolicyAndHostedZoneService) Apply added in v1.6.0

func (s *SharedVpcPolicyAndHostedZoneService) Apply(createArgs *SharedVpcPolicyAndHostedZoneArgs, recordtfvars bool, extraArgs ...string) error

func (*SharedVpcPolicyAndHostedZoneService) Destroy added in v1.6.0

func (*SharedVpcPolicyAndHostedZoneService) Init added in v1.6.0

func (s *SharedVpcPolicyAndHostedZoneService) Init(manifestDirs ...string) error

func (*SharedVpcPolicyAndHostedZoneService) Output added in v1.6.0

type VPCArgs

type VPCArgs struct {
	Name                      string   `json:"name,omitempty"`
	AWSRegion                 string   `json:"aws_region,omitempty"`
	VPCCIDR                   string   `json:"vpc_cidr,omitempty"`
	MultiAZ                   bool     `json:"multi_az,omitempty"`
	AZIDs                     []string `json:"az_ids,omitempty"`
	HCP                       bool     `json:"hcp,omitempty"`
	AWSSharedCredentialsFiles []string `json:"aws_shared_credentials_files,omitempty"`
}

type VPCOutput added in v1.4.0

type VPCOutput struct {
	ClusterPublicSubnets  []string `json:"cluster-public-subnet,omitempty"`
	VPCCIDR               string   `json:"vpc-cidr,omitempty"`
	ClusterPrivateSubnets []string `json:"cluster-private-subnet,omitempty"`
	AZs                   []string `json:"azs,omitempty"`
	NodePrivateSubnets    []string `json:"node-private-subnet,omitempty"`
	VPCID                 string   `json:"vpc_id,omitempty"`
}

type VPCService

type VPCService struct {
	CreationArgs *VPCArgs
	ManifestDir  string
	Context      context.Context
}

func NewVPCService

func NewVPCService(manifestDir ...string) *VPCService

func (*VPCService) Apply added in v1.5.0

func (vpc *VPCService) Apply(createArgs *VPCArgs, recordtfvars bool, extraArgs ...string) error

func (*VPCService) Destroy

func (vpc *VPCService) Destroy(createArgs ...*VPCArgs) error

func (*VPCService) Init

func (vpc *VPCService) Init(manifestDirs ...string) error

func (*VPCService) Output

func (vpc *VPCService) Output() (*VPCOutput, error)

type VPCTagArgs added in v1.5.0

type VPCTagArgs struct {
	AWSRegion string   `json:"aws_region,omitempty"`
	IDs       []string `json:"ids,omitempty"`
	TagKey    string   `json:"key,omitempty"`
	TagValue  string   `json:"value,omitempty"`
}

type VPCTagService added in v1.5.0

type VPCTagService struct {
	CreationArgs *VPCTagArgs
	ManifestDir  string
	Context      context.Context
}

func NewVPCTagService added in v1.5.0

func NewVPCTagService(manifestDir ...string) *VPCTagService

func (*VPCTagService) Apply added in v1.5.0

func (vpctag *VPCTagService) Apply(createArgs *VPCTagArgs, recordtfvars bool, extraArgs ...string) error

func (*VPCTagService) Destroy added in v1.5.0

func (vpctag *VPCTagService) Destroy(createArgs ...*VPCTagArgs) error

func (*VPCTagService) Init added in v1.5.0

func (vpctag *VPCTagService) Init(manifestDirs ...string) error

Jump to

Keyboard shortcuts

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