Skip to content

feat: pass registry auth secret as --image-pull-secret to func CLI#126

Open
creydr wants to merge 2 commits intofunctions-dev:mainfrom
creydr:image-pull-secret-cli-flag
Open

feat: pass registry auth secret as --image-pull-secret to func CLI#126
creydr wants to merge 2 commits intofunctions-dev:mainfrom
creydr:image-pull-secret-cli-flag

Conversation

@creydr
Copy link
Copy Markdown
Collaborator

@creydr creydr commented May 5, 2026

Summary

  • When spec.registry.authSecretRef is set, the operator now passes the secret name via --image-pull-secret to func deploy, so the func CLI sets imagePullSecrets directly on the function's pod spec
  • Adds ImagePullSecret field to DeployOptions and wires it through the CLI argument construction
  • Includes unit test verifying Deploy() is called with the correct ImagePullSecret when authSecretRef is configured

ToDo:

@creydr creydr changed the title feat: pass registry auth secret as --image-pull-secret to func CLI feat: pass registry auth secret as --image-pull-secret to func CLI May 5, 2026
When spec.registry.authSecretRef is set, pass the secret name via
--image-pull-secret so the func CLI sets imagePullSecrets directly
on the function's pod spec.
@creydr creydr force-pushed the image-pull-secret-cli-flag branch from 2f250eb to de2f8fb Compare May 5, 2026 16:08
Verify that when spec.registry.authSecretRef is set, the operator
passes --image-pull-secret to func deploy and the Knative Service's
pod template receives imagePullSecrets.

Also exclude dupl linter for test/ directory.
@creydr creydr force-pushed the image-pull-secret-cli-flag branch from de2f8fb to 224a525 Compare May 5, 2026 16:10
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.

1 participant