Documentation
¶
Overview ¶
Package kubernetes implements the logic for remote.kubernetes.secret and remote.kubernetes.configmap component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{
PollFrequency: 1 * time.Minute,
PollTimeout: 15 * time.Second,
}
DefaultArguments holds default settings for Arguments.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
Namespace string `river:"namespace,attr"`
Name string `river:"name,attr"`
PollFrequency time.Duration `river:"poll_frequency,attr,optional"`
PollTimeout time.Duration `river:"poll_timeout,attr,optional"`
// Client settings to connect to Kubernetes.
Client kubernetes.ClientArguments `river:"client,block,optional"`
}
Arguments control the component.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implements the remote.kubernetes.* component.
func New ¶
func New(opts component.Options, args Arguments, rType ResourceType) (*Component, error)
New returns a new, unstarted remote.kubernetes.* component.
func (*Component) CurrentHealth ¶
func (c *Component) CurrentHealth() component.Health
CurrentHealth returns the current health of the component.
type Exports ¶
type Exports struct {
Data map[string]rivertypes.OptionalSecret `river:"data,attr"`
}
Exports holds settings exported by this component.
type ResourceType ¶
type ResourceType string
const (
TypeSecret ResourceType = "secret"
TypeConfigMap ResourceType = "configmap"
)
Click to show internal directories.
Click to hide internal directories.