|
|
@ -54,13 +54,12 @@ the status of the object.`),
|
|
|
|
RunE: createImagePolicyRun}
|
|
|
|
RunE: createImagePolicyRun}
|
|
|
|
|
|
|
|
|
|
|
|
type imagePolicyFlags struct {
|
|
|
|
type imagePolicyFlags struct {
|
|
|
|
imageRef string
|
|
|
|
imageRef string
|
|
|
|
semver string
|
|
|
|
semver string
|
|
|
|
alpha string
|
|
|
|
alpha string
|
|
|
|
numeric string
|
|
|
|
numeric string
|
|
|
|
filterRegex string
|
|
|
|
filterRegex string
|
|
|
|
filterExtract string
|
|
|
|
filterExtract string
|
|
|
|
filterNumerical string
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var imagePolicyArgs = imagePolicyFlags{}
|
|
|
|
var imagePolicyArgs = imagePolicyFlags{}
|
|
|
@ -183,7 +182,6 @@ func validateExtractStr(template string, capNames []string) error {
|
|
|
|
name, num, rest, ok := extract(template)
|
|
|
|
name, num, rest, ok := extract(template)
|
|
|
|
if !ok {
|
|
|
|
if !ok {
|
|
|
|
// Malformed extract string, assume user didn't want this
|
|
|
|
// Malformed extract string, assume user didn't want this
|
|
|
|
template = template[1:]
|
|
|
|
|
|
|
|
return fmt.Errorf("--filter-extract is malformed")
|
|
|
|
return fmt.Errorf("--filter-extract is malformed")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
template = rest
|
|
|
|
template = rest
|
|
|
|