Skip to content

Conversation

@davidbtucker
Copy link
Contributor

No description provided.

@davidbtucker davidbtucker requested a review from jkohen April 5, 2019 22:15
spec:
containers:
- name: sidecar
image: gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar:${SIDECAR_IMAGE_TAG}
Copy link
Contributor

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?

Copy link
Contributor Author

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.


# 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'}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@jkohen jkohen left a 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?

Copy link
Contributor Author

@davidbtucker davidbtucker left a comment

Choose a reason for hiding this comment

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

Fixed typos.

Copy link
Contributor

@jkohen jkohen left a 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.

@davidbtucker
Copy link
Contributor Author

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.

@davidbtucker davidbtucker merged commit aafa975 into master Apr 5, 2019
@davidbtucker davidbtucker deleted the davidbtucker-image-name branch April 5, 2019 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants