Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

feat: check helm version #5

Merged
merged 3 commits into from
Aug 24, 2021
Merged

feat: check helm version #5

merged 3 commits into from
Aug 24, 2021

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Aug 18, 2021

This PR adds a new Local checker type. Its purpose is to report issues relating to the current execution environment.
A future addition might be a Remote checker type that performs similar actions over SSH.

As a local check may be required for other environment types, added a new api.CheckTarget type to distinguish when certain checks are applicable. The use case for this can be seen in internal/cmd/check/kubernetes.go:131, where we use WithCheckTarget(api.CheckTargetKubernetes) to indicate to LocalChecker that the intent is to check a Kubernetes cluster.

Any checks that are not applicable to the given check target should be skipped.

@@ -107,15 +115,34 @@ func run(cmd *cobra.Command, _ []string) error {
log = log.Leveled(slog.LevelDebug)
}

checker := kube.NewKubernetesChecker(
log.Info(cmd.Context(), "kubernetes config:",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also decided that this would be a useful feature. I put it at level INFO for the moment, but if you think it's better off as DEBUG then that's fine too.

@johnstcn johnstcn requested a review from jawnsy August 18, 2021 15:50
@johnstcn johnstcn self-assigned this Aug 18, 2021
@johnstcn
Copy link
Member Author

[ch16262]

@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #16262: Check helm version.

@johnstcn johnstcn merged commit b33297a into main Aug 24, 2021
@johnstcn johnstcn deleted the cianjohnston/check_helm_version branch August 24, 2021 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants