Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bastion ¶
type Bastion struct {
Values *Values
// exposed for testing
Clock clock.PassiveClock
WaitInterval time.Duration
WaitSevereThreshold time.Duration
WaitTimeout time.Duration
SSHDial func(ctx context.Context, addr string, opts ...sshutils.Option) (*sshutils.Connection, error)
// Connection is the SSH connection to the Bastion opened by Wait.
Connection *sshutils.Connection
// contains filtered or unexported fields
}
Bastion is a component for managing a Bastion (extensions.gardener.cloud) object. It is used for accessing the control plane machines in `gardenadm bootstrap`.
func New ¶
func New( log logr.Logger, client client.Client, secretsManager secretsmanager.Interface, values *Values, ) *Bastion
New creates a new Bastion component with the default clock and wait settings.
type Values ¶
type Values struct {
// Name is the Bastion name.
Name string
// Namespace is the Bastion namespace (control plane namespace).
Namespace string
// Provider is the Bastion provider type.
Provider string
// IngressCIDRs restricts ingress to the Bastion.
// Defaults to ["0.0.0.0/0", "::/0"].
IngressCIDRs []string
}
Values contains the values used to create a Bastion.
Click to show internal directories.
Click to hide internal directories.