Skip to content

Commit

Permalink
restored secret ref source for Kubernetes executor
Browse files Browse the repository at this point in the history
  • Loading branch information
andmat900 committed Sep 27, 2024
1 parent a68434e commit 7be8c57
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions internal/executionspace/executor/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,17 @@ func (k KubernetesExecutor) Start(ctx context.Context, logger *logrus.Entry, exe
Image: executorSpec.Instructions.Image,
Args: args,
Env: envs,
},
},
RestartPolicy: corev1.RestartPolicyNever,
Volumes: []corev1.Volume{
{
Name: "ssh-key-and-config",
VolumeSource: corev1.VolumeSource{
Secret: &corev1.SecretVolumeSource{
SecretName: "kubernetes-provider-ssh-key",
DefaultMode: &SECRETMODE,
EnvFrom: []corev1.EnvFromSource{
{
SecretRef: &corev1.SecretEnvSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: "etos-encryption-key",
},
},
},
},
},
}},
},
RestartPolicy: corev1.RestartPolicyNever,
},
},
},
Expand Down

0 comments on commit 7be8c57

Please sign in to comment.