Deployment package name is not picked up


#1

When I apply this YAML:

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

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


#2

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

  children:
    - name: "1.0"
      type: udm.DeploymentPackage

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