Skip to content

Add imagePullSecrets to the LavinMQ spec - #82

Open
erkki wants to merge 4 commits into
cloudamqp:mainfrom
bear-metal:imagepullsecrets
Open

Add imagePullSecrets to the LavinMQ spec#82
erkki wants to merge 4 commits into
cloudamqp:mainfrom
bear-metal:imagepullsecrets

Conversation

@erkki

@erkki erkki commented Jul 16, 2026

Copy link
Copy Markdown

Passes spec.imagePullSecrets through to the StatefulSet pod template so the LavinMQ image can be pulled from private registries.

Passes spec.imagePullSecrets through to the StatefulSet pod template so
the LavinMQ image can be pulled from private registries.
Copilot AI review requested due to automatic review settings July 16, 2026 06:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds support for pulling the LavinMQ container image from private registries by exposing spec.imagePullSecrets on the LavinMQ CRD and attempting to propagate it into the StatefulSet pod template.

Changes:

  • Add spec.imagePullSecrets to the LavinMQ API type.
  • Update generated deepcopy code to include the new field.
  • Extend the CRD OpenAPI schema with the new imagePullSecrets field.
  • Propagate spec.imagePullSecrets into the StatefulSet pod template (create path).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
internal/reconciler/statefulset.go Attempts to wire spec.imagePullSecrets into the StatefulSet pod template.
config/crd/bases/cloudamqp.com_lavinmqs.yaml Adds CRD schema for spec.imagePullSecrets.
api/v1alpha1/zz_generated.deepcopy.go Regenerates deepcopy logic for the new field.
api/v1alpha1/lavinmq_types.go Adds ImagePullSecrets to the LavinMQSpec API type.
Files not reviewed (1)
  • api/v1alpha1/zz_generated.deepcopy.go: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/reconciler/statefulset.go
Comment thread internal/reconciler/statefulset.go
Comment thread config/crd/bases/cloudamqp.com_lavinmqs.yaml
erkki and others added 2 commits July 16, 2026 13:52
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Setting imagePullSecrets in appendSpec only affected newly created
StatefulSets; diffTemplate never synced the field, so changing or
removing spec.imagePullSecrets left existing StatefulSets untouched.
Diff it like the other pod template fields and cover the full
lifecycle (create, change, remove) with a test.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • api/v1alpha1/zz_generated.deepcopy.go: Generated file

Comment thread internal/reconciler/statefulset_test.go Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • api/v1alpha1/zz_generated.deepcopy.go: Generated file

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