-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the bug when kubeconfig file content is collapsed to one line aft…
…er workspace restart (#1279) Change the parse format from JSON to YAML as the default format of the oc and kubectl tools is YAML. Do not substring new line when fetching the kubeconfig file content.
- Loading branch information
Showing
4 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...ages/dashboard-backend/src/devworkspaceClient/services/__tests__/fixtures/kubeconfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: Config | ||
clusters: | ||
- name: inCluster | ||
cluster: | ||
server: https://0.0.0.0:443 | ||
certificate-authority: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | ||
insecure-skip-tls-verify: false | ||
users: | ||
- name: developer | ||
user: | ||
token: token | ||
contexts: | ||
- name: logged-user | ||
context: | ||
user: developer | ||
cluster: inCluster | ||
name: logged-user | ||
preferences: {} | ||
current-context: logged-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters