This is an automated email from the ASF dual-hosted git repository.
squakez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 1c2513f4e chore: clean dead code
1c2513f4e is described below
commit 1c2513f4e134a8d89d382727d2ccdbc75ba6d756
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Fri Sep 18 08:47:02 2026 +0200
chore: clean dead code
---
pkg/platform/operator.go | 10 ----------
pkg/util/util.go | 12 ------------
2 files changed, 22 deletions(-)
diff --git a/pkg/platform/operator.go b/pkg/platform/operator.go
index 7b29f5596..a13dc7421 100644
--- a/pkg/platform/operator.go
+++ b/pkg/platform/operator.go
@@ -36,7 +36,6 @@ import (
const (
OperatorWatchNamespaceEnvVariable = "WATCH_NAMESPACE"
operatorNamespaceEnvVariable = "NAMESPACE"
- operatorPodNameEnvVariable = "POD_NAME"
OperatorBuildStrategyEnvVar = "BUILD_STRATEGY"
)
@@ -79,15 +78,6 @@ func GetOperatorNamespace() string {
return ""
}
-// GetOperatorPodName returns the pod that is running the current operator (if
any).
-func GetOperatorPodName() string {
- if podName, envSet := os.LookupEnv(operatorPodNameEnvVariable); envSet {
- return podName
- }
-
- return ""
-}
-
// GetOperatorLockName returns the name of the lock lease that is electing a
leader on the particular namespace.
func GetOperatorLockName(operatorID string) string {
return operatorID + "-lock"
diff --git a/pkg/util/util.go b/pkg/util/util.go
index 0d228ff13..81d74044e 100644
--- a/pkg/util/util.go
+++ b/pkg/util/util.go
@@ -310,18 +310,6 @@ func SortedMapKeys(m map[string]any) []string {
return res
}
-func SortedStringMapKeys(m map[string]string) []string {
- res := make([]string, len(m))
- i := 0
- for k := range m {
- res[i] = k
- i++
- }
- sort.Strings(res)
-
- return res
-}
-
// CopyMap clones a map of strings.
func CopyMap(source map[string]string) map[string]string {
if source == nil {