mirror of
https://github.com/crazy-max/diun.git
synced 2026-01-03 11:35:02 +01:00
Remove unused
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user