-
Notifications
You must be signed in to change notification settings - Fork 777
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
To support gitURLs for "apply" command #4502
To support gitURLs for "apply" command #4502
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4502 +/- ##
==========================================
+ Coverage 36.50% 36.59% +0.09%
==========================================
Files 173 173
Lines 19321 19375 +54
==========================================
+ Hits 7053 7091 +38
- Misses 11469 11477 +8
- Partials 799 807 +8
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Why these test cases failing? Any idea? |
@vyankyGH , can you help me here. Why these test are failing ? |
These are linter errors, they are explained in the files changed tab. |
Hey @eddycharly , still could not figure out linter errors. Can you please explain in bit detail how to resolve it. |
Hey @realshuting , need your help to resolve test cases failing ? |
@viveksahu26 all linter errors are visible in the |
Hi @eddycharly , getting these lines |
@viveksahu26 those are not mandatory. can you please fix one with test which is failing with resolves conflicts |
@viveksahu26 can you please fix one with test which is failing with resolves conflicts |
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
@vyankyGH - any additional comments? Let's get these PRs merged asap to avoid further conflicts. |
@viveksahu26 sorry for the late reply, can you resolve conflicts please ? |
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
Head branch was pushed to by a user without write access
Thanks @viveksahu26, let's get this in ! |
Explanation
This PR adds support for
apply
command to apply policies from gitURLs on cluster resources.Related issue
Closes #3822
Milestone of this PR
/milestone 1.9.0
What type of PR is this
/kind enhancement
Proposed Changes
Support policies directly from gitURLs
kyverno apply https://github.com/kyverno/policies/openshift/ --git-branch main --cluster
Addition of new Flags in apply command --->
--git-branch
or-b
Supports policies from particular folders ("openshift" or "/openshift/team-validate-ns-name/" , "best-practices", "cert-manager" , etc)
Example:
kyverno apply https://github.com/kyverno/policies/openshift/team-validate-ns-name/ --git-branch main --cluster
Generalized Form:
kyverno apply https://github.com/{owner}/{repository}/{directory} --git-branch {branch} --cluster
Where,
owner
could be "kyverno" or any usernamerepository
would be "policies"directory
could be "openshift" or "openshift/team-validate-ns-name/" or "pod-security", etcbranch
could be "main", or "master", or "release-1.8" or "release-1.7"Proof Manifests
Checklist
Further Comments