Remove the dependency to k8s.io/kube-openapi module
Summary
Operator depends on k8s.io/kube-openapi
module because it uses one of its utility functions, i.e. strfmt.ParseDuration
. This is not a dependency to the core functionality of this module, hence it should be removed by replacing the utility function.
Success criteria
The following discussion from !8 (merged) should be addressed:
-
@pursultani started a discussion: strfmt.ParseDuration
is the only method that is used from this dependency. This dependency can be removed by copying the function and replacing it as we did in gitlab-operator!782 (8b2d4277). This is justified because the function is a utility and not part of the core functionality of thek8s.io/kube-openapi
module.