Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/chartmuseum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ their default values. See values.yaml for all available options.
| `env.open.AUTH_REALM` | Realm used for bearer authentication | `<nil>` |
| `env.open.AUTH_SERVICE` | Service used for bearer authentication | `<nil>` |
| `env.field` | Expose pod information to containers through environment variables | `{}` |
| `env.resourcefield` | Expose information about resource containers through environment variables | `{}` |
| `env.existingSecret` | Name of the existing secret use values | `<nil>` |
| `env.existingSecretMappings.BASIC_AUTH_USER` | Key name in the secret for the Username | `<nil>` |
| `env.existingSecretMappings.BASIC_AUTH_PASS` | Key name in the secret for the Password | `<nil>` |
Expand Down
9 changes: 9 additions & 0 deletions src/chartmuseum/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ spec:
fieldPath: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $name, $value := .Values.env.resourcefield }}
{{- if not ( empty $value) }}
- name: {{ $name | quote }}
valueFrom:
resourceFieldRef:
containerName: {{ $.Chart.Name }}
resource: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.gcp.secret.enabled }}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/etc/secrets/google/credentials.json"
Expand Down
2 changes: 2 additions & 0 deletions src/chartmuseum/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ env:
AUTH_SERVICE:
field: {}
# POD_IP: status.podIP
resourcefield: {}
# MY_CPU_REQUEST: requests.cpu
secret:
# username for basic http authentication
BASIC_AUTH_USER:
Expand Down