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

add security policy schema and resource with unit tests #53

Conversation

ishangupta-ds
Copy link
Contributor

Signed-off-by: Ishan Gupta gishan@vmware.com

  1. What this PR does / why we need it: This PR adds security policy schema and resource with unit tests.

  2. Additional information: Tested for all the scenarios.

@ishangupta-ds ishangupta-ds added the enhancement New feature or request label Aug 5, 2022
@ishangupta-ds ishangupta-ds self-assigned this Aug 5, 2022
@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch from f5cd7ba to 84f2220 Compare August 5, 2022 11:18
@shreyassreenivas
Copy link
Contributor

Can you break it into multiple logical commits

@ishangupta-ds
Copy link
Contributor Author

Can you break it into multiple logical commits

Sure

@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch 2 times, most recently from 9d53e98 to e6c298b Compare August 8, 2022 09:26
@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch 3 times, most recently from 0e34b92 to c61367f Compare August 8, 2022 17:13
@shreyassreenivas shreyassreenivas dismissed their stale review August 8, 2022 18:10

break it into logical commits

@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch from c61367f to f832cd1 Compare August 9, 2022 05:58
@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch from f832cd1 to 30dff58 Compare August 9, 2022 08:04
@ishangupta-ds
Copy link
Contributor Author

ishangupta-ds commented Aug 9, 2022

Can you break it into multiple logical commits

Done @shreyassreenivas

@ishangupta-ds
Copy link
Contributor Author

PTAL again, @shreyassreenivas , @Vasundharashukla and @shobha2626

@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch from 30dff58 to 0c5d9e9 Compare August 10, 2022 01:33
Signed-off-by: Ishan Gupta <gishan@vmware.com>
Signed-off-by: Ishan Gupta <gishan@vmware.com>
Signed-off-by: Ishan Gupta <gishan@vmware.com>
Signed-off-by: Ishan Gupta <gishan@vmware.com>
Signed-off-by: Ishan Gupta <gishan@vmware.com>
Signed-off-by: Ishan Gupta <gishan@vmware.com>
@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch 4 times, most recently from 3f4567e to 2565db1 Compare August 10, 2022 06:36
Copy link
Contributor

@shreyassreenivas shreyassreenivas left a comment

Choose a reason for hiding this comment

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

LGTM

allow_privilege_escalation = true
allow_host_namespace_sharing = true
allow_host_network = true
read_only_root_file_system = true
Copy link
Contributor

Choose a reason for hiding this comment

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

super nit : check the indentation of =

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shreyassreenivas
Copy link
Contributor

If all the edge cases are tested and validated, feel free to merge the feature branch into master.
Documentation for this PR can be merged as a separately

Signed-off-by: Ishan Gupta <gishan@vmware.com>
Signed-off-by: Ishan Gupta <gishan@vmware.com>
@ishangupta-ds ishangupta-ds force-pushed the gishan/security-policy-schema-and-resource-with-unit-tests branch from 2565db1 to a14191f Compare August 10, 2022 07:18
@ishangupta-ds
Copy link
Contributor Author

examples/resources/security_policy/resource_cluster_custom_security_policy.tf

yes. Merging this to the feature branch. After this, I will add the acceptance test. Also will add the unknown value for enum as a separate commit.

@ishangupta-ds ishangupta-ds merged commit fa102fa into feat/security-policy Aug 10, 2022
@ishangupta-ds
Copy link
Contributor Author

examples/resources/security_policy/resource_cluster_custom_security_policy.tf

yes. Merging this to the feature branch. After this, I will add the acceptance test. Also will add the unknown value for enum as a separate commit.

#56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants