Skip to content

[installer] Refactor envvars before release #13174

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

Merged
merged 1 commit into from
Sep 22, 2022
Merged

Conversation

Pothulapati
Copy link
Contributor

Description

This PR does a cleanup on the environment variables as now they are kind-off a public contract, which
means its better to be verbose and meaningful as possible. Once the release is done, it would be harder to do the same.

This has the following changes:

  • Rename REG prefix to REGISTRY
  • Change REG_INCLUSTER_STORAGE_S3_BUCKETNAME to REGISTRY_INCLUSTER_STORAGE_S3_BUCKET_NAME
  • Change COMPONENT_PROXY_SERVICE_SERVICETYPE to COMPONENT_PROXY_SERVICE_TYPE

Signed-off-by: Tarun Pothulapati [email protected]

Related Issue(s)

Fixes #13151

How to test

Release Notes

[installer] Refactor envvars before release

Documentation

Werft options:

  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@Pothulapati
Copy link
Contributor Author

/hold

@Pothulapati Pothulapati marked this pull request as ready for review September 22, 2022 07:59
@Pothulapati Pothulapati requested a review from a team September 22, 2022 07:59
@github-actions github-actions bot added the team: delivery Issue belongs to the self-hosted team label Sep 22, 2022
Copy link
Contributor

@mrsimonemms mrsimonemms left a comment

Choose a reason for hiding this comment

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

I've rebased this from main and there are no conflicts from #13168 - if you can rebase this yourself then I can do the approval

Missing references:

  • There are 5 references to REG_ envvars in install/installer/scripts/kots-install.sh which need updating as well
  • REG_DOCKER_CONFIG_JSON in install/kots/manifests/gitpod-installer-job.yaml

/hold

@Pothulapati Pothulapati force-pushed the tar/installer-env-refactor branch from 65cbf3b to 1e19128 Compare September 22, 2022 09:53
@mrsimonemms mrsimonemms self-requested a review September 22, 2022 09:58
Copy link
Contributor

@mrsimonemms mrsimonemms left a comment

Choose a reason for hiding this comment

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

As this change the installer image (the kots-install.sh file), you also need to update the image parameter in both the gitpod-installer-job.yaml and gitpod-installation-status.yaml files to eu.gcr.io/gitpod-core-dev/build/installer:tar-installer-env-refactor.2

I've tested it with that image and works fine so happy to approve and hold - you can remove when updated

/hold

This PR does a cleanup on the environment variables
as now they are kind-off a public contract, which
means its better to be verbose and meaningful as possible. Once
the release is done, it would be harder to do the same.

This has the following changes:

- Rename `REG` prefix to `REGISTRY`
- Change `REG_INCLUSTER_STORAGE_S3_BUCKETNAME `to `REGISTRY_INCLUSTER_STORAGE_S3_BUCKET_NAME`
- Change `COMPONENT_PROXY_SERVICE_SERVICETYPE` to `COMPONENT_PROXY_SERVICE_TYPE`

Signed-off-by: Tarun Pothulapati <[email protected]>
@Pothulapati Pothulapati force-pushed the tar/installer-env-refactor branch from 1e19128 to b7d7352 Compare September 22, 2022 11:19
@Pothulapati
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit a9faf6f into main Sep 22, 2022
@roboquat roboquat deleted the tar/installer-env-refactor branch September 22, 2022 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note size/M team: delivery Issue belongs to the self-hosted team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor the installer envvars
3 participants