Skip to content

Commit

Permalink
upgrading helm3 support to official (#171)
Browse files Browse the repository at this point in the history
* upgrading helm3 support to official
* fixing build and e2e tests
  • Loading branch information
Andrew Suderman authored Jan 31, 2020
1 parent 52bb76a commit 03b367c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
pip install --user .
cd installer
python -c 'from setuptools_scm import get_version; get_version(root="..", write_to="reckoner/version.txt")'
pyinstaller --noconfirm --paths .:../ --onefile --add-data ../reckoner/version.txt:reckoner --add-data ../reckoner/assets/course.schema.json:reckoner/assets --name reckoner cli.py
pyinstaller --hidden-import='pkg_resources.py2_warn' --noconfirm --paths .:../ --onefile --add-data ../reckoner/version.txt:reckoner --add-data ../reckoner/assets/course.schema.json:reckoner/assets --name reckoner cli.py
- run:
name: persist binaries
command: |
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
python3 -c 'from setuptools_scm import get_version; get_version(root="..", write_to="reckoner/version.txt")'
echo "Running the binary compiler"
pyinstaller --noconfirm --paths .:../ --onefile --add-data ../reckoner/version.txt:reckoner --add-data ../reckoner/assets/course.schema.json:reckoner/assets --name reckoner cli.py
pyinstaller --hidden-import='pkg_resources.py2_warn' --noconfirm --paths .:../ --onefile --add-data ../reckoner/version.txt:reckoner --add-data ../reckoner/assets/course.schema.json:reckoner/assets --name reckoner cli.py
echo "Running the new Binary"
./dist/reckoner version
Expand Down
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- bug where the helm client version check would fail for helm2 and never proceed to check helm3
- added create namespace functionality because they removed it from helm3
- removed beta warnings about Helm 3

## [2.2.0]
### Changes
Expand Down Expand Up @@ -38,14 +39,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [2.0.0]
### Breaking Changes
- Changes to `values: {}` behavior:
- Changes to `values: {}` behavior:
The chart: {values: {}} config block and chart: {set-values:{}} config block now have different behavior. set-values: {} always gets translated into helm arguments as --set key=value. The values: {} now gets applied to helm arguments as -f temporary_values_name.yml. The values: {} config block is now fully consistent with intended types and would behave as though you are using a -f my_values.yml in your helm command. Prior to this change you would see inconsistent type casting for float, bool and integer config settings. For more information on the behavior differences between `values`, `set-values`, and `values-strings` you can look at our [end to end testing test course.yml](/end_to_end_testing/test_strong_typing.yml).
- BUG FIX: Using `"null"`, `null`, `"Null"`, and `"NULL"` as values in `set-values: {}` will be interpreted as `null` (void of value) in the `--set` value. Previously, if you set `null` as the yaml value, you would get `--set key=None` due to python interpreting the value as `None` and thus would show up as `{"key": "None"}` in the helm values. This fix more closely aligns with expected behavior in helm.

## [1.4.0]
### Breaking Changes
- Removed the `--local-development` flag from `plot` command (unused) and cleaned up test dependencies
- Reckoner now has exit codes that reflect the state of the course run.
- Reckoner now has exit codes that reflect the state of the course run.
Reckoner will immediately exit with a non-zero exit code when a chart or hook fails to run. Previous
behavior to continue on error can be enabled by using the `--continue-on-error` flag on your `plot`.

Expand Down Expand Up @@ -96,7 +97,7 @@ Python2 support is now ended. Pip install will now require python ~= 3.6. In a

### Fixed
* Reckoner would silently fail when a --only or --heading was defined for a
chart that didn't exist in your course.
chart that didn't exist in your course.
This behavior will still succeed if you provide at least one valid --heading
value. If no values are in your course then this bubbles up an error
* Internal Fix: Reckoner Errors now are a single parent exception class
Expand Down
12 changes: 0 additions & 12 deletions HELM3_BLOCKERS.md

This file was deleted.

11 changes: 0 additions & 11 deletions ROADMAP.md

This file was deleted.

2 changes: 2 additions & 0 deletions end_to_end_testing/setup_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
set -o pipefail

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78BD65473CB3BD13
wget -qO - https://packagecloud.io/circleci/trusty/gpgkey | sudo apt-key add -

echo "Installing git and jq"
sudo apt-get update
Expand Down
2 changes: 0 additions & 2 deletions reckoner/helm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def get_helm_client(helm_arguments, client_version=None, helm_provider=HelmProvi
logging.debug('Checking for Helm 3 client')
detected_version = client3.version
logging.info('Found Helm Version {}'.format(detected_version))
logging.warning('Using the Helm 3 Client is currently experimental. Proceed with with caution.')
logging.warning('Track Reckoner + Helm 3 support by following this document: https://github.com/FairwindsOps/reckoner/blob/master/HELM3_BLOCKERS.md')
return client3
except HelmClientException as e:
logging.error(e)
Expand Down

0 comments on commit 03b367c

Please sign in to comment.