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

Introduce kebab-case annotation variants #562

Merged
merged 2 commits into from
Nov 18, 2021

Conversation

dprotaso
Copy link
Member

@dprotaso dprotaso commented Nov 16, 2021

Introduce alternative annotation with kebab-case to be consistent with other parts of Knative Serving.

Serving will accept these variants on public resources (Service, Route) and use the older variants for now since those are more widely supported.

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 16, 2021
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 16, 2021
@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 16, 2021
@dprotaso
Copy link
Member Author

/hold

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 16, 2021
@codecov
Copy link

codecov bot commented Nov 16, 2021

Codecov Report

Merging #562 (2ec1835) into main (23992f1) will decrease coverage by 1.40%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #562      +/-   ##
==========================================
- Coverage   94.73%   93.33%   -1.41%     
==========================================
  Files          38       38              
  Lines         798      810      +12     
==========================================
  Hits          756      756              
- Misses         30       42      +12     
  Partials       12       12              
Impacted Files Coverage Δ
pkg/apis/networking/metadata_validation.go 100.00% <ø> (ø)
pkg/apis/networking/register.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23992f1...2ec1835. Read the comment docs.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 17, 2021
@dprotaso dprotaso changed the title support kebab-case annotations [wip] support kebab-case annotations Nov 17, 2021
@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 17, 2021
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 18, 2021
@dprotaso dprotaso changed the title [wip] support kebab-case annotations Introduce kebab-case annotation variants Nov 18, 2021
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 18, 2021
@dprotaso
Copy link
Member Author

dprotaso commented Nov 18, 2021

/hold cancel

@nak3 I've simplified my approach here. It's easier if the serving controller just transforms these kebab-case annotations to the older format. This gives us time for downstream implementations to adopt the newer annotation case - if they ever do so

This satisfies knative/serving#12103

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 18, 2021
@nak3
Copy link
Contributor

nak3 commented Nov 18, 2021

Sounds good. So, net-* downstream repos do not need to adopt this change for a while. Then, Is it possible to see the POC code on serving repo which uses this change?

@dprotaso
Copy link
Member Author

dprotaso commented Nov 18, 2021 via email

@nak3
Copy link
Contributor

nak3 commented Nov 18, 2021

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 18, 2021
@knative-prow-robot knative-prow-robot merged commit 7f3da83 into knative:main Nov 18, 2021
@dprotaso dprotaso deleted the multiple-annotations branch November 18, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants