Skip to content

Commit

Permalink
option for read all
Browse files Browse the repository at this point in the history
  • Loading branch information
puckpuck committed Sep 6, 2022
1 parent eca7221 commit 7761a46
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion charts/seashell/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: seashell
description: A tool that provides a shell to debug Kubernetes workloads
type: application
version: 0.1.1
version: 0.2.0
appVersion: 0.1
keywords:
- debug
Expand Down
33 changes: 17 additions & 16 deletions charts/seashell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,20 @@ helm install seashell puckpuck/seashell

## Parameters

| Parameter | Description | Default |
|------------------------------|------------------------------------------------------------|--------------------------------------------------|
| `image.repository` | seashell Image repository | `puckpuck/seashell` |
| `image.tag` | seashell Image tag (leave blank to use app version) | `nil` |
| `image.pullPolicy` | seashell Image pull policy | `IfNotPresent` |
| `serviceAccount.create` | Specify whether a ServiceAccount should be created | `true` |
| `serviceAccount.annotations` | Annotations to be applied to ServiceAccount | `{}` |
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the `seashell.fullname` template |
| `rbac.create` | Specify whether RBAC resources should be created and used | `true` |
| `podAnnotations` | Pod annotations | `{}` |
| `podSecurityContext` | Security context for pod | `{}` |
| `securityContext` | Security context for container | `{}` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Tolerations for pod assignment | `[]` |
| `affinity` | Map of node/pod affinities | `{}` |
| Parameter | Description | Default |
|------------------------------|------------------------------------------------------------------------|--------------------------------------------------|
| `image.repository` | seashell Image repository | `puckpuck/seashell` |
| `image.tag` | seashell Image tag (leave blank to use app version) | `nil` |
| `image.pullPolicy` | seashell Image pull policy | `IfNotPresent` |
| `serviceAccount.create` | Specify whether a ServiceAccount should be created | `true` |
| `serviceAccount.annotations` | Annotations to be applied to ServiceAccount | `{}` |
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the `seashell.fullname` template |
| `rbac.create` | Specify whether RBAC resources should be created and used | `true` |
| `rbac.readAll` | Specify whether to include READ permssions on ALL Kubernetes resources | `false` |
| `podAnnotations` | Pod annotations | `{}` |
| `podSecurityContext` | Security context for pod | `{}` |
| `securityContext` | Security context for container | `{}` |
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Tolerations for pod assignment | `[]` |
| `affinity` | Map of node/pod affinities | `{}` |
4 changes: 2 additions & 2 deletions charts/seashell/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.rbac.create }}
{{- if and .Values.rbac.create .Values.rbac.readAll }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -13,4 +13,4 @@ subjects:
- kind: ServiceAccount
name: {{ include "seashell.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/seashell/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.rbac.create }}
{{- if and .Values.rbac.create .Values.rbac.readAll }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -16,4 +16,4 @@ rules:
- get
- list
- watch
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/seashell/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ serviceAccount:
rbac:
# Specifies whether to create cluster roles and bindings
create: true
# If set to true, a Role and RoleBinding with READ permissions on ALL objects will be created
readAll: false

podAnnotations: { }

Expand Down

0 comments on commit 7761a46

Please sign in to comment.