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 support for Profiles #1903

Merged
merged 7 commits into from Dec 20, 2023
Merged

Conversation

sharmaansh21
Copy link
Contributor

@sharmaansh21 sharmaansh21 commented Dec 6, 2023

Description

This PR adds support for creating profiles for annotation and labels. A "profile" is a named collection of such meta-data that can be selected when creating or updating Knative services.

Changes

Added a flag for adding a profile while creating or updating the service. Also added a built-in profile, Istio.

Reference

Fixes #1890

Release Note

Added support for the --profile flag, which will add the related annotations and labels to the service.

Copy link

knative-prow bot commented Dec 6, 2023

Welcome @sharmaansh21! It looks like this is your first PR to knative/client 🎉

Copy link

knative-prow bot commented Dec 6, 2023

Hi @sharmaansh21. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow knative-prow bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Dec 6, 2023
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 6, 2023
@sharmaansh21 sharmaansh21 changed the title Add support for Profiles [W.I.P] Add support for Profiles Dec 6, 2023
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (7b11654) 79.20% compared to head (93a6280) 79.21%.

Files Patch % Lines
...kg/kn/commands/service/configuration_edit_flags.go 83.01% 6 Missing and 3 partials ⚠️
pkg/kn/config/config.go 81.08% 5 Missing and 2 partials ⚠️
pkg/kn/config/testing.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1903      +/-   ##
==========================================
+ Coverage   79.20%   79.21%   +0.01%     
==========================================
  Files         180      180              
  Lines       14075    14166      +91     
==========================================
+ Hits        11148    11222      +74     
- Misses       2155     2167      +12     
- Partials      772      777       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsimansk
Copy link
Contributor

dsimansk commented Dec 6, 2023

/ok-to-test
/wip

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 6, 2023
@dsimansk dsimansk added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 6, 2023
Copy link

linux-foundation-easycla bot commented Dec 6, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

pkg/kn/config/types.go Outdated Show resolved Hide resolved
@dsimansk
Copy link
Contributor

dsimansk commented Dec 6, 2023

@sharmaansh21: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name Commit Details Required Rerun command
build-tests_client_main 8752d02 link true /test build-tests

Your PR dashboard.

For this failure rerun ./hack/build.sh -c to generate new docs .md files pls.

@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 6, 2023
@sharmaansh21 sharmaansh21 force-pushed the add-profiles-support branch 3 times, most recently from cb6bb39 to 0b14ad0 Compare December 7, 2023 11:56
@sharmaansh21 sharmaansh21 force-pushed the add-profiles-support branch 2 times, most recently from c3034c3 to ef8fd68 Compare December 7, 2023 16:34
@sharmaansh21
Copy link
Contributor Author

/retest-required

@sharmaansh21 sharmaansh21 changed the title [W.I.P] Add support for Profiles Add support for Profiles Dec 7, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 7, 2023
@dsimansk
Copy link
Contributor

dsimansk commented Dec 8, 2023

Unrelated flake

/retest

@dsimansk
Copy link
Contributor

dsimansk commented Dec 8, 2023

The PR looks quiet complete to me. I've added one or two more suggestions, of course. :)

Great work with additional tweaks, plus decent test coverage!

Pls bring back the PR template into PR description. Hence it makes easier to generate release notes.
https://github.com/knative/client/blob/main/.github/pull-request-template.md

@sharmaansh21
Copy link
Contributor Author

@dsimansk Thank you for quickly reviewing it; I incorporated all the feedback that you asked :)

@dsimansk
Copy link
Contributor

dsimansk commented Dec 8, 2023

/retest

@dsimansk
Copy link
Contributor

Sorry for the delay, I was out of office during last week. IMO the PR looks good. I'm going to stamp it. Feel free to capture any further thoughts/enhancements in new issue.

Thanks for contribution and great Hackathon event!

/approve
/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 20, 2023
Copy link

knative-prow bot commented Dec 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dsimansk, sharmaansh21

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 knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 20, 2023
@dsimansk dsimansk added kind/feature New feature or request approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 20, 2023
@knative-prow knative-prow bot merged commit 70805a6 into knative:main Dec 20, 2023
23 checks passed
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. kind/feature New feature or request knative48h Issue selected for the "48h Knative" hackathon lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

[48h Knative] Annotation and Label profiles
3 participants