fix(collector): removed unused name in certificates collector (#1200)

This commit is contained in:
Dexter Yan
2023-06-01 20:46:34 +12:00
committed by GitHub
parent 27c68a7e53
commit 2b8e3fb6bb
9 changed files with 0 additions and 21 deletions

View File

@@ -99,8 +99,6 @@ spec:
type: array
exclude:
type: BoolString
name:
type: string
secrets:
items:
properties:

View File

@@ -1594,8 +1594,6 @@ spec:
type: array
exclude:
type: BoolString
name:
type: string
secrets:
items:
properties:

View File

@@ -1625,8 +1625,6 @@ spec:
type: array
exclude:
type: BoolString
name:
type: string
secrets:
items:
properties:

View File

@@ -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"`
}

View File

@@ -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",

View File

@@ -180,7 +180,6 @@ func getCollectorName(c interface{}) string {
name = v.Collector.Name
case *CollectCertificates:
collector = "certificates"
name = v.Collector.Name
default:
collector = "<none>"
}

View File

@@ -114,9 +114,6 @@
"exclude": {
"oneOf": [{"type": "string"},{"type": "boolean"}]
},
"name": {
"type": "string"
},
"secrets": {
"type": "array",
"items": {

View File

@@ -2417,9 +2417,6 @@
"exclude": {
"oneOf": [{"type": "string"},{"type": "boolean"}]
},
"name": {
"type": "string"
},
"secrets": {
"type": "array",
"items": {

View File

@@ -2463,9 +2463,6 @@
"exclude": {
"oneOf": [{"type": "string"},{"type": "boolean"}]
},
"name": {
"type": "string"
},
"secrets": {
"type": "array",
"items": {