这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jswoods
Copy link
Contributor

@jswoods jswoods commented Mar 27, 2020

A bit of a hack to get the version. We should instead pull this from the humio api.

kubectl --context kind-kind get humiocluster example-humiocluster
NAME                   STATE     NODES   VERSION
example-humiocluster   Running   3       1.9.1

Depends on #34 so this diff currently pulls in everything from that as well.

@jswoods jswoods requested a review from SaaldjorMike March 27, 2020 00:15
@jswoods jswoods force-pushed the more_cluster_states branch from 03925b5 to 9207f63 Compare March 27, 2020 00:18
@jswoods jswoods mentioned this pull request Mar 27, 2020
@SaaldjorMike
Copy link
Contributor

Guess we could leverage the status endpoint to obtain the version: https://github.com/humio/cli/blob/master/api/status.go#L12

The version is also available using the new health endpoint: https://github.com/humio/cli/blob/master/api/health.go#L31

The first one does not require any special permissions whereas the second one does, so I think we should just use the simpler one which in this case would be the first one.

@jswoods jswoods marked this pull request as ready for review March 27, 2020 16:04
@SaaldjorMike SaaldjorMike merged commit c8a2e9e into master Mar 27, 2020
@SaaldjorMike SaaldjorMike deleted the more_cluster_states branch March 27, 2020 16:14
triceras pushed a commit that referenced this pull request Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants