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

Configurable redis-instance name #3841

Closed
wants to merge 5 commits into from

Conversation

bkosciarz
Copy link
Contributor

@bkosciarz bkosciarz commented Mar 12, 2024

Summary

Currently the redis instance needs to be called redis-instance. Allow users to customize this and default to redis-instance if not provided.

Adds a fix to the cloud_sdk install which appears to be broken on Ubuntu20.04 (http -> https)

Testing

I only tested the prod deploy workflow and not staging, but it should be equivalent.
I didn't touch _deploy_k8s which calls _get_redis_ip, but this should default to the default redis-instance case

@bkosciarz
Copy link
Contributor Author

Can I get a /gcbrun?

This is ready for review

@@ -98,7 +98,7 @@ else

export CLOUD_SDK_REPO="cloud-sdk"
export APT_FILE=/etc/apt/sources.list.d/google-cloud-sdk.list
export APT_LINE="deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main"
export APT_LINE="deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

trying to install cloud-sdk now fails on ubuntu20 unless using https.

https usage is also how they do it in https://cloud.google.com/sdk/docs/install

@bkosciarz
Copy link
Contributor Author

@jonathanmetzman bumping this

@@ -98,7 +98,7 @@ else

export CLOUD_SDK_REPO="cloud-sdk"
export APT_FILE=/etc/apt/sources.list.d/google-cloud-sdk.list
export APT_LINE="deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main"
export APT_LINE="deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you tested this? I feel like Apt uses pgp keys instead of SSL to verify packages.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nevermind, you've answered this question already somehow :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tested on an ubuntu20.04 Docker image of mine. About a month or so ago http worked but now it fails whereas https works

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For version 2.6.0 http seems to still work for google-cloud-sdk (for install_deps.bash). Trying to deploy from master was where I needed https

Copy link
Collaborator

Choose a reason for hiding this comment

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

I want to think about how we can do this in a way that adds less complexity, since this isn't a change that's useful to us. I think maybe through a config file.

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

Successfully merging this pull request may close these issues.

None yet

2 participants