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.
* Plumb trust domain through to helm chart
Signed-off-by: Keith Mattix II <[email protected]>
* Address PR comments
Signed-off-by: Keith Mattix II <[email protected]>
Copy file name to clipboardExpand all lines: cmd/osm-bootstrap/osm-bootstrap.go
+5-1
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ var (
63
63
osmMeshConfigNamestring
64
64
meshNamestring
65
65
osmVersionstring
66
+
trustDomainstring
66
67
67
68
certProviderKindstring
68
69
enableMeshRootCertificatebool
@@ -99,6 +100,9 @@ func init() {
99
100
flags.BoolVar(&enableMeshRootCertificate, "enable-mesh-root-certificate", false, "Enable unsupported MeshRootCertificate to create the OSM Certificate Manager")
100
101
flags.StringVar(&caBundleSecretName, "ca-bundle-secret-name", "", "Name of the Kubernetes Secret for the OSM CA bundle")
101
102
103
+
// TODO (#4502): Remove when we add full MRC support
104
+
flags.StringVar(&trustDomain, "trust-domain", "cluster.local", "The trust domain to use as part of the common name when requesting new certificates")
105
+
102
106
// Vault certificate manager/provider options
103
107
flags.StringVar(&vaultOptions.VaultProtocol, "vault-protocol", "http", "Host name of the Hashi Vault")
104
108
flags.StringVar(&vaultOptions.VaultHost, "vault-host", "vault.default.svc.cluster.local", "Host name of the Hashi Vault")
@@ -230,7 +234,7 @@ func main() {
230
234
"Error initializing certificate manager of kind %s from MRC", certProviderKind)
Copy file name to clipboardExpand all lines: cmd/osm-controller/osm-controller.go
+5-1
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ var (
73
73
caBundleSecretNamestring
74
74
osmMeshConfigNamestring
75
75
osmVersionstring
76
+
trustDomainstring
76
77
77
78
certProviderKindstring
78
79
enableMeshRootCertificatebool
@@ -106,6 +107,9 @@ func init() {
106
107
flags.BoolVar(&enableMeshRootCertificate, "enable-mesh-root-certificate", false, "Enable unsupported MeshRootCertificate to create the OSM Certificate Manager")
107
108
flags.StringVar(&caBundleSecretName, "ca-bundle-secret-name", "", "Name of the Kubernetes Secret for the OSM CA bundle")
108
109
110
+
// TODO (#4502): Remove when we add full MRC support
111
+
flags.StringVar(&trustDomain, "trust-domain", "cluster.local", "The trust domain to use as part of the common name when requesting new certificates")
112
+
109
113
// Vault certificate manager/provider options
110
114
flags.StringVar(&vaultOptions.VaultProtocol, "vault-protocol", "http", "Host name of the Hashi Vault")
111
115
flags.StringVar(&vaultOptions.VaultHost, "vault-host", "vault.default.svc.cluster.local", "Host name of the Hashi Vault")
Copy file name to clipboardExpand all lines: cmd/osm-injector/osm-injector.go
+5-1
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ var (
57
57
osmMeshConfigNamestring
58
58
webhookTimeoutint32
59
59
osmVersionstring
60
+
trustDomainstring
60
61
61
62
certProviderKindstring
62
63
enableMeshRootCertificatebool
@@ -92,6 +93,9 @@ func init() {
92
93
flags.BoolVar(&enableMeshRootCertificate, "enable-mesh-root-certificate", false, "Enable unsupported MeshRootCertificate to create the OSM Certificate Manager")
93
94
flags.StringVar(&caBundleSecretName, "ca-bundle-secret-name", "", "Name of the Kubernetes Secret for the OSM CA bundle")
94
95
96
+
// TODO (#4502): Remove when we add full MRC support
97
+
flags.StringVar(&trustDomain, "trust-domain", "cluster.local", "The trust domain to use as part of the common name when requesting new certificates")
98
+
95
99
// Vault certificate manager/provider options
96
100
flags.StringVar(&vaultOptions.VaultProtocol, "vault-protocol", "http", "Host name of the Hashi Vault")
97
101
flags.StringVar(&vaultOptions.VaultHost, "vault-host", "vault.default.svc.cluster.local", "Host name of the Hashi Vault")
0 commit comments