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

Implement container image setters #194

Merged
merged 4 commits into from
Dec 10, 2020

Conversation

somtochiama
Copy link
Member

@somtochiama somtochiama commented Dec 9, 2020

Fix: #193
Supersede: #149.

@somtochiama somtochiama force-pushed the override-image branch 2 times, most recently from 38ca719 to cf8bf1f Compare December 9, 2020 13:25
@stefanprodan stefanprodan added area/kustomize Kustomize related issues and pull requests enhancement New feature or request labels Dec 9, 2020
@somtochiama somtochiama changed the title [WIP] Updates doc with API spec for images [WIP] Implement container image setters Dec 9, 2020
config/testdata/overrides/podinfo.yaml Outdated Show resolved Hide resolved
config/testdata/overrides/source.yaml Outdated Show resolved Hide resolved
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
run: |
kubectl create ns override-test
kubectl -n override-test apply -f ./config/testdata/overrides
ACTUAL_TAG=$(kubectl -n override-test get deployments podinfo -o jsonpath='{.spec.template.spec.containers[0].image}' | cut -f2 -d ":")
Copy link
Member

Choose a reason for hiding this comment

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

Before this check, we need to wait for the kustomization to reconcile first with:

kubectl -n override-test wait kustomizations/podinfo --for=condition=ready --timeout=1m

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
@stefanprodan stefanprodan changed the title [WIP] Implement container image setters Implement container image setters Dec 10, 2020
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @somtochiama 🍰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kustomize Kustomize related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow kustomize image override in Kustomization CRD
2 participants