apiVersion: v1
kind: Secret
metadata:
  # this is the jenkins id.
  name: "a-test-githubapp"
  labels:
    # so we know what type it is.
    "jenkins.io/credentials-type": "githubApp"
  annotations:
    # description - can not be a label as spaces are not allowed
    "jenkins.io/credentials-description": "credentials from Kubernetes"
type: Opaque
data:
  # UTF-8 base64 encoded
  appId: MTI=     #12
  privateKey: c29tZSBwcml2YXRlIGtleSBjb250ZW50         #some private key content
  apiUri: aHR0cHM6Ly9ob3N0LmdpdGh1Yi9hcGkvdjM= # https://host.github/api/v3
  owner: b3duZXIx #owner1

