Skip to content

Use v1 ExternalSecret apiVersion#74

Merged
levkk merged 3 commits intopgdogdev:mainfrom
mikkelam:fix-external-secrets-apiversion
Feb 25, 2026
Merged

Use v1 ExternalSecret apiVersion#74
levkk merged 3 commits intopgdogdev:mainfrom
mikkelam:fix-external-secrets-apiversion

Conversation

@mikkelam
Copy link
Contributor

This updates ExternalSecret resources to use external-secrets.io/v1.

On clusters where only v1 is served, the chart currently fails with:
no matches for kind ExternalSecret in version external-secrets.io/v1beta1

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2291d870c4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,5 +1,5 @@
{{- if and .Values.externalSecrets.enabled .Values.externalSecrets.create }}
apiVersion: external-secrets.io/v1beta1
apiVersion: external-secrets.io/v1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Support v1beta1 when v1 ExternalSecret is unavailable

Hard-coding external-secrets.io/v1 makes installs fail on clusters still running external-secrets versions that only serve external-secrets.io/v1beta1. This is a regression from the previous template behavior for those environments: rendering succeeds but apply fails with no matches for kind "ExternalSecret" because the API version is not served. Please select the API version conditionally (for example via .Capabilities.APIVersions.Has) so both CRD versions remain installable.

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair. Ill make it backwards compatible

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified rendering:

  • with --api-versions external-secrets.io/v1 → renders apiVersion: external-secrets.io/v1
  • with --api-versions external-secrets.io/v1beta1 → renders apiVersion: external-secrets.io/v1beta1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha I do this too, literally open-ended conversations with Claude 😆

@levkk
Copy link
Contributor

levkk commented Feb 25, 2026

Thank you! Will release this asap.

@levkk levkk merged commit 7a5c886 into pgdogdev:main Feb 25, 2026
1 of 2 checks passed
@levkk
Copy link
Contributor

levkk commented Feb 25, 2026

Released in v0.45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants