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

Allow tracking Cluster-scoped resources. #2304

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Oct 5, 2021

Previously we required namespace to be non-empty, but it never is for Cluster-scoped resources.

This change elides validation for missing namespaces, assuming cluster-scoping.

/kind enhancement

Release Note

tracker now supports Cluster-scoped resources.

Docs


Previously we required namespace to be non-empty, but it never is for Cluster-scoped resources.

This change elides validation for missing namespaces, assuming cluster-scoping.
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 5, 2021
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 5, 2021
@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #2304 (d01c912) into main (74ac82a) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2304      +/-   ##
==========================================
+ Coverage   64.35%   64.39%   +0.04%     
==========================================
  Files         226      226              
  Lines        9628     9629       +1     
==========================================
+ Hits         6196     6201       +5     
+ Misses       3157     3155       -2     
+ Partials      275      273       -2     
Impacted Files Coverage Δ
tracker/enqueue.go 98.26% <100.00%> (+0.01%) ⬆️
test/gcs/mock/mock.go 92.47% <0.00%> (+2.15%) ⬆️

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 74ac82a...d01c912. Read the comment docs.

Copy link
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, vagababov

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 merged commit b4b8bca into knative:main Oct 5, 2021
@mattmoor mattmoor deleted the tracker-cluster-scope branch October 5, 2021 19:56
@@ -333,15 +333,6 @@ func TestBadObjectReferences(t *testing.T) {
Name: "kaniko",
},
match: "Kind",
}, {
name: "Missing Namespace",
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please add a test into TestAllowedObjectReferences with the lack of a namespace?

@dprotaso
Copy link
Member

dprotaso commented Oct 7, 2021

bump followup test PR

@dprotaso
Copy link
Member

dprotaso commented Oct 7, 2021

nm - it's here: #2306

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. kind/enhancement lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants