Add wrapper for ProvisioningRequestConfig to util/testing
package
#3472
Labels
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/feature
Categorizes issue or PR as related to a new feature.
What would you like to be added:
Wrapper for ProvisioningRequestConfig similarly to e.g. PriorityClassWrapper. Besides fundamental methods to create wrapper and actual object we also need methods to set:
.spec.provisioningClassName
.spec.parameters
.spec.managedResources
.spec.retryStrategy
.spec.retryStrategy.backoffLimitCount
.spec.retryStrategy.backoffBaseSeconds
.spec.retryStrategy.backoffMaxSeconds
Wrapper should be used in all test files where
ProvisioningRequestConfig
is used, including:pkg/controller/admissionchecks/provisioning/admissioncheck_reconciler_test.go
pkg/controller/admissionchecks/provisioning/controller_test.go
pkg/util/admissioncheck/admissioncheck_test.go
test/integration/controller/admissionchecks/provisioning/provisioning_test.go
Why is this needed:
Improve code quality
Completion requirements:
The text was updated successfully, but these errors were encountered: