-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove webhook flag #840
Conversation
Removed validation for required webhook service name. We have a default webhook svc name fleetwebhook in options |
@@ -45,7 +45,7 @@ AKS_NODE_REGIONS=("westus" "northeurope" "eastasia") | |||
AKS_NODE_SKUS=("Standard_A4_v2" "Standard_B4ms" "Standard_D8s_v5" "Standard_E16_v5" "Standard_M16ms") | |||
AKS_SKU_COUNT=${#AKS_NODE_SKUS[@]} | |||
# The number of clusters that has pre-defined configuration for testing purposes. | |||
RESERVED_CLUSTER_COUNT=3 | |||
RESERVED_CLUSTER_COUNT=${MEMBER_CLUSTER_COUNT} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required change for local testing with more/less than 3 member clusters
if o.EnableWebhook && o.WebhookServiceName == "" { | ||
errs = append(errs, field.Invalid(newPath.Child("WebhookServiceName"), o.WebhookServiceName, "Webhook service name is required when webhook is enabled")) | ||
} | ||
|
||
connectionType := o.WebhookClientConnectionType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you cannot remove this check. eg, user sets the webhookServiceName explicitly. In this case, we need to return the error.
Description of your changes
Fixes #
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer