Skip to content

Commit

Permalink
fix: [sc-106256] Add missing uri field to troubleshoot.sh types (#1574)
Browse files Browse the repository at this point in the history
add uri field for top level type
  • Loading branch information
nvanthao authored Jul 15, 2024
1 parent 403b1ce commit 4e999d6
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/crds/troubleshoot.sh_analyzers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2906,6 +2906,8 @@ spec:
type: object
type: object
type: array
uri:
type: string
type: object
status:
description: AnalyzerStatus defines the observed state of Analyzer
Expand Down
2 changes: 2 additions & 0 deletions config/crds/troubleshoot.sh_collectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16878,6 +16878,8 @@ spec:
type: object
type: object
type: array
uri:
type: string
type: object
status:
description: CollectorStatus defines the observed state of Collector
Expand Down
2 changes: 2 additions & 0 deletions config/crds/troubleshoot.sh_hostcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1623,6 +1623,8 @@ spec:
type: object
type: object
type: array
uri:
type: string
type: object
status:
description: HostCollectorStatus defines the observed state of HostCollector
Expand Down
2 changes: 2 additions & 0 deletions config/crds/troubleshoot.sh_hostpreflights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,8 @@ spec:
type: object
type: object
type: array
uri:
type: string
type: object
status:
description: HostPreflightStatus defines the observed state of HostPreflight
Expand Down
2 changes: 2 additions & 0 deletions config/crds/troubleshoot.sh_preflights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18923,6 +18923,8 @@ spec:
type: array
uploadResultsTo:
type: string
uri:
type: string
type: object
status:
description: PreflightStatus defines the observed state of Preflight
Expand Down
2 changes: 2 additions & 0 deletions config/crds/troubleshoot.sh_redactors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ spec:
type: object
type: object
type: array
uri:
type: string
type: object
status:
description: RedactorStatus defines the observed state of Redactor
Expand Down
2 changes: 2 additions & 0 deletions config/crds/troubleshoot.sh_remotecollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ spec:
additionalProperties:
type: string
type: object
uri:
type: string
type: object
status:
description: CollectorStatus defines the observed state of Collector
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/troubleshoot/v1beta2/analyzer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
type AnalyzerSpec struct {
Analyzers []*Analyze `json:"analyzers,omitempty"`
HostAnalyzers []*HostAnalyze `json:"hostAnalyzers,omitempty" yaml:"hostAnalyzers,omitempty"`
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}

// AnalyzerStatus defines the observed state of Analyzer
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/troubleshoot/v1beta2/collector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type AfterCollection struct {
type CollectorSpec struct {
Collectors []*Collect `json:"collectors,omitempty" yaml:"collectors,omitempty"`
AfterCollection []*AfterCollection `json:"afterCollection,omitempty" yaml:"afterCollection,omitempty"`
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}

// CollectorStatus defines the observed state of Collector
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/troubleshoot/v1beta2/host_collector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
type HostCollectorSpec struct {
Collectors []*HostCollect `json:"collectors,omitempty" yaml:"collectors,omitempty"`
Analyzers []*HostAnalyze `json:"analyzers,omitempty" yaml:"analyzers,omitempty"`
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}

// HostCollectorStatus defines the observed state of HostCollector
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/troubleshoot/v1beta2/hostpreflight_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type HostPreflightSpec struct {
Collectors []*HostCollect `json:"collectors,omitempty" yaml:"collectors,omitempty"`
RemoteCollectors []*RemoteCollect `json:"remoteCollectors,omitempty" yaml:"remoteCollectors,omitempty"`
Analyzers []*HostAnalyze `json:"analyzers,omitempty" yaml:"analyzers,omitempty"`
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}

// HostPreflightStatus defines the observed state of HostPreflight
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/troubleshoot/v1beta2/preflight_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type PreflightSpec struct {
Collectors []*Collect `json:"collectors,omitempty" yaml:"collectors,omitempty"`
RemoteCollectors []*RemoteCollect `json:"remoteCollectors,omitempty" yaml:"remoteCollectors,omitempty"`
Analyzers []*Analyze `json:"analyzers,omitempty" yaml:"analyzers,omitempty"`
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}

// PreflightStatus defines the observed state of Preflight
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/troubleshoot/v1beta2/redact_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
// RedactorSpec defines the desired state of Redactor
type RedactorSpec struct {
Redactors []*Redact `json:"redactors,omitempty"`
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}

// RedactorStatus defines the observed state of Redactor
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/troubleshoot/v1beta2/remote_collector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type RemoteCollectorSpec struct {
Collectors []*RemoteCollect `json:"collectors,omitempty" yaml:"collectors,omitempty"`
AfterCollection []*AfterCollection `json:"afterCollection,omitempty" yaml:"afterCollection,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
Uri string `json:"uri,omitempty" yaml:"uri,omitempty"`
}

// +genclient
Expand Down
3 changes: 3 additions & 0 deletions schemas/analyzer-troubleshoot-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4440,6 +4440,9 @@
}
}
}
},
"uri": {
"type": "string"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions schemas/collector-troubleshoot-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -14246,6 +14246,9 @@
}
}
}
},
"uri": {
"type": "string"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions schemas/preflight-troubleshoot-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -17338,6 +17338,9 @@
},
"uploadResultsTo": {
"type": "string"
},
"uri": {
"type": "string"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions schemas/redactor-troubleshoot-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
}
}
}
},
"uri": {
"type": "string"
}
}
},
Expand Down

0 comments on commit 4e999d6

Please sign in to comment.