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 ¶
func (r Renderer) Render(ctx context.Context, dm v1.DataModelInterface, options renderers.RenderOptions) (renderers.RendererOutput, error)
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.
 Click to show internal directories. 
   Click to hide internal directories.