Skip to content

Commit 972480c

Browse files
JerT33CollinHowland
authored andcommitted
fix(backend): Fix pod name truncation issue in PVC creation. Fixes #12350 (#12351)
Signed-off-by: JerT33 <[email protected]> Signed-off-by: CollinHowland <[email protected]>
1 parent b134e96 commit 972480c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/src/v2/config/env.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ func InPodNamespace() (string, error) {
9494

9595
// InPodName gets the pod name from inside a Kubernetes Pod.
9696
func InPodName() (string, error) {
97+
if podName, exists := os.LookupEnv("ARGO_POD_NAME"); exists && podName != "" {
98+
return podName, nil
99+
}
97100
podName, err := os.ReadFile("/etc/hostname")
98101
if err != nil {
99102
return "", fmt.Errorf("failed to get pod name in Pod: %w", err)

0 commit comments

Comments
 (0)