Skip to content

Releases: lifechurch/k8s-deploy-helper

5.0.1

08 May 20:34
dc35741
Compare
Choose a tag to compare

Bug Fixes

  • Fixed race condition in {{SECRETS}} substitution.

  • Added additional debugging to trap bash errors.

5.0.0

04 Apr 19:12
0477bd9
Compare
Choose a tag to compare

Version 5.0.0

Docker Image: quay.io/lifechurch/k8s-deploy-helper:5.0.0

Feature

  • DEPLOY: KDH will determine the Kubernetes version you are deploying against and run kubeval manifests specifically against that version.

  • DEPLOY: You can now set KDH_SKIP_KUBEVAL variable to true in order to skip kubeval runs.

4.0.3

08 Mar 01:11
9e65367
Compare
Choose a tag to compare

Version 4.0.3

Docker Image: quay.io/lifechurch/k8s-deploy-helper:4.0.3

Feature

  • BUILD: Docker builds now pass the --pull flag in case you build from an image that pushes different content to the same tag.

4.0.2

22 Feb 13:50
53f0f2f
Compare
Choose a tag to compare

Version 4.0.2

Docker Image: quay.io/lifechurch/k8s-deploy-helper:4.0.2

Bug Fixes

  • Version 4.0.1 introduced a bug where deployment rollouts were not checked correctly. This is fixed.

New Features

  • New Relic deployment notifications now use the v2 API.

  • Deployment notifications have more contextual information about what was deployed.

4.0.1

14 Feb 16:12
03c21b6
Compare
Choose a tag to compare

Version 4.0.1

Docker Image: quay.io/lifechurch/k8s-deploy-helper:4.0.1

Bug Fixes

  • Canary stage was deploying manifests without track: stable label. This shouldn't happen. Fixed.

  • KDH no longer tries to create the namespace if it exists already. This was causing issues because GitLab is now supposed to be creating the namespace when you add the GitLab integration.

4.0.0

31 Jan 21:01
72b1cc5
Compare
Choose a tag to compare

Version 4.0.0

Docker Image: quay.io/lifechurch/k8s-deploy-helper:4.0.0

Backwards Incompatible Changes

  • Starting in GitLab 11.5, GitLab decided to start managing service accounts for namespaces automatically. This broke k8s-deploy-helper because KUBE_TOKEN was no longer the token you specified in the cluster. Moving forward, k8s-deploy-helper is not going to generate a Kubernetes configuration itself, it will rely on GitLab to create it for us.

New Features

  • Slack Deploy Events now support separate notifications per stage, allowing you to only send deploy events on specific stages if desired, or to different Slack channels for each stage.

3.0.0

05 Oct 15:19
Compare
Choose a tag to compare

Backwards Incompatible Changes

  • kubectl - Due to a bug in kubectl, you'll need to delete the gitlab-registry secret in your namespace before you deploy. Make sure to do it right before you do a deploy to make it non-impactful.

  • Deploy Token Usage - Previous versions used an actual GitLab username because GitLab didn't have persistent deploy tokens until recently. Now that this feature is in GitLab, we're going to stop using the shared credentials as this is much more secure. Create a deploy token at Settings->Repository->Deploy Tokens and make one named gitlab-deploy-token with read_registry access. As long as it's named gitlab-deploy-token, that's all you should have to do.

  • Canary Usage - Delete your canary manifest templates. We will create them automatically now. Make sure track: stable is present as labels in your deployments.

New Features

  • DEPLOY - Canary manifests are now dynamically created in canary stages.
  • DEPLOY - Automatically insert secrets as environment variables into Kubernetes manifest using {{SECRETS}} command in manifest templates. Make sure {{SECRETS}} is indented right, so it looks something like:
env:
  {{SECRETS}}
  • DEPLOY - Deploy script now uses kubeval to look for manifest errors before manifests are applied.
  • DEPLOY - Deploy script now leaves a copy of the post-processed files in /tmp/kubernetes for easier debugging and artifact grabbing
  • BUILD - Added BUILDARGS_FROM feature. Set BUILDARGS_FROM=production in your gitlab-ci stage, and it will make your GitLab secrets become build arguments for your Docker container. EXAMPLE: If you set BUILDARGS_FROM=production and have SECRET_VAR1 and PRODUCTION_VAR2 defined, it will automatically create build arguments named var1 and var2. It also turns on KDH_INSERT_ARGS and will dynamically insert build arguments into your Dockerfile before build. This is for applications that require all the environment variables to exist at buildtime as a sanity check.
  • BUILD - Set KDH_INSERT_ARGS=true as a variable in your gitlab ci build stage and k8s-deploy-helper will automatically insert the ARG statements into your Dockerfile.

Bug Fixes

  • BUILD - BUILDARGS_ can now handle spaces correctly

Changes

  • Deployment events will not fire until after a deployment has been registered as rolled out successfully.

2.0.3

28 Sep 14:23
Compare
Choose a tag to compare
Fix pgp key