Skip to content

Commit

Permalink
Upgrading litmus portal to v1.12.0 (#2409)
Browse files Browse the repository at this point in the history
* Upgrading litmus portal to v1.12.0

Signed-off-by: Raj Babu Das <[email protected]>

* Upgrading litmus portal to v1.12.0

Signed-off-by: Raj Babu Das <[email protected]>
  • Loading branch information
imrajdas authored Jan 15, 2021
1 parent 9816475 commit 1f44770
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 15 deletions.
8 changes: 4 additions & 4 deletions litmus-portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Litmus-Portal provides console and UI experience for managing, monitoring, and e
## **Installation**

#### Applying k8s manifest
> Beta 0 (Stable)
> Beta 1 (Stable)
```bash
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/v1.11.x/litmus-portal/cluster-k8s-manifest.yml
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/v1.12.x/litmus-portal/cluster-k8s-manifest.yml
```

Or
Expand Down Expand Up @@ -78,9 +78,9 @@ View the User Guide <b>[here](https://docs.google.com/document/d/1fiN25BrZpvqg0U

### **Uninstallation**

> Beta 0 (Stable)
> Beta 1 (Stable)
```bash
kubectl delete -f https://raw.githubusercontent.com/litmuschaos/litmus/v1.11.x/litmus-portal/cluster-k8s-manifest.yml
kubectl delete -f https://raw.githubusercontent.com/litmuschaos/litmus/v1.12.x/litmus-portal/cluster-k8s-manifest.yml
```

Or
Expand Down
4 changes: 2 additions & 2 deletions litmus-portal/cluster-k8s-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ spec:
- name: ARGO_WORKFLOW_EXECUTOR_IMAGE
value: "argoproj/argoexec:v2.9.3"
- name: LITMUS_CHAOS_OPERATOR_IMAGE
value: "litmuschaos/chaos-operator:1.11.0"
value: "litmuschaos/chaos-operator:1.12.0"
- name: LITMUS_CHAOS_RUNNER_IMAGE
value: "litmuschaos/chaos-runner:1.11.0"
value: "litmuschaos/chaos-runner:1.12.0"
ports:
- containerPort: 8080
imagePullPolicy: Always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
type: string
engineState:
type: string
pattern: ^(active|stop|initialized|stopped)$
pattern: ^(active|stop)$
chaosServiceAccount:
type: string
components:
Expand Down Expand Up @@ -94,6 +94,8 @@ spec:
type: array
items:
type: object
required:
- runProperties
properties:
name:
type: string
Expand Down Expand Up @@ -166,6 +168,11 @@ spec:
type: string
runProperties:
type: object
minProperties: 3
required:
- probeTimeout
- interval
- retry
properties:
probeTimeout:
type: integer
Expand Down
21 changes: 21 additions & 0 deletions litmus-portal/graphql-server/manifests/cluster/2b_litmus_rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,27 @@ metadata:
name: litmus-cluster-scope
namespace: #{AGENT-NAMESPACE}
labels:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator-serviceaccount
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
name: litmus-cluster-scope
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: litmus-cluster-scope
labels:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator-clusterrole
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
name: litmus-cluster-scope
rules:
- apiGroups: [""]
Expand Down Expand Up @@ -41,6 +55,13 @@ kind: ClusterRoleBinding
metadata:
name: litmus-cluster-scope
labels:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator-clusterrolebinding
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
name: litmus-cluster-scope
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: latest
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: latest
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ metadata:
name: litmus-namespace-scope
namespace: #{AGENT-NAMESPACE}
labels:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator-serviceaccount
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
name: litmus-namespace-scope
---
apiVersion: rbac.authorization.k8s.io/v1beta1
Expand All @@ -13,6 +20,13 @@ metadata:
name: litmus-namespace-scope
namespace: #{AGENT-NAMESPACE}
labels:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator-role
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
name: litmus-namespace-scope
rules:
- apiGroups: [""]
Expand Down Expand Up @@ -43,6 +57,13 @@ metadata:
name: litmus-namespace-scope
namespace: #{AGENT-NAMESPACE}
labels:
app.kubernetes.io/name: litmus
# provide unique instance-id if applicable
# app.kubernetes.io/instance: litmus-abcxzy
app.kubernetes.io/version: v1.12.0
app.kubernetes.io/component: operator-rolebinding
app.kubernetes.io/part-of: litmus
app.kubernetes.io/managed-by: kubectl
name: litmus-namespace-scope
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
11 changes: 9 additions & 2 deletions litmus-portal/litmus-portal-crds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ spec:
type: string
engineState:
type: string
pattern: ^(active|stop|initialized|stopped)$
pattern: ^(active|stop)$
chaosServiceAccount:
type: string
components:
Expand Down Expand Up @@ -161,6 +161,8 @@ spec:
type: array
items:
type: object
required:
- runProperties
properties:
name:
type: string
Expand Down Expand Up @@ -233,12 +235,17 @@ spec:
type: string
runProperties:
type: object
minProperties: 3
required:
- probeTimeout
- interval
- retry
properties:
probeTimeout:
type: integer
interval:
type: integer
retry:
retry:
type: integer
probePollingInterval:
type: integer
Expand Down
4 changes: 2 additions & 2 deletions litmus-portal/namespaced-K8s-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ spec:
- name: ARGO_WORKFLOW_EXECUTOR_IMAGE
value: "argoproj/argoexec:v2.9.3"
- name: LITMUS_CHAOS_OPERATOR_IMAGE
value: "litmuschaos/chaos-operator:1.11.0"
value: "litmuschaos/chaos-operator:1.12.0"
- name: LITMUS_CHAOS_RUNNER_IMAGE
value: "litmuschaos/chaos-runner:1.11.0"
value: "litmuschaos/chaos-runner:1.12.0"
ports:
- containerPort: 8080
imagePullPolicy: Always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ spec:
- name: ARGO_WORKFLOW_EXECUTOR_IMAGE
value: "argoproj/argoexec:v2.9.3"
- name: LITMUS_CHAOS_OPERATOR_IMAGE
value: "litmuschaos/chaos-operator:1.11.0"
value: "litmuschaos/chaos-operator:1.12.0"
- name: LITMUS_CHAOS_RUNNER_IMAGE
value: "litmuschaos/chaos-runner:1.11.0"
value: "litmuschaos/chaos-runner:1.12.0"
ports:
- containerPort: 8080
imagePullPolicy: Always
Expand Down

0 comments on commit 1f44770

Please sign in to comment.