Skip to content

Commit

Permalink
go lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
isaac-dasan authored Aug 7, 2024
1 parent 3ce4730 commit 8283d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crd/multitenancy/api/v1beta1/podnetworkinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (

// PodNetworkInstance is the Schema for the PodNetworkInstances API
// +kubebuilder:resource:shortName=pni,scope=Namespaced
// +kubebuilder:webhook:path=/convert,mutating=false,failurePolicy=fail,groups=multitenancy.acn.azure.com,resources=podnetworkinstances,verbs=create;update,versions=v1alpha1;v1beta1,name=podnetworkinstances.kb.io,sideEffects=None,admissionReviewVersions=v1
// +kubebuilder:subresource:status
// +kubebuilder:metadata:labels=managed=
// +kubebuilder:metadata:labels=owner=
Expand Down Expand Up @@ -71,6 +70,7 @@ type PodNetworkInstanceSpec struct {
// PodNetworkConfigs describes each PodNetwork to attach to a single Pod
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:XValidation:rule="self.size() == oldSelf.size()",message="Count of PodNetworkConfigs is immutable"
//nolint:lll // Explanation: kubebuilder markers don't fold into multiple lines
// +kubebuilder:validation:XValidation:rule="self.all(podNetworkConfig, oldSelf.exists(oldPodNetworkConfig, oldPodNetworkConfig.podNetwork == podNetworkConfig.podNetwork && oldPodNetworkConfig.podIPReservationSize == podNetworkConfig.podIPReservationSize))",message="podNetwork and podIPReservationSize in podNetworkConfig are immutable"
PodNetworkConfigs []PodNetworkConfig `json:"podNetworkConfigs"`
}
Expand Down

0 comments on commit 8283d71

Please sign in to comment.