@@ -38,7 +38,7 @@ var Version = "master" // changed at compile time
38
38
## func [ Convert] ( < https://github.com/metal3d/katenary/blob/develop/generator/converter.go#L93 > )
39
39
40
40
``` go
41
- func Convert (config ConvertOptions , dockerComposeFile ...string )
41
+ func Convert (config ConvertOptions , dockerComposeFile ...string ) error
42
42
```
43
43
44
44
Convert a compose \(docker, podman...\) project to a helm chart. It calls Generate\(\) to generate the chart and then write it to the disk.
@@ -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#L36-L41 > )
122
+ ## type [ ConfigMap] ( < https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L37-L42 > )
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#L45 > )
134
+ ### func [ NewConfigMap] ( < https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L46 > )
135
135
136
136
``` go
137
137
func NewConfigMap (service types .ServiceConfig , appName string , forFile bool ) *ConfigMap
@@ -140,7 +140,7 @@ 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#L118 >)
143
+ ### func [NewConfigMapFromDirectory](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L119 >)
144
144
145
145
```go
146
146
func NewConfigMapFromDirectory(service types.ServiceConfig, appName, path string) *ConfigMap
@@ -149,7 +149,7 @@ func NewConfigMapFromDirectory(service types.ServiceConfig, appName, path string
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
151
<a name="ConfigMap.AddBinaryData"></a>
152
- ### func \(\*ConfigMap\) [AddBinaryData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L154 >)
152
+ ### func \(\*ConfigMap\) [AddBinaryData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L155 >)
153
153
154
154
```go
155
155
func (c *ConfigMap) AddBinaryData(key string, value []byte)
@@ -158,34 +158,34 @@ func (c *ConfigMap) AddBinaryData(key string, value []byte)
158
158
AddBinaryData adds binary data to the configmap. Append or overwrite the value if the key already exists.
159
159
160
160
<a name="ConfigMap.AddData"></a>
161
- ### func \(\*ConfigMap\) [AddData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L149 >)
161
+ ### func \(\*ConfigMap\) [AddData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L150 >)
162
162
163
163
```go
164
164
func (c *ConfigMap) AddData(key, value string)
165
165
```
166
166
167
167
AddData adds a key value pair to the configmap. Append or overwrite the value if the key already exists.
168
168
169
- <a name="ConfigMap.AppendFile "></a>
170
- ### func \(\*ConfigMap\) [AppendFile ](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L209 >)
169
+ <a name="ConfigMap.AppendDir "></a>
170
+ ### func \(\*ConfigMap\) [AppendDir ](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L164 >)
171
171
172
172
```go
173
- func (c *ConfigMap) AppendFile (path string)
173
+ func (c *ConfigMap) AppendDir (path string) error
174
174
```
175
175
176
+ 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.
176
177
177
-
178
- <a name="ConfigMap.AppenddDir"></a>
179
- ### func \(\*ConfigMap\) [AppenddDir](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L163>)
178
+ <a name="ConfigMap.AppendFile"></a>
179
+ ### func \(\*ConfigMap\) [AppendFile](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L211>)
180
180
181
181
```go
182
- func (c *ConfigMap) AppenddDir (path string)
182
+ func (c *ConfigMap) AppendFile (path string) error
183
183
```
184
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.
185
+
186
186
187
187
<a name="ConfigMap.Filename"></a>
188
- ### func \(\*ConfigMap\) [Filename](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L232 >)
188
+ ### func \(\*ConfigMap\) [Filename](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L235 >)
189
189
190
190
```go
191
191
func (c *ConfigMap) Filename() string
@@ -194,7 +194,7 @@ func (c *ConfigMap) Filename() string
194
194
Filename returns the filename of the configmap. If the configmap is used for files, the filename contains the path.
195
195
196
196
<a name="ConfigMap.SetData"></a>
197
- ### func \(\*ConfigMap\) [SetData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L242 >)
197
+ ### func \(\*ConfigMap\) [SetData](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L245 >)
198
198
199
199
```go
200
200
func (c *ConfigMap) SetData(data map[string]string)
@@ -203,7 +203,7 @@ func (c *ConfigMap) SetData(data map[string]string)
203
203
SetData sets the data of the configmap. It replaces the entire data.
204
204
205
205
<a name="ConfigMap.Yaml"></a>
206
- ### func \(\*ConfigMap\) [Yaml](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L247 >)
206
+ ### func \(\*ConfigMap\) [Yaml](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L250 >)
207
207
208
208
```go
209
209
func (c *ConfigMap) Yaml() ([]byte, error)
@@ -430,7 +430,7 @@ func (d *Deployment) Yaml() ([]byte, error)
430
430
Yaml returns the yaml representation of the deployment.
431
431
432
432
<a name="FileMapUsage"></a>
433
- ## type [FileMapUsage](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L20 >)
433
+ ## type [FileMapUsage](<https:// github.com/metal3d/katenary/blob/develop/generator/configMap.go#L21 >)
434
434
435
435
FileMapUsage is the usage of the filemap.
436
436
0 commit comments