Skip to content

Add flux create secret receiver command#5835

Merged
stefanprodan merged 2 commits into
mainfrom
create-secret-receiver
Apr 10, 2026
Merged

Add flux create secret receiver command#5835
stefanprodan merged 2 commits into
mainfrom
create-secret-receiver

Conversation

@stefanprodan

@stefanprodan stefanprodan commented Apr 10, 2026

Copy link
Copy Markdown
Member

Make it easy for users to generate Receiver secrets where the the token is auto-generated. For GCR receivers, the command also adds the email and audience to the Secret.

flux create secret receiver gcr-receiver \
    --namespace=apps \
    --type=gcr \
    --hostname=flux.example.com \
    [email protected] \
    --export
apiVersion: v1
kind: Secret
metadata:
  annotations:
    notification.toolkit.fluxcd.io/webhook: https://flux.example.com/hook/36f686ffe710b32627038fc3e87a8ecd14c4711371b36efc4bd4696c970f6cc4
  name: gcr-receiver
  namespace: apps
stringData:
  audience: https://flux.example.com/hook/36f686ffe710b32627038fc3e87a8ecd14c4711371b36efc4bd4696c970f6cc4
  email: [email protected]
  token: d785a2624ad4020387f3088a79c21e538888fa00c8783c1f3098084cd43eb975

@stefanprodan stefanprodan added area/notification Notification API related issues and pull requests area/ux In pursuit of a delightful user experience labels Apr 10, 2026

@matheuscscp matheuscscp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! 🚀

@stefanprodan stefanprodan added the backport:release/v2.8.x To be backported to release/v2.8.x label Apr 10, 2026
@stefanprodan stefanprodan merged commit 7c9810e into main Apr 10, 2026
7 checks passed
@stefanprodan stefanprodan deleted the create-secret-receiver branch April 10, 2026 10:12
@fluxcdbot

Copy link
Copy Markdown
Member

Successfully created backport PR for release/v2.8.x:

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

Labels

area/notification Notification API related issues and pull requests area/ux In pursuit of a delightful user experience backport:release/v2.8.x To be backported to release/v2.8.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants