Skip to content

Commit

Permalink
Migrate litmus agent to 3.x (#365)
Browse files Browse the repository at this point in the history
* Migrating litmus-agent chart to 3.X.X
- Renaming mention of agent to infra
- Upgrade appVersion of subcharts
- Added LITMUS_ENVIRONMENT_ID value
- Updating agent-secret/configmap to subscriber-agent/configmap

Signed-off-by: Calvin Audier <[email protected]>
Signed-off-by: Calvin Audier <[email protected]>

* Upgrade version to 1.0.0 and regenerated docs
- Upgrade versions to 1.0.0 since there is breaking changes between the 2.X and 3.X version
- Regenerated the documentation with helm-docs

Signed-off-by: Calvin Audier <[email protected]>

* Update README of litmus-agent
- Update the variables to use new name
- Add description for environment id

Signed-off-by: Calvin Audier <[email protected]>

* Update README.tmpl and values instead of directly updating the README

Signed-off-by: Calvin Audier <[email protected]>

* Reverting changing on variables from _helpers.tpl

Signed-off-by: Calvin Audier <[email protected]>

* Forgot to revert one of the variable in helper.tpl

Signed-off-by: Calvin Audier <[email protected]>

---------

Signed-off-by: Calvin Audier <[email protected]>
Signed-off-by: Calvin Audier <[email protected]>
Co-authored-by: Calvin Audier <[email protected]>
Co-authored-by: Vedant Shrotria <[email protected]>
  • Loading branch information
3 people authored Apr 4, 2024
1 parent 36527b5 commit 7e37d79
Show file tree
Hide file tree
Showing 51 changed files with 115 additions and 108 deletions.
12 changes: 6 additions & 6 deletions charts/litmus-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: "0.2.0"
appVersion: "0.3.0"
description: A Helm chart to install litmus agent
name: litmus-agent
version: 0.2.1
version: 1.0.0
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand All @@ -21,16 +21,16 @@ maintainers:
icon: https://raw.githubusercontent.com/litmuschaos/icons/master/litmus.png
dependencies:
- name: chaos-operator
version: 0.2.0
version: 1.0.0
condition: chaos-operator.enabled
- name: chaos-exporter
version: 0.2.0
version: 1.0.0
condition: chaos-exporter.enabled
- name: event-tracker
version: 0.2.0
version: 1.0.0
condition: event-tracker.enabled
- name: subscriber
version: 0.2.0
version: 1.0.0
condition: subscriber.enabled
- name: workflow-controller
version: 0.2.0
Expand Down
34 changes: 18 additions & 16 deletions charts/litmus-agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# litmus-agent

![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square)
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square)

A Helm chart to install litmus agent

Expand All @@ -24,10 +24,10 @@ Kubernetes: `>=1.16.0-0`

| Repository | Name | Version |
|------------|------|---------|
| | chaos-exporter | 0.2.0 |
| | chaos-operator | 0.2.0 |
| | event-tracker | 0.2.0 |
| | subscriber | 0.2.0 |
| | chaos-exporter | 1.0.0 |
| | chaos-operator | 1.0.0 |
| | event-tracker | 1.0.0 |
| | subscriber | 1.0.0 |
| | workflow-controller | 0.2.0 |

## Installing the Chart
Expand All @@ -38,26 +38,28 @@ To install this chart with the release name `litmus-portal`:
$ helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
$ helm install litmus-agent litmuschaos/litmus-agent \
--namespace litmus --create-namespace \
--set "AGENT_NAME=helm-agent" \
--set "AGENT_DESCRIPTION=My first agent deployed with helm !" \
--set "INFRA_NAME=helm-agent" \
--set "INFRA_DESCRIPTION=My first agent deployed with helm !" \
--set "LITMUS_URL=https://chaos-center.domain.com" \ # FOR REMOTE AGENT (INGRESS)
--set "LITMUS_URL=http://litmusportal-frontend-service.litmus.svc.cluster.local:9091" \ # FOR SELF AGENT (SVC)
--set "LITMUS_BACKEND_URL=http://litmusportal-server-service.litmus.svc.cluster.local:9002" \ # FOR SELF AGENT (SVC)
--set "LITMUS_USERNAME=admin" \
--set "LITMUS_PASSWORD=litmus" \
--set "LITMUS_PROJECT_ID=69395cb3-0231-4262-8990-78056c8adb4c"
--set "LITMUS_PROJECT_ID=69395cb3-0231-4262-8990-78056c8adb4c" \
--set "LITMUS_ENVIRONMENT_ID=nameofenvironment"
```

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| AGENT_DESCRIPTION | string | `"chaos agent deployed with helm"` | |
| AGENT_NAME | string | `"helm-agent"` | |
| AGENT_NODE_SELECTOR | string | `""` | |
| APP_VERSION | string | `"3.0.0-beta8"` | |
| CLUSTER_TYPE | string | `"external"` | |
| APP_VERSION | string | `"3.1.0"` | |
| INFRA_DESCRIPTION | string | `"chaos infrastructure deployed with helm"` | |
| INFRA_NAME | string | `"helm-infrastructure"` | |
| INFRA_NODE_SELECTOR | string | `""` | |
| INFRA_TYPE | string | `"external"` | |
| LITMUS_BACKEND_URL | string | `""` | |
| LITMUS_ENVIRONMENT_ID | string | `""` | ID of the litmus environment where the infrastructure will be added |
| LITMUS_PASSWORD | string | `"litmus"` | |
| LITMUS_PROJECT_ID | string | `""` | |
| LITMUS_URL | string | `"https://my-domain.com"` | |
Expand All @@ -70,10 +72,10 @@ $ helm install litmus-agent litmuschaos/litmus-agent \
| chaos-operator.enabled | bool | `true` | |
| crds.create | bool | `true` | |
| event-tracker.enabled | bool | `true` | |
| global.AGENT_MODE | string | `"cluster"` | |
| global.agentConfigName | string | `"agent-config"` | |
| global.agentSecretName | string | `"agent-secret"` | |
| global.INFRA_MODE | string | `"cluster"` | |
| global.customLabels | object | `{}` | |
| global.infraConfigName | string | `"subscriber-config"` | |
| global.infraSecretName | string | `"subscriber-secret"` | |
| global.podAnnotations | object | `{}` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"litmuschaos.docker.scarf.sh/litmuschaos/litmus-helm-agent"` | |
Expand Down
7 changes: 4 additions & 3 deletions charts/litmus-agent/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ To install this chart with the release name `litmus-portal`:
$ helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
$ helm install litmus-agent litmuschaos/litmus-agent \
--namespace litmus --create-namespace \
--set "AGENT_NAME=helm-agent" \
--set "AGENT_DESCRIPTION=My first agent deployed with helm !" \
--set "INFRA_NAME=helm-agent" \
--set "INFRA_DESCRIPTION=My first agent deployed with helm !" \
--set "LITMUS_URL=https://chaos-center.domain.com" \ # FOR REMOTE AGENT (INGRESS)
--set "LITMUS_URL=http://litmusportal-frontend-service.litmus.svc.cluster.local:9091" \ # FOR SELF AGENT (SVC)
--set "LITMUS_BACKEND_URL=http://litmusportal-server-service.litmus.svc.cluster.local:9002" \ # FOR SELF AGENT (SVC)
--set "LITMUS_USERNAME=admin" \
--set "LITMUS_PASSWORD=litmus" \
--set "LITMUS_PROJECT_ID=69395cb3-0231-4262-8990-78056c8adb4c"
--set "LITMUS_PROJECT_ID=69395cb3-0231-4262-8990-78056c8adb4c" \
--set "LITMUS_ENVIRONMENT_ID=nameofenvironment"
```

{{ template "chart.valuesSection" . }}
Expand Down
4 changes: 2 additions & 2 deletions charts/litmus-agent/charts/chaos-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: "3.0.0-beta3"
appVersion: "3.1.0"
description: A Helm chart to install chaos-exporter
name: chaos-exporter
version: 0.2.0
version: 1.0.0
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/chaos-exporter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# chaos-exporter

![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 3.0.0-beta3](https://img.shields.io/badge/AppVersion-3.0.0--beta3-informational?style=flat-square)
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 3.1.0](https://img.shields.io/badge/AppVersion-3.1.0-informational?style=flat-square)

A Helm chart to install chaos-exporter

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
env:
- name: TSDB_SCRAPE_INTERVAL
value: "{{ .Values.config.tsdb_scrape_interval }}"
{{- if eq .Values.global.AGENT_MODE "namespace"}}
{{- if eq .Values.global.INFRA_MODE "namespace"}}
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down
4 changes: 2 additions & 2 deletions charts/litmus-agent/charts/chaos-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: "3.0.0-beta3"
appVersion: "3.1.0"
description: A Helm chart to install chaos-operator
name: chaos-operator
version: 0.2.0
version: 1.0.0
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/chaos-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# chaos-operator

![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 3.0.0-beta3](https://img.shields.io/badge/AppVersion-3.0.0--beta3-informational?style=flat-square)
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 3.1.0](https://img.shields.io/badge/AppVersion-3.1.0-informational?style=flat-square)

A Helm chart to install chaos-operator

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
# required or runner and experiment pods
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
# required or runner and experiment pods
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
env:
- name: CHAOS_RUNNER_IMAGE
value: "{{ .Values.runner.image.repository }}:{{ .Values.runner.image.tag | default .Chart.AppVersion }}"
{{- if eq .Values.global.AGENT_MODE "namespace" }}
{{- if eq .Values.global.INFRA_MODE "namespace" }}
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
# required or runner and experiment pods
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
# required or runner and experiment pods
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down
4 changes: 2 additions & 2 deletions charts/litmus-agent/charts/event-tracker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: "3.0.0-beta3"
appVersion: "3.1.0"
description: A Helm chart to install event-tracker
name: event-tracker
version: 0.2.0
version: 1.0.0
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
6 changes: 3 additions & 3 deletions charts/litmus-agent/charts/event-tracker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# event-tracker

![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 3.0.0-beta3](https://img.shields.io/badge/AppVersion-3.0.0--beta3-informational?style=flat-square)
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 3.1.0](https://img.shields.io/badge/AppVersion-3.1.0-informational?style=flat-square)

A Helm chart to install event-tracker

Expand Down Expand Up @@ -33,8 +33,8 @@ Kubernetes: `>=1.16.0-0`
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| customLabels | object | `{}` | |
| fullnameOverride | string | `""` | |
| global.agentConfigName | string | `"agent-config"` | |
| global.agentSecretName | string | `"agent-secret"` | |
| global.infraConfigName | string | `"subscriber-config"` | |
| global.infraSecretName | string | `"subscriber-secret"` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"litmuschaos.docker.scarf.sh/litmuschaos/litmusportal-event-tracker"` | |
| image.tag | string | `""` | |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
- configMapRef:
name: {{ .Values.global.agentConfigName }}
name: {{ .Values.global.infraConfigName }}
- secretRef:
name: {{ .Values.global.agentSecretName }}
name: {{ .Values.global.infraSecretName }}
env:
- name: AGENT_NAMESPACE
- name: INFRA_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down
4 changes: 2 additions & 2 deletions charts/litmus-agent/charts/event-tracker/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
global:
agentConfigName: agent-config
agentSecretName: agent-secret
infraConfigName: subscriber-config
infraSecretName: subscriber-secret
# Default values for event-tracker.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
Expand Down
4 changes: 2 additions & 2 deletions charts/litmus-agent/charts/subscriber/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: "3.0.0-beta3"
appVersion: "3.1.0"
description: A Helm chart to install subscriber
name: subscriber
version: 0.2.0
version: 1.0.0
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
6 changes: 3 additions & 3 deletions charts/litmus-agent/charts/subscriber/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# subscriber

![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 3.0.0-beta3](https://img.shields.io/badge/AppVersion-3.0.0--beta3-informational?style=flat-square)
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 3.1.0](https://img.shields.io/badge/AppVersion-3.1.0-informational?style=flat-square)

A Helm chart to install subscriber

Expand Down Expand Up @@ -31,8 +31,8 @@ Kubernetes: `>=1.16.0-0`
| appSettings.executorImage | string | `"litmuschaos/argoexec:v3.3.1"` | |
| customLabels | object | `{}` | |
| fullnameOverride | string | `""` | |
| global.agentConfigName | string | `"agent-config"` | |
| global.agentSecretName | string | `"agent-secret"` | |
| global.infraConfigName | string | `"subscriber-config"` | |
| global.infraSecretName | string | `"subscriber-secret"` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"litmuschaos.docker.scarf.sh/litmuschaos/litmusportal-subscriber"` | |
| image.tag | string | `""` | |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "cluster") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "cluster") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
envFrom:
- configMapRef:
name: {{ .Values.global.agentConfigName }}
name: {{ .Values.global.infraConfigName }}
- secretRef:
name: {{ .Values.global.agentSecretName }}
name: {{ .Values.global.infraSecretName }}
env:
- name: AGENT_NAMESPACE
- name: INFRA_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/subscriber/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.serviceAccount.create ( eq .Values.global.AGENT_MODE "namespace") -}}
{{- if and .Values.serviceAccount.create ( eq .Values.global.INFRA_MODE "namespace") -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down
Loading

0 comments on commit 7e37d79

Please sign in to comment.