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: knative service trait annotation support #4729

Merged

Conversation

realMartinez
Copy link
Contributor

@realMartinez realMartinez commented Sep 11, 2023

- Added route annotations implementation
- Added unit tests
- Added documentation

CLI parameter usage example for clarity:
-t "knaive-service.annotations.'haproxy.router.openshift.io/balance'=true"
This can be repeated to add multiple annotations

Release Note

feat: added annotations support for knative service trait

@github-actions
Copy link
Contributor

🐫 Thank you for contributing!

Code Coverage Report ✔️ - Coverage unchanged.

pkg/apis/camel/v1/trait/knative_service.go Outdated Show resolved Hide resolved
pkg/trait/knative_service.go Outdated Show resolved Hide resolved
pkg/trait/knative_service_test.go Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

🐫 Thank you for contributing!

Code Coverage Report ✔️ - Coverage unchanged.

@realMartinez
Copy link
Contributor Author

I had a look at these issues, the annotations should be appending now and the test should use the correct environment as well. Doc is also displaying the example trait correctly.

@squakez
Copy link
Contributor

squakez commented Sep 13, 2023

Also run a make generate in order to refresh the documentation/API accordingly.

@github-actions
Copy link
Contributor

🐫 Thank you for contributing!

Code Coverage Report ✔️ - Coverage unchanged.

@squakez squakez merged commit c89127a into apache:main Sep 13, 2023
squakez pushed a commit to squakez/camel-k that referenced this pull request Oct 11, 2023
* feat: annotation support for knative svc trait

* doc: annotation documentation

* chore: test fix, annotation append, doc edit

* chore: generated docs

---------

Co-authored-by: Martin Olsiak <[email protected]>
squakez pushed a commit to squakez/camel-k that referenced this pull request Oct 11, 2023
* feat: annotation support for knative svc trait

* doc: annotation documentation

* chore: test fix, annotation append, doc edit

* chore: generated docs

---------

Co-authored-by: Martin Olsiak <[email protected]>
squakez pushed a commit to jboss-fuse/camel-k that referenced this pull request Oct 11, 2023
* feat: annotation support for knative svc trait

* doc: annotation documentation

* chore: test fix, annotation append, doc edit

* chore: generated docs

---------

Co-authored-by: Martin Olsiak <[email protected]>
squakez pushed a commit to jboss-fuse/camel-k that referenced this pull request Nov 3, 2023
* feat: annotation support for knative svc trait

* doc: annotation documentation

* chore: test fix, annotation append, doc edit

* chore: generated docs

---------

Co-authored-by: Martin Olsiak <[email protected]>
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.

4 participants