misc: remove unused bits of code
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
@@ -60,7 +60,6 @@ type imagePolicyFlags struct {
|
|||||||
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
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ type exportableWithSecretList interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type exportWithSecretCommand struct {
|
type exportWithSecretCommand struct {
|
||||||
apiType
|
|
||||||
object exportableWithSecret
|
object exportableWithSecret
|
||||||
list exportableWithSecretList
|
list exportableWithSecretList
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -340,8 +340,6 @@ type cmdTestCase struct {
|
|||||||
// Tests use assertFunc to assert on an output, success or failure. This
|
// Tests use assertFunc to assert on an output, success or failure. This
|
||||||
// can be a function defined by the test or existing function above.
|
// can be a function defined by the test or existing function above.
|
||||||
assert assertFunc
|
assert assertFunc
|
||||||
// Filename that contains yaml objects to load into Kubernetes
|
|
||||||
objectFile string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cmd *cmdTestCase) runTestCmd(t *testing.T) {
|
func (cmd *cmdTestCase) runTestCmd(t *testing.T) {
|
||||||
|
|||||||
@@ -43,10 +43,6 @@ func init() {
|
|||||||
reconcileImageCmd.AddCommand(reconcileImageUpdateCmd)
|
reconcileImageCmd.AddCommand(reconcileImageUpdateCmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (obj imageUpdateAutomationAdapter) suspended() bool {
|
|
||||||
return obj.ImageUpdateAutomation.Spec.Suspend
|
|
||||||
}
|
|
||||||
|
|
||||||
func (obj imageUpdateAutomationAdapter) lastHandledReconcileRequest() string {
|
func (obj imageUpdateAutomationAdapter) lastHandledReconcileRequest() string {
|
||||||
return obj.Status.GetLastHandledReconcileRequest()
|
return obj.Status.GetLastHandledReconcileRequest()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user