Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

%k formatter does not work on scalar nodes #54

@scottd018

Description

@scottd018

Query (attempted in both yamlFiles and commonOverlays):

  - name: "adjust tanzu namespace spec values"
    query:
      - spec[*]
      # - spec.*     # also tried this 
    value: "%v" #+workload:%k:default="%v":type=string
    documentQuery:
      - conditions:
          - query: kind
            value: TanzuNamespace

Output (notice the missing key format input to the output manifest):

spec:
  tanzuNamespaceName: tanzu-identity #+workload::default="tanzu-identity":type=string
  tanzuLimitRangeDefaultCpuLimit: 50m #+workload::default="50m":type=string
  tanzuLimitRangeDefaultMemoryLimit: 64Mi #+workload::default="64Mi":type=string
  tanzuLimitRangeDefaultCpuRequest: 50m #+workload::default="50m":type=string
  tanzuLimitRangeDefaultMemoryRequest: 64Mi #+workload::default="64Mi":type=string
  tanzuLimitRangeMaxCpuLimit: 1000m #+workload::default="1000m":type=string
  tanzuLimitRangeMaxMemoryLimit: 1024Mi #+workload::default="1024Mi":type=string
  tanzuResourceQuotaCpuRequests: "6" #+workload::default="6":type=string
  tanzuResourceQuotaMemoryRequests: 8Gi #+workload::default="8Gi":type=string
  tanzuResourceQuotaCpuLimits: "6" #+workload::default="6":type=string
  tanzuResourceQuotaMemoryLimits: 8Gi #+workload::default="8Gi":type=string

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requestedv0.6.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions