Skip to content

Commit 7761a46

Browse files
committed
option for read all
1 parent eca7221 commit 7761a46

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

charts/seashell/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: seashell
33
description: A tool that provides a shell to debug Kubernetes workloads
44
type: application
5-
version: 0.1.1
5+
version: 0.2.0
66
appVersion: 0.1
77
keywords:
88
- debug

charts/seashell/README.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,20 @@ helm install seashell puckpuck/seashell
2626

2727
## Parameters
2828

29-
| Parameter | Description | Default |
30-
|------------------------------|------------------------------------------------------------|--------------------------------------------------|
31-
| `image.repository` | seashell Image repository | `puckpuck/seashell` |
32-
| `image.tag` | seashell Image tag (leave blank to use app version) | `nil` |
33-
| `image.pullPolicy` | seashell Image pull policy | `IfNotPresent` |
34-
| `serviceAccount.create` | Specify whether a ServiceAccount should be created | `true` |
35-
| `serviceAccount.annotations` | Annotations to be applied to ServiceAccount | `{}` |
36-
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the `seashell.fullname` template |
37-
| `rbac.create` | Specify whether RBAC resources should be created and used | `true` |
38-
| `podAnnotations` | Pod annotations | `{}` |
39-
| `podSecurityContext` | Security context for pod | `{}` |
40-
| `securityContext` | Security context for container | `{}` |
41-
| `resources` | CPU/Memory resource requests/limits | `{}` |
42-
| `nodeSelector` | Node labels for pod assignment | `{}` |
43-
| `tolerations` | Tolerations for pod assignment | `[]` |
44-
| `affinity` | Map of node/pod affinities | `{}` |
29+
| Parameter | Description | Default |
30+
|------------------------------|------------------------------------------------------------------------|--------------------------------------------------|
31+
| `image.repository` | seashell Image repository | `puckpuck/seashell` |
32+
| `image.tag` | seashell Image tag (leave blank to use app version) | `nil` |
33+
| `image.pullPolicy` | seashell Image pull policy | `IfNotPresent` |
34+
| `serviceAccount.create` | Specify whether a ServiceAccount should be created | `true` |
35+
| `serviceAccount.annotations` | Annotations to be applied to ServiceAccount | `{}` |
36+
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the `seashell.fullname` template |
37+
| `rbac.create` | Specify whether RBAC resources should be created and used | `true` |
38+
| `rbac.readAll` | Specify whether to include READ permssions on ALL Kubernetes resources | `false` |
39+
| `podAnnotations` | Pod annotations | `{}` |
40+
| `podSecurityContext` | Security context for pod | `{}` |
41+
| `securityContext` | Security context for container | `{}` |
42+
| `resources` | CPU/Memory resource requests/limits | `{}` |
43+
| `nodeSelector` | Node labels for pod assignment | `{}` |
44+
| `tolerations` | Tolerations for pod assignment | `[]` |
45+
| `affinity` | Map of node/pod affinities | `{}` |

charts/seashell/templates/cluster-role-binding.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.rbac.create }}
1+
{{- if and .Values.rbac.create .Values.rbac.readAll }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:
@@ -13,4 +13,4 @@ subjects:
1313
- kind: ServiceAccount
1414
name: {{ include "seashell.serviceAccountName" . }}
1515
namespace: {{ .Release.Namespace }}
16-
{{- end }}
16+
{{- end }}

charts/seashell/templates/cluster-role.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.rbac.create }}
1+
{{- if and .Values.rbac.create .Values.rbac.readAll }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
@@ -16,4 +16,4 @@ rules:
1616
- get
1717
- list
1818
- watch
19-
{{- end }}
19+
{{- end }}

charts/seashell/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ serviceAccount:
2424
rbac:
2525
# Specifies whether to create cluster roles and bindings
2626
create: true
27+
# If set to true, a Role and RoleBinding with READ permissions on ALL objects will be created
28+
readAll: false
2729

2830
podAnnotations: { }
2931

0 commit comments

Comments
 (0)