refresh

package
v0.81.0-dev-3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "refresh <app>",
	Short:   "Refresh ArgoCD Application (get + refresh)",
	Aliases: []string{"r"},
	Args:    cobra.ExactArgs(1),
	Run: func(c *cobra.Command, args []string) {
		appName := args[0]
		password := FlagPassword
		if password == "" {
			password = argocd_utils.ArgoCDGetInitialPassword("argocd")
		}
		token := argocd_utils.ArgoCDGetToken(
			c.Context(),
			FlagServerAddr,
			FlagInsecure,
			"admin",
			password,
			FlagCFAccessServiceTokenName,
		)
		argocd_utils.ArgoCDRefresh(
			c.Context(),
			FlagServerAddr,
			FlagInsecure,
			token,
			appName,
			FlagCFAccessServiceTokenName,
		)
	},
}
View Source
var FlagCFAccessServiceTokenName string
View Source
var FlagInsecure bool
View Source
var FlagPassword string
View Source
var FlagServerAddr string

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