Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSshAgentPostStartEvent ¶
func AddSshAgentPostStartEvent(spec *v1alpha2.DevWorkspaceTemplateSpec) error
AddSshAgentPostStartEvent Start ssh-agent and add the default ssh key to it, if the ssh key has a passphrase. Initialise the ssh-agent session env variables in the user .bashrc file.
func NeedsSSHPostStartEvent ¶ added in v0.31.2
func NeedsSSHPostStartEvent(api sync.ClusterAPI, namespace string) (bool, error)
Determines whether an SSH key with a passphrase is provided for the namespace where the workspace exists. If an SSH key with a passphrase is used, then the SSH Agent Post Start event is needed for it to automatically be used by the workspace's SSH agent. If no SSH key is provided, or the SSH key does not provide a passphrase, then the SSH Agent Post Start event is not required.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.