"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/provider/rancher/rancher.go" between
traefik-v2.3.2.src.tar.gz and traefik-v2.3.3.src.tar.gz

About: Traefik is a cloud native edge router, a reverse proxy and load balancer for HTTP and TCP-based applications.

rancher.go  (traefik-v2.3.2.src):rancher.go  (traefik-v2.3.3.src)
skipping to change at line 49 skipping to change at line 49
var _ provider.Provider = (*Provider)(nil) var _ provider.Provider = (*Provider)(nil)
// Provider holds configurations of the provider. // Provider holds configurations of the provider.
type Provider struct { type Provider struct {
Constraints string `description:"Constraints is an expressi on that Traefik matches against the container's labels to determine whether to c reate any route for that container." json:"constraints,omitempty" toml:"constrai nts,omitempty" yaml:"constraints,omitempty" export:"true"` Constraints string `description:"Constraints is an expressi on that Traefik matches against the container's labels to determine whether to c reate any route for that container." json:"constraints,omitempty" toml:"constrai nts,omitempty" yaml:"constraints,omitempty" export:"true"`
Watch bool `description:"Watch provider." json:"wat ch,omitempty" toml:"watch,omitempty" yaml:"watch,omitempty" export:"true"` Watch bool `description:"Watch provider." json:"wat ch,omitempty" toml:"watch,omitempty" yaml:"watch,omitempty" export:"true"`
DefaultRule string `description:"Default rule." json:"defau ltRule,omitempty" toml:"defaultRule,omitempty" yaml:"defaultRule,omitempty"` DefaultRule string `description:"Default rule." json:"defau ltRule,omitempty" toml:"defaultRule,omitempty" yaml:"defaultRule,omitempty"`
ExposedByDefault bool `description:"Expose containers by defau lt." json:"exposedByDefault,omitempty" toml:"exposedByDefault,omitempty" yaml:"e xposedByDefault,omitempty" export:"true"` ExposedByDefault bool `description:"Expose containers by defau lt." json:"exposedByDefault,omitempty" toml:"exposedByDefault,omitempty" yaml:"e xposedByDefault,omitempty" export:"true"`
EnableServiceHealthFilter bool `description:"Filter services with unhea lthy states and inactive states." json:"enableServiceHealthFilter,omitempty" tom l:"enableServiceHealthFilter,omitempty" yaml:"enableServiceHealthFilter,omitempt y" export:"true"` EnableServiceHealthFilter bool `description:"Filter services with unhea lthy states and inactive states." json:"enableServiceHealthFilter,omitempty" tom l:"enableServiceHealthFilter,omitempty" yaml:"enableServiceHealthFilter,omitempt y" export:"true"`
RefreshSeconds int `description:"Defines the polling interv al in seconds." json:"refreshSeconds,omitempty" toml:"refreshSeconds,omitempty" yaml:"refreshSeconds,omitempty" export:"true"` RefreshSeconds int `description:"Defines the polling interv al in seconds." json:"refreshSeconds,omitempty" toml:"refreshSeconds,omitempty" yaml:"refreshSeconds,omitempty" export:"true"`
IntervalPoll bool `description:"Poll the Rancher metadata service every 'rancher.refreshseconds' (less accurate)." json:"intervalPoll,omit empty" toml:"intervalPoll,omitempty" yaml:"intervalPoll,omitempty"` IntervalPoll bool `description:"Poll the Rancher metadata service every 'rancher.refreshseconds' (less accurate)." json:"intervalPoll,omit empty" toml:"intervalPoll,omitempty" yaml:"intervalPoll,omitempty" export:"true" `
Prefix string `description:"Prefix used for accessing the Rancher metadata service." json:"prefix,omitempty" toml:"prefix,omitempty" y aml:"prefix,omitempty"` Prefix string `description:"Prefix used for accessing the Rancher metadata service." json:"prefix,omitempty" toml:"prefix,omitempty" y aml:"prefix,omitempty"`
defaultRuleTpl *template.Template defaultRuleTpl *template.Template
} }
// SetDefaults sets the default values. // SetDefaults sets the default values.
func (p *Provider) SetDefaults() { func (p *Provider) SetDefaults() {
p.Watch = true p.Watch = true
p.ExposedByDefault = true p.ExposedByDefault = true
p.EnableServiceHealthFilter = true p.EnableServiceHealthFilter = true
p.RefreshSeconds = 15 p.RefreshSeconds = 15
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)