-
Notifications
You must be signed in to change notification settings - Fork 40
Parameterize sidecar image name for Kubernetes scripts. #117
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
Conversation
| spec: | ||
| containers: | ||
| - name: sidecar | ||
| image: gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar:${SIDECAR_IMAGE_TAG} |
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.
This script is used in the public docs. We shouldn't change the API. Can you preserve the current value as a default value?
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.
Sure, moved it over to patch.sh.
kube/full/deploy.sh
Outdated
|
|
||
| # Override to use a different Docker image version for the sidecar. | ||
| # Override to use a different Docker image name or version for the sidecar. | ||
| export SIDECAR_IMAGE_NAME=${SIDECAR_IMAGE_NAME:-'gcr.io/stackdriver-kubernetes-1337/stackdriver-prometheus-sidecar'} |
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.
This is changing the default value in kube/patch.sh. Can you justify the change?
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.
I moved var over to patch.sh, so it should be backwards compatible now.
jkohen
left a comment
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.
I'm still trying to understand the reason to change the default image name. Can you provide the reasoning?
davidbtucker
left a comment
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.
Fixed typos.
jkohen
left a comment
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.
It's still different, it should be gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar, right? Can you please test the script so we are sure it still works? This is part of the public documentation and how most users try our Stackdriver integration first, so it is important that it works.
I think you were looking at an old snapshot. In any case, I've tested the latest version and it seems to work. |
No description provided.