Default show_only_kubernetes_context to false #325
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a bug on the
@dracula-kubernetes-context-label
option inkubernetes_context
plugin.kubernetes_context.sh
is called with positional args as such:When
show_only_kubernetes_context
defaults to "", arg $5show_kubernetes_context_label
, becomes arg $4show_only_kubernetes_context
. Effectively, the value of@dracula-kubernetes-context-label
is passed to the script asshow_only_kubernetes_context
instead ofshow_kubernetes_context_label
So the default value forshow_only_kubernetes_context
needs to be a non-zero string.Here are screenshots showing the bug:
@dracula-kubernetes-context-label
has no effect when@dracula-show-only-kubernetes-context
is""
.@dracula-kubernetes-context-label
has no effect when@dracula-show-only-kubernetes-context
is not set.Setting
@dracula-kubernetes-context-label
to"true"
is effectively the same as setting@dracula-show-only-kubernetes-context
to"true"
.@dracula-kubernetes-context-label
only takes effect when@dracula-show-only-kubernetes-context
is explicitly set to"false"
or other non-zero length string other than "true".