Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Improve tiller communication to support RBAC #267

Merged
merged 2 commits into from
Jun 7, 2017

Conversation

prydonius
Copy link
Member

  • removes querying the K8S API to check if tiller is installed
  • removes attempt to install tiller (this should be handled by the
    cluster admin as it requires setting up service accounts and roles in
    RBAC environments)
  • only accesses the K8S API if tillerPortForward setting is enabled

- removes querying the K8S API to check if tiller is installed
- removes attempt to install tiller (this should be handled by the
  cluster admin as it requires setting up service accounts and roles in
  RBAC environments)
- only accesses the K8S API if tillerPortForward setting is enabled
@codecov-io
Copy link

codecov-io commented Jun 7, 2017

Codecov Report

Merging #267 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #267   +/-   ##
=======================================
  Coverage   90.14%   90.14%           
=======================================
  Files          18       18           
  Lines         944      944           
=======================================
  Hits          851      851           
  Misses         62       62           
  Partials       31       31

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c663e62...97ad65c. Read the comment docs.

Copy link

@mkmik mkmik left a comment

Choose a reason for hiding this comment

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

removed code is best code!

approved, modulo minor comment.

client := helm.NewClient(helm.Host(tillerHost))
// test connection
if _, err := client.GetVersion(); err != nil {
return nil, errors.New("Failed to connect to Tiller, are you sure it is installed?")
Copy link

Choose a reason for hiding this comment

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

error strings should not be capitalized. Read more about it in https://github.com/golang/go/wiki/CodeReviewComments#error-strings

@prydonius
Copy link
Member Author

thank you for the review @mmikulicic!! :)

@prydonius prydonius merged commit 8d3b2ab into helm:master Jun 7, 2017
@prydonius prydonius deleted the improve-tiller-check branch June 7, 2017 13:40
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.

3 participants