Skip to content

Commit 1ae2fe6

Browse files
authored
reset kubeconfig to empty string when using in-cluster config (open-telemetry#2273)
1 parent af3e9ce commit 1ae2fe6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.chloggen/fix-TA-kubeconfig.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: bug_fix
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
5+
component: target allocator
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: reset kubeconfig to empty string when using in-cluster config
9+
10+
# One or more tracking issues related to the change
11+
issues: [2262]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext: ""

cmd/otel-allocator/config/config.go

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ func LoadFromCLI(target *Config, flagSet *pflag.FlagSet) error {
9696
if err != nil {
9797
return err
9898
}
99+
target.KubeConfigFilePath = ""
99100
}
100101
target.ClusterConfig = clusterConfig
101102

0 commit comments

Comments
 (0)