apiVersion: xl/v2
kind: Blueprint

metadata:
  name: Define a Kubernetes application
  description: |
    This blueprint defines an application that can be deployed to Kubernetes
  author: XebiaLabs
  version: 2.0
  instructions: Read xebialabs/USAGE-kubernetes-application.md to learn how to use this blueprint.

spec:
  parameters:
  - name: KubernetesApplicationName
    type: Input
    prompt: "What is the name of the application that you want to deploy?"
    default: nginx

  - name: KubernetesDeploymentPackageVersion
    type: Input
    prompt: "What is the version of the application that you want to deploy?"
    default: latest

  - name: KubernetesResourcesFile
    type: Input
    prompt: "What is the path of the Kubernetes YAML file that you want to deploy?"
    default: '../kubernetes/deployment.yaml'

  - name: Namespace
    type: Input
    prompt: "Name of namespace to deploy to:"
    default: default

  - name: NamespaceTag
    type: Input
    value: kubernetes-namespace

  files:
  # XebiaLabs
  - path: xebialabs/USAGE-kubernetes-application.md.tmpl
  - path: xebialabs/kubernetes-application.yaml.tmpl
  # Kubernetes
  - path: kubernetes/deployment.yaml.tmpl
