google_container_azure_node_pool

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"`
	// AzureAvailabilityZone: string, optional
	AzureAvailabilityZone terra.StringValue `hcl:"azure_availability_zone,attr"`
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// 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"`
	// SubnetId: string, required
	SubnetId terra.StringValue `hcl:"subnet_id,attr" validate:"required"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
	// Autoscaling: required
	Autoscaling *Autoscaling `hcl:"autoscaling,block" validate:"required"`
	// Config: required
	Config *Config `hcl:"config,block" validate:"required"`
	// Management: optional
	Management *Management `hcl:"management,block"`
	// MaxPodsConstraint: required
	MaxPodsConstraint *MaxPodsConstraint `hcl:"max_pods_constraint,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_container_azure_node_pool.

type Autoscaling

type Autoscaling struct {
	// MaxNodeCount: number, required
	MaxNodeCount terra.NumberValue `hcl:"max_node_count,attr" validate:"required"`
	// MinNodeCount: number, required
	MinNodeCount terra.NumberValue `hcl:"min_node_count,attr" validate:"required"`
}

type AutoscalingAttributes

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

func (AutoscalingAttributes) InternalRef

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

func (AutoscalingAttributes) InternalTokens

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

func (AutoscalingAttributes) InternalWithRef

func (AutoscalingAttributes) MaxNodeCount

func (a AutoscalingAttributes) MaxNodeCount() terra.NumberValue

func (AutoscalingAttributes) MinNodeCount

func (a AutoscalingAttributes) MinNodeCount() terra.NumberValue

type AutoscalingState

type AutoscalingState struct {
	MaxNodeCount float64 `json:"max_node_count"`
	MinNodeCount float64 `json:"min_node_count"`
}

type Config

type Config struct {
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// VmSize: string, optional
	VmSize terra.StringValue `hcl:"vm_size,attr"`
	// ConfigProxyConfig: optional
	ProxyConfig *ConfigProxyConfig `hcl:"proxy_config,block"`
	// ConfigRootVolume: optional
	RootVolume *ConfigRootVolume `hcl:"root_volume,block"`
	// ConfigSshConfig: required
	SshConfig *ConfigSshConfig `hcl:"ssh_config,block" validate:"required"`
}

type ConfigAttributes

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

func (ConfigAttributes) InternalRef

func (c ConfigAttributes) InternalRef() (terra.Reference, error)

func (ConfigAttributes) InternalTokens

func (c ConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigAttributes) InternalWithRef

func (c ConfigAttributes) InternalWithRef(ref terra.Reference) ConfigAttributes

func (ConfigAttributes) Labels

func (ConfigAttributes) ProxyConfig

func (ConfigAttributes) RootVolume

func (ConfigAttributes) SshConfig

func (ConfigAttributes) Tags

func (ConfigAttributes) VmSize

func (c ConfigAttributes) VmSize() terra.StringValue

type ConfigProxyConfig

type ConfigProxyConfig 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 ConfigProxyConfigAttributes

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

func (ConfigProxyConfigAttributes) InternalRef

func (pc ConfigProxyConfigAttributes) InternalRef() (terra.Reference, error)

func (ConfigProxyConfigAttributes) InternalTokens

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

func (ConfigProxyConfigAttributes) InternalWithRef

func (ConfigProxyConfigAttributes) ResourceGroupId

func (pc ConfigProxyConfigAttributes) ResourceGroupId() terra.StringValue

func (ConfigProxyConfigAttributes) SecretId

type ConfigProxyConfigState

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

type ConfigRootVolume

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

type ConfigRootVolumeAttributes

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

func (ConfigRootVolumeAttributes) InternalRef

func (rv ConfigRootVolumeAttributes) InternalRef() (terra.Reference, error)

func (ConfigRootVolumeAttributes) InternalTokens

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

func (ConfigRootVolumeAttributes) InternalWithRef

func (ConfigRootVolumeAttributes) SizeGib

type ConfigRootVolumeState

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

type ConfigSshConfig

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

type ConfigSshConfigAttributes

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

func (ConfigSshConfigAttributes) AuthorizedKey

func (sc ConfigSshConfigAttributes) AuthorizedKey() terra.StringValue

func (ConfigSshConfigAttributes) InternalRef

func (sc ConfigSshConfigAttributes) InternalRef() (terra.Reference, error)

func (ConfigSshConfigAttributes) InternalTokens

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

func (ConfigSshConfigAttributes) InternalWithRef

type ConfigSshConfigState

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

type ConfigState

type ConfigState struct {
	Labels      map[string]string        `json:"labels"`
	Tags        map[string]string        `json:"tags"`
	VmSize      string                   `json:"vm_size"`
	ProxyConfig []ConfigProxyConfigState `json:"proxy_config"`
	RootVolume  []ConfigRootVolumeState  `json:"root_volume"`
	SshConfig   []ConfigSshConfigState   `json:"ssh_config"`
}

type Management

type Management struct {
	// AutoRepair: bool, optional
	AutoRepair terra.BoolValue `hcl:"auto_repair,attr"`
}

type ManagementAttributes

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

func (ManagementAttributes) AutoRepair

func (m ManagementAttributes) AutoRepair() terra.BoolValue

func (ManagementAttributes) InternalRef

func (m ManagementAttributes) InternalRef() (terra.Reference, error)

func (ManagementAttributes) InternalTokens

func (m ManagementAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManagementAttributes) InternalWithRef

type ManagementState

type ManagementState struct {
	AutoRepair bool `json:"auto_repair"`
}

type MaxPodsConstraint

type MaxPodsConstraint struct {
	// MaxPodsPerNode: number, required
	MaxPodsPerNode terra.NumberValue `hcl:"max_pods_per_node,attr" validate:"required"`
}

type MaxPodsConstraintAttributes

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

func (MaxPodsConstraintAttributes) InternalRef

func (mpc MaxPodsConstraintAttributes) InternalRef() (terra.Reference, error)

func (MaxPodsConstraintAttributes) InternalTokens

func (mpc MaxPodsConstraintAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaxPodsConstraintAttributes) InternalWithRef

func (MaxPodsConstraintAttributes) MaxPodsPerNode

func (mpc MaxPodsConstraintAttributes) MaxPodsPerNode() terra.NumberValue

type MaxPodsConstraintState

type MaxPodsConstraintState struct {
	MaxPodsPerNode float64 `json:"max_pods_per_node"`
}

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_node_pool.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcanp *Resource) Attributes() googleContainerAzureNodePoolAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcanp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcanp *Resource) State() (*googleContainerAzureNodePoolState, bool)

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

func (*Resource) StateMust

func (gcanp *Resource) StateMust() *googleContainerAzureNodePoolState

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

func (*Resource) Type

func (gcanp *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"`
}

Jump to

Keyboard shortcuts

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