-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] multi cluster support #6664
Commits on Feb 27, 2020
-
fix: add helper class for working with environment contexts
* wrapping up team settings / version resolver / requirements APIs in a simpler facade * add a helper method with tests for resolving a chart name with optional prefix and/or repository to a canonical set of data we can use in version streams / apps framework Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5736803 - Browse repository at this point
Copy the full SHA 5736803View commit details -
fix: support helmfile/helm 3 with the app framework
so that we can add/delete/update/get apps which map to changing the `jx-apps.yml` instead of the `env/requirements.yaml` file. this implementation also lets you use helm repo prefixes to fully qualify charts; using the version stream to map prefixes <-> URLs. e.g. to add flagger/cert manager you can do: ``` jx add app jetstack/cert-manager jx add app flagger/flagger ``` Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 41d9c73 - Browse repository at this point
Copy the full SHA 41d9c73View commit details -
fix: lets resolve fully qualified charts for helmfile
and reuse the version stream prefixes for repositories in the generated helmfile also lets add a diff based test case to verify we generate the right helmfile Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ab4eb0e - Browse repository at this point
Copy the full SHA ab4eb0eView commit details -
fix: add version defaulting from the version stream
so that we always use a fixed version in the generated helmfiles Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2f4fe19 - Browse repository at this point
Copy the full SHA 2f4fe19View commit details -
fix: improve handling of local charts in helmfile generation
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 76f85f5 - Browse repository at this point
Copy the full SHA 76f85f5View commit details -
fix: add version stream defaults for apps in helmfile
so that we can default things like namespace / phase / values.yaml* files across cluster configurations via the Version Stream Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35ddb61 - Browse repository at this point
Copy the full SHA 35ddb61View commit details -
fix: lets allow helmfile to be abled via env vars
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 84d3334 - Browse repository at this point
Copy the full SHA 84d3334View commit details -
also ensured we can default the boot phase from the defaults in the version stream Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 85e45d7 - Browse repository at this point
Copy the full SHA 85e45d7View commit details -
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fa15e69 - Browse repository at this point
Copy the full SHA fa15e69View commit details -
fix: add missing classifications
to fix lint failure Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 73ca45b - Browse repository at this point
Copy the full SHA 73ca45bView commit details -
chore: fix failing test broken due to rebase
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 195ec21 - Browse repository at this point
Copy the full SHA 195ec21View commit details -
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d7f3844 - Browse repository at this point
Copy the full SHA d7f3844View commit details -
chore: fix some tests broken due to rebase
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 64c17a6 - Browse repository at this point
Copy the full SHA 64c17a6View commit details -
fix: refactor ApplicationConfig => AppConfig
so we use Apps rather than Application to refer to the apps framework and the config for `jx-apps.yml` to avoid confusion Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bb2f29a - Browse repository at this point
Copy the full SHA bb2f29aView commit details -
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b489ec - Browse repository at this point
Copy the full SHA 6b489ecView commit details -
as it seems to break lint Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 155fba2 - Browse repository at this point
Copy the full SHA 155fba2View commit details -
fix: regression in
jx add app
when not using helmfileto more cleanly differentiate between local chart name and full chart name (with repo prefix) Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aa5d816 - Browse repository at this point
Copy the full SHA aa5d816View commit details -
fix: lets improve the EnvironmentContext API
so that we can give an indication of if we prefer local requirements files (for early stages in boot) versus commands used after boot such as (get|add|upgrade|delete) apps Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d3faf81 - Browse repository at this point
Copy the full SHA d3faf81View commit details -
fix: regression in
jx upgrade app
lets make sure we populate the repository from the team settings/default repo Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 42b5bc5 - Browse repository at this point
Copy the full SHA 42b5bc5View commit details -
fix: lets polish the code to be more clear on chart names
as we can support full chart names or local chart names; so lets be more specific which name we are using in the code Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 969358d - Browse repository at this point
Copy the full SHA 969358dView commit details -
fix: first spike of supporting remote environments with boot and helm…
…file Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3733c89 - Browse repository at this point
Copy the full SHA 3733c89View commit details -
fix: add generated jx-requirements.yml to remote environments
for remote clusters Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 80a45f5 - Browse repository at this point
Copy the full SHA 80a45f5View commit details -
fix: if no namespace is in
jx-apps.yml
lets use the default namespacewhich lets us avoid specifying the namespace in remote environments for multi-cluster Signed-off-by: James Strachan <[email protected]> #4784
Configuration menu - View commit details
-
Copy full SHA for 2d256dc - Browse repository at this point
Copy the full SHA 2d256dcView commit details -
fix: default the owners + git owner on remote environments
Signed-off-by: James Strachan <[email protected]> #4784
Configuration menu - View commit details
-
Copy full SHA for ae6d462 - Browse repository at this point
Copy the full SHA ae6d462View commit details -
fix: add support for remote environments to promote
fixes #4784 Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eb11782 - Browse repository at this point
Copy the full SHA eb11782View commit details -
fix: avoid possible nil pointer exception
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f11fa77 - Browse repository at this point
Copy the full SHA f11fa77View commit details -
chore: lets sort the list of k8s providers
so they appear nicer when we ask users what provider to use Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8fc707c - Browse repository at this point
Copy the full SHA 8fc707cView commit details -
fix: add support for
jx boot --helmfile
so folks can try out helmfile and helm 3 Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4b3a62 - Browse repository at this point
Copy the full SHA b4b3a62View commit details -
fix: avoid creating the dev Environment when using helmfile
as we want to create and manage all k8s resources via helm instead Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 93db455 - Browse repository at this point
Copy the full SHA 93db455View commit details -
fix: default the namespace from the
jx-requirements.yml
filealso add validation of the enviroment variable `JX_SECRETS_YAML` to ensure its defined to point to the secrets yaml file Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5747dcc - Browse repository at this point
Copy the full SHA 5747dccView commit details -
fix: promotion for helmfile and multi-cluster
so that we handle the public chart museum URL and include it into the `jx-apps.yml` file in the pull request Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for be4c1cd - Browse repository at this point
Copy the full SHA be4c1cdView commit details -
fix: lets generate a default secrets YAML file for helmfile
so its easier for folks to populate it. Longer term we can help the user populate it like we do with the current boot approach
Configuration menu - View commit details
-
Copy full SHA for baa6e51 - Browse repository at this point
Copy the full SHA baa6e51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78d44f8 - Browse repository at this point
Copy the full SHA 78d44f8View commit details -
rename the `jx-apps.yml` apps.valueFiles to apps.values to match helmfile's naming convention also allow discovery of a `myrepo/mychart`'s yaml file via `mychart/values.yaml` as using `myrepo/mychart/values.yaml` seems to confuse helm into thinking the `myrepo/mychart` folder is a local chart source code
Configuration menu - View commit details
-
Copy full SHA for 8a3a7ef - Browse repository at this point
Copy the full SHA 8a3a7efView commit details -
fix: avoid creating invalid helmfile
if we have no releases for a helmfile lets add a dummy empty chart to avoid `helmfile sync` failing in the system or apps dir refactored the test cases so they are easier to create
Configuration menu - View commit details
-
Copy full SHA for 1419770 - Browse repository at this point
Copy the full SHA 1419770View commit details -
fix: jx step create helmfile improvements
lets lazily create the `jx-requirements.values.yaml.gotmpl` file if it does not exist. This lets us use a simpler PR pipeline on local environments without needing to run the whole `jx step verify preinstall` step. also lets default the `--values` arguments with nice validation if folks don't specify them so we can simplify the OOTB pipelines
Configuration menu - View commit details
-
Copy full SHA for f9a5339 - Browse repository at this point
Copy the full SHA f9a5339View commit details -
Configuration menu - View commit details
-
Copy full SHA for b43b3b9 - Browse repository at this point
Copy the full SHA b43b3b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9b1e2f - Browse repository at this point
Copy the full SHA a9b1e2fView commit details -
fix: lets not fail if helm version errors
which it usually does on helm 2 containers
Configuration menu - View commit details
-
Copy full SHA for ed97e29 - Browse repository at this point
Copy the full SHA ed97e29View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea318b5 - Browse repository at this point
Copy the full SHA ea318b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f7d509 - Browse repository at this point
Copy the full SHA 4f7d509View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3aec4f - Browse repository at this point
Copy the full SHA c3aec4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 640d141 - Browse repository at this point
Copy the full SHA 640d141View commit details -
fix: allow environment variables to reference environment variable ex…
…pressions e.g. so we can enable helm 3 in a build pack via `PATH=/opt/bin/helm3-bin:$PATH`
Configuration menu - View commit details
-
Copy full SHA for c51a083 - Browse repository at this point
Copy the full SHA c51a083View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12339c3 - Browse repository at this point
Copy the full SHA 12339c3View commit details -
fix: lets default to helmfile for staging and production
if we are using helmfile for dev
Configuration menu - View commit details
-
Copy full SHA for 49dc84b - Browse repository at this point
Copy the full SHA 49dc84bView commit details -
chore: avoid warn message with custom built jx binaries as causes iss…
…ues running steps and capturing system out
Configuration menu - View commit details
-
Copy full SHA for 27bd17b - Browse repository at this point
Copy the full SHA 27bd17bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1877cea - Browse repository at this point
Copy the full SHA 1877ceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 734215b - Browse repository at this point
Copy the full SHA 734215bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a605584 - Browse repository at this point
Copy the full SHA a605584View commit details -
fix: better validation of helm
if we have configured helm 3 then lets use that version to validate helm Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8ef772f - Browse repository at this point
Copy the full SHA 8ef772fView commit details -
fix: lets add a conditional compilation flag
so that we can reuse the same code in jx alpha / jx 3.x where we default to helm 3 Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bafcb8f - Browse repository at this point
Copy the full SHA bafcb8fView commit details -
fix: lets default to helm 3 in this branch
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2e16696 - Browse repository at this point
Copy the full SHA 2e16696View commit details
Commits on Mar 1, 2020
-
fix: allow the secret yaml env var validation to be disabled
Signed-off-by: James Strachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b3b393 - Browse repository at this point
Copy the full SHA 7b3b393View commit details