1. 26 Sep, 2018 1 commit
  2. 19 Sep, 2018 1 commit
    • Matthew Fisher's avatar
      fix(helm): fix regression with TLS flags/environment variables not being parsed (#4657) · 8be42bae
      Matthew Fisher authored
      * fix(helm): fix regression with TLS flags/envvars
      
      This change fixes some of the assumptions made in an earlier commit. Helm's TLS flags and environment variables were not respected because they were parsed well before execution (during settings.AddFlagsTLS()), causing erroneous behaviour at runtime. By re-introducing environment.Init(), Helm can properly parse environment variables at the correct time.
      
      One change that had to occur in this PR is the fact that we need to call settings.Init() each time we call settings.AddFlagsTLS(). This is because each command owns its own FlagSet, so we need to parse each flagset to read and propagate the environment variables correctly.
      
      I also noticed that we were maintaining two separate variables for each TLS value. Refactoring out some of the older code to all use the settings object makes the code much cleaner to read and fixes an issue where setting a flag or environment variable would propagate to the settings object, but we'd be reading from tlsEnable.
      
      I've also added some unit tests to ensure this regression doesn't occur again.
      Signed-off-by: 's avatarMatthew Fisher <matt.fisher@microsoft.com>
      
      * fix bug where os.ExpandEnv() on the default value causes differing behaviour
      Signed-off-by: 's avatarMatthew Fisher <matt.fisher@microsoft.com>
      
      * add more context to the TODO/FIXME messages
      Signed-off-by: 's avatarMatthew Fisher <matt.fisher@microsoft.com>
      8be42bae
  3. 18 Sep, 2018 2 commits
  4. 17 Sep, 2018 6 commits
  5. 14 Sep, 2018 1 commit
  6. 13 Sep, 2018 1 commit
  7. 12 Sep, 2018 3 commits
  8. 10 Sep, 2018 3 commits
  9. 09 Sep, 2018 1 commit
  10. 07 Sep, 2018 5 commits
  11. 04 Sep, 2018 1 commit
  12. 03 Sep, 2018 1 commit
  13. 02 Sep, 2018 2 commits
  14. 01 Sep, 2018 6 commits
  15. 31 Aug, 2018 1 commit
  16. 27 Aug, 2018 3 commits
  17. 26 Aug, 2018 1 commit
    • mattjmcnaughton's avatar
      Add containerized options for tests in Makefile · 17151b99
      mattjmcnaughton authored
      Add an option to run the `test-unit`, `test-style`, and `test`
      steps from the `Makefile` insides of a docker container. Doing so
      isolates this component of helm development from any other aspect of
      your global go environment.
      
      These commands all have the name `docker-*`. Long term, there may
      be reproducibility benefits to running all of the Make steps in a
      container by default, in which case `containerized-test-unit` could
      become `test-unit`.
      17151b99
  18. 24 Aug, 2018 1 commit