Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NoSkillGirl committed Nov 4, 2020
1 parent 0e1f050 commit 603a5fc
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions pkg/kyverno/apply/Readme.md
@@ -1,24 +1,20 @@
Apply Command Possibilities
Apply Command - Valid Parameter Combinations and their interpretation!

| S.No | policy | resource | cluster | namespace | interpretation |
| ---- |:-------------:| :---------------:| :-------------:| :-------------:| :-----------------------------------------------:|
| 1. | policy.yaml | -r resource.yaml | | | apply policy from file to the resource from file |
| 2. | policy.yaml | -r resourceName | --cluster | | apply policy from file to the resource in cluster|
| 3. | policy.yaml | | --cluster | | apply policy from file to all the resources in cluster|
| 4. | policy.yaml | -r resourceName | --cluster | -n=namespace | apply policy from file to the resource in cluster in mentioned namespace |
| 5. | policy.yaml | | --cluster | -n=namespace | apply policy from file to all the resources in cluster in mentioned namespace |
| 6. | policyName | -r resource.yaml | --cluster | | invalid condition as policy cannot be in cluster when applying to resource outside cluster |
| 7. | policyName | -r resource.yaml | --cluster | -n=namespace | invalid condition as policy cannot be in cluster when applying to resource outside cluster |
| 8. | policyName | -r resourceName | --cluster | | apply policy from cluster to the resource in cluster |
| 9. | policyName | | --cluster | | apply polify from cluster to all the resouces in cluster |
| 10. | policyName | -r resourceName | --cluster | -n=namespace | apply policy from cluster to the resource in cluster in mentioned namespace |
| 11. | policyName | | --cluster | -n=namespace | apply polify from cluster to all the resouces in cluster in mentioned namespace |
| 12. | | -r resource.yaml | --cluster | | invalid condition as policy cannot be in cluster when applying to resource outside cluster |
| 13. | | -r resource.yaml | --cluster | -n=namespace | invalid condition as policy cannot be in cluster when applying to resource outside cluster |
| 14. | | -r resourceName | --cluster | | applying all policies from the cluster to resouce in cluster |
| 15. | | -r resourceName | --cluster | -n=namespace | applying all policies from the cluster to resouce in cluster in mentioned namespace |
| 16. | | | --cluster | | applying all policies from the cluster to all resouces in cluster |
| 16. | | | --cluster | | applying all policies from the cluster to all resouces in cluster in mentioned namespace |
| S.No | policy | resource | cluster | namespace | interpretation |
| ---- |:-------------:| :---------------:| :--------:| :-------------:| :----------------------------------------------------------------------------------------|
| 1. | policy.yaml | -r resource.yaml | false | | apply policy from file to the resource from file |
| 2. | policy.yaml | -r resourceName | true | | apply policy from file to the resource in cluster |
| 3. | policy.yaml | | true | | apply policy from file to all the resources in cluster |
| 4. | policy.yaml | -r resourceName | true | -n=namespace | apply policy from file to the resource in cluster in mentioned namespace |
| 5. | policy.yaml | | true | -n=namespace | apply policy from file to all the resources in cluster in mentioned namespace |
| 6. | policyName | -r resourceName | true | | apply policy from cluster to the resource in cluster |
| 7. | policyName | | true | | apply polify from cluster to all the resouces in cluster |
| 8. | policyName | -r resourceName | true | -n=namespace | apply policy from cluster to the resource in cluster in mentioned namespace |
| 9. | policyName | | true | -n=namespace | apply polify from cluster to all the resouces in cluster in mentioned namespace |
| 10. | | -r resourceName | true | | applying all policies from the cluster to resouce in cluster |
| 11. | | -r resourceName | true | -n=namespace | applying all policies from the cluster to resouce in cluster in mentioned namespace |
| 12. | | | true | | applying all policies from the cluster to all resouces in cluster |
| 13. | | | true | | applying all policies from the cluster to all resouces in cluster in mentioned namespace |



Expand Down

0 comments on commit 603a5fc

Please sign in to comment.