-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Multitenancy]: Add PNI CRD #2134
Conversation
1324f1c
to
9f00eaf
Compare
Signed-off-by: aggarwal0009 <[email protected]>
Signed-off-by: aggarwal0009 <[email protected]>
7a4cf67
to
4cfe869
Compare
// PodNetworkInstanceSpec defines the desired state of PodNetworkInstance | ||
type PodNetworkInstanceSpec struct { | ||
// +kubebuilder:default=0 | ||
// +kubebuilder:validation:Optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not exactly sure what this annotation means but a PodNetwork is not an optional field of a PodNetworkInstance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With omitempty in place, this annotation has no effect.. I would also need to drop omit empty from the field for it to be marked required in CRD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I dropped omitempty from podnetwork and it is now marked req in generated CRD.
|
||
// PodNetworkInstanceStatus defines the observed state of PodNetworkInstance | ||
type PodNetworkInstanceStatus struct { | ||
// +kubebuilder:validation:Optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, I wouldn't mark this optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed but it has no effect. Do I need to drop omitempty from PodIPAddresses field here? They can be empty initially right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm yeah let's keep it like you have it for now
Signed-off-by: aggarwal0009 <[email protected]>
351ea4d
Merging as Dual stack E2E is flaky. Pinging Ramiro to get that fixed. |
Reason for Change:
New CRD PodNetworkInstance added to enable VNET multitenancy
PNIs represent optional requirements, or behavior configurations for how we setup the pod networking. They should map 1:1 and follow the lifetime of a customer workload.
Issue Fixed:
Requirements:
Notes: