apiVersion: v1
kind: Secret
metadata:
# this is the jenkins id.
  name: "test-openstack-credential-v3"
  labels:
# so we know what type it is.
    "jenkins.io/credentials-type": "openstackCredentialv3"
  annotations:
# description - can not be a label as spaces are not allowed
    "jenkins.io/credentials-description" : "openstack credentials for you Jenkins in Kubernetes!"
    # map the userName field to un
    "jenkins.io/credentials-keybinding-userName" : "un"
    # map the userDomain field to usword field to ud
    "jenkins.io/credentials-keybinding-userDomain" : "ud"
    # map the projectName field to pn
    "jenkins.io/credentials-keybinding-projectName" : "pn"
    # map the projectDomain field to usword field to pd
    "jenkins.io/credentials-keybinding-projectDomain" : "pd"
    # map the password field to p
    "jenkins.io/credentials-keybinding-password" : "p"
type: Opaque
data:
  un: Y2FzdWFsTmFtZQ==              #casualName
  ud: bWVhbmluZ2Z1bERvbWFpbg==      #meaningfulDomain
  pn: c2ltcGxlUHJvamVjdA==          #simpleProject
  pd: ZXZlclNpbXBsZXJEb21haW4=      #everSimplerDomain
  p: czNjcjN0UGFzcw==               #s3cr3tPass
