Skip to content

Commit

Permalink
testing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms committed Aug 5, 2022
1 parent 016ead2 commit e6669a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
14 changes: 9 additions & 5 deletions install/installer/pkg/common/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func InternalCAContainer(ctx *RenderContext, mod ...func(*corev1.Container)) *co
MountPath: "/usr/local/share/ca-certificates/gitpod-ca.crt",
},
},
Env: ProxyEnv(&ctx.Config),
}

for _, m := range mod {
Expand Down Expand Up @@ -87,11 +88,14 @@ func CustomCACertVolume(ctx *RenderContext) (vol *corev1.Volume, mnt *corev1.Vol
MountPath: customCAMountPath,
SubPath: "ca.crt",
}
env = []corev1.EnvVar{
{Name: "NODE_EXTRA_CA_CERTS", Value: customCAMountPath},
{Name: "GIT_SSL_CAPATH", Value: certsMountPath},
{Name: "GIT_SSL_CAINFO", Value: customCAMountPath},
}
env = MergeEnv(
[]corev1.EnvVar{
{Name: "NODE_EXTRA_CA_CERTS", Value: customCAMountPath},
{Name: "GIT_SSL_CAPATH", Value: certsMountPath},
{Name: "GIT_SSL_CAINFO", Value: customCAMountPath},
},
ProxyEnv(&ctx.Config),
)
ok = true
return
}
5 changes: 5 additions & 0 deletions install/installer/pkg/components/ws-daemon/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ fi
Privileged: pointer.Bool(true),
ProcMount: func() *corev1.ProcMountType { r := corev1.DefaultProcMount; return &r }(),
},
Env: common.ProxyEnv(&cfg),
},
{
Name: "seccomp-profile-installer",
Expand All @@ -72,6 +73,7 @@ fi
MountPath: "/mnt/dst",
}},
SecurityContext: &corev1.SecurityContext{Privileged: pointer.Bool(true)},
Env: common.ProxyEnv(&cfg),
},
{
Name: "sysctl",
Expand All @@ -91,6 +93,7 @@ fi
`,
},
SecurityContext: &corev1.SecurityContext{Privileged: pointer.Bool(true)},
Env: common.ProxyEnv(&cfg),
},
}

Expand All @@ -104,6 +107,7 @@ fi
MountPath: "/usr/src_node",
}},
SecurityContext: &corev1.SecurityContext{Privileged: pointer.Bool(true)},
Env: common.ProxyEnv(&cfg),
})
}

Expand Down Expand Up @@ -294,6 +298,7 @@ fi
},
Env: common.CustomizeEnvvar(ctx, Component, common.MergeEnv(
common.NodeNameEnv(ctx),
common.ProxyEnv(&cfg),
)),
ImagePullPolicy: corev1.PullIfNotPresent,
Lifecycle: &corev1.Lifecycle{
Expand Down

0 comments on commit e6669a5

Please sign in to comment.