-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): implement cluster create and delete commands (#446)
Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
- Loading branch information
1 parent
9c6930e
commit 78be823
Showing
7 changed files
with
230 additions
and
91 deletions.
There are no files selected for viewing
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,7 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
name: fst # this is overridden if CLUSTER_NAME env var is set. Check .env file | ||
nodes: | ||
- role: control-plane | ||
labels: | ||
fullstack-scheduling.io/role: network |
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
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
import {dirname, normalize} from "path" | ||
import {fileURLToPath} from "url" | ||
|
||
// directory of this fle | ||
const CUR_FILE_DIR = dirname(fileURLToPath(import.meta.url)) | ||
const USER = `${process.env.USER}` | ||
export const constants = { | ||
USER: `${USER}`, | ||
CLUSTER_NAME: `fst-${USER}`, | ||
HELM: 'helm', | ||
KIND: 'kind', | ||
KUBECTL: 'kubectl', | ||
CWD: process.cwd(), | ||
FST_HOME_DIR: process.env.HOME + "/.fsnetman", | ||
RESOURCES_DIR: normalize(CUR_FILE_DIR + "/../../resources") | ||
} |
Oops, something went wrong.