Skip to content

Commit 617e2c2

Browse files
Merge pull request #19674 from mfojtik/up-30-write-yaml
up: use YAML instead of JSON for configs
2 parents b5a1243 + 78b7471 commit 617e2c2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/oc/bootstrap/clusterup/kubeapiserver/openshift_apiserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func MakeOpenShiftAPIServerConfig(existingMasterConfig string, routingSuffix, ba
3636
// hardcode the route suffix to the old default. If anyone wants to change it, they can modify their config.
3737
masterconfig.RoutingConfig.Subdomain = routingSuffix
3838

39-
configBytes, err := runtime.Encode(configapilatest.Codec, masterconfig)
39+
configBytes, err := configapilatest.WriteYAML(masterconfig)
4040
if err != nil {
4141
return "", err
4242
}

pkg/oc/bootstrap/clusterup/kubeapiserver/openshift_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func MakeOpenShiftControllerConfig(existingMasterConfig string, basedir string)
3333
masterconfig := configObj.(*configapi.MasterConfig)
3434
masterconfig.ServingInfo.BindAddress = "0.0.0.0:8444"
3535

36-
configBytes, err := runtime.Encode(configapilatest.Codec, masterconfig)
36+
configBytes, err := configapilatest.WriteYAML(masterconfig)
3737
if err != nil {
3838
return "", err
3939
}

pkg/oc/bootstrap/clusterup/kubelet/dns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func MakeKubeDNSConfig(existingNodeConfig string, basedir string) (string, error
4646
nodeConfig := configObj.(*configapi.NodeConfig)
4747
nodeConfig.DNSBindAddress = "0.0.0.0:53"
4848
nodeConfig.DNSRecursiveResolvConf = "resolv.conf"
49-
configBytes, err := runtime.Encode(configapilatest.Codec, nodeConfig)
49+
configBytes, err := configapilatest.WriteYAML(nodeConfig)
5050
if err != nil {
5151
return "", err
5252
}

0 commit comments

Comments
 (0)