Skip to content

Commit 2190628

Browse files
committed
Make mac string type to not break OpenAPI schema
1 parent 4b2f4aa commit 2190628

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
package v1alpha1
55

66
import (
7-
"net"
8-
97
"github.com/Azure/azure-container-networking/cns/types/infiniband"
108
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
119
)
@@ -50,7 +48,7 @@ type MultitenantPodNetworkConfigSpec struct {
5048
PodName string `json:"podName,omitempty"`
5149
// MAC addresses of the IB devices to use for a pod
5250
// +kubebuilder:validation:Optional
53-
IBMACAddresses []net.HardwareAddr `json:"IBMACAddresses,omitempty"`
51+
IBMACAddresses []string `json:"IBMACAddresses,omitempty"`
5452
}
5553

5654
type InterfaceInfo struct {

crd/multitenancy/api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 2 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ spec:
5959
IBMACAddresses:
6060
description: MAC addresses of the IB devices to use for a pod
6161
items:
62-
description: A HardwareAddr represents a physical hardware address.
63-
format: byte
6462
type: string
6563
type: array
6664
podName:

0 commit comments

Comments
 (0)