phases

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAADApplicationPhase

func NewAADApplicationPhase() workflow.Phase

NewAADApplicationPhase creates a new phase to create an AAD application

func NewFederatedIdentityPhase

func NewFederatedIdentityPhase() workflow.Phase

NewFederatedIdentityPhase creates a new phase to create federated identity credential.

func NewRoleAssignmentPhase

func NewRoleAssignmentPhase() workflow.Phase

NewRoleAssignmentPhase creates a new phase to create role assignment

func NewServiceAccountPhase

func NewServiceAccountPhase() workflow.Phase

NewServiceAccountPhase creates a new phase to create a Kubernetes service account

Types

type CreateData

type CreateData interface {
	// ServiceAccountName returns the name of the service account.
	ServiceAccountName() string

	// ServiceAccountNamespace returns the namespace of the service account.
	ServiceAccountNamespace() string

	// ServiceAccountIssuerURL returns the issuer URL of the service account.
	ServiceAccountIssuerURL() string

	// ServiceAccountTokenExpiration returns the expiration time of the service account token.
	ServiceAccountTokenExpiration() time.Duration

	// AADApplication returns the AAD application object.
	// This will return the cached value if it has been created.
	AADApplication() (*graph.Application, error)

	// AADApplicationName returns the name of the AAD application.
	AADApplicationName() string

	// AADApplicationClientID returns the client ID of the AAD application.
	// This will be used for annotating the service account.
	AADApplicationClientID() string

	// AADApplicationObjectID returns the object ID of the AAD application.
	// This will be used for creating or removing the federated identity credential.
	AADApplicationObjectID() string

	// ServicePrincipal returns the service principal object.
	// This will return the cached value if it has been created.
	ServicePrincipal() (*graph.ServicePrincipal, error)

	// ServicePrincipalName returns the name of the service principal.
	ServicePrincipalName() string

	// ServicePrincipalObjectID returns the object ID of the service principal.
	// This will be used for creating or removing the role assignment.
	ServicePrincipalObjectID() string

	// AzureRole returns the Azure role.
	AzureRole() string

	// AzureScope returns the Azure scope.
	AzureScope() string

	// AzureTenantID returns the Azure tenant ID.
	AzureTenantID() string

	// AzureClient returns the Azure client.
	AzureClient() cloud.Interface

	// KubeClient returns the Kubernetes client.
	KubeClient() (kubernetes.Interface, error)
}

CreateData is the interface to use for create phase. The "createData" type from cmd/create.go must satisfy this interface.

Jump to

Keyboard shortcuts

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