Skip to content

alpha feature "Targeting Custom Resources" - "Advanced Path Targeting" templating works not as expected #5587

@Sven1410

Description

@Sven1410

ESO version 1.00

this works as expected:

  templateFrom:
    - literal: |
        slack:
          api_url: https://www.whatever.com
      target: spec

this is not working:

    template:
      engineVersion: v2
      templateFrom:
        - literal: |
            api_url: https://www.whatever.com
          target: spec.slack

produces:

"msg":"unknown field "spec.slack.slack"","controller":"externalsecret","controllerGroup":"external-secrets.io","controllerKind":"ExternalSecret",...

additionally, this is also not working:

      templateFrom:
        - literal: |
            slack:
              api_url: {{ .url }}
          target: spec

with:

  data:
    - secretKey: url
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None   
        metadataPolicy: None
        key: vaultpath/asecretinvault

it produces:

"unknown field "spec.slack.api_url.url"","controller":"externalsecret","controllerGroup":"external-secrets.io","controllerKind":"ExternalSecret","ExternalSecret":...

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.track/coreCaptures issues that are related to Core controller work

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions