Simple Or Not? – Scaling Deployments With Go Kubernetes Client

So you want to auto scale your deployments with Golang? I’ve written this post as I haven’t found any comprehensive guide on doing simple scaling from within Golang app. It utilizes Kubernetes client-go and Kubernetes apimachinery. Note that official documentation is great and can provide information that enable everyone to get up to speed easily.…

Published
Categorized as code

Bash array as a Terraform list of strings input variable

So terraform supports string list assigment to new input variable but not the bash array format. But during the time of writing. Lets say that we have bash array like this one below BASH_ARRAY=( "a" "b" "c" ) And we want to pass the bash array to terraform variable declaration which is list of strings.…

Ruby WeakRef and running garbage collection in tests

Recently I was working with Puppet gem internals and found that each manifest run which idea is to manage some properties of system we want to control, creates transaction object. By extending Puppet provided codebase using plain Ruby I noticed issue. There is no API for fetching and accessing one of the object which state I wanted to read.…

Published
Categorized as Ruby