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

internal/provisioner: support more than one instance per namespace #4426

Merged
merged 6 commits into from
Mar 30, 2022

Conversation

skriss
Copy link
Member

@skriss skriss commented Mar 29, 2022

Adds support for provisioning more than one Contour+Envoy instance per namespace.

Closes #4418.

@codecov
Copy link

codecov bot commented Mar 29, 2022

Codecov Report

Merging #4426 (b06fc00) into main (d99c015) will increase coverage by 0.06%.
The diff coverage is 45.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4426      +/-   ##
==========================================
+ Coverage   74.20%   74.26%   +0.06%     
==========================================
  Files         136      137       +1     
  Lines       12237    12272      +35     
==========================================
+ Hits         9080     9114      +34     
- Misses       2959     2960       +1     
  Partials      198      198              
Impacted Files Coverage Δ
internal/provisioner/objects/object.go 100.00% <ø> (+7.69%) ⬆️
internal/provisioner/objects/rbac.go 0.00% <0.00%> (ø)
internal/provisioner/validation/validation.go 75.67% <ø> (ø)
internal/provisioner/objects/service/service.go 60.17% <66.66%> (ø)
internal/provisioner/objects/job/job.go 53.04% <75.00%> (-0.41%) ⬇️
...nternal/provisioner/objects/daemonset/daemonset.go 83.87% <88.88%> (ø)
...ernal/provisioner/objects/deployment/deployment.go 81.09% <91.66%> (+0.16%) ⬆️
internal/provisioner/model/names.go 97.36% <97.36%> (ø)
...nternal/provisioner/objects/configmap/configmap.go 29.11% <100.00%> (+0.90%) ⬆️
internal/sorter/sorter.go 97.57% <0.00%> (-0.61%) ⬇️

@skriss skriss added the release-note/minor A minor change that needs about a paragraph of explanation in the release notes. label Mar 29, 2022
@skriss skriss force-pushed the pr-gw-mult-per-ns branch from 4db2114 to 40097c3 Compare March 29, 2022 17:05
Comment on lines +51 to +59
// ContourCertsSecretName returns the name of the Contour xDS TLS certs Secret resource.
func (c *Contour) ContourCertsSecretName() string {
return c.Name + "-contourcert"
}

// EnvoyCertsSecretName returns the name of the Envoy xDS TLS certs Secret resource.
func (c *Contour) EnvoyCertsSecretName() string {
return c.Name + "-envoycert"
}
Copy link
Member Author

@skriss skriss Mar 29, 2022

Choose a reason for hiding this comment

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

I have a subsequent PR that flips these cert secrets' names around to use the Gateway name as a suffix rather than a prefix, for consistency. Will be done as part of directly generating the certs rather than using the Job.

skriss added 6 commits March 30, 2022 18:21
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss force-pushed the pr-gw-mult-per-ns branch from 40097c3 to b06fc00 Compare March 30, 2022 18:22
@skriss skriss marked this pull request as ready for review March 30, 2022 18:22
@skriss skriss requested a review from a team as a code owner March 30, 2022 18:22
@skriss skriss requested review from tsaarni and stevesloka and removed request for a team March 30, 2022 18:22
@skriss
Copy link
Member Author

skriss commented Mar 30, 2022

Rebased.

@skriss skriss requested a review from sunjayBhatia March 30, 2022 18:30
@skriss skriss merged commit 6ba71fd into projectcontour:main Mar 30, 2022
@skriss skriss deleted the pr-gw-mult-per-ns branch April 6, 2022 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/minor A minor change that needs about a paragraph of explanation in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gateway API: support >1 Contour instance per namespace
2 participants