mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-09-30 01:21:30 +02:00
This commit is contained in:
@@ -17,13 +17,6 @@ const (
|
||||
EnvVarRunnerDeprecatedExitCode = "ACTIONS_RUNNER_RETURN_VERSION_DEPRECATED_EXIT_CODE"
|
||||
)
|
||||
|
||||
// Environment variable names used to set proxy variables for containers
|
||||
const (
|
||||
EnvVarHTTPProxy = "http_proxy"
|
||||
EnvVarHTTPSProxy = "https_proxy"
|
||||
EnvVarNoProxy = "no_proxy"
|
||||
)
|
||||
|
||||
// Labels applied to resources
|
||||
const (
|
||||
// Kubernetes labels
|
||||
@@ -105,7 +98,4 @@ const resourceOwnerKey = ".metadata.controller"
|
||||
const autoscalingRunnerSetOwnerKey = ".spec.autoscalingRunnerSet"
|
||||
|
||||
// EphemeralRunner pod creation failure reasons
|
||||
const (
|
||||
ReasonTooManyPodFailures = "TooManyPodFailures"
|
||||
ReasonInvalidPodFailure = "InvalidPod"
|
||||
)
|
||||
const ReasonInvalidPodFailure = "InvalidPod"
|
||||
|
||||
@@ -1512,7 +1512,7 @@ var _ = Describe("EphemeralRunner", func() {
|
||||
).Should(Succeed(), "failed to get ephemeral runner pod")
|
||||
|
||||
Expect(pod.Spec.Containers[0].Env).To(ContainElement(corev1.EnvVar{
|
||||
Name: EnvVarHTTPProxy,
|
||||
Name: "http_proxy",
|
||||
ValueFrom: &corev1.EnvVarSource{
|
||||
SecretKeyRef: &corev1.SecretKeySelector{
|
||||
LocalObjectReference: corev1.LocalObjectReference{
|
||||
@@ -1524,7 +1524,7 @@ var _ = Describe("EphemeralRunner", func() {
|
||||
}))
|
||||
|
||||
Expect(pod.Spec.Containers[0].Env).To(ContainElement(corev1.EnvVar{
|
||||
Name: EnvVarHTTPSProxy,
|
||||
Name: "https_proxy",
|
||||
ValueFrom: &corev1.EnvVarSource{
|
||||
SecretKeyRef: &corev1.SecretKeySelector{
|
||||
LocalObjectReference: corev1.LocalObjectReference{
|
||||
@@ -1536,7 +1536,7 @@ var _ = Describe("EphemeralRunner", func() {
|
||||
}))
|
||||
|
||||
Expect(pod.Spec.Containers[0].Env).To(ContainElement(corev1.EnvVar{
|
||||
Name: EnvVarNoProxy,
|
||||
Name: "no_proxy",
|
||||
ValueFrom: &corev1.EnvVarSource{
|
||||
SecretKeyRef: &corev1.SecretKeySelector{
|
||||
LocalObjectReference: corev1.LocalObjectReference{
|
||||
|
||||
Reference in New Issue
Block a user