Skip to content

Conversation

@puerco
Copy link
Member

@puerco puerco commented May 2, 2021

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Iterating on the krel cve command, this command modifies it to remove the write subcommand to simplify the interface.

Previously, we used krel write to create a new CVE entry, and krel edit to modify an existing entry.

This PR combines both into krel edit, which will present the new CVE template if the entry does not exist yet or pull a CVE entry if we already have data for it.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Depends on #2028

Does this PR introduce a user-facing change?

`krel cve write` has been eliminated, its functionality now lives in `krel cve edit`

puerco added 2 commits May 2, 2021 14:05
This commit adds two functions to the CVE package:
`cve.ValidateID` checks CVE ids externally
Client.EntryExists checks if we already have an entry for a specific CVE
This command drops the previous cve write command and modifies
`krel cve edit` to open a new CVE if it does not exist in the
bucket yet.
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority labels May 2, 2021
@k8s-ci-robot k8s-ci-robot requested review from cpanato and xmudrii May 2, 2021 19:13
@k8s-ci-robot k8s-ci-robot added area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 2, 2021
@puerco
Copy link
Member Author

puerco commented May 2, 2021

Found a bug in the gcs package which needs to go in before this change can be used to edit new CVEs: #2028

/milestone v1.22
/priority important-soon

@k8s-ci-robot k8s-ci-robot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label May 2, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.22 milestone May 2, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 3, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: puerco, saschagrunert

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

@k8s-ci-robot k8s-ci-robot merged commit 0367191 into kubernetes:master May 3, 2021
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. area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/release Categorizes an issue or PR as relevant to SIG Release. 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