Skip to content

kyaml: yaml anchors get replaced #308

@FernandoMiguel

Description

@FernandoMiguel

yaml x-anchors are being deleted and inline values replaced.
the whole point of having the anchors is to make it easy to know what values require changing.

x-anchors:
  environment: &environment "alpha"
  internalDnsName: &internalDnsName "test-app.example.com"
  serviceAccountName: &serviceAccountName svcacct
argo:
  clustersgroup:
    - alpha

deployment:
  environment: *environment
  serviceName: test-application
  serviceAccount:
    create: false
    name: *serviceAccountName
#kyaml 
---
{
  x-anchors: {
    environment: "alpha",
    internalDnsName: "test-app.example.com",
    serviceAccountName: "svcacct",
  },
  argo: {
    clustersgroup: [
      "alpha",
    ],
  },
  deployment: {
    environment: "alpha",
    serviceName: "test-application",
    serviceAccount: {
      create: false,
      name: "svcacct",
    },
[...]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions