refresh

package
v0.105.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "refresh <app>",
	Short:   "Refresh ArgoCD Application (using the refresh annotation)",
	Aliases: []string{"r"},
	Args:    cobra.ExactArgs(1),
	Run: func(c *cobra.Command, args []string) {
		appName := args[0]

		refreshType := "normal"
		if FlagHard {
			refreshType = "hard"
		}
		wait := FlagTimeout
		if FlagNoWait {
			wait = 0
		}

		err := argocd_utils.ArgoCDRefresh(c.Context(), FlagNamespace, appName, refreshType, wait)
		cobra.CheckErr(err)
		fmt.Printf("Application '%s' refreshed (%s)\n", appName, refreshType)
	},
}
View Source
var FlagHard bool
View Source
var FlagNamespace string
View Source
var FlagNoWait bool
View Source
var FlagTimeout time.Duration

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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