Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] clickhouse-keeper credential var can't resolve #8124

Closed
loomts opened this issue Sep 10, 2024 · 1 comment
Closed

[BUG] clickhouse-keeper credential var can't resolve #8124

loomts opened this issue Sep 10, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@loomts
Copy link
Contributor

loomts commented Sep 10, 2024

Describe the bug
credential can't resolve when using other compDef whose name is the prefix of self compDef.name

eg: cmpd-keeper.yaml

apiVersion: apps.kubeblocks.io/v1alpha1
kind: ComponentDefinition
metadata:
  name: clickhouse-keeper
spec:
  vars:
    - name: CLICKHOUSE_ADMIN_PASSWORD
      valueFrom:
        credentialVarRef:
          compDef: clickhouse
          name: admin
          optional: false
          password: Required

will return self compDef.name when resolveReferentComponents

Screenshots

img_v3_02ej_b601d695-88f9-4d49-b6b0-958674b7fafg

@loomts loomts added the kind/bug Something isn't working label Sep 10, 2024
@leon-inf
Copy link
Contributor

It's by design when compdef name matched by prefix. Try to use the regexp feature introduced in #8094.

@github-actions github-actions bot added this to the Release 0.9.2 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants