Skip to content

Commit da96bc8

Browse files
committed
bump: nmstate-2.2.35
Signed-off-by: Enrique Llorente <[email protected]>
1 parent 8dfc232 commit da96bc8

File tree

5 files changed

+41
-7
lines changed

5 files changed

+41
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SHELL := /bin/bash
55
OUTPUT_DIR=${CURDIR}/.output
66

7-
NMSTATE_VERSION ?= 2.2.34
7+
NMSTATE_VERSION ?= 2.2.35
88
NMSTATE_E2E_VERSION ?= 2.2.33# We are missing the dumps from newer releases this is the fix https://github.com/nmstate/nmstate/pull/2797
99
NMSTATE_REPO ?= https://github.com/nmstate/nmstate
1010
NMSTATE_SOURCE_TARBALL_URL ?= https://github.com/nmstate/nmstate/archive/refs/tags/v${NMSTATE_VERSION}.tar.gz

src/bin/nmstate-kubernetes-go-apigen/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,10 @@ import (
516516
fn parse_field_path_type(&mut self, t: syn::TypePath, field_context: &mut FieldContext) {
517517
if let Some(last_segment) = t.path.segments.last() {
518518
let last_segment_name = last_segment.ident.to_string();
519-
if last_segment_name == "Option" || last_segment_name == "Vec" {
519+
if last_segment_name == "Option"
520+
|| last_segment_name == "Vec"
521+
|| last_segment_name == "Box"
522+
{
520523
self.emitter
521524
.emit_type_name(last_segment_name, field_context);
522525
if let syn::PathArguments::AngleBracketed(ab) = last_segment.arguments.clone() {
@@ -905,6 +908,8 @@ impl GolangEmitter {
905908
self.emit_optional();
906909
}
907910
self.output.push_str("InterfaceIP");
911+
} else if type_name == "Box" {
912+
//no-op
908913
} else {
909914
if field_ctx.is_optional {
910915
self.emit_optional();

test/crd/nmstate.io_clusternetworkstate.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,15 @@ spec:
173173
type: array
174174
identity:
175175
type: string
176+
password:
177+
description: |-
178+
Password Deserialize and serialize from/to `password`.
179+
Replaced to `<_password_hid_by_nmstate>` when querying.
180+
type: string
181+
phase2-auth:
182+
description: Phase2Auth Deserialize and serialize from/to
183+
`phase2-auth`.
184+
type: string
176185
private-key:
177186
description: PrivateKey Deserialize and serialize from/to
178187
`private-key`.
@@ -2308,12 +2317,13 @@ spec:
23082317
type: string
23092318
type: array
23102319
route-table-id:
2320+
anyOf:
2321+
- type: integer
2322+
- type: string
23112323
description: |-
23122324
TableID Route table ID of this VRF interface.
2313-
Use 0 to preserve current `table_id`.
23142325
Deserialize and serialize from/to `route-table-id`.
2315-
format: int32
2316-
type: integer
2326+
x-kubernetes-int-or-string: true
23172327
required:
23182328
- port
23192329
type: object

v2/zz_generated.deepcopy.go

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

v2/zz_generated.types.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ type Ieee8021XConfig struct {
251251
// PrivateKeyPassword Deserialize and serialize from/to `private-key-password`.
252252
// Replaced to `<_password_hid_by_nmstate>` when querying.
253253
PrivateKeyPassword *string `json:"private-key-password,omitempty"`
254+
// Phase2Auth Deserialize and serialize from/to `phase2-auth`.
255+
Phase2Auth *string `json:"phase2-auth,omitempty"`
256+
// Password Deserialize and serialize from/to `password`.
257+
// Replaced to `<_password_hid_by_nmstate>` when querying.
258+
Password *string `json:"password,omitempty"`
254259
}
255260

256261
// +k8s:deepcopy-gen=true
@@ -1958,9 +1963,8 @@ type VrfConfig struct {
19581963
// Also deserialize from `ports`.
19591964
Port *[]string `json:"port"`
19601965
// TableID Route table ID of this VRF interface.
1961-
// Use 0 to preserve current `table_id`.
19621966
// Deserialize and serialize from/to `route-table-id`.
1963-
TableID uint32 `json:"route-table-id,omitempty"`
1967+
TableID *intstr.IntOrString `json:"route-table-id,omitempty"`
19641968
}
19651969

19661970
// InfiniBandInterface IP over InfiniBand interface. The example yaml output of a

0 commit comments

Comments
 (0)