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

Add conditions to HTTPProxy and TLSCertificateDelegation #2706

Merged
merged 2 commits into from
Jul 23, 2020

Conversation

youngnick
Copy link
Member

Updates #2495.

This adds a new DetailedCondition type to HTTPProxy, that allows for sub-conditions.

This allows Contour to have a Valid condition, that has further information about
how that conditions status has been reached, or in other words, to expose more
than one error or warning about a HTTPProxy to the user.

Also adds the Conditions block to TLSCertificateDelegation.

Signed-off-by: Nick Young ynick@vmware.com

@youngnick youngnick added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jul 21, 2020
@youngnick youngnick self-assigned this Jul 21, 2020
@codecov
Copy link

codecov bot commented Jul 21, 2020

Codecov Report

Merging #2706 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2706      +/-   ##
==========================================
- Coverage   76.93%   76.90%   -0.04%     
==========================================
  Files          72       72              
  Lines        5715     5715              
==========================================
- Hits         4397     4395       -2     
- Misses       1227     1228       +1     
- Partials       91       92       +1     
Impacted Files Coverage Δ
internal/dag/cache.go 98.09% <0.00%> (-0.96%) ⬇️

@youngnick youngnick force-pushed the add-httpproxy-conditions branch 2 times, most recently from 5b7bec3 to b288839 Compare July 21, 2020 06:57
@stevesloka stevesloka added this to the 1.7.0 milestone Jul 21, 2020
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Overall, looks great. Just a few nits, and I'd recommend using make site-devel to view the generated API reference and reviewing that it reads and formats correctly.

apis/projectcontour/v1/detailedconditions.go Outdated Show resolved Hide resolved
apis/projectcontour/v1/detailedconditions.go Show resolved Hide resolved
apis/projectcontour/v1/detailedconditions.go Outdated Show resolved Hide resolved
apis/projectcontour/v1/detailedconditions.go Outdated Show resolved Hide resolved
apis/projectcontour/v1/kubeconditions.go Show resolved Hide resolved
apis/projectcontour/v1/httpproxy.go Outdated Show resolved Hide resolved
apis/projectcontour/v1/detailedconditions.go Show resolved Hide resolved
@youngnick youngnick requested a review from jpeach July 23, 2020 04:11
@youngnick youngnick force-pushed the add-httpproxy-conditions branch 3 times, most recently from 0c0ae92 to 0bbee0b Compare July 23, 2020 04:28
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Looks good. Nice additional doc additions.

Updates projectcontour#2495.

This adds a new `DetailedCondition` type to HTTPProxy, that allows for sub-conditions.

This allows Contour to have a `Valid` condition, that has further information about
how that conditions `status` has been reached, or in other words, to expose more
than one error or warning about a HTTPProxy to the user.

Also adds the Conditions block to TLSCertificateDelegation.

Signed-off-by: Nick Young <ynick@vmware.com>
Signed-off-by: Nick Young <ynick@vmware.com>
@youngnick youngnick merged commit cc3076a into projectcontour:master Jul 23, 2020
tthebst pushed a commit to tthebst/contour that referenced this pull request Aug 6, 2020
…our#2706)

Updates projectcontour#2495.

This adds a new `DetailedCondition` type to HTTPProxy, that allows for sub-conditions.

This allows Contour to have a `Valid` condition, that has further information about
how that conditions `status` has been reached, or in other words, to expose more
than one error or warning about a HTTPProxy to the user.

Also adds the Conditions block to TLSCertificateDelegation.

Signed-off-by: Nick Young <ynick@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants