|
|
@ -34,12 +34,12 @@ import (
|
|
|
|
var createImagePolicyCmd = &cobra.Command{
|
|
|
|
var createImagePolicyCmd = &cobra.Command{
|
|
|
|
Use: "policy [name]",
|
|
|
|
Use: "policy [name]",
|
|
|
|
Short: "Create or update an ImagePolicy object",
|
|
|
|
Short: "Create or update an ImagePolicy object",
|
|
|
|
Long: `The create image policy command generates an ImagePolicy resource.
|
|
|
|
Long: withPreviewNote(`The create image policy command generates an ImagePolicy resource.
|
|
|
|
An ImagePolicy object calculates a "latest image" given an image
|
|
|
|
An ImagePolicy object calculates a "latest image" given an image
|
|
|
|
repository and a policy, e.g., semver.
|
|
|
|
repository and a policy, e.g., semver.
|
|
|
|
|
|
|
|
|
|
|
|
The image that sorts highest according to the policy is recorded in
|
|
|
|
The image that sorts highest according to the policy is recorded in
|
|
|
|
the status of the object.`,
|
|
|
|
the status of the object.`),
|
|
|
|
Example: ` # Create an ImagePolicy to select the latest stable release
|
|
|
|
Example: ` # Create an ImagePolicy to select the latest stable release
|
|
|
|
flux create image policy podinfo \
|
|
|
|
flux create image policy podinfo \
|
|
|
|
--image-ref=podinfo \
|
|
|
|
--image-ref=podinfo \
|
|
|
|