Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registrator ¶
type Registrator struct {
// contains filtered or unexported fields
}
Registrator is used to ensure that the agent that will be running on the cluster is fully registered. If the agent is not it will perform an automatic agent registration using the provided client id and client secret credentials.
func New ¶
func New(bcloudApiClient bcloudapi.Client, k8sAPI *k8s.KubernetesAPI, agentMetadataConfigMap string) *Registrator
New creates a new Registrator.
func (*Registrator) EnsureRegistered ¶
EnsureRegistered performes agent registration if necessary. It inspects the config map containing the agent metadata and decides whether this is a new agent that needs to be registered.
Click to show internal directories.
Click to hide internal directories.