question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deploy_che.sh deletes project by default

See original GitHub issue

Description

Why on earth is CHE_REMOVE_PROJECT=true the default in createNewProject() @eivantsov? No harm done here, but that’s really going to bite someone.

Pretty shocking first experience following the docs.

Reproduction Steps

> ./deploy_che.sh --multiuser --project=project-that-exists
[INFO]: Local templates directory not found. Downloading templates...
[INFO]: Checking if you are currently logged in...
[INFO]: Active session found. Your current context is: project-that-exists/redacted:8443/username
[WARNING]: Namespace "project-that-exists" exists.
[INFO]: Removing namespace project-that-exists ^C

😿 api call already sent before a ^C could stop the script

OS and version:

oc version
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth

Server https://redacted:8443
openshift v3.11.59
kubernetes v1.11.0+d4cacc0

Diagnostics: Whoops…all gone.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
wenzowskicommented, Jun 10, 2019

you should see $(printInfo "Removing namespace ${CHE_OPENSHIFT_PROJECT}") in the console before project removal.

@skabashnyuk Per the bug filed, that’s exactly what I saw. This is terrible behaviour. DO NOT DELETE WITHOUT CONFIRMATION. The point of this bug is that “expected” behaviour is deeply and seriously flawed. I’m not trying to be an ass here; you are setting people up for irrecoverable data loss and you must change this default.

1reaction
metloscommented, Jun 10, 2019

What are we trying to achieve here? Me as a developer I’m quite happy with deploy_che.sh deleting the prior deployment by default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reset a project's code and data - Platform.sh Community
You will need: A working Platform.sh project; Administrator access to it; Git and SSH configured and accessible; Your default/production git ...
Read more >
che-devfile-registry/README.md at main · eclipse ... - GitHub
This repository contains a build.sh script at its root that can be used to build the ... You can deploy Che devfile registry...
Read more >
Installation Guide Red Hat CodeReady Workspaces 2.7
A default deployment of CodeReady Workspaces consist in the application of a parametrized ... or an OpenShift project, which differs from the default....
Read more >
deploy/openshift/ocp.sh ... - GitLab
Example: --project=myproject --secure | -s - Deploy Che with SSL enabled ... default: host ip OC_PUBLIC_IP - set ocp hostname for routing suffix,...
Read more >
eclipse/che-machine-exec - Docker Image
Move to the ocp.sh script: cd ~/projects/che/deploy/openshift/. Run ocp.sh with arguments: ./ocp.sh --run-ocp --deploy-che --no-pull --debug ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found