argo

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgoPolicyName

func ArgoPolicyName(tenant *capsulev1beta2.Tenant) string

func BindingString

func BindingString(subject v1.Subject, role string) string

Converts the ArgoCD Project Policy Definition to a string

func DefaultPolicies

func DefaultPolicies(tenant *capsulev1beta2.Tenant, destination string) (result []string)

Adds Default Policies (So Users can have basic interractions with the project)

func DefaultPolicyOwner

func DefaultPolicyOwner(tenant *capsulev1beta2.Tenant) string

Default Policy for Tenant Owners

func DefaultPolicyReadOnly

func DefaultPolicyReadOnly(tenant *capsulev1beta2.Tenant) string

Default Policy for Tenant Read-Only

func PolicyString

func PolicyString(policy string, tenant string, argopolicy addonsv1alpha1.ArgocdPolicyDefinition) (result string)

Converts the ArgoCD Project Policy Definition to a string (common argo)

func ProjectHasDestination

func ProjectHasDestination(appProject *argocdv1alpha1.AppProject, dest argocdv1alpha1.ApplicationDestination) bool

Verify if the project already has the destination (Don't respect namespace)

func ProjectHasServiceAccount

func ProjectHasServiceAccount(appProject *argocdv1alpha1.AppProject, sa argocdv1alpha1.ApplicationDestinationServiceAccount) bool

Verify if the project already has the destination (Don't respect namespace)

func RemoveProjectDestination

func RemoveProjectDestination(appProject *argocdv1alpha1.AppProject, dest argocdv1alpha1.ApplicationDestination)

Remove a destination from the project (Don't respect namespace)

func RemoveProjectServiceaccount

func RemoveProjectServiceaccount(appProject *argocdv1alpha1.AppProject, sa argocdv1alpha1.ApplicationDestinationServiceAccount)

Remove a destination from the project (Don't respect namespace)

func TenantPolicy

func TenantPolicy(tenant *capsulev1beta2.Tenant, policyName string) string

Default Policy for Tenant Read-Only

func ValidateCSV

func ValidateCSV(csv string) error

Validates entire CSV policy and returns an error if it is invalid

Types

This section is empty.

Jump to

Keyboard shortcuts

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