Skip to content

2023

Dev Container

Background

Since my first job after college graduation, I have been looking for a way to setup a portable development environment for the following reasons:

  1. to use it on multiple machines
  2. to share it among the team with teammates who doesn't have server/platform/os experience
  3. to standardize os, programming language and library version, etc
  4. to save myself the headache of rebuilding everything from scratch

Github repository dispatch

Background

I have to run a shell script at repo B from repo A which hosts a python app. While I can spend the time to reinvent the wheel and fork the logic into python, it is best to keep thing simple by reusing what is already out there and proved to be working fine.

The js script in repo B is already wired up with a Github workflow. What if I can kick off that workflow remotely from repo A?

Github repository dispatch is the answer.

Helm Template Tips

Helm templates provide a powerful way to configure Kubernetes manifests dynamically. In this post, we’ll cover some useful tricks, including:

  • Handling optional maps

  • Setting default values

  • Using ternary expressions

  • Other useful Helm template functions

Helm Template Tips