Skip to content

Commit

Permalink
fix: ensure env var enables AWSMachinePool webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcase committed Oct 19, 2020
1 parent 8a56802 commit 32d082c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Expand Up @@ -19,7 +19,7 @@ spec:
containers:
- args:
- --enable-leader-election
- "--feature-gates=EKS=${EXP_EKS:=false},EKSEnableIAM=${EXP_EKS_IAM:=false},EKSAllowAddRoles=${EXP_EKS_ADD_ROLES:=false}"
- "--feature-gates=EKS=${EXP_EKS:=false},EKSEnableIAM=${EXP_EKS_IAM:=false},EKSAllowAddRoles=${EXP_EKS_ADD_ROLES:=false},MachinePool=${EXP_MACHINE_POOL:=false}"
image: controller:latest
imagePullPolicy: Always
name: manager
Expand Down
2 changes: 1 addition & 1 deletion config/webhook/manager_webhook_patch.yaml
Expand Up @@ -11,7 +11,7 @@ spec:
args:
- "--metrics-addr=127.0.0.1:8080"
- "--webhook-port=9443"
- "--feature-gates=EKS=${EXP_EKS:=false}"
- "--feature-gates=EKS=${EXP_EKS:=false},MachinePool=${EXP_MACHINE_POOL:=false}"
ports:
- containerPort: 9443
name: webhook-server
Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -129,7 +129,7 @@ func main() {
// Initialize event recorder.
record.InitFromRecorder(mgr.GetEventRecorderFor("aws-controller"))

setupLog.V(1).Info(fmt.Sprintf("%+v\n", feature.Gates))
setupLog.V(1).Info(fmt.Sprintf("feature gates: %+v\n", feature.Gates))

// Parse service endpoints.
AWSServiceEndpoints, err := endpoints.ParseFlag(serviceEndpoints)
Expand Down

0 comments on commit 32d082c

Please sign in to comment.