Add KMMConfig struct to TapConfig

This commit is contained in:
M. Mert Yildiran
2023-08-12 02:41:29 +03:00
parent dd5761f112
commit f4ff4d4dd6
5 changed files with 11 additions and 6 deletions

View File

@@ -100,6 +100,10 @@ type ReleaseConfig struct {
Namespace string `yaml:"namespace" json:"namespace" default:"default"` Namespace string `yaml:"namespace" json:"namespace" default:"default"`
} }
type KMMConfig struct {
Enabled bool `yaml:"enabled" json:"enabled" default:"true"`
}
type TapConfig struct { type TapConfig struct {
Docker DockerConfig `yaml:"docker" json:"docker"` Docker DockerConfig `yaml:"docker" json:"docker"`
Proxy ProxyConfig `yaml:"proxy" json:"proxy"` Proxy ProxyConfig `yaml:"proxy" json:"proxy"`
@@ -121,6 +125,7 @@ type TapConfig struct {
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeselectorterms" json:"nodeselectorterms" default:"[]"` NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeselectorterms" json:"nodeselectorterms" default:"[]"`
Auth AuthConfig `yaml:"auth" json:"auth"` Auth AuthConfig `yaml:"auth" json:"auth"`
Ingress IngressConfig `yaml:"ingress" json:"ingress"` Ingress IngressConfig `yaml:"ingress" json:"ingress"`
KMM KMMConfig `yaml:"kmm" json:"kmm"`
IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"` IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"`
Debug bool `yaml:"debug" json:"debug" default:"false"` Debug bool `yaml:"debug" json:"debug" default:"false"`
} }

View File

@@ -1,4 +1,4 @@
{{ if and .Values.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }} {{ if and .Values.tap.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
apiVersion: kmm.sigs.x-k8s.io/v1beta1 apiVersion: kmm.sigs.x-k8s.io/v1beta1
kind: Module kind: Module
metadata: metadata:

View File

@@ -1,4 +1,4 @@
{{ if and .Values.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }} {{ if and .Values.tap.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:

View File

@@ -1,4 +1,4 @@
{{ if .Values.kmm.enabled }} {{ if .Values.tap.kmm.enabled }}
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
@@ -3426,4 +3426,4 @@ webhooks:
resources: resources:
- modules - modules
sideEffects: None sideEffects: None
{{- end }} {{- end }}

View File

@@ -57,6 +57,8 @@ tap:
host: ks.svc.cluster.local host: ks.svc.cluster.local
tls: [] tls: []
certmanager: letsencrypt-prod certmanager: letsencrypt-prod
kmm:
enabled: true
ipv6: true ipv6: true
debug: false debug: false
logs: logs:
@@ -71,5 +73,3 @@ scripting:
env: {} env: {}
source: "" source: ""
watchscripts: true watchscripts: true
kmm:
enabled: true