Apply conditions readme
Apply Command Possibilities
-| parameters | interpretation |
-| ------------- |:-------------:|
-| kyverno apply policy.yaml -r resource.yaml | apply policy from file to the resource from file |
-| kyverno apply policy.yaml -r resource_name --cluster | apply policy from file to the resource in cluster |
-| kyverno apply policy.yaml -r resource_name1 resource_name2 --cluster | apply policy from file to the resource1 and resource2 in cluster |
-| kyverno apply policy.yaml --cluster | apply policy from file to all the resources in cluster |
-| kyverno apply policy_name -r resource_name --cluster | apply policy from cluster to resource in cluster |
-| kyverno apply --cluster | apply all policies from cluster to all resources in cluster |
-| kyverno apply policy.yaml --cluster | apply policy from file to all the resources in cluster |
-| kyverno apply policy_name -r resource.yaml --cluster | invalid because whenever policy is inside the cluster, resource should be also in the cluster |
\ No newline at end of file
+| 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 |
+
+
+
+
