Skip to content

Commit

Permalink
Merge pull request #9091 from spotinst/feat-addon-featureflag
Browse files Browse the repository at this point in the history
Spotinst: Allow users to disable the controller add-on
  • Loading branch information
k8s-ci-robot authored May 12, 2020
2 parents aca8ac8 + 4f207e4 commit d7d61c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/featureflag/featureflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ var (
Spotinst = New("Spotinst", Bool(false))
// SpotinstOcean toggles the use of Spotinst Ocean instance group implementation.
SpotinstOcean = New("SpotinstOcean", Bool(false))
// SpotinstController toggles the installation of the Spotinst controller addon.
SpotinstController = New("SpotinstController", Bool(true))
// VPCSkipEnableDNSSupport if set will make that a VPC does not need DNSSupport enabled.
VPCSkipEnableDNSSupport = New("VPCSkipEnableDNSSupport", Bool(false))
// VSphereCloudProvider enables the vsphere cloud provider
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
}
}

if featureflag.Spotinst.Enabled() {
if featureflag.Spotinst.Enabled() && featureflag.SpotinstController.Enabled() {
key := "spotinst-kubernetes-cluster-controller.addons.k8s.io"

{
Expand Down

0 comments on commit d7d61c6

Please sign in to comment.