mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 18:29:53 +00:00
fix(collector): removed unused name in certificates collector (#1200)
This commit is contained in:
@@ -99,8 +99,6 @@ spec:
|
||||
type: array
|
||||
exclude:
|
||||
type: BoolString
|
||||
name:
|
||||
type: string
|
||||
secrets:
|
||||
items:
|
||||
properties:
|
||||
|
||||
@@ -1594,8 +1594,6 @@ spec:
|
||||
type: array
|
||||
exclude:
|
||||
type: BoolString
|
||||
name:
|
||||
type: string
|
||||
secrets:
|
||||
items:
|
||||
properties:
|
||||
|
||||
@@ -1625,8 +1625,6 @@ spec:
|
||||
type: array
|
||||
exclude:
|
||||
type: BoolString
|
||||
name:
|
||||
type: string
|
||||
secrets:
|
||||
items:
|
||||
properties:
|
||||
|
||||
@@ -218,7 +218,6 @@ type RegistryImages struct {
|
||||
|
||||
type Certificates struct {
|
||||
CollectorMeta `json:",inline" yaml:",inline"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
Secrets []CertificateSource `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||
ConfigMaps []CertificateSource `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
|
||||
}
|
||||
|
||||
@@ -143,7 +143,6 @@ func TestCertParser(t *testing.T) {
|
||||
CollectorMeta: troubleshootv1beta2.CollectorMeta{
|
||||
CollectorName: "collectorname",
|
||||
},
|
||||
Name: "expired certificate",
|
||||
Secrets: []troubleshootv1beta2.CertificateSource{
|
||||
{
|
||||
Name: "expiredCert",
|
||||
@@ -183,7 +182,6 @@ func TestCertParser(t *testing.T) {
|
||||
CollectorMeta: troubleshootv1beta2.CollectorMeta{
|
||||
CollectorName: "collectorname",
|
||||
},
|
||||
Name: "multiple certificate",
|
||||
Secrets: []troubleshootv1beta2.CertificateSource{
|
||||
{
|
||||
Name: "multiCert",
|
||||
@@ -232,7 +230,6 @@ func TestCertParser(t *testing.T) {
|
||||
CollectorMeta: troubleshootv1beta2.CollectorMeta{
|
||||
CollectorName: "collectorname",
|
||||
},
|
||||
Name: "valid certificate",
|
||||
Secrets: []troubleshootv1beta2.CertificateSource{
|
||||
{
|
||||
Name: "validCert",
|
||||
@@ -277,7 +274,6 @@ func TestCertParser(t *testing.T) {
|
||||
CollectorMeta: troubleshootv1beta2.CollectorMeta{
|
||||
CollectorName: "collectorname",
|
||||
},
|
||||
Name: "non valid certificate",
|
||||
Secrets: []troubleshootv1beta2.CertificateSource{
|
||||
{
|
||||
Name: "nonCert",
|
||||
|
||||
@@ -180,7 +180,6 @@ func getCollectorName(c interface{}) string {
|
||||
name = v.Collector.Name
|
||||
case *CollectCertificates:
|
||||
collector = "certificates"
|
||||
name = v.Collector.Name
|
||||
default:
|
||||
collector = "<none>"
|
||||
}
|
||||
|
||||
@@ -114,9 +114,6 @@
|
||||
"exclude": {
|
||||
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"secrets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
@@ -2417,9 +2417,6 @@
|
||||
"exclude": {
|
||||
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"secrets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
@@ -2463,9 +2463,6 @@
|
||||
"exclude": {
|
||||
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"secrets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
Reference in New Issue
Block a user