You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
ref: use binary flag to enable use of MeshRootCertificate (#4871)
Uses a binary flag to enable the use of MeshRootCertificate. Updates
the MRC id to be the MRC name. Passes vault token secret reference
options to the controller, injector, and bootstrap.
Signed-off-by: jaellio <[email protected]>
Copy file name to clipboardExpand all lines: charts/osm/README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,7 @@ The following table lists the configurable parameters of the osm chart and their
97
97
| osm.featureFlags.enableEgressPolicy | bool |`true`| Enable OSM's Egress policy API. When enabled, fine grained control over Egress (external) traffic is enforced |
98
98
| osm.featureFlags.enableEnvoyActiveHealthChecks | bool |`false`| Enable Envoy active health checks |
99
99
| osm.featureFlags.enableIngressBackendPolicy | bool |`true`| Enables OSM's IngressBackend policy API. When enabled, OSM will use the IngressBackend API allow ingress traffic to mesh backends |
100
+
| osm.featureFlags.enableMeshRootCertificate | bool |`false`| Enable the MeshRootCertificate to configure the OSM certificate provider |
| osm.featureFlags.enableWASMStats | bool |`true`| Enable extra Envoy statistics generated by a custom WASM extension |
@@ -270,7 +271,7 @@ The following table lists the configurable parameters of the osm chart and their
270
271
| osm.vault.port | int |`8200`| port to use to connect to Vault |
271
272
| osm.vault.protocol | string |`"http"`| protocol to use to connect to Vault |
272
273
| osm.vault.role | string |`"openservicemesh"`| Vault role to be used by Open Service Mesh |
273
-
| osm.vault.secret | object |`{"key":"","name":""}`| The Kubernetes secret storing the Vault token used in OSM |
274
+
| osm.vault.secret | object |`{"key":"","name":""}`| The Kubernetes secret storing the Vault token used in OSM. The secret must be located in the namespace of the OSM installation|
274
275
| osm.vault.secret.key | string |`""`| The Kubernetes secret key with the value bring the Vault token |
275
276
| osm.vault.secret.name | string |`""`| The Kubernetes secret name storing the Vault token used in OSM |
276
277
| osm.vault.token | string |`""`| token that should be used to connect to Vault |
"--vault-token", "{{ required "osm.vault.token is required when osm.certificateProvider.kind==vault" .Values.osm.vault.token }}",
69
+
{{ if and (empty .Values.osm.vault.secret.name) (empty .Values.osm.vault.secret.key) }}
70
+
"--vault-token", "{{ required "osm.vault.token is required when osm.certificateProvider.kind==vault and osm.vault.secret.name and osm.vault.secret.key are empty" .Values.osm.vault.token }}",
71
+
{{- end }}
72
+
{{ if empty .Values.osm.vault.token }}
73
+
"--vault-token-secret-name", "{{ required "osm.vault.secret.name is required when osm.certificateProvider.kind==vault and osm.vault.token is empty" .Values.osm.vault.secret.name }}",
74
+
"--vault-token-secret-key", "{{ required "osm.vault.secret.key is required when osm.certificateProvider.kind==vault and osm.vault.token is empty" .Values.osm.vault.secret.key }}",
flags.StringVar(&certProviderKind, "certificate-manager", providers.TresorKind.String(), fmt.Sprintf("Certificate manager, one of [%v]", providers.ValidCertificateProviders))
99
+
flags.BoolVar(&enableMeshRootCertificate, "enable-mesh-root-certificate", false, "Enable unsupported MeshRootCertificate to create the OSM Certificate Manager")
97
100
flags.StringVar(&caBundleSecretName, "ca-bundle-secret-name", "", "Name of the Kubernetes Secret for the OSM CA bundle")
98
101
99
102
// Vault certificate manager/provider options
@@ -102,6 +105,8 @@ func init() {
102
105
flags.StringVar(&vaultOptions.VaultToken, "vault-token", "", "Secret token for the the Hashi Vault")
103
106
flags.StringVar(&vaultOptions.VaultRole, "vault-role", "openservicemesh", "Name of the Vault role dedicated to Open Service Mesh")
104
107
flags.IntVar(&vaultOptions.VaultPort, "vault-port", 8200, "Port of the Hashi Vault")
108
+
flags.StringVar(&vaultOptions.VaultTokenSecretName, "vault-token-secret-name", "", "Name of the secret storing the Vault token used in OSM")
109
+
flags.StringVar(&vaultOptions.VaultTokenSecretKey, "vault-token-secret-key", "", "Key for the vault token used in OSM")
0 commit comments