@@ -119,7 +119,7 @@ type ChartTemplate struct {
119
119
```
120
120
121
121
<a name =" ConfigMap " ></a >
122
- ## type [ ConfigMap] ( < https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L35-L40 > )
122
+ ## type [ ConfigMap] ( < https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L36-L41 > )
123
123
124
124
ConfigMap is a kubernetes ConfigMap. Implements the DataMap interface.
125
125
@@ -131,7 +131,7 @@ type ConfigMap struct {
131
131
```
132
132
133
133
<a name =" NewConfigMap " ></a >
134
- ### func [ NewConfigMap] ( < https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L44 > )
134
+ ### func [ NewConfigMap] ( < https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L45 > )
135
135
136
136
``` go
137
137
func NewConfigMap (service types .ServiceConfig , appName string , forFile bool ) *ConfigMap
@@ -140,43 +140,52 @@ func NewConfigMap(service types.ServiceConfig, appName string, forFile bool) *Co
140
140
NewConfigMap creates a new ConfigMap from a compose service. The appName is the name of the application taken from the project name. The ConfigMap is filled by environment variables and labels "map\-env".
141
141
142
142
<a name="NewConfigMapFromDirectory"></a>
143
- ### func [NewConfigMapFromDirectory](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L117 >)
143
+ ### func [NewConfigMapFromDirectory](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L118 >)
144
144
145
145
```go
146
146
func NewConfigMapFromDirectory(service types.ServiceConfig, appName, path string) *ConfigMap
147
147
```
148
148
149
149
NewConfigMapFromDirectory creates a new ConfigMap from a compose service. This path is the path to the file or directory. If the path is a directory, all files in the directory are added to the ConfigMap. Each subdirectory are ignored. Note that the Generate\(\) function will create the subdirectories ConfigMaps.
150
150
151
- <a name="ConfigMap.AddData "></a>
152
- ### func \(\*ConfigMap\) [AddData ](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L148 >)
151
+ <a name="ConfigMap.AddBinaryData "></a>
152
+ ### func \(\*ConfigMap\) [AddBinaryData ](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L154 >)
153
153
154
154
```go
155
- func (c *ConfigMap) AddData (key, value string )
155
+ func (c *ConfigMap) AddBinaryData (key string , value []byte )
156
156
```
157
157
158
- AddData adds a key value pair to the configmap. Append or overwrite the value if the key already exists.
158
+ AddBinaryData adds binary data to the configmap. Append or overwrite the value if the key already exists.
159
159
160
- <a name="ConfigMap.AppendDir "></a>
161
- ### func \(\*ConfigMap\) [AppendDir ](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L154 >)
160
+ <a name="ConfigMap.AddData "></a>
161
+ ### func \(\*ConfigMap\) [AddData ](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L149 >)
162
162
163
163
```go
164
- func (c *ConfigMap) AppendDir(path string)
164
+ func (c *ConfigMap) AddData(key, value string)
165
165
```
166
166
167
- AddFile adds files from given path to the configmap. It is not recursive, to add all files in a directory, you need to call this function for each subdirectory .
167
+ AddData adds a key value pair to the configmap. Append or overwrite the value if the key already exists .
168
168
169
169
<a name="ConfigMap.AppendFile"></a>
170
- ### func \(\*ConfigMap\) [AppendFile](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L189 >)
170
+ ### func \(\*ConfigMap\) [AppendFile](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L209 >)
171
171
172
172
```go
173
173
func (c *ConfigMap) AppendFile(path string)
174
174
```
175
175
176
176
177
177
178
+ <a name="ConfigMap.AppenddDir"></a>
179
+ ### func \(\*ConfigMap\) [AppenddDir](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L163>)
180
+
181
+ ```go
182
+ func (c *ConfigMap) AppenddDir(path string)
183
+ ```
184
+
185
+ AddFile adds files from given path to the configmap. It is not recursive, to add all files in a directory, you need to call this function for each subdirectory.
186
+
178
187
<a name="ConfigMap.Filename"></a>
179
- ### func \(\*ConfigMap\) [Filename](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L207 >)
188
+ ### func \(\*ConfigMap\) [Filename](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L232 >)
180
189
181
190
```go
182
191
func (c *ConfigMap) Filename() string
@@ -185,7 +194,7 @@ func (c *ConfigMap) Filename() string
185
194
Filename returns the filename of the configmap. If the configmap is used for files, the filename contains the path.
186
195
187
196
<a name="ConfigMap.SetData"></a>
188
- ### func \(\*ConfigMap\) [SetData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L217 >)
197
+ ### func \(\*ConfigMap\) [SetData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L242 >)
189
198
190
199
```go
191
200
func (c *ConfigMap) SetData(data map[string]string)
@@ -194,7 +203,7 @@ func (c *ConfigMap) SetData(data map[string]string)
194
203
SetData sets the data of the configmap. It replaces the entire data.
195
204
196
205
<a name="ConfigMap.Yaml"></a>
197
- ### func \(\*ConfigMap\) [Yaml](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L222 >)
206
+ ### func \(\*ConfigMap\) [Yaml](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L247 >)
198
207
199
208
```go
200
209
func (c *ConfigMap) Yaml() ([]byte, error)
@@ -421,7 +430,7 @@ func (d *Deployment) Yaml() ([]byte, error)
421
430
Yaml returns the yaml representation of the deployment.
422
431
423
432
<a name="FileMapUsage"></a>
424
- ## type [FileMapUsage](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L19 >)
433
+ ## type [FileMapUsage](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L20 >)
425
434
426
435
FileMapUsage is the usage of the filemap.
427
436
0 commit comments