couler-proj / couler

Unified Interface for Constructing and Managing Workflows on different workflow engines, such as Argo Workflows, Tekton Pipelines, and Apache Airflow.

Home Page:https://couler-proj.github.io/couler/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify securityContext

kodeninja opened this issue · comments

The k8s cluster I deploy to has a pod security policy, and requires that the Argo workflows have the following, top-level securityContext:

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: main-
spec:
  securityContext:
     fsGroup: 2000
     runAsNonRoot: true
     runAsUser: 1000
...

How can I specify that via couler? I couldn't find anything in the docs.

Right, this applies at the workflow level.

Is this a good PR for reference: #195?