Skip to content

[ws-manager-mk2] Fix workspace URL not set in env #16407

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
Feb 15, 2023
Merged

Conversation

WVerlaek
Copy link
Member

Description

Fixes workspace creation using unset status fields, causing e.g. the workspace URL env var to be empty.

Instead, on creation of the workspace container, construct the URL and headless status directly.

Related Issue(s)

Relates to #11416

How to test

  • Create workspace in preview env
  • Run gp info and see the workspace URL is not empty

Release Notes

NONE

Documentation

Build Options:

  • /werft with-github-actions
    Experimental feature to run the build with GitHub Actions (and not in Werft).
  • leeway-no-cache
    leeway-target=components:all
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-slow-database
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@WVerlaek WVerlaek self-assigned this Feb 15, 2023
@WVerlaek WVerlaek requested a review from a team February 15, 2023 08:31
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Feb 15, 2023
@@ -87,7 +87,7 @@ func main() {
Port: 9443,
HealthProbeBindAddress: cfg.Health.Addr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "ws-manager-mk2.gitpod.io",
LeaderElectionID: "ws-manager-mk2-leader.gitpod.io",
Copy link
Member Author

Choose a reason for hiding this comment

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

this ID shows up as a ConfigMap, including leader makes it more obvious that the configmap is used for leader-election

@roboquat roboquat merged commit 8fcec5e into main Feb 15, 2023
@roboquat roboquat deleted the wv/mk2-ws-url branch February 15, 2023 09:55
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/S team: workspace Issue belongs to the Workspace team
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants