-
-
Notifications
You must be signed in to change notification settings - Fork 3
[Merged by Bors] - OpenShift compatibility #126
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0b459b2
Added SCC and update cluster role name
razvan a5ca51e
Fix indentantion.
razvan 08b47f4
make regenerate-charts
razvan 35f37f2
Update the spark-k8s-clusterrole to allow spark-submit to create pods.
razvan f12f35e
wip: minio setup on openshift.
razvan 78663be
kuttl tests: still wip
razvan 1ad6924
Add run_as_group and use the same node label as the airflow tests.
razvan db682b2
Merge branch 'main' into 125-openshift-compatibility
razvan d32ed11
make regenerate-charts
razvan 88a9366
Remove runAsNonRoot
razvan ff89e54
make regenerate-charts
razvan 652fe77
Fix minio public bucket setup.
razvan 6ad750b
spark-pi-public-s3 test now works
razvan a505a71
private s3 test works
razvan bc66a60
kuttl test spark-ny-public-s3 works.
razvan a7a3c09
All kuttl tests work now.
razvan a27c9ed
Update the security context of the operator Pod
razvan e869395
make regenerate-charts
razvan 6aeaced
Update CHANGELOG.
razvan 39d6aa9
Add runAsUser to the Spark application security context.
razvan 0bcaa03
Add runAsUser to Spark pod templates too.
razvan d1c1a87
Wait for the Minio deployment to be ready.
razvan 98b5eb1
Merge node-selector and spark-examples
razvan 24c9160
Merge branch 'main' into 125-openshift-compatibility
razvan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 72 additions & 5 deletions
77
deploy/helm/spark-k8s-operator/templates/spark-clusterrole.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,82 @@ | ||
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }} | ||
--- | ||
apiVersion: security.openshift.io/v1 | ||
kind: SecurityContextConstraints | ||
metadata: | ||
name: spark-k8s-scc | ||
annotations: | ||
kubernetes.io/description: |- | ||
This resource is derived from hostmount-anyuid. It provides all the features of the | ||
restricted SCC but allows host mounts and any UID by a pod. This is primarily | ||
used by the persistent volume recycler. WARNING: this SCC allows host file | ||
system access as any UID, including UID 0. Grant with caution. | ||
release.openshift.io/create-only: "true" | ||
allowHostDirVolumePlugin: true | ||
allowHostIPC: false | ||
allowHostNetwork: false | ||
allowHostPID: false | ||
allowHostPorts: false | ||
allowPrivilegeEscalation: true | ||
allowPrivilegedContainer: false | ||
allowedCapabilities: null | ||
defaultAddCapabilities: null | ||
fsGroup: | ||
type: RunAsAny | ||
groups: [] | ||
priority: null | ||
readOnlyRootFilesystem: false | ||
runAsUser: | ||
type: RunAsAny | ||
seLinuxContext: | ||
type: MustRunAs | ||
supplementalGroups: | ||
type: RunAsAny | ||
volumes: | ||
- configMap | ||
- downwardAPI | ||
- emptyDir | ||
- hostPath | ||
- nfs | ||
- persistentVolumeClaim | ||
- projected | ||
- secret | ||
- ephemeral | ||
{{ end }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: spark-driver-edit-role | ||
name: {{ include "operator.name" . }}-clusterrole | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods", "services", "configmaps"] | ||
verbs: ["get", "list", "watch", "create", "delete"] | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- persistentvolumeclaims | ||
- configmaps | ||
- pods | ||
- secrets | ||
- serviceaccounts | ||
- services | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- events.k8s.io | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }} | ||
- apiGroups: | ||
- security.openshift.io | ||
resources: | ||
- securitycontextconstraints | ||
resourceNames: | ||
- spark-k8s-scc | ||
verbs: | ||
- use | ||
{{ end }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
tests/templates/kuttl/node-selector/10-deploy-spark-app.yaml.j2
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
tests/templates/kuttl/pyspark-ny-public-s3-image/00-s3-upload-container.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.