MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / constructSshAskPassCM

Function constructSshAskPassCM

pkg/provision/workspace/ssh.go:56–72  ·  view source on GitHub ↗
(namespace string)

Source from the content-addressed store, hash-verified

54}
55
56func constructSshAskPassCM(namespace string) *corev1.ConfigMap {
57 askPassConfigMap := &corev1.ConfigMap{
58 ObjectMeta: metav1.ObjectMeta{
59 Name: constants.SshAskPassConfigMapName,
60 Namespace: namespace,
61 Labels: map[string]string{
62 "app.kubernetes.io/defaultName": "ssh-askpass-secret",
63 "app.kubernetes.io/part-of": "devworkspace-operator",
64 "controller.devfile.io/watch-configmap": "true",
65 },
66 },
67 Data: map[string]string{
68 SshAskPassScriptFileName: data,
69 },
70 }
71 return askPassConfigMap
72}
73
74func getSshAskPassVolumesAndVolumeMounts() ([]corev1.VolumeMount, []corev1.Volume, error) {
75 name := "ssh-askpass"

Callers 1

ProvisionSshAskPassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected