forked from argoproj/argo-workflows
-
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.
feat: Native Google Cloud Storage support for artifact. Closes argopr…
- Loading branch information
Showing
19 changed files
with
1,722 additions
and
458 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This example demonstrates the loading of a hard-wired input artifact from a GCP storage. | ||
# | ||
# It uses a GCP Service Account Key stored as a regular Kubernetes secret, to access GCP storage. | ||
# To create the secret required for this example, first run the following command: | ||
# | ||
# $ kubectl create secret generic my-gcs-credentials --from-file=serviceAccountKey=<YOUR-SERVICE-ACCOUNT-KEY-file> | ||
# | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: input-artifact-gcs- | ||
spec: | ||
entrypoint: input-artifact-gcs-example | ||
templates: | ||
- name: input-artifact-gcs-example | ||
inputs: | ||
artifacts: | ||
- name: my-art | ||
path: /my-artifact | ||
gcs: | ||
bucket: my-bucket-name | ||
# key could be either a file or a directory. | ||
key: path/in/bucket | ||
# serviceAccountKeySecret is a secret selector. | ||
# It references the k8s secret named 'my-gcs-credentials'. | ||
# This secret is expected to have have the key 'serviceAccountKey', | ||
# containing the base64 encoded Google Cloud Service Account Key (json) | ||
# to the bucket. | ||
# | ||
# If it's running on GKE, and Workload Identity is used, | ||
# serviceAccountKeySecret is not needed. | ||
serviceAccountKeySecret: | ||
name: my-gcs-credentials | ||
key: serviceAccountKey | ||
container: | ||
image: debian:latest | ||
command: [sh, -c] | ||
args: ["ls -l /my-artifact"] |
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
Oops, something went wrong.