Skip to content

Commit

Permalink
add omitempty to topology.spec.connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Peccaud committed Jun 15, 2024
1 parent 35a645e commit 36c9e33
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ cov: ## Produce html coverage report; removes all the generated bits for sanity

install-tools: ## Install lint/test tools
go install mvdan.cc/gofumpt@latest
go install github.com/daixiang0/gci@latest@latest
go install github.com/daixiang0/gci@latest
go install github.com/segmentio/golines@latest
go install gotest.tools/gotestsum@latest

Expand Down
2 changes: 1 addition & 1 deletion apis/v1alpha1/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type TopologySpec struct {
// and/or fragmentation challenges.
// +kubebuilder:validation:Enum=vxlan;slurpeeth
// +kubebuilder:default=vxlan
Connectivity string `json:"connectivity"`
Connectivity string `json:"connectivity,omitempty"`
}

// TopologyStatus is the status for a Topology resource.
Expand Down
1 change: 0 additions & 1 deletion assets/crd/clabernetes.containerlab.dev_topologies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ spec:
type: object
type: object
required:
- connectivity
- definition
- naming
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ spec:
type: object
type: object
required:
- connectivity
- definition
- naming
type: object
Expand Down
3 changes: 1 addition & 2 deletions generated/openapi/openapi_generated.go

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

0 comments on commit 36c9e33

Please sign in to comment.