Repository navigation
test: validate readOnlyRootFilesystem on GitOps workloads (GITOPS-7256) - #1585
Naveena-058 wants to merge 2 commits into
Conversation
Add parallel e2e coverage for Argo CD and operator workloads, and set readOnlyRootFilesystem on the gitops-plugin securityContext. Signed-off-by: NAVEENA S <nas@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Signed-off-by: NAVEENA S <nas@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
| AllowPrivilegeEscalation: new(false), | ||
| RunAsNonRoot: ptr.To(true), | ||
| AllowPrivilegeEscalation: ptr.To(false), | ||
| ReadOnlyRootFilesystem: ptr.To(true), |
There was a problem hiding this comment.
Prefer new to ptr.To. That is the direction the codebase is evolving.
|
|
||
| var _ = Describe("GitOps Operator Parallel E2E Tests", func() { | ||
|
|
||
| Context("1-145_validate_read_only_root_filesystem", func() { |
There was a problem hiding this comment.
Please reimplement as an extension to https://github.com/redhat-developer/gitops-operator/blob/9e27b0caba263123cd22d8afa22a249d9ea6d181/test/openshift/e2e/ginkgo/parallel/1-064_validate_deployment_attributes_test.go. It will keep similar things together.
I like your detection through isGitOpsOwnedWorkload, might be worth incorporating there instead of a hardcoded deployment list.
|
@Naveena-058: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What does this PR do?
Adds a parallel Ginkgo e2e test for GITOPS-7256 that verifies GitOps-owned Deployments and StatefulSets explicitly set
securityContext.readOnlyRootFilesystem: true(requirement from GITOPS-6239).Also sets
ReadOnlyRootFilesystem: trueon thegitops-plugincontainer securityContext so the default OpenShift install path matches the same requirement.PR acceptance criteria:
make serve-docsWhat type of PR is this?
/kind enhancement
Special notes to the reviewer:
test/openshift/e2e/ginkgo/parallel/1-145_validate_read_only_root_filesystem_test.goopenshift-gitops+openshift-gitops-operatorworkloads (Label("openshift"))