Skip to content

Commit

Permalink
re-added default to collector enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
xadhatter committed May 22, 2024
1 parent 7afcba7 commit 339cb3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/crds/kubefox.xigxog.io_platforms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4789,6 +4789,7 @@ spec:
address:
type: string
enabled:
default: false
type: boolean
type: object
logs:
Expand Down
1 change: 1 addition & 0 deletions api/kubernetes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type TelemetrySpec struct {
}

type CollectorSpec struct {
// +kubebuilder:default=false
Enabled bool `json:"enabled,omitempty"`
Address string `json:"address,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/kubernetes-crds.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Used by:<br>

| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ---------- |
| `enabled` | <div style="white-space:nowrap">boolean<div> | <div style="max-width:30rem"></div> | <div style="white-space:nowrap"></div> |
| `enabled` | <div style="white-space:nowrap">boolean<div> | <div style="max-width:30rem"></div> | <div style="white-space:nowrap">default: false</div> |
| `address` | <div style="white-space:nowrap">string<div> | <div style="max-width:30rem"></div> | <div style="white-space:nowrap"></div> |


Expand Down

0 comments on commit 339cb3e

Please sign in to comment.