use cainjector feature flags
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
4d81f1877a
commit
bce882b477
@ -23,13 +23,18 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// FeatureName will enable XYZ feature.
|
||||
// Fill this section out with additional details about the feature.
|
||||
//
|
||||
// Owner (responsible for graduating feature through to GA): @username
|
||||
// Alpha: vX.Y
|
||||
// Beta: ...
|
||||
// FeatureName featuregate.Feature = "FeatureName"
|
||||
// FeatureName will enable XYZ feature.
|
||||
// Fill this section out with additional details about the feature.
|
||||
//
|
||||
// Owner (responsible for graduating feature through to GA): @username
|
||||
// Alpha: vX.Y
|
||||
// Beta: ...
|
||||
// FeatureName featuregate.Feature = "FeatureName"
|
||||
|
||||
// alpha: v1.12.0
|
||||
//
|
||||
// ServerSideApply enables the use of ServerSideApply in all API calls.
|
||||
ServerSideApply featuregate.Feature = "ServerSideApply"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -43,4 +48,6 @@ func init() {
|
||||
// utilfeature.DefaultFeatureGate.Enabled(feature.FeatureName)
|
||||
//
|
||||
// Where utilfeature is github.com/cert-manager/cert-manager/pkg/util/feature.
|
||||
var cainjectorFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{}
|
||||
var cainjectorFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
|
||||
ServerSideApply: {Default: false, PreRelease: featuregate.Alpha},
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ import (
|
||||
ctrl "sigs.k8s.io/controller-runtime"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/cert-manager/cert-manager/internal/controller/feature"
|
||||
"github.com/cert-manager/cert-manager/internal/cainjector/feature"
|
||||
certmanager "github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1"
|
||||
logf "github.com/cert-manager/cert-manager/pkg/logs"
|
||||
utilfeature "github.com/cert-manager/cert-manager/pkg/util/feature"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user