azurerm_kubernetes_flux_configuration

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 {
	// ClusterId: string, required
	ClusterId terra.StringValue `hcl:"cluster_id,attr" validate:"required"`
	// ContinuousReconciliationEnabled: bool, optional
	ContinuousReconciliationEnabled terra.BoolValue `hcl:"continuous_reconciliation_enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// Scope: string, optional
	Scope terra.StringValue `hcl:"scope,attr"`
	// BlobStorage: optional
	BlobStorage *BlobStorage `hcl:"blob_storage,block"`
	// Bucket: optional
	Bucket *Bucket `hcl:"bucket,block"`
	// GitRepository: optional
	GitRepository *GitRepository `hcl:"git_repository,block"`
	// Kustomizations: min=1
	Kustomizations []Kustomizations `hcl:"kustomizations,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_kubernetes_flux_configuration.

type BlobStorage

type BlobStorage struct {
	// AccountKey: string, optional
	AccountKey terra.StringValue `hcl:"account_key,attr"`
	// ContainerId: string, required
	ContainerId terra.StringValue `hcl:"container_id,attr" validate:"required"`
	// LocalAuthReference: string, optional
	LocalAuthReference terra.StringValue `hcl:"local_auth_reference,attr"`
	// SasToken: string, optional
	SasToken terra.StringValue `hcl:"sas_token,attr"`
	// SyncIntervalInSeconds: number, optional
	SyncIntervalInSeconds terra.NumberValue `hcl:"sync_interval_in_seconds,attr"`
	// TimeoutInSeconds: number, optional
	TimeoutInSeconds terra.NumberValue `hcl:"timeout_in_seconds,attr"`
	// BlobStorageManagedIdentity: optional
	ManagedIdentity *BlobStorageManagedIdentity `hcl:"managed_identity,block"`
	// BlobStorageServicePrincipal: optional
	ServicePrincipal *BlobStorageServicePrincipal `hcl:"service_principal,block"`
}

type BlobStorageAttributes

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

func (BlobStorageAttributes) AccountKey

func (bs BlobStorageAttributes) AccountKey() terra.StringValue

func (BlobStorageAttributes) ContainerId

func (bs BlobStorageAttributes) ContainerId() terra.StringValue

func (BlobStorageAttributes) InternalRef

func (bs BlobStorageAttributes) InternalRef() (terra.Reference, error)

func (BlobStorageAttributes) InternalTokens

func (bs BlobStorageAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BlobStorageAttributes) InternalWithRef

func (BlobStorageAttributes) LocalAuthReference

func (bs BlobStorageAttributes) LocalAuthReference() terra.StringValue

func (BlobStorageAttributes) ManagedIdentity

func (BlobStorageAttributes) SasToken

func (bs BlobStorageAttributes) SasToken() terra.StringValue

func (BlobStorageAttributes) ServicePrincipal

func (BlobStorageAttributes) SyncIntervalInSeconds

func (bs BlobStorageAttributes) SyncIntervalInSeconds() terra.NumberValue

func (BlobStorageAttributes) TimeoutInSeconds

func (bs BlobStorageAttributes) TimeoutInSeconds() terra.NumberValue

type BlobStorageManagedIdentity

type BlobStorageManagedIdentity struct {
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
}

type BlobStorageManagedIdentityAttributes

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

func (BlobStorageManagedIdentityAttributes) ClientId

func (BlobStorageManagedIdentityAttributes) InternalRef

func (BlobStorageManagedIdentityAttributes) InternalTokens

func (BlobStorageManagedIdentityAttributes) InternalWithRef

type BlobStorageManagedIdentityState

type BlobStorageManagedIdentityState struct {
	ClientId string `json:"client_id"`
}

type BlobStorageServicePrincipal

type BlobStorageServicePrincipal struct {
	// ClientCertificateBase64: string, optional
	ClientCertificateBase64 terra.StringValue `hcl:"client_certificate_base64,attr"`
	// ClientCertificatePassword: string, optional
	ClientCertificatePassword terra.StringValue `hcl:"client_certificate_password,attr"`
	// ClientCertificateSendChain: bool, optional
	ClientCertificateSendChain terra.BoolValue `hcl:"client_certificate_send_chain,attr"`
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
	// ClientSecret: string, optional
	ClientSecret terra.StringValue `hcl:"client_secret,attr"`
	// TenantId: string, required
	TenantId terra.StringValue `hcl:"tenant_id,attr" validate:"required"`
}

type BlobStorageServicePrincipalAttributes

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

func (BlobStorageServicePrincipalAttributes) ClientCertificateBase64

func (sp BlobStorageServicePrincipalAttributes) ClientCertificateBase64() terra.StringValue

func (BlobStorageServicePrincipalAttributes) ClientCertificatePassword

func (sp BlobStorageServicePrincipalAttributes) ClientCertificatePassword() terra.StringValue

func (BlobStorageServicePrincipalAttributes) ClientCertificateSendChain

func (sp BlobStorageServicePrincipalAttributes) ClientCertificateSendChain() terra.BoolValue

func (BlobStorageServicePrincipalAttributes) ClientId

func (BlobStorageServicePrincipalAttributes) ClientSecret

func (BlobStorageServicePrincipalAttributes) InternalRef

func (BlobStorageServicePrincipalAttributes) InternalTokens

func (BlobStorageServicePrincipalAttributes) InternalWithRef

func (BlobStorageServicePrincipalAttributes) TenantId

type BlobStorageServicePrincipalState

type BlobStorageServicePrincipalState struct {
	ClientCertificateBase64    string `json:"client_certificate_base64"`
	ClientCertificatePassword  string `json:"client_certificate_password"`
	ClientCertificateSendChain bool   `json:"client_certificate_send_chain"`
	ClientId                   string `json:"client_id"`
	ClientSecret               string `json:"client_secret"`
	TenantId                   string `json:"tenant_id"`
}

type BlobStorageState

type BlobStorageState struct {
	AccountKey            string                             `json:"account_key"`
	ContainerId           string                             `json:"container_id"`
	LocalAuthReference    string                             `json:"local_auth_reference"`
	SasToken              string                             `json:"sas_token"`
	SyncIntervalInSeconds float64                            `json:"sync_interval_in_seconds"`
	TimeoutInSeconds      float64                            `json:"timeout_in_seconds"`
	ManagedIdentity       []BlobStorageManagedIdentityState  `json:"managed_identity"`
	ServicePrincipal      []BlobStorageServicePrincipalState `json:"service_principal"`
}

type Bucket

type Bucket struct {
	// AccessKey: string, optional
	AccessKey terra.StringValue `hcl:"access_key,attr"`
	// BucketName: string, required
	BucketName terra.StringValue `hcl:"bucket_name,attr" validate:"required"`
	// LocalAuthReference: string, optional
	LocalAuthReference terra.StringValue `hcl:"local_auth_reference,attr"`
	// SecretKeyBase64: string, optional
	SecretKeyBase64 terra.StringValue `hcl:"secret_key_base64,attr"`
	// SyncIntervalInSeconds: number, optional
	SyncIntervalInSeconds terra.NumberValue `hcl:"sync_interval_in_seconds,attr"`
	// TimeoutInSeconds: number, optional
	TimeoutInSeconds terra.NumberValue `hcl:"timeout_in_seconds,attr"`
	// TlsEnabled: bool, optional
	TlsEnabled terra.BoolValue `hcl:"tls_enabled,attr"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type BucketAttributes

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

func (BucketAttributes) AccessKey

func (b BucketAttributes) AccessKey() terra.StringValue

func (BucketAttributes) BucketName

func (b BucketAttributes) BucketName() terra.StringValue

func (BucketAttributes) InternalRef

func (b BucketAttributes) InternalRef() (terra.Reference, error)

func (BucketAttributes) InternalTokens

func (b BucketAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BucketAttributes) InternalWithRef

func (b BucketAttributes) InternalWithRef(ref terra.Reference) BucketAttributes

func (BucketAttributes) LocalAuthReference

func (b BucketAttributes) LocalAuthReference() terra.StringValue

func (BucketAttributes) SecretKeyBase64

func (b BucketAttributes) SecretKeyBase64() terra.StringValue

func (BucketAttributes) SyncIntervalInSeconds

func (b BucketAttributes) SyncIntervalInSeconds() terra.NumberValue

func (BucketAttributes) TimeoutInSeconds

func (b BucketAttributes) TimeoutInSeconds() terra.NumberValue

func (BucketAttributes) TlsEnabled

func (b BucketAttributes) TlsEnabled() terra.BoolValue

func (BucketAttributes) Url

type BucketState

type BucketState struct {
	AccessKey             string  `json:"access_key"`
	BucketName            string  `json:"bucket_name"`
	LocalAuthReference    string  `json:"local_auth_reference"`
	SecretKeyBase64       string  `json:"secret_key_base64"`
	SyncIntervalInSeconds float64 `json:"sync_interval_in_seconds"`
	TimeoutInSeconds      float64 `json:"timeout_in_seconds"`
	TlsEnabled            bool    `json:"tls_enabled"`
	Url                   string  `json:"url"`
}

type GitRepository

type GitRepository struct {
	// HttpsCaCertBase64: string, optional
	HttpsCaCertBase64 terra.StringValue `hcl:"https_ca_cert_base64,attr"`
	// HttpsKeyBase64: string, optional
	HttpsKeyBase64 terra.StringValue `hcl:"https_key_base64,attr"`
	// HttpsUser: string, optional
	HttpsUser terra.StringValue `hcl:"https_user,attr"`
	// LocalAuthReference: string, optional
	LocalAuthReference terra.StringValue `hcl:"local_auth_reference,attr"`
	// ReferenceType: string, required
	ReferenceType terra.StringValue `hcl:"reference_type,attr" validate:"required"`
	// ReferenceValue: string, required
	ReferenceValue terra.StringValue `hcl:"reference_value,attr" validate:"required"`
	// SshKnownHostsBase64: string, optional
	SshKnownHostsBase64 terra.StringValue `hcl:"ssh_known_hosts_base64,attr"`
	// SshPrivateKeyBase64: string, optional
	SshPrivateKeyBase64 terra.StringValue `hcl:"ssh_private_key_base64,attr"`
	// SyncIntervalInSeconds: number, optional
	SyncIntervalInSeconds terra.NumberValue `hcl:"sync_interval_in_seconds,attr"`
	// TimeoutInSeconds: number, optional
	TimeoutInSeconds terra.NumberValue `hcl:"timeout_in_seconds,attr"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type GitRepositoryAttributes

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

func (GitRepositoryAttributes) HttpsCaCertBase64

func (gr GitRepositoryAttributes) HttpsCaCertBase64() terra.StringValue

func (GitRepositoryAttributes) HttpsKeyBase64

func (gr GitRepositoryAttributes) HttpsKeyBase64() terra.StringValue

func (GitRepositoryAttributes) HttpsUser

func (gr GitRepositoryAttributes) HttpsUser() terra.StringValue

func (GitRepositoryAttributes) InternalRef

func (gr GitRepositoryAttributes) InternalRef() (terra.Reference, error)

func (GitRepositoryAttributes) InternalTokens

func (gr GitRepositoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GitRepositoryAttributes) InternalWithRef

func (GitRepositoryAttributes) LocalAuthReference

func (gr GitRepositoryAttributes) LocalAuthReference() terra.StringValue

func (GitRepositoryAttributes) ReferenceType

func (gr GitRepositoryAttributes) ReferenceType() terra.StringValue

func (GitRepositoryAttributes) ReferenceValue

func (gr GitRepositoryAttributes) ReferenceValue() terra.StringValue

func (GitRepositoryAttributes) SshKnownHostsBase64

func (gr GitRepositoryAttributes) SshKnownHostsBase64() terra.StringValue

func (GitRepositoryAttributes) SshPrivateKeyBase64

func (gr GitRepositoryAttributes) SshPrivateKeyBase64() terra.StringValue

func (GitRepositoryAttributes) SyncIntervalInSeconds

func (gr GitRepositoryAttributes) SyncIntervalInSeconds() terra.NumberValue

func (GitRepositoryAttributes) TimeoutInSeconds

func (gr GitRepositoryAttributes) TimeoutInSeconds() terra.NumberValue

func (GitRepositoryAttributes) Url

type GitRepositoryState

type GitRepositoryState struct {
	HttpsCaCertBase64     string  `json:"https_ca_cert_base64"`
	HttpsKeyBase64        string  `json:"https_key_base64"`
	HttpsUser             string  `json:"https_user"`
	LocalAuthReference    string  `json:"local_auth_reference"`
	ReferenceType         string  `json:"reference_type"`
	ReferenceValue        string  `json:"reference_value"`
	SshKnownHostsBase64   string  `json:"ssh_known_hosts_base64"`
	SshPrivateKeyBase64   string  `json:"ssh_private_key_base64"`
	SyncIntervalInSeconds float64 `json:"sync_interval_in_seconds"`
	TimeoutInSeconds      float64 `json:"timeout_in_seconds"`
	Url                   string  `json:"url"`
}

type Kustomizations

type Kustomizations struct {
	// DependsOn: list of string, optional
	DependsOn terra.ListValue[terra.StringValue] `hcl:"depends_on,attr"`
	// GarbageCollectionEnabled: bool, optional
	GarbageCollectionEnabled terra.BoolValue `hcl:"garbage_collection_enabled,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// RecreatingEnabled: bool, optional
	RecreatingEnabled terra.BoolValue `hcl:"recreating_enabled,attr"`
	// RetryIntervalInSeconds: number, optional
	RetryIntervalInSeconds terra.NumberValue `hcl:"retry_interval_in_seconds,attr"`
	// SyncIntervalInSeconds: number, optional
	SyncIntervalInSeconds terra.NumberValue `hcl:"sync_interval_in_seconds,attr"`
	// TimeoutInSeconds: number, optional
	TimeoutInSeconds terra.NumberValue `hcl:"timeout_in_seconds,attr"`
}

type KustomizationsAttributes

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

func (KustomizationsAttributes) DependsOn

func (KustomizationsAttributes) GarbageCollectionEnabled

func (k KustomizationsAttributes) GarbageCollectionEnabled() terra.BoolValue

func (KustomizationsAttributes) InternalRef

func (k KustomizationsAttributes) InternalRef() (terra.Reference, error)

func (KustomizationsAttributes) InternalTokens

func (k KustomizationsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (KustomizationsAttributes) InternalWithRef

func (KustomizationsAttributes) Name

func (KustomizationsAttributes) Path

func (KustomizationsAttributes) RecreatingEnabled

func (k KustomizationsAttributes) RecreatingEnabled() terra.BoolValue

func (KustomizationsAttributes) RetryIntervalInSeconds

func (k KustomizationsAttributes) RetryIntervalInSeconds() terra.NumberValue

func (KustomizationsAttributes) SyncIntervalInSeconds

func (k KustomizationsAttributes) SyncIntervalInSeconds() terra.NumberValue

func (KustomizationsAttributes) TimeoutInSeconds

func (k KustomizationsAttributes) TimeoutInSeconds() terra.NumberValue

type KustomizationsState

type KustomizationsState struct {
	DependsOn                []string `json:"depends_on"`
	GarbageCollectionEnabled bool     `json:"garbage_collection_enabled"`
	Name                     string   `json:"name"`
	Path                     string   `json:"path"`
	RecreatingEnabled        bool     `json:"recreating_enabled"`
	RetryIntervalInSeconds   float64  `json:"retry_interval_in_seconds"`
	SyncIntervalInSeconds    float64  `json:"sync_interval_in_seconds"`
	TimeoutInSeconds         float64  `json:"timeout_in_seconds"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (akfc *Resource) Attributes() azurermKubernetesFluxConfigurationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (akfc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (akfc *Resource) State() (*azurermKubernetesFluxConfigurationState, bool)

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

func (*Resource) StateMust

func (akfc *Resource) StateMust() *azurermKubernetesFluxConfigurationState

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

func (*Resource) Type

func (akfc *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"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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