Skip to content

Commit

Permalink
Added missing NadVlanMap CRD and updated nodefabricnetworkattachments…
Browse files Browse the repository at this point in the history
… CRD
  • Loading branch information
YogeshRajmane committed Aug 30, 2023
1 parent 29a5552 commit 5ab876d
Show file tree
Hide file tree
Showing 24 changed files with 827 additions and 19 deletions.
83 changes: 82 additions & 1 deletion provision/acc_provision/templates/aci-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3408,7 +3408,20 @@ spec:
description: Map of iface to fabricLink
type: object
encapVlan:
type: string
properties:
encapRef:
properties:
key:
type: string
nadVlanMap:
type: string
required:
- key
- nadVlanMap
type: object
vlanList:
type: string
type: object
networkRef:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "operator-sdk generate k8s" to regenerate code after
Expand Down Expand Up @@ -3451,6 +3464,74 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
name: nadvlanmaps.aci.fabricattachment
spec:
group: aci.fabricattachment
names:
kind: NadVlanMap
listKind: NadVlanMapList
plural: nadvlanmaps
singular: nadvlanmap
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: NadVlanMap is the Schema for FabricAttachments NAD name to vlan
mapping API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
nadVlanMapping:
additionalProperties:
items:
properties:
label:
type: string
vlans:
type: string
required:
- vlans
type: object
type: array
description: NAD namespace/name to vlan list mapping
type: object
required:
- nadVlanMapping
type: object
status:
properties:
status:
type: string
type: object
required:
- spec
type: object
x-kubernetes-validations:
- rule: "self.metadata.name == 'nad-vlan-map'"
message: "Only one instance with name nad-vlan-map allowed"
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
Expand Down
85 changes: 83 additions & 2 deletions provision/testdata/chained_mode_nad_vlan_map.kube.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,20 @@ spec:
description: Map of iface to fabricLink
type: object
encapVlan:
type: string
properties:
encapRef:
properties:
key:
type: string
nadVlanMap:
type: string
required:
- key
- nadVlanMap
type: object
vlanList:
type: string
type: object
networkRef:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "operator-sdk generate k8s" to regenerate code after
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
name: nadvlanmaps.aci.fabricattachment
spec:
group: aci.fabricattachment
names:
kind: NadVlanMap
listKind: NadVlanMapList
plural: nadvlanmaps
singular: nadvlanmap
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: NadVlanMap is the Schema for FabricAttachments NAD name to vlan
mapping API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
nadVlanMapping:
additionalProperties:
items:
properties:
label:
type: string
vlans:
type: string
required:
- vlans
type: object
type: array
description: NAD namespace/name to vlan list mapping
type: object
required:
- nadVlanMapping
type: object
status:
properties:
status:
type: string
type: object
required:
- spec
type: object
x-kubernetes-validations:
- message: Only one instance with name nad-vlan-map allowed
rule: self.metadata.name == 'nad-vlan-map'
served: true
storage: true
subresources:
status: {}
85 changes: 83 additions & 2 deletions provision/testdata/chained_mode_without_l3out.kube.yaml

Large diffs are not rendered by default.

85 changes: 83 additions & 2 deletions provision/testdata/chained_mode_without_phys_domains.kube.yaml

Large diffs are not rendered by default.

85 changes: 83 additions & 2 deletions provision/testdata/flavor_openshift_sdn_ovn_baremetal.kube.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,20 @@ spec:
description: Map of iface to fabricLink
type: object
encapVlan:
type: string
properties:
encapRef:
properties:
key:
type: string
nadVlanMap:
type: string
required:
- key
- nadVlanMap
type: object
vlanList:
type: string
type: object
networkRef:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "operator-sdk generate k8s" to regenerate code after
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
name: nadvlanmaps.aci.fabricattachment
spec:
group: aci.fabricattachment
names:
kind: NadVlanMap
listKind: NadVlanMapList
plural: nadvlanmaps
singular: nadvlanmap
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: NadVlanMap is the Schema for FabricAttachments NAD name to vlan
mapping API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
nadVlanMapping:
additionalProperties:
items:
properties:
label:
type: string
vlans:
type: string
required:
- vlans
type: object
type: array
description: NAD namespace/name to vlan list mapping
type: object
required:
- nadVlanMapping
type: object
status:
properties:
status:
type: string
type: object
required:
- spec
type: object
x-kubernetes-validations:
- message: Only one instance with name nad-vlan-map allowed
rule: self.metadata.name == 'nad-vlan-map'
served: true
storage: true
subresources:
status: {}
85 changes: 83 additions & 2 deletions provision/testdata/override_skip_node_network_provision.kube.yaml

Large diffs are not rendered by default.

85 changes: 83 additions & 2 deletions provision/testdata/override_use_global_scope_vlan.kube.yaml

Large diffs are not rendered by default.

85 changes: 83 additions & 2 deletions provision/testdata/with_preexisting_tenant_chained_mode.kube.yaml

Large diffs are not rendered by default.

0 comments on commit 5ab876d

Please sign in to comment.