Closed mh013370 closed 8 months ago
@juldrixx : FYI This requires pushing a new build image, merging #321, and then rebasing this PR on master
.
That still doesn't work. If you change the default value to UDP
is still defaulting on TCP
.
That still doesn't work. If you change the default value to
UDP
is still defaulting onTCP
.
well isn't this a fun problem š
That still doesn't work. If you change the default value to
UDP
is still defaulting onTCP
.well isn't this a fun problem š
Even more when we have
// +kubebuilder:validation:Enum={"DO_NOT_LOAD_BALANCE","PARTITION_BY_ATTRIBUTE","ROUND_ROBIN","SINGLE"}
type ConnectionLoadBalanceStrategy string
// how to load balance the data in this Connection across the nodes in the cluster.
// +kubebuilder:default="DO_NOT_LOAD_BALANCE"
LoadBalanceStrategy ConnectionLoadBalanceStrategy `json:"loadBalanceStrategy,omitempty"
that gives us
loadBalanceStrategy:
default: DO_NOT_LOAD_BALANCE
enum:
- DO_NOT_LOAD_BALANCE
- PARTITION_BY_ATTRIBUTE
- ROUND_ROBIN
- SINGLE
type: string
And I can change the default value
If you change the type from corev1.Protocol
to string
it works š
I guess, you can rollback to how it was before without default annotation. It's fine.
If you change the type from
corev1.Protocol
tostring
it works š
Hmm. I was hoping to use the k8s types for ease of use and to avoid converting to/from string and corev1.Protocol
, but i think due to the // +enum
annotation on corev1.Protocol we might not be able to.
I can either change it to a string or remove the default. Which would you prefer?
If you change the type from
corev1.Protocol
tostring
it works šHmm. I was hoping to use the k8s types for ease of use and to avoid converting to/from string and
corev1.Protocol
, but i think due to the// +enum
annotation on corev1.Protocol we might not be able to.I can either change it to a string or remove the default. Which would you prefer?
Remove the default, I asked on Kubebuilder slack how to do it. I'm still waiting for an answer, but depending on the response, I'll make the appropriate change in the future.
If you change the type from
corev1.Protocol
tostring
it works šHmm. I was hoping to use the k8s types for ease of use and to avoid converting to/from string and
corev1.Protocol
, but i think due to the// +enum
annotation on corev1.Protocol we might not be able to. I can either change it to a string or remove the default. Which would you prefer?Remove the default, I asked on Kubebuilder slack how to do it. I'm still waiting for an answer, but depending on the response, I'll make the appropriate change in the future.
pushed
What's in this PR?
Adds the ability to set the NiFi container port network protocol. This field is new and optional, defaulting to
TCP
. If one wished to set the protocol for all container ports, you would use the following:Why?
It's not currently possible to set anything other than TCP.
Checklist