Closed kensipe closed 3 years ago
https://github.com/kudobuilder/kudo/blob/main/pkg/webhook/instance_admission.go#L465-L467
there is more than 1 reason accessing the map is !ok
...
if _, ok := instance.Spec.Parameters[p.Name]; !ok {
instance.Spec.Parameters[p.Name] = *p.Default
}
Looking into the right solution
What happened:
Installation of the latest Cassandra
cassandra-3.11.7-1.0.2
which isn't released yet... causes a panic at the controller during installation. It isn't clear if this operator is valid (it passes current validation during bundling) but the panic should NEVER happen at the controller.What you expected to happen:
Installation C* or an Error message indicating the issue.
How to reproduce it (as minimally and precisely as possible):
k kudo install cassandra
for 1.0.2 operator. For me that wask kudo install ./operator
on the master of the current cassandra GH repoAnything else we need to know?:
Panic Trace
Environment:
kubectl version
): konvoy 1.6-rc4kubectl kudo version
): 0.17.1uname -a
):