-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
doc: document Helm deployer's IMAGE_NAME<N>, IMAGE_TAG<N>, IMAGE_DIGEST<N> #6649
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @snickell. May I ask how you use these values?
From what I can tell, these IMAGE_XXX<N>
values are only supported for the Helm deployer.
The custom builder supports IMAGE_NAME
and IMAGE_TAG
, but doesn't support the IMAGE_DIGEST
. And this isn't documented.
The Kaniko builder supports IMAGE_REPO
, IMAGE_NAME
, and IMAGE_TAG
, but the _REPO and _NAME are different.
Codecov Report
@@ Coverage Diff @@
## main #6649 +/- ##
==========================================
- Coverage 70.48% 69.98% -0.50%
==========================================
Files 515 522 +7
Lines 23150 23732 +582
==========================================
+ Hits 16317 16609 +292
- Misses 5776 6038 +262
- Partials 1057 1085 +28
Continue to review full report at Codecov.
|
TL;DR While the Basically, in our case, an upstream helm chart (JupyterHub: https://github.com/jupyterhub/zero-to-jupyterhub-k8s) required build artifacts to be inserted into the helm Upstream jupyterhub chart expects image references to be formatted exactly like this:
Note e.g. the lack of a By explicitly using
Our preference, not surprisingly, would have been for |
@snickell that looks exactly what the https://skaffold.dev/docs/pipeline-stages/deployers/helm/#helm-strategy-split-repository-and-tag |
@briandealwis haha, I kept doing doubletakes and thinking that too, but the key required by JupyterHub is called With a sha256 included the JupyterHub chart (aka z2jh) would require:
But the skaffold helm strategy would output:
There's two fatal incompatibilities that as far as I could tell can't be worked around:
|
Oh I missed the difference in the key names 🤦 How annoying. The good news is that we can use Helm's post-renderer and do away with this artifactsOverride entirely. Stay tuned. |
@briandealwis Exciting! I had a branch that used the Helm post-renderer to patch things up (but I couldn't figure out how to active post-render from within skaffold, sounds like a forthcoming feature 💯 ) |
I can't find any documentation (other than references in issues by skaffold devs) to these. Without this, its very hard to figure out how to use the
IMAGE_NAME
template etc for more than a single artifact.