We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b134e96 commit 972480cCopy full SHA for 972480c
backend/src/v2/config/env.go
@@ -94,6 +94,9 @@ func InPodNamespace() (string, error) {
94
95
// InPodName gets the pod name from inside a Kubernetes Pod.
96
func InPodName() (string, error) {
97
+ if podName, exists := os.LookupEnv("ARGO_POD_NAME"); exists && podName != "" {
98
+ return podName, nil
99
+ }
100
podName, err := os.ReadFile("/etc/hostname")
101
if err != nil {
102
return "", fmt.Errorf("failed to get pod name in Pod: %w", err)
0 commit comments