|
|
|
@@ -35,7 +35,7 @@ var Version = "master" // changed at compile time
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="Convert"></a>
|
|
|
|
|
## func [Convert](<https://github.com/metal3d/katenary/blob/develop/generator/converter.go#L99>)
|
|
|
|
|
## func [Convert](<https://github.com/katenary/katenary/blob/develop/generator/converter.go#L99>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func Convert(config ConvertOptions, dockerComposeFile ...string) error
|
|
|
|
@@ -44,7 +44,7 @@ func Convert(config ConvertOptions, dockerComposeFile ...string) error
|
|
|
|
|
Convert a compose \(docker, podman...\) project to a helm chart. It calls Generate\(\) to generate the chart and then write it to the disk.
|
|
|
|
|
|
|
|
|
|
<a name="GetLabels"></a>
|
|
|
|
|
## func [GetLabels](<https://github.com/metal3d/katenary/blob/develop/generator/labels.go#L12>)
|
|
|
|
|
## func [GetLabels](<https://github.com/katenary/katenary/blob/develop/generator/labels.go#L12>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func GetLabels(serviceName, appName string) map[string]string
|
|
|
|
@@ -53,7 +53,7 @@ func GetLabels(serviceName, appName string) map[string]string
|
|
|
|
|
GetLabels returns the labels for a service. It uses the appName to replace the \_\_replace\_\_ in the labels. This is used to generate the labels in the templates.
|
|
|
|
|
|
|
|
|
|
<a name="GetMatchLabels"></a>
|
|
|
|
|
## func [GetMatchLabels](<https://github.com/metal3d/katenary/blob/develop/generator/labels.go#L25>)
|
|
|
|
|
## func [GetMatchLabels](<https://github.com/katenary/katenary/blob/develop/generator/labels.go#L25>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func GetMatchLabels(serviceName, appName string) map[string]string
|
|
|
|
@@ -62,7 +62,7 @@ func GetMatchLabels(serviceName, appName string) map[string]string
|
|
|
|
|
GetMatchLabels returns the matchLabels for a service. It uses the appName to replace the \_\_replace\_\_ in the labels. This is used to generate the matchLabels in the templates.
|
|
|
|
|
|
|
|
|
|
<a name="GetVersion"></a>
|
|
|
|
|
## func [GetVersion](<https://github.com/metal3d/katenary/blob/develop/generator/version.go#L14>)
|
|
|
|
|
## func [GetVersion](<https://github.com/katenary/katenary/blob/develop/generator/version.go#L14>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func GetVersion() string
|
|
|
|
@@ -71,7 +71,7 @@ func GetVersion() string
|
|
|
|
|
GetVersion return the version of katneary. It's important to understand that the version is set at compile time for the github release. But, it the user get katneary using \`go install\`, the version should be different.
|
|
|
|
|
|
|
|
|
|
<a name="Helper"></a>
|
|
|
|
|
## func [Helper](<https://github.com/metal3d/katenary/blob/develop/generator/helper.go#L15>)
|
|
|
|
|
## func [Helper](<https://github.com/katenary/katenary/blob/develop/generator/helper.go#L15>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func Helper(name string) string
|
|
|
|
@@ -80,7 +80,7 @@ func Helper(name string) string
|
|
|
|
|
Helper returns the \_helpers.tpl file for a chart.
|
|
|
|
|
|
|
|
|
|
<a name="NewCronJob"></a>
|
|
|
|
|
## func [NewCronJob](<https://github.com/metal3d/katenary/blob/develop/generator/cronJob.go#L28>)
|
|
|
|
|
## func [NewCronJob](<https://github.com/katenary/katenary/blob/develop/generator/cronJob.go#L28>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewCronJob(service types.ServiceConfig, chart *HelmChart, appName string) (*CronJob, *RBAC)
|
|
|
|
@@ -89,7 +89,7 @@ func NewCronJob(service types.ServiceConfig, chart *HelmChart, appName string) (
|
|
|
|
|
NewCronJob creates a new CronJob from a compose service. The appName is the name of the application taken from the project name.
|
|
|
|
|
|
|
|
|
|
<a name="ToK8SYaml"></a>
|
|
|
|
|
## func [ToK8SYaml](<https://github.com/metal3d/katenary/blob/develop/generator/utils.go#L90>)
|
|
|
|
|
## func [ToK8SYaml](<https://github.com/katenary/katenary/blob/develop/generator/utils.go#L90>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func ToK8SYaml(obj any) ([]byte, error)
|
|
|
|
@@ -98,7 +98,7 @@ func ToK8SYaml(obj any) ([]byte, error)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="UnWrapTPL"></a>
|
|
|
|
|
## func [UnWrapTPL](<https://github.com/metal3d/katenary/blob/develop/generator/utils.go#L86>)
|
|
|
|
|
## func [UnWrapTPL](<https://github.com/katenary/katenary/blob/develop/generator/utils.go#L86>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func UnWrapTPL(in []byte) []byte
|
|
|
|
@@ -107,7 +107,7 @@ func UnWrapTPL(in []byte) []byte
|
|
|
|
|
UnWrapTPL removes the line wrapping from a template.
|
|
|
|
|
|
|
|
|
|
<a name="ChartTemplate"></a>
|
|
|
|
|
## type [ChartTemplate](<https://github.com/metal3d/katenary/blob/develop/generator/chart.go#L21-L24>)
|
|
|
|
|
## type [ChartTemplate](<https://github.com/katenary/katenary/blob/develop/generator/chart.go#L21-L24>)
|
|
|
|
|
|
|
|
|
|
ChartTemplate is a template of a chart. It contains the content of the template and the name of the service. This is used internally to generate the templates.
|
|
|
|
|
|
|
|
|
@@ -119,7 +119,7 @@ type ChartTemplate struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap"></a>
|
|
|
|
|
## type [ConfigMap](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L37-L42>)
|
|
|
|
|
## type [ConfigMap](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L37-L42>)
|
|
|
|
|
|
|
|
|
|
ConfigMap is a kubernetes ConfigMap. Implements the DataMap interface.
|
|
|
|
|
|
|
|
|
@@ -131,7 +131,7 @@ type ConfigMap struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewConfigMap"></a>
|
|
|
|
|
### func [NewConfigMap](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L46>)
|
|
|
|
|
### func [NewConfigMap](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L46>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewConfigMap(service types.ServiceConfig, appName string, forFile bool) *ConfigMap
|
|
|
|
@@ -140,7 +140,7 @@ func NewConfigMap(service types.ServiceConfig, appName string, forFile bool) *Co
|
|
|
|
|
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".
|
|
|
|
|
|
|
|
|
|
<a name="NewConfigMapFromDirectory"></a>
|
|
|
|
|
### func [NewConfigMapFromDirectory](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L119>)
|
|
|
|
|
### func [NewConfigMapFromDirectory](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L119>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewConfigMapFromDirectory(service types.ServiceConfig, appName, path string) *ConfigMap
|
|
|
|
@@ -149,7 +149,7 @@ func NewConfigMapFromDirectory(service types.ServiceConfig, appName, path string
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap.AddBinaryData"></a>
|
|
|
|
|
### func \(\*ConfigMap\) [AddBinaryData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L157>)
|
|
|
|
|
### func \(\*ConfigMap\) [AddBinaryData](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L157>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *ConfigMap) AddBinaryData(key string, value []byte)
|
|
|
|
@@ -158,7 +158,7 @@ func (c *ConfigMap) AddBinaryData(key string, value []byte)
|
|
|
|
|
AddBinaryData adds binary data to the configmap. Append or overwrite the value if the key already exists.
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap.AddData"></a>
|
|
|
|
|
### func \(\*ConfigMap\) [AddData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L152>)
|
|
|
|
|
### func \(\*ConfigMap\) [AddData](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L152>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *ConfigMap) AddData(key, value string)
|
|
|
|
@@ -167,7 +167,7 @@ func (c *ConfigMap) AddData(key, value string)
|
|
|
|
|
AddData adds a key value pair to the configmap. Append or overwrite the value if the key already exists.
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap.AppendDir"></a>
|
|
|
|
|
### func \(\*ConfigMap\) [AppendDir](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L166>)
|
|
|
|
|
### func \(\*ConfigMap\) [AppendDir](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L166>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *ConfigMap) AppendDir(path string) error
|
|
|
|
@@ -176,7 +176,7 @@ func (c *ConfigMap) AppendDir(path string) error
|
|
|
|
|
AppendDir 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.
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap.AppendFile"></a>
|
|
|
|
|
### func \(\*ConfigMap\) [AppendFile](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L213>)
|
|
|
|
|
### func \(\*ConfigMap\) [AppendFile](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L213>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *ConfigMap) AppendFile(path string) error
|
|
|
|
@@ -185,7 +185,7 @@ func (c *ConfigMap) AppendFile(path string) error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap.Filename"></a>
|
|
|
|
|
### func \(\*ConfigMap\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L237>)
|
|
|
|
|
### func \(\*ConfigMap\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L237>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *ConfigMap) Filename() string
|
|
|
|
@@ -194,7 +194,7 @@ func (c *ConfigMap) Filename() string
|
|
|
|
|
Filename returns the filename of the configmap. If the configmap is used for files, the filename contains the path.
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap.SetData"></a>
|
|
|
|
|
### func \(\*ConfigMap\) [SetData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L247>)
|
|
|
|
|
### func \(\*ConfigMap\) [SetData](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L247>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *ConfigMap) SetData(data map[string]string)
|
|
|
|
@@ -203,7 +203,7 @@ func (c *ConfigMap) SetData(data map[string]string)
|
|
|
|
|
SetData sets the data of the configmap. It replaces the entire data.
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMap.Yaml"></a>
|
|
|
|
|
### func \(\*ConfigMap\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L252>)
|
|
|
|
|
### func \(\*ConfigMap\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L252>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *ConfigMap) Yaml() ([]byte, error)
|
|
|
|
@@ -212,7 +212,7 @@ func (c *ConfigMap) Yaml() ([]byte, error)
|
|
|
|
|
Yaml returns the yaml representation of the configmap
|
|
|
|
|
|
|
|
|
|
<a name="ConfigMapMount"></a>
|
|
|
|
|
## type [ConfigMapMount](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L28-L31>)
|
|
|
|
|
## type [ConfigMapMount](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L28-L31>)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -223,7 +223,7 @@ type ConfigMapMount struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="ConvertOptions"></a>
|
|
|
|
|
## type [ConvertOptions](<https://github.com/metal3d/katenary/blob/develop/generator/chart.go#L27-L36>)
|
|
|
|
|
## type [ConvertOptions](<https://github.com/katenary/katenary/blob/develop/generator/chart.go#L27-L36>)
|
|
|
|
|
|
|
|
|
|
ConvertOptions are the options to convert a compose project to a helm chart.
|
|
|
|
|
|
|
|
|
@@ -241,7 +241,7 @@ type ConvertOptions struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="CronJob"></a>
|
|
|
|
|
## type [CronJob](<https://github.com/metal3d/katenary/blob/develop/generator/cronJob.go#L22-L25>)
|
|
|
|
|
## type [CronJob](<https://github.com/katenary/katenary/blob/develop/generator/cronJob.go#L22-L25>)
|
|
|
|
|
|
|
|
|
|
CronJob is a kubernetes CronJob.
|
|
|
|
|
|
|
|
|
@@ -253,7 +253,7 @@ type CronJob struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="CronJob.Filename"></a>
|
|
|
|
|
### func \(\*CronJob\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/cronJob.go#L114>)
|
|
|
|
|
### func \(\*CronJob\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/cronJob.go#L114>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *CronJob) Filename() string
|
|
|
|
@@ -264,7 +264,7 @@ Filename returns the filename of the cronjob.
|
|
|
|
|
Implements the Yaml interface.
|
|
|
|
|
|
|
|
|
|
<a name="CronJob.Yaml"></a>
|
|
|
|
|
### func \(\*CronJob\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/cronJob.go#L121>)
|
|
|
|
|
### func \(\*CronJob\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/cronJob.go#L121>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (c *CronJob) Yaml() ([]byte, error)
|
|
|
|
@@ -275,7 +275,7 @@ Yaml returns the yaml representation of the cronjob.
|
|
|
|
|
Implements the Yaml interface.
|
|
|
|
|
|
|
|
|
|
<a name="CronJobValue"></a>
|
|
|
|
|
## type [CronJobValue](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L118-L123>)
|
|
|
|
|
## type [CronJobValue](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L118-L123>)
|
|
|
|
|
|
|
|
|
|
CronJobValue is a cronjob configuration that will be saved in values.yaml.
|
|
|
|
|
|
|
|
|
@@ -289,7 +289,7 @@ type CronJobValue struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="DataMap"></a>
|
|
|
|
|
## type [DataMap](<https://github.com/metal3d/katenary/blob/develop/generator/types.go#L4-L7>)
|
|
|
|
|
## type [DataMap](<https://github.com/katenary/katenary/blob/develop/generator/types.go#L4-L7>)
|
|
|
|
|
|
|
|
|
|
DataMap is a kubernetes ConfigMap or Secret. It can be used to add data to the ConfigMap or Secret.
|
|
|
|
|
|
|
|
|
@@ -301,7 +301,7 @@ type DataMap interface {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="Deployment"></a>
|
|
|
|
|
## type [Deployment](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L34-L44>)
|
|
|
|
|
## type [Deployment](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L34-L44>)
|
|
|
|
|
|
|
|
|
|
Deployment is a kubernetes Deployment.
|
|
|
|
|
|
|
|
|
@@ -313,7 +313,7 @@ type Deployment struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewDeployment"></a>
|
|
|
|
|
### func [NewDeployment](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L48>)
|
|
|
|
|
### func [NewDeployment](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L48>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewDeployment(service types.ServiceConfig, chart *HelmChart) *Deployment
|
|
|
|
@@ -322,7 +322,7 @@ func NewDeployment(service types.ServiceConfig, chart *HelmChart) *Deployment
|
|
|
|
|
NewDeployment creates a new Deployment from a compose service. The appName is the name of the application taken from the project name. It also creates the Values map that will be used to create the values.yaml file.
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.AddContainer"></a>
|
|
|
|
|
### func \(\*Deployment\) [AddContainer](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L115>)
|
|
|
|
|
### func \(\*Deployment\) [AddContainer](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L115>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) AddContainer(service types.ServiceConfig)
|
|
|
|
@@ -331,7 +331,7 @@ func (d *Deployment) AddContainer(service types.ServiceConfig)
|
|
|
|
|
AddContainer adds a container to the deployment.
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.AddHealthCheck"></a>
|
|
|
|
|
### func \(\*Deployment\) [AddHealthCheck](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L160>)
|
|
|
|
|
### func \(\*Deployment\) [AddHealthCheck](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L161>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) AddHealthCheck(service types.ServiceConfig, container *corev1.Container)
|
|
|
|
@@ -340,7 +340,7 @@ func (d *Deployment) AddHealthCheck(service types.ServiceConfig, container *core
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.AddIngress"></a>
|
|
|
|
|
### func \(\*Deployment\) [AddIngress](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L189>)
|
|
|
|
|
### func \(\*Deployment\) [AddIngress](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L190>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) AddIngress(service types.ServiceConfig, appName string) *Ingress
|
|
|
|
@@ -349,7 +349,7 @@ func (d *Deployment) AddIngress(service types.ServiceConfig, appName string) *In
|
|
|
|
|
AddIngress adds an ingress to the deployment. It creates the ingress object.
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.AddLegacyVolume"></a>
|
|
|
|
|
### func \(\*Deployment\) [AddLegacyVolume](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L219>)
|
|
|
|
|
### func \(\*Deployment\) [AddLegacyVolume](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L220>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) AddLegacyVolume(name, kind string)
|
|
|
|
@@ -358,7 +358,7 @@ func (d *Deployment) AddLegacyVolume(name, kind string)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.AddVolumes"></a>
|
|
|
|
|
### func \(\*Deployment\) [AddVolumes](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L195>)
|
|
|
|
|
### func \(\*Deployment\) [AddVolumes](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L196>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) AddVolumes(service types.ServiceConfig, appName string)
|
|
|
|
@@ -367,7 +367,7 @@ func (d *Deployment) AddVolumes(service types.ServiceConfig, appName string)
|
|
|
|
|
AddVolumes adds a volume to the deployment. It does not create the PVC, it only adds the volumes to the deployment. If the volume is a bind volume it will warn the user that it is not supported yet.
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.BindFrom"></a>
|
|
|
|
|
### func \(\*Deployment\) [BindFrom](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L240>)
|
|
|
|
|
### func \(\*Deployment\) [BindFrom](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L241>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) BindFrom(service types.ServiceConfig, binded *Deployment)
|
|
|
|
@@ -376,7 +376,7 @@ func (d *Deployment) BindFrom(service types.ServiceConfig, binded *Deployment)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.BindMapFilesToContainer"></a>
|
|
|
|
|
### func \(\*Deployment\) [BindMapFilesToContainer](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L374>)
|
|
|
|
|
### func \(\*Deployment\) [BindMapFilesToContainer](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L375>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) BindMapFilesToContainer(service types.ServiceConfig, secrets []string, appName string) (*corev1.Container, int)
|
|
|
|
@@ -385,7 +385,7 @@ func (d *Deployment) BindMapFilesToContainer(service types.ServiceConfig, secret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.DependsOn"></a>
|
|
|
|
|
### func \(\*Deployment\) [DependsOn](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L268>)
|
|
|
|
|
### func \(\*Deployment\) [DependsOn](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L269>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) DependsOn(to *Deployment, servicename string) error
|
|
|
|
@@ -394,7 +394,7 @@ func (d *Deployment) DependsOn(to *Deployment, servicename string) error
|
|
|
|
|
DependsOn adds a initContainer to the deployment that will wait for the service to be up.
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.Filename"></a>
|
|
|
|
|
### func \(\*Deployment\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L299>)
|
|
|
|
|
### func \(\*Deployment\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L300>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) Filename() string
|
|
|
|
@@ -403,7 +403,7 @@ func (d *Deployment) Filename() string
|
|
|
|
|
Filename returns the filename of the deployment.
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.MountExchangeVolumes"></a>
|
|
|
|
|
### func \(\*Deployment\) [MountExchangeVolumes](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L425>)
|
|
|
|
|
### func \(\*Deployment\) [MountExchangeVolumes](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L426>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) MountExchangeVolumes()
|
|
|
|
@@ -412,7 +412,7 @@ func (d *Deployment) MountExchangeVolumes()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.SetEnvFrom"></a>
|
|
|
|
|
### func \(\*Deployment\) [SetEnvFrom](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L304>)
|
|
|
|
|
### func \(\*Deployment\) [SetEnvFrom](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L305>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) SetEnvFrom(service types.ServiceConfig, appName string, samePod ...bool)
|
|
|
|
@@ -421,7 +421,7 @@ func (d *Deployment) SetEnvFrom(service types.ServiceConfig, appName string, sam
|
|
|
|
|
SetEnvFrom sets the environment variables to a configmap. The configmap is created.
|
|
|
|
|
|
|
|
|
|
<a name="Deployment.Yaml"></a>
|
|
|
|
|
### func \(\*Deployment\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/deployment.go#L449>)
|
|
|
|
|
### func \(\*Deployment\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/deployment.go#L450>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (d *Deployment) Yaml() ([]byte, error)
|
|
|
|
@@ -430,7 +430,7 @@ func (d *Deployment) Yaml() ([]byte, error)
|
|
|
|
|
Yaml returns the yaml representation of the deployment.
|
|
|
|
|
|
|
|
|
|
<a name="FileMapUsage"></a>
|
|
|
|
|
## type [FileMapUsage](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L21>)
|
|
|
|
|
## type [FileMapUsage](<https://github.com/katenary/katenary/blob/develop/generator/configMap.go#L21>)
|
|
|
|
|
|
|
|
|
|
FileMapUsage is the usage of the filemap.
|
|
|
|
|
|
|
|
|
@@ -448,7 +448,7 @@ const (
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="HelmChart"></a>
|
|
|
|
|
## type [HelmChart](<https://github.com/metal3d/katenary/blob/develop/generator/chart.go#L40-L53>)
|
|
|
|
|
## type [HelmChart](<https://github.com/katenary/katenary/blob/develop/generator/chart.go#L40-L53>)
|
|
|
|
|
|
|
|
|
|
HelmChart is a Helm Chart representation. It contains all the templates, values, versions, helpers...
|
|
|
|
|
|
|
|
|
@@ -471,7 +471,7 @@ type HelmChart struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="Generate"></a>
|
|
|
|
|
### func [Generate](<https://github.com/metal3d/katenary/blob/develop/generator/generator.go#L31>)
|
|
|
|
|
### func [Generate](<https://github.com/katenary/katenary/blob/develop/generator/generator.go#L31>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func Generate(project *types.Project) (*HelmChart, error)
|
|
|
|
@@ -491,7 +491,7 @@ The Generate function will create the HelmChart object this way:
|
|
|
|
|
- Merge the same\-pod services.
|
|
|
|
|
|
|
|
|
|
<a name="NewChart"></a>
|
|
|
|
|
### func [NewChart](<https://github.com/metal3d/katenary/blob/develop/generator/chart.go#L56>)
|
|
|
|
|
### func [NewChart](<https://github.com/katenary/katenary/blob/develop/generator/chart.go#L56>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewChart(name string) *HelmChart
|
|
|
|
@@ -500,7 +500,7 @@ func NewChart(name string) *HelmChart
|
|
|
|
|
NewChart creates a new empty chart with the given name.
|
|
|
|
|
|
|
|
|
|
<a name="HelmChart.SaveTemplates"></a>
|
|
|
|
|
### func \(\*HelmChart\) [SaveTemplates](<https://github.com/metal3d/katenary/blob/develop/generator/chart.go#L71>)
|
|
|
|
|
### func \(\*HelmChart\) [SaveTemplates](<https://github.com/katenary/katenary/blob/develop/generator/chart.go#L71>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (chart *HelmChart) SaveTemplates(templateDir string)
|
|
|
|
@@ -509,7 +509,7 @@ func (chart *HelmChart) SaveTemplates(templateDir string)
|
|
|
|
|
SaveTemplates the templates of the chart to the given directory.
|
|
|
|
|
|
|
|
|
|
<a name="Ingress"></a>
|
|
|
|
|
## type [Ingress](<https://github.com/metal3d/katenary/blob/develop/generator/ingress.go#L17-L21>)
|
|
|
|
|
## type [Ingress](<https://github.com/katenary/katenary/blob/develop/generator/ingress.go#L17-L21>)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -521,7 +521,7 @@ type Ingress struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewIngress"></a>
|
|
|
|
|
### func [NewIngress](<https://github.com/metal3d/katenary/blob/develop/generator/ingress.go#L24>)
|
|
|
|
|
### func [NewIngress](<https://github.com/katenary/katenary/blob/develop/generator/ingress.go#L24>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewIngress(service types.ServiceConfig, Chart *HelmChart) *Ingress
|
|
|
|
@@ -530,7 +530,7 @@ func NewIngress(service types.ServiceConfig, Chart *HelmChart) *Ingress
|
|
|
|
|
NewIngress creates a new Ingress from a compose service.
|
|
|
|
|
|
|
|
|
|
<a name="Ingress.Filename"></a>
|
|
|
|
|
### func \(\*Ingress\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/ingress.go#L128>)
|
|
|
|
|
### func \(\*Ingress\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/ingress.go#L128>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (ingress *Ingress) Filename() string
|
|
|
|
@@ -539,7 +539,7 @@ func (ingress *Ingress) Filename() string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Ingress.Yaml"></a>
|
|
|
|
|
### func \(\*Ingress\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/ingress.go#L132>)
|
|
|
|
|
### func \(\*Ingress\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/ingress.go#L132>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (ingress *Ingress) Yaml() ([]byte, error)
|
|
|
|
@@ -548,7 +548,7 @@ func (ingress *Ingress) Yaml() ([]byte, error)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="IngressValue"></a>
|
|
|
|
|
## type [IngressValue](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L29-L36>)
|
|
|
|
|
## type [IngressValue](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L29-L36>)
|
|
|
|
|
|
|
|
|
|
IngressValue is a ingress configuration that will be saved in values.yaml.
|
|
|
|
|
|
|
|
|
@@ -564,7 +564,7 @@ type IngressValue struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="PersistenceValue"></a>
|
|
|
|
|
## type [PersistenceValue](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L16-L21>)
|
|
|
|
|
## type [PersistenceValue](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L16-L21>)
|
|
|
|
|
|
|
|
|
|
PersistenceValue is a persistence configuration that will be saved in values.yaml.
|
|
|
|
|
|
|
|
|
@@ -578,7 +578,7 @@ type PersistenceValue struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="RBAC"></a>
|
|
|
|
|
## type [RBAC](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L20-L24>)
|
|
|
|
|
## type [RBAC](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L20-L24>)
|
|
|
|
|
|
|
|
|
|
RBAC is a kubernetes RBAC containing a role, a rolebinding and an associated serviceaccount.
|
|
|
|
|
|
|
|
|
@@ -591,7 +591,7 @@ type RBAC struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewRBAC"></a>
|
|
|
|
|
### func [NewRBAC](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L27>)
|
|
|
|
|
### func [NewRBAC](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L27>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewRBAC(service types.ServiceConfig, appName string) *RBAC
|
|
|
|
@@ -600,7 +600,7 @@ func NewRBAC(service types.ServiceConfig, appName string) *RBAC
|
|
|
|
|
NewRBAC creates a new RBAC from a compose service. The appName is the name of the application taken from the project name.
|
|
|
|
|
|
|
|
|
|
<a name="RepositoryValue"></a>
|
|
|
|
|
## type [RepositoryValue](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L10-L13>)
|
|
|
|
|
## type [RepositoryValue](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L10-L13>)
|
|
|
|
|
|
|
|
|
|
RepositoryValue is a docker repository image and tag that will be saved in values.yaml.
|
|
|
|
|
|
|
|
|
@@ -612,7 +612,7 @@ type RepositoryValue struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="Role"></a>
|
|
|
|
|
## type [Role](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L114-L117>)
|
|
|
|
|
## type [Role](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L114-L117>)
|
|
|
|
|
|
|
|
|
|
Role is a kubernetes Role.
|
|
|
|
|
|
|
|
|
@@ -624,7 +624,7 @@ type Role struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="Role.Filename"></a>
|
|
|
|
|
### func \(\*Role\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L119>)
|
|
|
|
|
### func \(\*Role\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L119>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (r *Role) Filename() string
|
|
|
|
@@ -633,7 +633,7 @@ func (r *Role) Filename() string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Role.Yaml"></a>
|
|
|
|
|
### func \(\*Role\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L123>)
|
|
|
|
|
### func \(\*Role\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L123>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (r *Role) Yaml() ([]byte, error)
|
|
|
|
@@ -642,7 +642,7 @@ func (r *Role) Yaml() ([]byte, error)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="RoleBinding"></a>
|
|
|
|
|
## type [RoleBinding](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L100-L103>)
|
|
|
|
|
## type [RoleBinding](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L100-L103>)
|
|
|
|
|
|
|
|
|
|
RoleBinding is a kubernetes RoleBinding.
|
|
|
|
|
|
|
|
|
@@ -654,7 +654,7 @@ type RoleBinding struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="RoleBinding.Filename"></a>
|
|
|
|
|
### func \(\*RoleBinding\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L105>)
|
|
|
|
|
### func \(\*RoleBinding\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L105>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (r *RoleBinding) Filename() string
|
|
|
|
@@ -663,7 +663,7 @@ func (r *RoleBinding) Filename() string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="RoleBinding.Yaml"></a>
|
|
|
|
|
### func \(\*RoleBinding\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L109>)
|
|
|
|
|
### func \(\*RoleBinding\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L109>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (r *RoleBinding) Yaml() ([]byte, error)
|
|
|
|
@@ -672,7 +672,7 @@ func (r *RoleBinding) Yaml() ([]byte, error)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Secret"></a>
|
|
|
|
|
## type [Secret](<https://github.com/metal3d/katenary/blob/develop/generator/secret.go#L22-L25>)
|
|
|
|
|
## type [Secret](<https://github.com/katenary/katenary/blob/develop/generator/secret.go#L22-L25>)
|
|
|
|
|
|
|
|
|
|
Secret is a kubernetes Secret.
|
|
|
|
|
|
|
|
|
@@ -686,7 +686,7 @@ type Secret struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewSecret"></a>
|
|
|
|
|
### func [NewSecret](<https://github.com/metal3d/katenary/blob/develop/generator/secret.go#L28>)
|
|
|
|
|
### func [NewSecret](<https://github.com/katenary/katenary/blob/develop/generator/secret.go#L28>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewSecret(service types.ServiceConfig, appName string) *Secret
|
|
|
|
@@ -695,7 +695,7 @@ func NewSecret(service types.ServiceConfig, appName string) *Secret
|
|
|
|
|
NewSecret creates a new Secret from a compose service
|
|
|
|
|
|
|
|
|
|
<a name="Secret.AddData"></a>
|
|
|
|
|
### func \(\*Secret\) [AddData](<https://github.com/metal3d/katenary/blob/develop/generator/secret.go#L70>)
|
|
|
|
|
### func \(\*Secret\) [AddData](<https://github.com/katenary/katenary/blob/develop/generator/secret.go#L70>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (s *Secret) AddData(key, value string)
|
|
|
|
@@ -704,7 +704,7 @@ func (s *Secret) AddData(key, value string)
|
|
|
|
|
AddData adds a key value pair to the secret.
|
|
|
|
|
|
|
|
|
|
<a name="Secret.Filename"></a>
|
|
|
|
|
### func \(\*Secret\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/secret.go#L86>)
|
|
|
|
|
### func \(\*Secret\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/secret.go#L86>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (s *Secret) Filename() string
|
|
|
|
@@ -713,7 +713,7 @@ func (s *Secret) Filename() string
|
|
|
|
|
Filename returns the filename of the secret.
|
|
|
|
|
|
|
|
|
|
<a name="Secret.SetData"></a>
|
|
|
|
|
### func \(\*Secret\) [SetData](<https://github.com/metal3d/katenary/blob/develop/generator/secret.go#L91>)
|
|
|
|
|
### func \(\*Secret\) [SetData](<https://github.com/katenary/katenary/blob/develop/generator/secret.go#L91>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (s *Secret) SetData(data map[string]string)
|
|
|
|
@@ -722,7 +722,7 @@ func (s *Secret) SetData(data map[string]string)
|
|
|
|
|
SetData sets the data of the secret.
|
|
|
|
|
|
|
|
|
|
<a name="Secret.Yaml"></a>
|
|
|
|
|
### func \(\*Secret\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/secret.go#L98>)
|
|
|
|
|
### func \(\*Secret\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/secret.go#L98>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (s *Secret) Yaml() ([]byte, error)
|
|
|
|
@@ -731,7 +731,7 @@ func (s *Secret) Yaml() ([]byte, error)
|
|
|
|
|
Yaml returns the yaml representation of the secret.
|
|
|
|
|
|
|
|
|
|
<a name="Service"></a>
|
|
|
|
|
## type [Service](<https://github.com/metal3d/katenary/blob/develop/generator/service.go#L17-L20>)
|
|
|
|
|
## type [Service](<https://github.com/katenary/katenary/blob/develop/generator/service.go#L17-L20>)
|
|
|
|
|
|
|
|
|
|
Service is a kubernetes Service.
|
|
|
|
|
|
|
|
|
@@ -743,7 +743,7 @@ type Service struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewService"></a>
|
|
|
|
|
### func [NewService](<https://github.com/metal3d/katenary/blob/develop/generator/service.go#L23>)
|
|
|
|
|
### func [NewService](<https://github.com/katenary/katenary/blob/develop/generator/service.go#L23>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewService(service types.ServiceConfig, appName string) *Service
|
|
|
|
@@ -752,7 +752,7 @@ func NewService(service types.ServiceConfig, appName string) *Service
|
|
|
|
|
NewService creates a new Service from a compose service.
|
|
|
|
|
|
|
|
|
|
<a name="Service.AddPort"></a>
|
|
|
|
|
### func \(\*Service\) [AddPort](<https://github.com/metal3d/katenary/blob/develop/generator/service.go#L52>)
|
|
|
|
|
### func \(\*Service\) [AddPort](<https://github.com/katenary/katenary/blob/develop/generator/service.go#L52>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (s *Service) AddPort(port types.ServicePortConfig, serviceName ...string)
|
|
|
|
@@ -761,7 +761,7 @@ func (s *Service) AddPort(port types.ServicePortConfig, serviceName ...string)
|
|
|
|
|
AddPort adds a port to the service.
|
|
|
|
|
|
|
|
|
|
<a name="Service.Filename"></a>
|
|
|
|
|
### func \(\*Service\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/service.go#L76>)
|
|
|
|
|
### func \(\*Service\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/service.go#L76>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (s *Service) Filename() string
|
|
|
|
@@ -770,7 +770,7 @@ func (s *Service) Filename() string
|
|
|
|
|
Filename returns the filename of the service.
|
|
|
|
|
|
|
|
|
|
<a name="Service.Yaml"></a>
|
|
|
|
|
### func \(\*Service\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/service.go#L81>)
|
|
|
|
|
### func \(\*Service\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/service.go#L81>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (s *Service) Yaml() ([]byte, error)
|
|
|
|
@@ -779,7 +779,7 @@ func (s *Service) Yaml() ([]byte, error)
|
|
|
|
|
Yaml returns the yaml representation of the service.
|
|
|
|
|
|
|
|
|
|
<a name="ServiceAccount"></a>
|
|
|
|
|
## type [ServiceAccount](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L132-L135>)
|
|
|
|
|
## type [ServiceAccount](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L132-L135>)
|
|
|
|
|
|
|
|
|
|
ServiceAccount is a kubernetes ServiceAccount.
|
|
|
|
|
|
|
|
|
@@ -791,7 +791,7 @@ type ServiceAccount struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="ServiceAccount.Filename"></a>
|
|
|
|
|
### func \(\*ServiceAccount\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L137>)
|
|
|
|
|
### func \(\*ServiceAccount\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L137>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (r *ServiceAccount) Filename() string
|
|
|
|
@@ -800,7 +800,7 @@ func (r *ServiceAccount) Filename() string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="ServiceAccount.Yaml"></a>
|
|
|
|
|
### func \(\*ServiceAccount\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/rbac.go#L141>)
|
|
|
|
|
### func \(\*ServiceAccount\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/rbac.go#L141>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (r *ServiceAccount) Yaml() ([]byte, error)
|
|
|
|
@@ -809,7 +809,7 @@ func (r *ServiceAccount) Yaml() ([]byte, error)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="TLS"></a>
|
|
|
|
|
## type [TLS](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L23-L26>)
|
|
|
|
|
## type [TLS](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L23-L26>)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -821,7 +821,7 @@ type TLS struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="Value"></a>
|
|
|
|
|
## type [Value](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L39-L50>)
|
|
|
|
|
## type [Value](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L39-L50>)
|
|
|
|
|
|
|
|
|
|
Value will be saved in values.yaml. It contains configuration for all deployment and services.
|
|
|
|
|
|
|
|
|
@@ -841,7 +841,7 @@ type Value struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewValue"></a>
|
|
|
|
|
### func [NewValue](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L57>)
|
|
|
|
|
### func [NewValue](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L57>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewValue(service types.ServiceConfig, main ...bool) *Value
|
|
|
|
@@ -852,7 +852,7 @@ NewValue creates a new Value from a compose service. The value contains the nece
|
|
|
|
|
If \`main\` is true, the tag will be empty because it will be set in the helm chart appVersion.
|
|
|
|
|
|
|
|
|
|
<a name="Value.AddIngress"></a>
|
|
|
|
|
### func \(\*Value\) [AddIngress](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L90>)
|
|
|
|
|
### func \(\*Value\) [AddIngress](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L90>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (v *Value) AddIngress(host, path string)
|
|
|
|
@@ -861,7 +861,7 @@ func (v *Value) AddIngress(host, path string)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="Value.AddPersistence"></a>
|
|
|
|
|
### func \(\*Value\) [AddPersistence](<https://github.com/metal3d/katenary/blob/develop/generator/values.go#L104>)
|
|
|
|
|
### func \(\*Value\) [AddPersistence](<https://github.com/katenary/katenary/blob/develop/generator/values.go#L104>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (v *Value) AddPersistence(volumeName string)
|
|
|
|
@@ -870,7 +870,7 @@ func (v *Value) AddPersistence(volumeName string)
|
|
|
|
|
AddPersistence adds persistence configuration to the Value.
|
|
|
|
|
|
|
|
|
|
<a name="VolumeClaim"></a>
|
|
|
|
|
## type [VolumeClaim](<https://github.com/metal3d/katenary/blob/develop/generator/volume.go#L18-L23>)
|
|
|
|
|
## type [VolumeClaim](<https://github.com/katenary/katenary/blob/develop/generator/volume.go#L18-L23>)
|
|
|
|
|
|
|
|
|
|
VolumeClaim is a kubernetes VolumeClaim. This is a PersistentVolumeClaim.
|
|
|
|
|
|
|
|
|
@@ -882,7 +882,7 @@ type VolumeClaim struct {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<a name="NewVolumeClaim"></a>
|
|
|
|
|
### func [NewVolumeClaim](<https://github.com/metal3d/katenary/blob/develop/generator/volume.go#L26>)
|
|
|
|
|
### func [NewVolumeClaim](<https://github.com/katenary/katenary/blob/develop/generator/volume.go#L26>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func NewVolumeClaim(service types.ServiceConfig, volumeName, appName string) *VolumeClaim
|
|
|
|
@@ -891,7 +891,7 @@ func NewVolumeClaim(service types.ServiceConfig, volumeName, appName string) *Vo
|
|
|
|
|
NewVolumeClaim creates a new VolumeClaim from a compose service.
|
|
|
|
|
|
|
|
|
|
<a name="VolumeClaim.Filename"></a>
|
|
|
|
|
### func \(\*VolumeClaim\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/volume.go#L62>)
|
|
|
|
|
### func \(\*VolumeClaim\) [Filename](<https://github.com/katenary/katenary/blob/develop/generator/volume.go#L62>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (v *VolumeClaim) Filename() string
|
|
|
|
@@ -900,7 +900,7 @@ func (v *VolumeClaim) Filename() string
|
|
|
|
|
Filename returns the suggested filename for a VolumeClaim.
|
|
|
|
|
|
|
|
|
|
<a name="VolumeClaim.Yaml"></a>
|
|
|
|
|
### func \(\*VolumeClaim\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/volume.go#L67>)
|
|
|
|
|
### func \(\*VolumeClaim\) [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/volume.go#L67>)
|
|
|
|
|
|
|
|
|
|
```go
|
|
|
|
|
func (v *VolumeClaim) Yaml() ([]byte, error)
|
|
|
|
@@ -909,7 +909,7 @@ func (v *VolumeClaim) Yaml() ([]byte, error)
|
|
|
|
|
Yaml marshals a VolumeClaim into yaml.
|
|
|
|
|
|
|
|
|
|
<a name="Yaml"></a>
|
|
|
|
|
## type [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/types.go#L10-L13>)
|
|
|
|
|
## type [Yaml](<https://github.com/katenary/katenary/blob/develop/generator/types.go#L10-L13>)
|
|
|
|
|
|
|
|
|
|
Yaml is a kubernetes object that can be converted to yaml.
|
|
|
|
|
|
|
|
|
|