Documentation ¶
Index ¶
- func CheckValidParam(appMap map[string]map[string]bool, newParam argoappv1.ComponentParameter) bool
- func FilterByProjects(apps []argoappv1.Application, projects []string) []argoappv1.Application
- func FormatAppConditions(conditions []argoappv1.ApplicationCondition) string
- func GetAppProject(spec *argoappv1.ApplicationSpec, appclientset appclientset.Interface, ...) (*argoappv1.AppProject, error)
- func GetSpecErrors(ctx context.Context, spec *argoappv1.ApplicationSpec, ...) ([]argoappv1.ApplicationCondition, error)
- func ParamToMap(params []argoappv1.ComponentParameter) map[string]map[string]bool
- func RefreshApp(appIf v1alpha1.ApplicationInterface, name string) (*argoappv1.Application, error)
- func WaitForRefresh(appIf v1alpha1.ApplicationInterface, name string, timeout *time.Duration) (*argoappv1.Application, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckValidParam ¶ added in v0.6.0
CheckValidParam checks if the parameter passed is overridable for the given appMap
func FilterByProjects ¶ added in v0.6.0
func FilterByProjects(apps []argoappv1.Application, projects []string) []argoappv1.Application
FilterByProjects returns applications which belongs to the specified project
func FormatAppConditions ¶ added in v0.6.0
func FormatAppConditions(conditions []argoappv1.ApplicationCondition) string
FormatAppConditions returns string representation of give app condition list
func GetAppProject ¶ added in v0.6.0
func GetAppProject(spec *argoappv1.ApplicationSpec, appclientset appclientset.Interface, ns string) (*argoappv1.AppProject, error)
func GetSpecErrors ¶ added in v0.6.0
func GetSpecErrors( ctx context.Context, spec *argoappv1.ApplicationSpec, proj *argoappv1.AppProject, repoClientset reposerver.Clientset, db db.ArgoDB) ([]argoappv1.ApplicationCondition, error)
GetSpecErrors returns list of conditions which indicates that app spec is invalid. Following is checked: * the git repository is accessible * the git path contains a valid app.yaml * the specified environment exists * the referenced cluster has been added to ArgoCD * the app source repo and destination namespace/cluster are permitted in app project
func ParamToMap ¶ added in v0.6.0
func ParamToMap(params []argoappv1.ComponentParameter) map[string]map[string]bool
ParamToMap converts a ComponentParameter list to a map for easy filtering
func RefreshApp ¶ added in v0.4.0
func RefreshApp(appIf v1alpha1.ApplicationInterface, name string) (*argoappv1.Application, error)
RefreshApp updates the refresh annotation of an application to coerce the controller to process it
func WaitForRefresh ¶ added in v0.5.3
func WaitForRefresh(appIf v1alpha1.ApplicationInterface, name string, timeout *time.Duration) (*argoappv1.Application, error)
WaitForRefresh watches an application until its comparison timestamp is after the refresh timestamp
Types ¶
This section is empty.