Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

Arvindthiru
Copy link
Contributor

@Arvindthiru Arvindthiru commented May 29, 2024

Description of your changes

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@Arvindthiru
Copy link
Contributor Author

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}
Copy link
Contributor Author

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

@Arvindthiru Arvindthiru changed the title feat: Remove webhook flag feat: remove webhook flag May 29, 2024
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
Copy link
Contributor

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.

@ryanzhang-oss ryanzhang-oss marked this pull request as draft June 13, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants