Documentation ¶
Index ¶
- func ArgoPolicyName(tenant *capsulev1beta2.Tenant) string
- func BindingString(subject v1.Subject, role string) string
- func DefaultPolicies(tenant *capsulev1beta2.Tenant, destination string) (result []string)
- func DefaultPolicyOwner(tenant *capsulev1beta2.Tenant) string
- func DefaultPolicyReadOnly(tenant *capsulev1beta2.Tenant) string
- func PolicyString(policy string, tenant string, argopolicy addonsv1alpha1.ArgocdPolicyDefinition) (result string)
- func ProjectHasDestination(appProject *argocdv1alpha1.AppProject, ...) bool
- func ProjectHasServiceAccount(appProject *argocdv1alpha1.AppProject, ...) bool
- func RemoveProjectDestination(appProject *argocdv1alpha1.AppProject, ...)
- func RemoveProjectServiceaccount(appProject *argocdv1alpha1.AppProject, ...)
- func TenantPolicy(tenant *capsulev1beta2.Tenant, policyName string) string
- func ValidateCSV(csv string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgoPolicyName ¶
func ArgoPolicyName(tenant *capsulev1beta2.Tenant) string
func BindingString ¶
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 ¶
Validates entire CSV policy and returns an error if it is invalid
Types ¶
This section is empty.