Skip to content

Commit

Permalink
Fix/configmap (#36)
Browse files Browse the repository at this point in the history
* revert previous chage  to keep it simple. note: use object:null to omit from values

* version bump. access to namespace secrets (for things like cloud discovery) (#35)

Co-authored-by: stewartshea <>

---------

Co-authored-by: stewartshea <>
  • Loading branch information
stewartshea authored Aug 20, 2024
1 parent 67b8d12 commit f6847bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 29 deletions.
4 changes: 2 additions & 2 deletions charts/runwhen-local/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: runwhen-local
description: A Helm chart RunWhen Local - A community powered troubleshooting cheat sheet
type: application
version: 0.1.24
appVersion: "0.5.20"
version: 0.1.25
appVersion: "0.6.1"
icon: https://storage.googleapis.com/runwhen-nonprod-shared-images/icons/runwhen_icon.png
dependencies:
- name: grafana-agent
Expand Down
27 changes: 1 addition & 26 deletions charts/runwhen-local/templates/local-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@ metadata:
data:
workspaceInfo.yaml: |
workspaceName: {{ .Values.workspaceName }}
defaultLocation: {{ .Values.runwhenLocal.workspaceInfo.configMap.data.defaultLocation | default "none" }}
workspaceOwnerEmail: {{ .Values.runwhenLocal.workspaceInfo.configMap.data.workspaceOwnerEmail | default "[email protected]" }}
defaultLOD: {{ .Values.runwhenLocal.workspaceInfo.configMap.data.defaultLOD | default "detailed" }}
namespaces:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.namespaces | nindent 6 }}
codeCollections:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.codeCollections | nindent 6 }}
cloudConfig:
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.kubernetes }}
kubernetes:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.kubernetes | nindent 8 }}
{{- end }}
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.azure }}
azure:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.azure | nindent 8 }}
{{- end }}
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.gcp }}
gcp:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.gcp | nindent 8 }}
{{- end }}
{{- if .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.aws }}
aws:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.cloudConfig.aws | nindent 8 }}
{{- end }}
custom:
{{- toYaml .Values.runwhenLocal.workspaceInfo.configMap.data.custom | nindent 6 }}
{{- .Values.runwhenLocal.workspaceInfo.configMap.data | toYaml | nindent 4 }}
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion charts/runwhen-local/templates/local-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ metadata:
name: {{ .Values.runwhenLocal.serviceAccount.name }}-sa-local-view
rules:
- apiGroups: [""]
resources: ["pods", "pods/log", "events", "configmaps", "services", "replicationcontrollers"]
resources: ["pods", "pods/log", "events", "configmaps", "services", "replicationcontrollers", "secrets"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets"]
Expand Down

0 comments on commit f6847bf

Please sign in to comment.