Skip to content

Commit dba5efa

Browse files
Merge pull request #137 from rccrdpccl/change-default-to-reflect-kubernetes-default-values
defaults CA bundle references to kubernetes default values
2 parents 0692963 + 0ff6bfe commit dba5efa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

assistedinstaller/config.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ type ServiceConfig struct {
1313
AssistedServiceName string `envconfig:"ASSISTED_SERVICE_NAME" default:"assisted-service"`
1414
// AssistedServiceName is the namemespace of the assisted-service
1515
AssistedInstallerNamespace string `envconfig:"ASSISTED_INSTALLER_NAMESPACE"`
16-
// Name and namespace of a configmap containing the CA bundle to trust when querying assisted-service
17-
AssistedCABundleNamespace string `envconfig:"ASSISTED_CA_BUNDLE_NAMESPACE"`
18-
AssistedCABundleName string `envconfig:"ASSISTED_CA_BUNDLE_NAME"`
19-
AssistedCABundleResource string `envconfig:"ASSISTED_CA_BUNDLE_RESOURCE" default:"configmap"`
16+
// Namespace of the resource containing the CA bundle to trust when querying assisted-service
17+
AssistedCABundleNamespace string `envconfig:"ASSISTED_CA_BUNDLE_NAMESPACE" default:"assisted-installer"`
18+
// Name of the resource where the CA Bundle is stored
19+
AssistedCABundleName string `envconfig:"ASSISTED_CA_BUNDLE_NAME" default:"assisted-installer-ca"`
20+
// Resource kind where the CA bundle is stored. OpenShift will use a configmap, kubernetes a secret
21+
AssistedCABundleResource string `envconfig:"ASSISTED_CA_BUNDLE_RESOURCE" default:"secret"`
2022
// Key name to reference in the CA bundle configmap where the cert bundle is stored
21-
AssistedCABundleKey string `envconfig:"ASSISTED_CA_BUNDLE_KEY" default:"ca-bundle.crt"`
23+
AssistedCABundleKey string `envconfig:"ASSISTED_CA_BUNDLE_KEY" default:"ca.crt"`
2224
}

0 commit comments

Comments
 (0)