google_container_azure_cluster

package
v0.0.0-...-4deecce Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// AzureRegion: string, required
	AzureRegion terra.StringValue `hcl:"azure_region,attr" validate:"required"`
	// Client: string, optional
	Client terra.StringValue `hcl:"client,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// ResourceGroupId: string, required
	ResourceGroupId terra.StringValue `hcl:"resource_group_id,attr" validate:"required"`
	// Authorization: required
	Authorization *Authorization `hcl:"authorization,block" validate:"required"`
	// AzureServicesAuthentication: optional
	AzureServicesAuthentication *AzureServicesAuthentication `hcl:"azure_services_authentication,block"`
	// ControlPlane: required
	ControlPlane *ControlPlane `hcl:"control_plane,block" validate:"required"`
	// Fleet: required
	Fleet *Fleet `hcl:"fleet,block" validate:"required"`
	// LoggingConfig: optional
	LoggingConfig *LoggingConfig `hcl:"logging_config,block"`
	// Networking: required
	Networking *Networking `hcl:"networking,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_container_azure_cluster.

type Authorization

type Authorization struct {
	// AuthorizationAdminGroups: min=0
	AdminGroups []AuthorizationAdminGroups `hcl:"admin_groups,block" validate:"min=0"`
	// AuthorizationAdminUsers: min=1
	AdminUsers []AuthorizationAdminUsers `hcl:"admin_users,block" validate:"min=1"`
}

type AuthorizationAdminGroups

type AuthorizationAdminGroups struct {
	// Group: string, required
	Group terra.StringValue `hcl:"group,attr" validate:"required"`
}

type AuthorizationAdminGroupsAttributes

type AuthorizationAdminGroupsAttributes struct {
	// contains filtered or unexported fields
}

func (AuthorizationAdminGroupsAttributes) Group

func (AuthorizationAdminGroupsAttributes) InternalRef

func (AuthorizationAdminGroupsAttributes) InternalTokens

func (AuthorizationAdminGroupsAttributes) InternalWithRef

type AuthorizationAdminGroupsState

type AuthorizationAdminGroupsState struct {
	Group string `json:"group"`
}

type AuthorizationAdminUsers

type AuthorizationAdminUsers struct {
	// Username: string, required
	Username terra.StringValue `hcl:"username,attr" validate:"required"`
}

type AuthorizationAdminUsersAttributes

type AuthorizationAdminUsersAttributes struct {
	// contains filtered or unexported fields
}

func (AuthorizationAdminUsersAttributes) InternalRef

func (AuthorizationAdminUsersAttributes) InternalTokens

func (au AuthorizationAdminUsersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthorizationAdminUsersAttributes) InternalWithRef

func (AuthorizationAdminUsersAttributes) Username

type AuthorizationAdminUsersState

type AuthorizationAdminUsersState struct {
	Username string `json:"username"`
}

type AuthorizationAttributes

type AuthorizationAttributes struct {
	// contains filtered or unexported fields
}

func (AuthorizationAttributes) AdminGroups

func (AuthorizationAttributes) AdminUsers

func (AuthorizationAttributes) InternalRef

func (a AuthorizationAttributes) InternalRef() (terra.Reference, error)

func (AuthorizationAttributes) InternalTokens

func (a AuthorizationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthorizationAttributes) InternalWithRef

type AuthorizationState

type AuthorizationState struct {
	AdminGroups []AuthorizationAdminGroupsState `json:"admin_groups"`
	AdminUsers  []AuthorizationAdminUsersState  `json:"admin_users"`
}

type AzureServicesAuthentication

type AzureServicesAuthentication struct {
	// ApplicationId: string, required
	ApplicationId terra.StringValue `hcl:"application_id,attr" validate:"required"`
	// TenantId: string, required
	TenantId terra.StringValue `hcl:"tenant_id,attr" validate:"required"`
}

type AzureServicesAuthenticationAttributes

type AzureServicesAuthenticationAttributes struct {
	// contains filtered or unexported fields
}

func (AzureServicesAuthenticationAttributes) ApplicationId

func (AzureServicesAuthenticationAttributes) InternalRef

func (AzureServicesAuthenticationAttributes) InternalTokens

func (AzureServicesAuthenticationAttributes) InternalWithRef

func (AzureServicesAuthenticationAttributes) TenantId

type AzureServicesAuthenticationState

type AzureServicesAuthenticationState struct {
	ApplicationId string `json:"application_id"`
	TenantId      string `json:"tenant_id"`
}

type ControlPlane

type ControlPlane struct {
	// SubnetId: string, required
	SubnetId terra.StringValue `hcl:"subnet_id,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
	// VmSize: string, optional
	VmSize terra.StringValue `hcl:"vm_size,attr"`
	// ControlPlaneDatabaseEncryption: optional
	DatabaseEncryption *ControlPlaneDatabaseEncryption `hcl:"database_encryption,block"`
	// ControlPlaneMainVolume: optional
	MainVolume *ControlPlaneMainVolume `hcl:"main_volume,block"`
	// ControlPlaneProxyConfig: optional
	ProxyConfig *ControlPlaneProxyConfig `hcl:"proxy_config,block"`
	// ControlPlaneReplicaPlacements: min=0
	ReplicaPlacements []ControlPlaneReplicaPlacements `hcl:"replica_placements,block" validate:"min=0"`
	// ControlPlaneRootVolume: optional
	RootVolume *ControlPlaneRootVolume `hcl:"root_volume,block"`
	// ControlPlaneSshConfig: required
	SshConfig *ControlPlaneSshConfig `hcl:"ssh_config,block" validate:"required"`
}

type ControlPlaneAttributes

type ControlPlaneAttributes struct {
	// contains filtered or unexported fields
}

func (ControlPlaneAttributes) DatabaseEncryption

func (ControlPlaneAttributes) InternalRef

func (cp ControlPlaneAttributes) InternalRef() (terra.Reference, error)

func (ControlPlaneAttributes) InternalTokens

func (cp ControlPlaneAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ControlPlaneAttributes) InternalWithRef

func (ControlPlaneAttributes) MainVolume

func (ControlPlaneAttributes) ProxyConfig

func (ControlPlaneAttributes) ReplicaPlacements

func (ControlPlaneAttributes) RootVolume

func (ControlPlaneAttributes) SshConfig

func (ControlPlaneAttributes) SubnetId

func (ControlPlaneAttributes) Tags

func (ControlPlaneAttributes) Version

func (ControlPlaneAttributes) VmSize

type ControlPlaneDatabaseEncryption

type ControlPlaneDatabaseEncryption struct {
	// KeyId: string, required
	KeyId terra.StringValue `hcl:"key_id,attr" validate:"required"`
}

type ControlPlaneDatabaseEncryptionAttributes

type ControlPlaneDatabaseEncryptionAttributes struct {
	// contains filtered or unexported fields
}

func (ControlPlaneDatabaseEncryptionAttributes) InternalRef

func (ControlPlaneDatabaseEncryptionAttributes) InternalTokens

func (ControlPlaneDatabaseEncryptionAttributes) InternalWithRef

func (ControlPlaneDatabaseEncryptionAttributes) KeyId

type ControlPlaneDatabaseEncryptionState

type ControlPlaneDatabaseEncryptionState struct {
	KeyId string `json:"key_id"`
}

type ControlPlaneMainVolume

type ControlPlaneMainVolume struct {
	// SizeGib: number, optional
	SizeGib terra.NumberValue `hcl:"size_gib,attr"`
}

type ControlPlaneMainVolumeAttributes

type ControlPlaneMainVolumeAttributes struct {
	// contains filtered or unexported fields
}

func (ControlPlaneMainVolumeAttributes) InternalRef

func (ControlPlaneMainVolumeAttributes) InternalTokens

func (mv ControlPlaneMainVolumeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ControlPlaneMainVolumeAttributes) InternalWithRef

func (ControlPlaneMainVolumeAttributes) SizeGib

type ControlPlaneMainVolumeState

type ControlPlaneMainVolumeState struct {
	SizeGib float64 `json:"size_gib"`
}

type ControlPlaneProxyConfig

type ControlPlaneProxyConfig struct {
	// ResourceGroupId: string, required
	ResourceGroupId terra.StringValue `hcl:"resource_group_id,attr" validate:"required"`
	// SecretId: string, required
	SecretId terra.StringValue `hcl:"secret_id,attr" validate:"required"`
}

type ControlPlaneProxyConfigAttributes

type ControlPlaneProxyConfigAttributes struct {
	// contains filtered or unexported fields
}

func (ControlPlaneProxyConfigAttributes) InternalRef

func (ControlPlaneProxyConfigAttributes) InternalTokens

func (pc ControlPlaneProxyConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ControlPlaneProxyConfigAttributes) InternalWithRef

func (ControlPlaneProxyConfigAttributes) ResourceGroupId

func (ControlPlaneProxyConfigAttributes) SecretId

type ControlPlaneProxyConfigState

type ControlPlaneProxyConfigState struct {
	ResourceGroupId string `json:"resource_group_id"`
	SecretId        string `json:"secret_id"`
}

type ControlPlaneReplicaPlacements

type ControlPlaneReplicaPlacements struct {
	// AzureAvailabilityZone: string, required
	AzureAvailabilityZone terra.StringValue `hcl:"azure_availability_zone,attr" validate:"required"`
	// SubnetId: string, required
	SubnetId terra.StringValue `hcl:"subnet_id,attr" validate:"required"`
}

type ControlPlaneReplicaPlacementsAttributes

type ControlPlaneReplicaPlacementsAttributes struct {
	// contains filtered or unexported fields
}

func (ControlPlaneReplicaPlacementsAttributes) AzureAvailabilityZone

func (rp ControlPlaneReplicaPlacementsAttributes) AzureAvailabilityZone() terra.StringValue

func (ControlPlaneReplicaPlacementsAttributes) InternalRef

func (ControlPlaneReplicaPlacementsAttributes) InternalTokens

func (ControlPlaneReplicaPlacementsAttributes) InternalWithRef

func (ControlPlaneReplicaPlacementsAttributes) SubnetId

type ControlPlaneReplicaPlacementsState

type ControlPlaneReplicaPlacementsState struct {
	AzureAvailabilityZone string `json:"azure_availability_zone"`
	SubnetId              string `json:"subnet_id"`
}

type ControlPlaneRootVolume

type ControlPlaneRootVolume struct {
	// SizeGib: number, optional
	SizeGib terra.NumberValue `hcl:"size_gib,attr"`
}

type ControlPlaneRootVolumeAttributes

type ControlPlaneRootVolumeAttributes struct {
	// contains filtered or unexported fields
}

func (ControlPlaneRootVolumeAttributes) InternalRef

func (ControlPlaneRootVolumeAttributes) InternalTokens

func (rv ControlPlaneRootVolumeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ControlPlaneRootVolumeAttributes) InternalWithRef

func (ControlPlaneRootVolumeAttributes) SizeGib

type ControlPlaneRootVolumeState

type ControlPlaneRootVolumeState struct {
	SizeGib float64 `json:"size_gib"`
}

type ControlPlaneSshConfig

type ControlPlaneSshConfig struct {
	// AuthorizedKey: string, required
	AuthorizedKey terra.StringValue `hcl:"authorized_key,attr" validate:"required"`
}

type ControlPlaneSshConfigAttributes

type ControlPlaneSshConfigAttributes struct {
	// contains filtered or unexported fields
}

func (ControlPlaneSshConfigAttributes) AuthorizedKey

func (ControlPlaneSshConfigAttributes) InternalRef

func (ControlPlaneSshConfigAttributes) InternalTokens

func (sc ControlPlaneSshConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ControlPlaneSshConfigAttributes) InternalWithRef

type ControlPlaneSshConfigState

type ControlPlaneSshConfigState struct {
	AuthorizedKey string `json:"authorized_key"`
}

type ControlPlaneState

type ControlPlaneState struct {
	SubnetId           string                                `json:"subnet_id"`
	Tags               map[string]string                     `json:"tags"`
	Version            string                                `json:"version"`
	VmSize             string                                `json:"vm_size"`
	DatabaseEncryption []ControlPlaneDatabaseEncryptionState `json:"database_encryption"`
	MainVolume         []ControlPlaneMainVolumeState         `json:"main_volume"`
	ProxyConfig        []ControlPlaneProxyConfigState        `json:"proxy_config"`
	ReplicaPlacements  []ControlPlaneReplicaPlacementsState  `json:"replica_placements"`
	RootVolume         []ControlPlaneRootVolumeState         `json:"root_volume"`
	SshConfig          []ControlPlaneSshConfigState          `json:"ssh_config"`
}

type Fleet

type Fleet struct {
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
}

type FleetAttributes

type FleetAttributes struct {
	// contains filtered or unexported fields
}

func (FleetAttributes) InternalRef

func (f FleetAttributes) InternalRef() (terra.Reference, error)

func (FleetAttributes) InternalTokens

func (f FleetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FleetAttributes) InternalWithRef

func (f FleetAttributes) InternalWithRef(ref terra.Reference) FleetAttributes

func (FleetAttributes) Membership

func (f FleetAttributes) Membership() terra.StringValue

func (FleetAttributes) Project

func (f FleetAttributes) Project() terra.StringValue

type FleetState

type FleetState struct {
	Membership string `json:"membership"`
	Project    string `json:"project"`
}

type LoggingConfig

type LoggingConfig struct {
	// LoggingConfigComponentConfig: optional
	ComponentConfig *LoggingConfigComponentConfig `hcl:"component_config,block"`
}

type LoggingConfigAttributes

type LoggingConfigAttributes struct {
	// contains filtered or unexported fields
}

func (LoggingConfigAttributes) ComponentConfig

func (LoggingConfigAttributes) InternalRef

func (lc LoggingConfigAttributes) InternalRef() (terra.Reference, error)

func (LoggingConfigAttributes) InternalTokens

func (lc LoggingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoggingConfigAttributes) InternalWithRef

type LoggingConfigComponentConfig

type LoggingConfigComponentConfig struct {
	// EnableComponents: list of string, optional
	EnableComponents terra.ListValue[terra.StringValue] `hcl:"enable_components,attr"`
}

type LoggingConfigComponentConfigAttributes

type LoggingConfigComponentConfigAttributes struct {
	// contains filtered or unexported fields
}

func (LoggingConfigComponentConfigAttributes) EnableComponents

func (LoggingConfigComponentConfigAttributes) InternalRef

func (LoggingConfigComponentConfigAttributes) InternalTokens

func (LoggingConfigComponentConfigAttributes) InternalWithRef

type LoggingConfigComponentConfigState

type LoggingConfigComponentConfigState struct {
	EnableComponents []string `json:"enable_components"`
}

type LoggingConfigState

type LoggingConfigState struct {
	ComponentConfig []LoggingConfigComponentConfigState `json:"component_config"`
}

type Networking

type Networking struct {
	// PodAddressCidrBlocks: list of string, required
	PodAddressCidrBlocks terra.ListValue[terra.StringValue] `hcl:"pod_address_cidr_blocks,attr" validate:"required"`
	// ServiceAddressCidrBlocks: list of string, required
	ServiceAddressCidrBlocks terra.ListValue[terra.StringValue] `hcl:"service_address_cidr_blocks,attr" validate:"required"`
	// VirtualNetworkId: string, required
	VirtualNetworkId terra.StringValue `hcl:"virtual_network_id,attr" validate:"required"`
}

type NetworkingAttributes

type NetworkingAttributes struct {
	// contains filtered or unexported fields
}

func (NetworkingAttributes) InternalRef

func (n NetworkingAttributes) InternalRef() (terra.Reference, error)

func (NetworkingAttributes) InternalTokens

func (n NetworkingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkingAttributes) InternalWithRef

func (NetworkingAttributes) PodAddressCidrBlocks

func (n NetworkingAttributes) PodAddressCidrBlocks() terra.ListValue[terra.StringValue]

func (NetworkingAttributes) ServiceAddressCidrBlocks

func (n NetworkingAttributes) ServiceAddressCidrBlocks() terra.ListValue[terra.StringValue]

func (NetworkingAttributes) VirtualNetworkId

func (n NetworkingAttributes) VirtualNetworkId() terra.StringValue

type NetworkingState

type NetworkingState struct {
	PodAddressCidrBlocks     []string `json:"pod_address_cidr_blocks"`
	ServiceAddressCidrBlocks []string `json:"service_address_cidr_blocks"`
	VirtualNetworkId         string   `json:"virtual_network_id"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_container_azure_cluster.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcac *Resource) Attributes() googleContainerAzureClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gcac *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (gcac *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (gcac *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (gcac *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (gcac *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcac *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcac *Resource) State() (*googleContainerAzureClusterState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (gcac *Resource) StateMust() *googleContainerAzureClusterState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (gcac *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

type WorkloadIdentityConfigAttributes

type WorkloadIdentityConfigAttributes struct {
	// contains filtered or unexported fields
}

func (WorkloadIdentityConfigAttributes) IdentityProvider

func (wic WorkloadIdentityConfigAttributes) IdentityProvider() terra.StringValue

func (WorkloadIdentityConfigAttributes) InternalRef

func (WorkloadIdentityConfigAttributes) InternalTokens

func (wic WorkloadIdentityConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WorkloadIdentityConfigAttributes) InternalWithRef

func (WorkloadIdentityConfigAttributes) IssuerUri

func (WorkloadIdentityConfigAttributes) WorkloadPool

type WorkloadIdentityConfigState

type WorkloadIdentityConfigState struct {
	IdentityProvider string `json:"identity_provider"`
	IssuerUri        string `json:"issuer_uri"`
	WorkloadPool     string `json:"workload_pool"`
}

Jump to

Keyboard shortcuts

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