Skip to content
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

bump: nmstate-2.2.35 #5

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SHELL := /bin/bash
OUTPUT_DIR=${CURDIR}/.output

NMSTATE_VERSION ?= 2.2.34
NMSTATE_VERSION ?= 2.2.35
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
NMSTATE_REPO ?= https://github.com/nmstate/nmstate
NMSTATE_SOURCE_TARBALL_URL ?= https://github.com/nmstate/nmstate/archive/refs/tags/v${NMSTATE_VERSION}.tar.gz
Expand Down
7 changes: 6 additions & 1 deletion src/bin/nmstate-kubernetes-go-apigen/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,10 @@ import (
fn parse_field_path_type(&mut self, t: syn::TypePath, field_context: &mut FieldContext) {
if let Some(last_segment) = t.path.segments.last() {
let last_segment_name = last_segment.ident.to_string();
if last_segment_name == "Option" || last_segment_name == "Vec" {
if last_segment_name == "Option"
|| last_segment_name == "Vec"
|| last_segment_name == "Box"
{
self.emitter
.emit_type_name(last_segment_name, field_context);
if let syn::PathArguments::AngleBracketed(ab) = last_segment.arguments.clone() {
Expand Down Expand Up @@ -905,6 +908,8 @@ impl GolangEmitter {
self.emit_optional();
}
self.output.push_str("InterfaceIP");
} else if type_name == "Box" {
//no-op
} else {
if field_ctx.is_optional {
self.emit_optional();
Expand Down
16 changes: 13 additions & 3 deletions test/crd/nmstate.io_clusternetworkstate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ spec:
type: array
identity:
type: string
password:
description: |-
Password Deserialize and serialize from/to `password`.
Replaced to `<_password_hid_by_nmstate>` when querying.
type: string
phase2-auth:
description: Phase2Auth Deserialize and serialize from/to
`phase2-auth`.
type: string
private-key:
description: PrivateKey Deserialize and serialize from/to
`private-key`.
Expand Down Expand Up @@ -2308,12 +2317,13 @@ spec:
type: string
type: array
route-table-id:
anyOf:
- type: integer
- type: string
description: |-
TableID Route table ID of this VRF interface.
Use 0 to preserve current `table_id`.
Deserialize and serialize from/to `route-table-id`.
format: int32
type: integer
x-kubernetes-int-or-string: true
required:
- port
type: object
Expand Down
15 changes: 15 additions & 0 deletions v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions v2/zz_generated.types.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ type Ieee8021XConfig struct {
// PrivateKeyPassword Deserialize and serialize from/to `private-key-password`.
// Replaced to `<_password_hid_by_nmstate>` when querying.
PrivateKeyPassword *string `json:"private-key-password,omitempty"`
// Phase2Auth Deserialize and serialize from/to `phase2-auth`.
Phase2Auth *string `json:"phase2-auth,omitempty"`
// Password Deserialize and serialize from/to `password`.
// Replaced to `<_password_hid_by_nmstate>` when querying.
Password *string `json:"password,omitempty"`
}

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

// InfiniBandInterface IP over InfiniBand interface. The example yaml output of a
Expand Down
Loading