apiVersion: v1
kind: ServiceAccount
metadata:
  name: keptn-serviceaccount
automountServiceAccountToken: false
---
apiVersion: lifecycle.keptn.sh/v1
kind: KeptnTaskDefinition
metadata:
  name: task-serviceaccount
spec:
  serviceAccount:
    name: keptn-serviceaccount
  automountServiceAccountToken:
    type: false
  retries: 0
  timeout: 30s
  container:
    name: cowsay
    image: rancher/cowsay:latest
    args:
      - 'hello world'
---
apiVersion: lifecycle.keptn.sh/v1
kind: KeptnTask
metadata:
  name: sendserviceaccount
spec:
  taskDefinition: task-serviceaccount
  context:
    appName: "my-app"
    appVersion: "1.0.0"
    objectType: ""
    taskType: ""
    workloadName: "my-workload"
    workloadVersion: "1.0.0"
