apiVersion: v1
kind: Secret
metadata:
# this is the jenkins id.
  name: "another-test-file"
  labels:
# so we know what type it is.
    "jenkins.io/credentials-type": "secretFile"
  annotations:
# description - can not be a label as spaces are not allowed
    "jenkins.io/credentials-description" : "secret file credential from Kubernetes"
type: Opaque
data:
# UTF-8 base64 encoded
  filename: bXlTZWNyZXQudHh0  # mySecret.txt
# base64 encoded bytes
  data: bogus # Hello World!
