Improve the diff in cluster resources.

- Use the branch of pretty with this feature fixed:
  https://github.com/kr/pretty/pull/42
- Add the Limit to the resources declaration to avoid dummy
  differences between statefulsets (where both Resource structures
  are empty, but in one case the fields are not mentioned, while
  in another they are assigned to empty values).
This commit is contained in:
Oleksii Kliukin
2017-05-12 11:41:32 +02:00
committed by Murat Kabilov
parent 455f91128f
commit 3b99ce3d2e
4 changed files with 7 additions and 6 deletions
+1
View File
@@ -115,6 +115,7 @@ bootstrap:
ImagePullPolicy: v1.PullAlways,
Resources: v1.ResourceRequirements{
Requests: *resourceList,
Limits: v1.ResourceList{},
},
Ports: []v1.ContainerPort{
{
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math/rand"
"time"
"github.com/kr/pretty"
"github.com/motomux/pretty"
"github.bus.zalan.do/acid/postgres-operator/pkg/spec"
"k8s.io/client-go/pkg/api/v1"