Open AdheipSingh opened 3 years ago
since this expecting a spec, all other objects with spec follow this naming convention.
well, there are many e.g.
HPAutoScaler *autoscalev2beta1.HorizontalPodAutoscalerSpec
json:"hpAutoscaler,omitempty"``
for now, I wouldn't worry about it too much.
i see, my only confusion was when i mention ingress
ingress:
spec:
...
this adds confusion since we dont need to pass in spec, same goes for HPA one too this should be
ingressSpec:
...
https://github.com/druid-io/druid-operator/blob/master/pkg/apis/druid/v1alpha1/druid_types.go#L247
Here
json:"ingress,omitempty"
should be renamed tojson:"ingressSpec,omitempty"`
, since this expecting a spec, all other objects with spec follow this naming convention.