Skip to content

Commit 9984356

Browse files
committed
Fixes
1 parent bfa7566 commit 9984356

File tree

7 files changed

+34
-36
lines changed

7 files changed

+34
-36
lines changed

cmd/devops/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/spf13/viper"
2525
)
2626

27-
const VERSION = "0.4.0"
27+
const VERSION = "0.5.0"
2828

2929
// @title NEW Devops API
3030
// @version v0.1.0

install.sh

+8
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ downloadFile() {
163163

164164
wget -O "$HOME/.devops/plugins/helm/devops.tar.gz" "${DOWNLOAD_URL}"
165165
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"
166174
}
167175

168176
installFile() {

plugins/helm/config.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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"

plugins/kubernetes/config.yaml

+2-10
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@
22
# kube_configs:
33
# - name: aws-dev-cluster
44
# path: "/home/sharad/aws/dev2.kubeconfig"
5-
# contexts:
5+
# contexts:
66
# - name: "default"
7-
# default_namespaces_to_show:
7+
# default_namespaces_to_show:
88
# - "default"
99
# - "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"

plugins/kubernetes/resource_config/namespaces.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ specific_actions:
3333
#!/bin/bash
3434
kubectl describe {{.resourceType}} {{.resourceName}} -n "{{.isolatorName}}" --kubeconfig {{.authPath}} --context {{.authName}}
3535
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"

plugins/kubernetes/resource_config/serviceaccounts.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ specific_actions:
3333
#!/bin/bash
3434
kubectl describe {{.resourceType}} {{.resourceName}} -n "{{.isolatorName}}" --kubeconfig {{.authPath}} --context {{.authName}}
3535
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"

utils/http.go

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import (
1111
// "github.com/go-errors/errors"
1212
"github.com/rs/cors"
1313
"github.com/sharadregoti/devops/model"
14-
// "github.com/xebiaww-apps/xlr8s-go/model/httptypes"
15-
// "github.com/xebiaww-apps/xlr8s-go/utils/errors"
1614
)
1715

1816
// CreateCorsObject creates a cors object with the required config

0 commit comments

Comments
 (0)