-
Type:
Bug
-
Status: Done
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: PSMDB 0.2.0
-
Component/s: None
-
Labels:None
it should be possible to set "limits" without "requests"
STR:
apply cr config without requests
resources: limits: cpu: "300m" memory: "0.5G" storage: "1Gi"
check PSMDB statefulset yaml with following command
kubectl get -o yaml statefulset/my-cluster-name-rs0
expected result:
resources: limits: cpu: 300m memory: 500M
current result:
ERROR: logging before flag.Parse: E1204 10:53:52.741265 1 runtime.go:66] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference) /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51 /usr/local/go/src/runtime/asm_amd64.s:522 /usr/local/go/src/runtime/panic.go:513 /usr/local/go/src/runtime/panic.go:82 /usr/local/go/src/runtime/signal_unix.go:390 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/util.go:72 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/util.go:123 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/replset.go:170 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/replset.go:225 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/pkg/stub/handler.go:129 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer-sync.go:88 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer-sync.go:52 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer-sync.go:36 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/github.com/operator-framework/operator-sdk/pkg/sdk/informer.go:98 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134 /go/src/github.com/Percona-Lab/percona-server-mongodb-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88 /usr/local/go/src/runtime/asm_amd64.s:1333 panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x108b7e8]