forked from kubeflow/spark-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support multiple namespaces (kubeflow#1955)
* support multiple namespaces Signed-off-by: Andrew Chubatiuk <[email protected]> * bump helm chart version Signed-off-by: Andrew Chubatiuk <[email protected]> --------- Signed-off-by: Andrew Chubatiuk <[email protected]>
- Loading branch information
1 parent
bc31e45
commit 7a33594
Showing
8 changed files
with
56 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -14,6 +14,10 @@ jobs: | |
skip: ${{ steps.skip-check.outputs.skip }} | ||
version: ${{ steps.skip-check.outputs.VERSION_TAG }} | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Check if build should be skipped | ||
id: skip-check | ||
run: | | ||
|
@@ -48,6 +52,9 @@ jobs: | |
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
platform=${{ matrix.platform }} | ||
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV | ||
echo "SCOPE=${platform//\//-}" >> $GITHUB_ENV | ||
- name: Set up QEMU | ||
timeout-minutes: 1 | ||
|
@@ -69,8 +76,8 @@ jobs: | |
with: | ||
context: . | ||
platforms: ${{ matrix.platform }} | ||
cache-to: type=gha,mode=max | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max,scope=${{ env.SCOPE }} | ||
cache-from: type=gha,scope=${{ env.SCOPE }} | ||
push: true | ||
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true | ||
- name: Export digest | ||
|
@@ -81,7 +88,7 @@ jobs: | |
- name: Upload digest | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: digests | ||
name: digests-${{ env.PLATFORM_PAIR }} | ||
path: /tmp/digests/* | ||
if-no-files-found: error | ||
retention-days: 1 | ||
|
@@ -95,8 +102,9 @@ jobs: | |
- name: Download digests | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: digests | ||
pattern: digests-* | ||
path: /tmp/digests | ||
merge-multiple: true | ||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Docker meta | ||
|
@@ -108,8 +116,9 @@ jobs: | |
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ vars.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create manifest list and push | ||
working-directory: /tmp/digests | ||
run: | | ||
|
This file contains 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 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 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 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
13 changes: 8 additions & 5 deletions
13
charts/spark-operator-chart/templates/spark-serviceaccount.yaml
This file contains 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,13 +1,16 @@ | ||
{{- if .Values.serviceAccounts.spark.create }} | ||
{{- range $sparkJobNamespace := .Values.sparkJobNamespaces | default (list .Release.Namespace) }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "spark.serviceAccountName" . }} | ||
namespace: {{ default .Release.Namespace .Values.sparkJobNamespace }} | ||
{{- with .Values.serviceAccounts.spark.annotations }} | ||
name: {{ include "spark.serviceAccountName" $ }} | ||
namespace: {{ $sparkJobNamespace }} | ||
{{- with $.Values.serviceAccounts.spark.annotations }} | ||
annotations: | ||
{{ toYaml . | indent 4 }} | ||
{{ toYaml $ | indent 4 }} | ||
{{- end }} | ||
labels: | ||
{{- include "spark-operator.labels" . | nindent 4 }} | ||
{{- include "spark-operator.labels" $ | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains 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