phases

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 11 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 delete an AAD application

func NewFederatedIdentityPhase

func NewFederatedIdentityPhase() workflow.Phase

NewFederatedIdentityPhase creates a new phase to delete federated identity.

func NewRoleAssignmentPhase

func NewRoleAssignmentPhase() workflow.Phase

NewRoleAssignmentPhase creates a new phase to delete role assignment

func NewServiceAccountPhase

func NewServiceAccountPhase() workflow.Phase

NewServiceAccountPhase creates a new phase to delete the Kubernetes service account

Types

type DeleteData

type DeleteData 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

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

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

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

	// RoleDefinitionID returns the role definition ID.
	RoleAssignmentID() string

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

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

DeleteData is the interface to use for create phase. The "deleteData" type from cmd/delete.go must satisfy this interface.

Jump to

Keyboard shortcuts

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