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

[system test] - Make it possible to use POSTGRES_IMAGE env #11044

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

see-quick
Copy link
Member

@see-quick see-quick commented Jan 15, 2025

Type of change

  • Enhancement / new feature
  • Refactoring

Description

This PR changes downloading Postgres through the GCR mirror.

Checklist

  • Write tests
  • Make sure all tests pass
  • Update documentation

@see-quick see-quick added this to the 0.46.0 milestone Jan 15, 2025
@see-quick see-quick requested a review from a team January 15, 2025 13:17
@see-quick see-quick self-assigned this Jan 15, 2025
Copy link
Contributor

@henryZrncik henryZrncik left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment on lines +108 to 117
try {
final String postgresYaml = Files.readString(Paths.get(POSTGRES_FILE_PATH)).replace(
"${POSTGRES_IMAGE}", Environment.POSTGRES_IMAGE
);
Files.writeString(Paths.get(POSTGRES_FILE_PATH), postgresYaml);
} catch (IOException e) {
throw new RuntimeException("Failed to update the Postgres deployment YAML", e);
}

cmdKubeClient(namespaceName).apply(POSTGRES_FILE_PATH);
Copy link
Member

Choose a reason for hiding this comment

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

isn't possible to load the content, change the value and apply it without storing it? I think we did it in several cases

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

Successfully merging this pull request may close these issues.

3 participants