Skip to content

Commit

Permalink
feat: Add instructions for setting key in configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed Aug 30, 2019
1 parent 119ff5a commit 716a730
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ configMapGenerator:
- JAVA_TOOL_OPTIONS=-agentlib:hprof
```

It is also possible to [define a key](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-the-key-to-use-when-creating-a-configmap-from-a-file) to set a name different than the filename.

The example below creates a ConfigMap with the name of file as `myFileName.ini` while the _actual_ filename from which the configmap is created is `whatever.ini`.

```
configMapGenerator:
- name: app-whatever
files:
- myFileName.ini=whatever.ini
```

### crds

Each entry in this list should be a relative path to
Expand Down

0 comments on commit 716a730

Please sign in to comment.