Skip to content

Commit

Permalink
fix(target allocator): reset kubeconfig to empty string when using in…
Browse files Browse the repository at this point in the history
…-cluster config (#2262)

Signed-off-by: Darren Wang <[email protected]>
  • Loading branch information
darren_wang committed Oct 25, 2023
1 parent c7a96ac commit 7378f49
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .chloggen/fix-TA-kubeconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
component: target allocator

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: reset kubeconfig to empty string when using in-cluster config

# One or more tracking issues related to the change
issues: [2262]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: ""
1 change: 1 addition & 0 deletions cmd/otel-allocator/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func LoadFromCLI(target *Config, flagSet *pflag.FlagSet) error {
if err != nil {
return err
}
target.KubeConfigFilePath = ""
}
target.ClusterConfig = clusterConfig

Expand Down

0 comments on commit 7378f49

Please sign in to comment.