Skip to content

If generatorRef is incorrect, PushSecret should error out #4546

@druchoo

Description

@druchoo

Describe the bug
A clear and concise description of what the bug is.
kind: PushSecret errors with could not get source secret when using kind: UUID generator.

To Reproduce
Steps to reproduce the behavior:

  1. relevant manifests
---
apiVersion: generators.external-secrets.io/v1alpha1
kind: UUID
metadata:
  name: uuid

---
apiVersion: external-secrets.io/v1alpha1
kind: PushSecret
metadata:
  name: my-push-secret
spec:
  data:
    - match:
        remoteRef:
          remoteKey: my-push-secret
        secretKey: uuid
      metadata:
        secretPushFormat: string
  secretStoreRefs:
    - kind: ClusterSecretStore
      name: aws-sm
  selector:
    generatorRef:
      apiVersion: external-secrets.io/v1alpha1
      kind: UUID
      name: uuid
  1. Kubernetes and ESO version
    Kubernetes: EKS 1.30
    ESO: v0.14.4

Expected behavior
The PushSecret should successfully reconcile when using the UUID generator.

Additional context
A PushSecret with a similar manifest (change generatorRef and secretKey) using Fake, ECRAuthorizationToken and Password generators all successfully reconcile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerskind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions