Deployment package name is not picked up


When I apply this YAML:

apiVersion: xl-deploy/v1
kind: Applications
  - name: Banking
    type: core.Directory
    - name: mortgage-app
      type: udm.Application
        - name: 1.0
          type: udm.DeploymentPackage

The deployment package name is “1” instead of “1.0”.


YAML is treating it as a number rather than a string. You just need to put the package name in quotation marks:

    - name: "1.0"
      type: udm.DeploymentPackage

Check out Strings in YAML - To Quote or not to Quote for more information about YAML and strings.