container

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceType = "Applications.Core/containers"

	// Liveness/Readiness constants
	DefaultInitialDelaySeconds = 0
	DefaultFailureThreshold    = 3
	DefaultPeriodSeconds       = 10
	DefaultTimeoutSeconds      = 5

	AzureKeyVaultSecretsUserRole = "Key Vault Secrets User"
	AzureKeyVaultCryptoUserRole  = "Key Vault Crypto User"
)

Variables

This section is empty.

Functions

func GetSupportedKinds

func GetSupportedKinds() []string

GetSupportedKinds returns a list of supported volume kinds.

Types

type Renderer

type Renderer struct {
	// RoleAssignmentMap is an optional map of connection kind -> []Role Assignment. Used to configure managed
	// identity permissions for cloud resources. This will be nil in environments that don't support role assignments.
	RoleAssignmentMap map[datamodel.IAMKind]RoleAssignmentData
}

Renderer is the WorkloadRenderer implementation for containerized workload.

func (Renderer) GetDependencyIDs

func (r Renderer) GetDependencyIDs(ctx context.Context, dm v1.DataModelInterface) (radiusResourceIDs []resources.ID, azureResourceIDs []resources.ID, err error)

GetDependencyIDs parses the connections, ports and volumes of a container resource to return the Radius and Azure resource IDs.

func (Renderer) Render

Render creates role assignments, a deployment, and a secret for a given container resource, and returns a RendererOutput containing the resources and computed values.

type RoleAssignmentData

type RoleAssignmentData struct {
	// RoleNames contains the names of the IAM roles to grant.
	RoleNames []string

	// LocalID contains the LocalID of an output resource that can be resolved to find the underlying
	// cloud resource.
	LocalID string
}

RoleAssignmentData describes how to configure role assignment permissions based on the kind of connection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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