-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Richard Case <[email protected]>
- Loading branch information
1 parent
22d7324
commit 6ba5cd0
Showing
14 changed files
with
515 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package feature | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/util/runtime" | ||
utilruntime "k8s.io/apimachinery/pkg/util/runtime" | ||
"k8s.io/component-base/featuregate" | ||
) | ||
|
||
const ( | ||
// V2ProvKcfgPatch is used to enable patching of the v2prov created kubeconfig secrets so that they | ||
// can be used with CAPI 1.5.x. | ||
V2ProvKcfgPatch featuregate.Feature = "V2ProvKcfgPatch" | ||
// RancherKubeSecretPatch is used to enable patching of the Rancher v2prov created kubeconfig | ||
// secrets so that they can be used with CAPI 1.5.x. | ||
RancherKubeSecretPatch featuregate.Feature = "rancher-kube-secret-patch" //nolint:gosec | ||
) | ||
|
||
func init() { | ||
runtime.Must(MutableGates.Add(defaultGates)) | ||
utilruntime.Must(MutableGates.Add(defaultGates)) | ||
} | ||
|
||
var defaultGates = map[featuregate.Feature]featuregate.FeatureSpec{ | ||
V2ProvKcfgPatch: {Default: false, PreRelease: featuregate.Beta}, | ||
RancherKubeSecretPatch: {Default: false, PreRelease: featuregate.Beta}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.