helm_release

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 {
	// Atomic: bool, optional
	Atomic terra.BoolValue `hcl:"atomic,attr"`
	// Chart: string, required
	Chart terra.StringValue `hcl:"chart,attr" validate:"required"`
	// CleanupOnFail: bool, optional
	CleanupOnFail terra.BoolValue `hcl:"cleanup_on_fail,attr"`
	// CreateNamespace: bool, optional
	CreateNamespace terra.BoolValue `hcl:"create_namespace,attr"`
	// DependencyUpdate: bool, optional
	DependencyUpdate terra.BoolValue `hcl:"dependency_update,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Devel: bool, optional
	Devel terra.BoolValue `hcl:"devel,attr"`
	// DisableCrdHooks: bool, optional
	DisableCrdHooks terra.BoolValue `hcl:"disable_crd_hooks,attr"`
	// DisableOpenapiValidation: bool, optional
	DisableOpenapiValidation terra.BoolValue `hcl:"disable_openapi_validation,attr"`
	// DisableWebhooks: bool, optional
	DisableWebhooks terra.BoolValue `hcl:"disable_webhooks,attr"`
	// ForceUpdate: bool, optional
	ForceUpdate terra.BoolValue `hcl:"force_update,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Keyring: string, optional
	Keyring terra.StringValue `hcl:"keyring,attr"`
	// Lint: bool, optional
	Lint terra.BoolValue `hcl:"lint,attr"`
	// MaxHistory: number, optional
	MaxHistory terra.NumberValue `hcl:"max_history,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// PassCredentials: bool, optional
	PassCredentials terra.BoolValue `hcl:"pass_credentials,attr"`
	// RecreatePods: bool, optional
	RecreatePods terra.BoolValue `hcl:"recreate_pods,attr"`
	// RenderSubchartNotes: bool, optional
	RenderSubchartNotes terra.BoolValue `hcl:"render_subchart_notes,attr"`
	// Replace: bool, optional
	Replace terra.BoolValue `hcl:"replace,attr"`
	// Repository: string, optional
	Repository terra.StringValue `hcl:"repository,attr"`
	// RepositoryCaFile: string, optional
	RepositoryCaFile terra.StringValue `hcl:"repository_ca_file,attr"`
	// RepositoryCertFile: string, optional
	RepositoryCertFile terra.StringValue `hcl:"repository_cert_file,attr"`
	// RepositoryKeyFile: string, optional
	RepositoryKeyFile terra.StringValue `hcl:"repository_key_file,attr"`
	// RepositoryPassword: string, optional
	RepositoryPassword terra.StringValue `hcl:"repository_password,attr"`
	// RepositoryUsername: string, optional
	RepositoryUsername terra.StringValue `hcl:"repository_username,attr"`
	// ResetValues: bool, optional
	ResetValues terra.BoolValue `hcl:"reset_values,attr"`
	// ReuseValues: bool, optional
	ReuseValues terra.BoolValue `hcl:"reuse_values,attr"`
	// SkipCrds: bool, optional
	SkipCrds terra.BoolValue `hcl:"skip_crds,attr"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// Values: list of string, optional
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr"`
	// Verify: bool, optional
	Verify terra.BoolValue `hcl:"verify,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
	// Wait: bool, optional
	Wait terra.BoolValue `hcl:"wait,attr"`
	// WaitForJobs: bool, optional
	WaitForJobs terra.BoolValue `hcl:"wait_for_jobs,attr"`
	// Postrender: optional
	Postrender *Postrender `hcl:"postrender,block"`
	// Set: min=0
	Set []Set `hcl:"set,block" validate:"min=0"`
	// SetList: min=0
	SetList []SetList `hcl:"set_list,block" validate:"min=0"`
	// SetSensitive: min=0
	SetSensitive []SetSensitive `hcl:"set_sensitive,block" validate:"min=0"`
}

Args contains the configurations for helm_release.

type MetadataAttributes

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

func (MetadataAttributes) AppVersion

func (m MetadataAttributes) AppVersion() terra.StringValue

func (MetadataAttributes) Chart

func (MetadataAttributes) InternalRef

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

func (MetadataAttributes) InternalTokens

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

func (MetadataAttributes) InternalWithRef

func (m MetadataAttributes) InternalWithRef(ref terra.Reference) MetadataAttributes

func (MetadataAttributes) Name

func (MetadataAttributes) Namespace

func (m MetadataAttributes) Namespace() terra.StringValue

func (MetadataAttributes) Revision

func (m MetadataAttributes) Revision() terra.NumberValue

func (MetadataAttributes) Values

func (MetadataAttributes) Version

func (m MetadataAttributes) Version() terra.StringValue

type MetadataState

type MetadataState struct {
	AppVersion string  `json:"app_version"`
	Chart      string  `json:"chart"`
	Name       string  `json:"name"`
	Namespace  string  `json:"namespace"`
	Revision   float64 `json:"revision"`
	Values     string  `json:"values"`
	Version    string  `json:"version"`
}

type Postrender

type Postrender struct {
	// Args: list of string, optional
	Args terra.ListValue[terra.StringValue] `hcl:"args,attr"`
	// BinaryPath: string, required
	BinaryPath terra.StringValue `hcl:"binary_path,attr" validate:"required"`
}

type PostrenderAttributes

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

func (PostrenderAttributes) Args

func (PostrenderAttributes) BinaryPath

func (p PostrenderAttributes) BinaryPath() terra.StringValue

func (PostrenderAttributes) InternalRef

func (p PostrenderAttributes) InternalRef() (terra.Reference, error)

func (PostrenderAttributes) InternalTokens

func (p PostrenderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PostrenderAttributes) InternalWithRef

type PostrenderState

type PostrenderState struct {
	Args       []string `json:"args"`
	BinaryPath string   `json:"binary_path"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (hr *Resource) Attributes() helmReleaseAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (hr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (hr *Resource) State() (*helmReleaseState, bool)

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

func (*Resource) StateMust

func (hr *Resource) StateMust() *helmReleaseState

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

func (*Resource) Type

func (hr *Resource) Type() string

Type returns the Terraform object type for Resource.

type Set

type Set struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type SetAttributes

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

func (SetAttributes) InternalRef

func (s SetAttributes) InternalRef() (terra.Reference, error)

func (SetAttributes) InternalTokens

func (s SetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SetAttributes) InternalWithRef

func (s SetAttributes) InternalWithRef(ref terra.Reference) SetAttributes

func (SetAttributes) Name

func (s SetAttributes) Name() terra.StringValue

func (SetAttributes) Type

func (s SetAttributes) Type() terra.StringValue

func (SetAttributes) Value

func (s SetAttributes) Value() terra.StringValue

type SetList

type SetList struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: list of string, required
	Value terra.ListValue[terra.StringValue] `hcl:"value,attr" validate:"required"`
}

type SetListAttributes

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

func (SetListAttributes) InternalRef

func (sl SetListAttributes) InternalRef() (terra.Reference, error)

func (SetListAttributes) InternalTokens

func (sl SetListAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SetListAttributes) InternalWithRef

func (sl SetListAttributes) InternalWithRef(ref terra.Reference) SetListAttributes

func (SetListAttributes) Name

func (SetListAttributes) Value

type SetListState

type SetListState struct {
	Name  string   `json:"name"`
	Value []string `json:"value"`
}

type SetSensitive

type SetSensitive struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type SetSensitiveAttributes

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

func (SetSensitiveAttributes) InternalRef

func (ss SetSensitiveAttributes) InternalRef() (terra.Reference, error)

func (SetSensitiveAttributes) InternalTokens

func (ss SetSensitiveAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SetSensitiveAttributes) InternalWithRef

func (SetSensitiveAttributes) Name

func (SetSensitiveAttributes) Type

func (SetSensitiveAttributes) Value

type SetSensitiveState

type SetSensitiveState struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

type SetState

type SetState struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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