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

feat: Support for imagePullSecrets #112

Merged
merged 12 commits into from
Sep 28, 2021
Merged

feat: Support for imagePullSecrets #112

merged 12 commits into from
Sep 28, 2021

Conversation

estahn
Copy link
Owner

@estahn estahn commented Sep 24, 2021

Add support for pulling images from sources requiring authentication.
The feature adheres to imagePullSecrets in Pods and ServiceAccounts.

Loosely based on some of @DolevAlgam's work in #92

fixes #19

Add support for pulling images from sources requiring authentication.
The feature adheres to `imagePullSecrets` in `Pod`s and `ServiceAccount`s.

Loosely based on some of @DolevAlgam's work in #92

fixes #19
@estahn estahn added the enhancement New feature or request label Sep 24, 2021
@estahn estahn self-assigned this Sep 24, 2021
@codecov
Copy link

codecov bot commented Sep 24, 2021

Codecov Report

Merging #112 (0601372) into main (ef72c66) will increase coverage by 45.87%.
The diff coverage is 51.82%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #112       +/-   ##
===========================================
+ Coverage   14.46%   60.34%   +45.87%     
===========================================
  Files           2        5        +3     
  Lines         159      290      +131     
===========================================
+ Hits           23      175      +152     
+ Misses        134       95       -39     
- Partials        2       20       +18     
Impacted Files Coverage Δ
pkg/webhook/image_swapper.go 57.07% <45.67%> (+42.42%) ⬆️
pkg/secrets/kubernetes.go 57.69% <57.69%> (ø)
pkg/secrets/dummy.go 100.00% <100.00%> (ø)
pkg/types/types.go 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef72c66...0601372. Read the comment docs.

estahn and others added 7 commits September 25, 2021 00:30
Added options (...WithOpts) to improve readibility but primarily to
allow injecting various options such as the worker pool. This is being
used in unit tests to have control over the flow.
@estahn estahn merged commit 2d8cf77 into main Sep 28, 2021
@estahn estahn deleted the imagepullsecrets-support branch September 28, 2021 01:27
@DolevAlgam
Copy link

Looks Great @estahn !
Do you know when the release containing this merge will come out?

@estahn
Copy link
Owner Author

estahn commented Sep 29, 2021

Looks Great @estahn ! Do you know when the release containing this merge will come out?

It should be today (Thu, AEST). I finalise some e2e tests and will cut a release after.

github-actions bot pushed a commit that referenced this pull request Sep 30, 2021
# [1.1.0-alpha.1](v1.0.0...v1.1.0-alpha.1) (2021-09-30)

### Bug Fixes

* provide log record for ImageSwapPolicyExists ([179da70](179da70))
* timeout for ECR client ([26bdc10](26bdc10))
* **deps:** update module github.com/alitto/pond to v1.5.1 ([504e2dd](504e2dd))
* **deps:** update module github.com/aws/aws-sdk-go to v1.38.47 ([#70](#70)) ([4f30053](4f30053))
* **deps:** update module github.com/aws/aws-sdk-go to v1.40.43 ([266ef01](266ef01))
* **deps:** update module github.com/containers/image/v5 to v5.11.0 ([#61](#61)) ([11d6d28](11d6d28))
* **deps:** update module github.com/containers/image/v5 to v5.16.0 ([5230b91](5230b91))
* **deps:** update module github.com/dgraph-io/ristretto to v0.1.0 ([#82](#82)) ([dff1cb1](dff1cb1))
* **deps:** update module github.com/go-co-op/gocron to v1.9.0 ([c0e9f11](c0e9f11))
* **deps:** update module github.com/rs/zerolog to v1.22.0 ([#76](#76)) ([c098326](c098326))
* **deps:** update module github.com/rs/zerolog to v1.23.0 ([#84](#84)) ([607d5bb](607d5bb))
* **deps:** update module github.com/rs/zerolog to v1.25.0 ([72822f4](72822f4))
* **deps:** update module github.com/slok/kubewebhook to v2 ([8bd73d4](8bd73d4))
* **deps:** update module github.com/spf13/cobra to v1.2.1 ([ea1e787](ea1e787))
* **deps:** update module github.com/spf13/viper to v1.8.1 ([8a055a2](8a055a2))
* **deps:** update module k8s.io/api to v0.22.1 ([ab6d898](ab6d898))
* **deps:** update module k8s.io/apimachinery to v0.21.1 ([#79](#79)) ([aeeeffb](aeeeffb))
* **deps:** update module k8s.io/apimachinery to v0.22.2 ([ef72c66](ef72c66))

### Features

* Support for imagePullSecrets ([#112](#112)) ([2d8cf77](2d8cf77)), closes [#92](#92) [#19](#19)
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.1.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

estahn pushed a commit that referenced this pull request Oct 2, 2021
# [1.1.0-alpha.1](v1.0.0...v1.1.0-alpha.1) (2021-09-30)

### Bug Fixes

* provide log record for ImageSwapPolicyExists ([179da70](179da70))
* timeout for ECR client ([26bdc10](26bdc10))
* **deps:** update module github.com/alitto/pond to v1.5.1 ([504e2dd](504e2dd))
* **deps:** update module github.com/aws/aws-sdk-go to v1.38.47 ([#70](#70)) ([4f30053](4f30053))
* **deps:** update module github.com/aws/aws-sdk-go to v1.40.43 ([266ef01](266ef01))
* **deps:** update module github.com/containers/image/v5 to v5.11.0 ([#61](#61)) ([11d6d28](11d6d28))
* **deps:** update module github.com/containers/image/v5 to v5.16.0 ([5230b91](5230b91))
* **deps:** update module github.com/dgraph-io/ristretto to v0.1.0 ([#82](#82)) ([dff1cb1](dff1cb1))
* **deps:** update module github.com/go-co-op/gocron to v1.9.0 ([c0e9f11](c0e9f11))
* **deps:** update module github.com/rs/zerolog to v1.22.0 ([#76](#76)) ([c098326](c098326))
* **deps:** update module github.com/rs/zerolog to v1.23.0 ([#84](#84)) ([607d5bb](607d5bb))
* **deps:** update module github.com/rs/zerolog to v1.25.0 ([72822f4](72822f4))
* **deps:** update module github.com/slok/kubewebhook to v2 ([8bd73d4](8bd73d4))
* **deps:** update module github.com/spf13/cobra to v1.2.1 ([ea1e787](ea1e787))
* **deps:** update module github.com/spf13/viper to v1.8.1 ([8a055a2](8a055a2))
* **deps:** update module k8s.io/api to v0.22.1 ([ab6d898](ab6d898))
* **deps:** update module k8s.io/apimachinery to v0.21.1 ([#79](#79)) ([aeeeffb](aeeeffb))
* **deps:** update module k8s.io/apimachinery to v0.22.2 ([ef72c66](ef72c66))

### Features

* Support for imagePullSecrets ([#112](#112)) ([2d8cf77](2d8cf77)), closes [#92](#92) [#19](#19)
github-actions bot pushed a commit that referenced this pull request Oct 2, 2021
# [1.1.0](v1.0.0...v1.1.0) (2021-10-02)

### Bug Fixes

* provide log record for ImageSwapPolicyExists ([179da70](179da70))
* timeout for ECR client ([26bdc10](26bdc10))
* **deps:** update module github.com/alitto/pond to v1.5.1 ([504e2dd](504e2dd))
* **deps:** update module github.com/aws/aws-sdk-go to v1.38.47 ([#70](#70)) ([4f30053](4f30053))
* **deps:** update module github.com/aws/aws-sdk-go to v1.40.43 ([266ef01](266ef01))
* **deps:** update module github.com/containers/image/v5 to v5.11.0 ([#61](#61)) ([11d6d28](11d6d28))
* **deps:** update module github.com/containers/image/v5 to v5.16.0 ([5230b91](5230b91))
* **deps:** update module github.com/dgraph-io/ristretto to v0.1.0 ([#82](#82)) ([dff1cb1](dff1cb1))
* **deps:** update module github.com/go-co-op/gocron to v1.9.0 ([c0e9f11](c0e9f11))
* **deps:** update module github.com/rs/zerolog to v1.22.0 ([#76](#76)) ([c098326](c098326))
* **deps:** update module github.com/rs/zerolog to v1.23.0 ([#84](#84)) ([607d5bb](607d5bb))
* **deps:** update module github.com/rs/zerolog to v1.25.0 ([72822f4](72822f4))
* **deps:** update module github.com/slok/kubewebhook to v2 ([8bd73d4](8bd73d4))
* **deps:** update module github.com/spf13/cobra to v1.2.1 ([ea1e787](ea1e787))
* **deps:** update module github.com/spf13/viper to v1.8.1 ([8a055a2](8a055a2))
* **deps:** update module k8s.io/api to v0.22.1 ([ab6d898](ab6d898))
* **deps:** update module k8s.io/apimachinery to v0.21.1 ([#79](#79)) ([aeeeffb](aeeeffb))
* **deps:** update module k8s.io/apimachinery to v0.22.2 ([ef72c66](ef72c66))

### Features

* Support for imagePullSecrets ([#112](#112)) ([2d8cf77](2d8cf77)), closes [#92](#92) [#19](#19)
* Support for pod.spec.initContainers ([#118](#118)) ([725ff2c](725ff2c)), closes [#73](#73) [#96](#96)
@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2021

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Use imagePullSecrets if required
2 participants