File tree 7 files changed +34
-36
lines changed
7 files changed +34
-36
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
24
24
"github.com/spf13/viper"
25
25
)
26
26
27
- const VERSION = "0.4 .0"
27
+ const VERSION = "0.5 .0"
28
28
29
29
// @title NEW Devops API
30
30
// @version v0.1.0
Original file line number Diff line number Diff line change @@ -163,6 +163,14 @@ downloadFile() {
163
163
164
164
wget -O " $HOME /.devops/plugins/helm/devops.tar.gz" " ${DOWNLOAD_URL} "
165
165
tar -xzf " $HOME /.devops/plugins/helm/devops.tar.gz" -C " $HOME /.devops/plugins/helm"
166
+
167
+ SPACE_CLI_ARTIFACT=" devops-helm-plugin_${LATEST_RELEASE_TAG} _${OS} _${ARCH} .tar.gz"
168
+ DOWNLOAD_URL=" ${DOWNLOAD_BASE} /ui.tar.gz"
169
+
170
+ echo " Downloading UI"
171
+
172
+ wget -O " $HOME /.devops/ui.tar.gz" " ${DOWNLOAD_URL} "
173
+ tar -xzf " $HOME /.devops/ui.tar.gz" -C " $HOME /.devops"
166
174
}
167
175
168
176
installFile () {
Original file line number Diff line number Diff line change 1
- # Example configuration
2
- kube_configs :
3
- - name : xebia -dev-cluster
4
- path : " /home/sharad/xebia /dev2.kubeconfig"
5
- contexts :
6
- - name : " default"
7
- default_namespaces_to_show :
8
- - " default"
9
- - " dev-xlr8s "
1
+ # # Example configuration
2
+ # kube_configs:
3
+ # - name: aws -dev-cluster
4
+ # path: "/home/sharad/aws /dev2.kubeconfig"
5
+ # contexts:
6
+ # - name: "default"
7
+ # default_namespaces_to_show:
8
+ # - "default"
9
+ # - "dev-aws "
Original file line number Diff line number Diff line change 2
2
# kube_configs:
3
3
# - name: aws-dev-cluster
4
4
# path: "/home/sharad/aws/dev2.kubeconfig"
5
- # contexts:
5
+ # contexts:
6
6
# - name: "default"
7
- # default_namespaces_to_show:
7
+ # default_namespaces_to_show:
8
8
# - "default"
9
9
# - "dev-aws"
10
- kube_configs :
11
- - name : xebia-dev-cluster
12
- path : " /home/sharad/xebia/dev2.kubeconfig"
13
- contexts :
14
- - name : " default"
15
- default_namespaces_to_show :
16
- - " default"
17
- - " stable-xlr8s-0-6-1"
Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ specific_actions:
33
33
#!/bin/bash
34
34
kubectl describe {{.resourceType}} {{.resourceName}} -n "{{.isolatorName}}" --kubeconfig {{.authPath}} --context {{.authName}}
35
35
output_type : " string"
36
- - name : " get all"
37
- key_binding : " g"
38
- execution :
39
- cmd : |
40
- #!/bin/bash
41
- kubectl get-all --namespace={{.resourceName}} --kubeconfig {{.authPath}} --context {{.authName}}
42
- output_type : " string"
36
+ # - name: "get all"
37
+ # key_binding: "g"
38
+ # execution:
39
+ # cmd: |
40
+ # #!/bin/bash
41
+ # kubectl get-all --namespace={{.resourceName}} --kubeconfig {{.authPath}} --context {{.authName}}
42
+ # output_type: "string"
Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ specific_actions:
33
33
#!/bin/bash
34
34
kubectl describe {{.resourceType}} {{.resourceName}} -n "{{.isolatorName}}" --kubeconfig {{.authPath}} --context {{.authName}}
35
35
output_type : " string"
36
- - name : " check access"
37
- key_binding : " c"
38
- execution :
39
- cmd : |
40
- #!/bin/bash
41
- kubectl access-matrix --sa {{.isolatorName}}:{{.resourceName}} --kubeconfig {{.authPath}} --context {{.authName}}
42
- output_type : " string"
36
+ # - name: "check access"
37
+ # key_binding: "c"
38
+ # execution:
39
+ # cmd: |
40
+ # #!/bin/bash
41
+ # kubectl access-matrix --sa {{.isolatorName}}:{{.resourceName}} --kubeconfig {{.authPath}} --context {{.authName}}
42
+ # output_type: "string"
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import (
11
11
// "github.com/go-errors/errors"
12
12
"github.com/rs/cors"
13
13
"github.com/sharadregoti/devops/model"
14
- // "github.com/xebiaww-apps/xlr8s-go/model/httptypes"
15
- // "github.com/xebiaww-apps/xlr8s-go/utils/errors"
16
14
)
17
15
18
16
// CreateCorsObject creates a cors object with the required config
You can’t perform that action at this time.
0 commit comments