Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Update kubeconfig permission
Browse files Browse the repository at this point in the history
Signed-off-by: Yuvraj <code@evalsocket.dev>
  • Loading branch information
yindia committed Aug 19, 2021
1 parent 1d89f9e commit 08a2c11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
- name: Build Flytectl binary
run: make compile
- name: Setup env
run: |
mkdir -p ~/.flyte/k3s && touch ~/.flyte/k3s/k3s.yaml && chmod 666 ~/.flyte/k3s/k3s.yaml
- name: Create a sandbox cluster
run: bin/flytectl sandbox start
- name: Setup flytectl config
Expand Down
6 changes: 5 additions & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ func WriteIntoFile(data []byte, file string) error {

// SetupFlyteDir will create .flyte dir if not exist
func SetupFlyteDir() error {
if err := os.MkdirAll(f.FilePathJoin(f.UserHomeDir(), ".flyte"), os.ModePerm); err != nil {
if err := os.MkdirAll(f.FilePathJoin(f.UserHomeDir(), ".flyte","k3s"), os.ModePerm); err != nil {
return err
}
// Created a empty file with right permission
if err := ioutil.WriteFile(docker.Kubeconfig, []byte(""), os.ModePerm); err != nil {
return err
}
return nil
Expand Down

0 comments on commit 08a2c11

Please sign in to comment.