argo

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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, clusterPermission bool) (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

func RemoveProjectDestination

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

Remove a destination from the project

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