Remove unused

This commit is contained in:
CrazyMax
2020-06-15 20:48:04 +02:00
committed by CrazyMax
parent 603f5a535a
commit 570775464b
2 changed files with 7 additions and 9 deletions

View File

@@ -6,14 +6,13 @@ import (
// PrdKubernetes holds kubernetes provider configuration
type PrdKubernetes struct {
Endpoint string `yaml:"endpoint" json:"endpoint,omitempty" validate:"omitempty"`
Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"`
TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"`
ConfigFile string `yaml:"configFile" json:"configFile,omitempty" validate:"omitempty,file"`
Namespaces []string `yaml:"namespaces" json:"namespaces,omitempty" validate:"omitempty"`
TLSCAFile string `yaml:"tlsCaFile" json:"tlsCaFile,omitempty" validate:"omitempty"`
TLSInsecure *bool `yaml:"tlsInsecure" json:"tlsInsecure,omitempty" validate:"required"`
WatchByDefault *bool `yaml:"watchByDefault" json:"watchByDefault,omitempty" validate:"required"`
Endpoint string `yaml:"endpoint" json:"endpoint,omitempty" validate:"omitempty"`
Token string `yaml:"token,omitempty" json:"token,omitempty" validate:"omitempty"`
TokenFile string `yaml:"tokenFile,omitempty" json:"tokenFile,omitempty" validate:"omitempty,file"`
ConfigFile string `yaml:"configFile" json:"configFile,omitempty" validate:"omitempty,file"`
TLSCAFile string `yaml:"tlsCaFile" json:"tlsCaFile,omitempty" validate:"omitempty"`
TLSInsecure *bool `yaml:"tlsInsecure" json:"tlsInsecure,omitempty" validate:"required"`
WatchByDefault *bool `yaml:"watchByDefault" json:"watchByDefault,omitempty" validate:"required"`
}
// GetDefaults gets the default values

View File

@@ -14,7 +14,6 @@ func (c *Client) listPodImage() []model.Image {
Endpoint: c.config.Endpoint,
Token: c.config.Token,
TokenFile: c.config.TokenFile,
Namespaces: c.config.Namespaces,
TLSCAFile: c.config.TLSCAFile,
TLSInsecure: c.config.TLSInsecure,
})