Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Set webhook service-for label to be unique - #323

Merged
croomes merged 1 commit into
masterfrom
webhook-service-for
Apr 21, 2021
Merged

croomes merged 1 commit into
masterfrom
webhook-service-for

Conversation

@croomes

@croomes croomes commented Apr 20, 2021 •

Copy link
Copy Markdown
Contributor

The webhook service has the app.kubernetes.io/service-for=storageos-api-server label set. It should be app.kubernetes.io/service-for=storageos-webhook-server.

Having multiple services with the same label means you can't search for a service using label selectors, which the kubectl plugin does.

storageos-api-server was getting set as the combineLabels() function was updating the base labels unintentionally.

@croomes
croomes requested review from avestuk, darkowlzz and mhmxs April 20, 2021 19:37
@croomes
croomes force-pushed the webhook-service-for branch from f54b653 to 432e39b Compare April 20, 2021 20:05
@croomes
croomes force-pushed the webhook-service-for branch from 432e39b to f0c0c47 Compare April 20, 2021 20:27
@croomes
croomes merged commit 4a47852 into master Apr 21, 2021
Comment thread test/e2e/util/cluster.go
}

// APIManagerWebhookServiceTest checks the api-manager webhook service deployment.
func APIManagerWebhookServiceTest(t *testing.T, ns string, retryInterval, timeout time.Duration) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@croomes looks like this wasn't added in clusterCSINodeV2_test.go file to be executed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants