Skip to content

georgettica/obnpctl

Repository files navigation

OBNPCTL

OpenShift Basic Networking Persentation (obnp) is a tool for a presentation on basic networking principals on OpenShift

What this tool provides

Basically you can invoke a basic client server code.

Additionally the deployment folder has an additional feature which is to deploy a Postgres server and CLI that can connect to it use

export PATH=${PWD}/bin:${PATH}
# install task (not explained here)
# connect to the cluster you want (not explained here)
# start the test
task deploy-up

Topic to go through:

How I set it up

How the code looks like

The k8s resources used

What is kustomize and how I use it to deploy

Basic startup-teardown of the tool

Tools Used

Task

to compile use an alternative of make. see the Task config file

kustomize

kustomize is a tool to make k8s files easier to compose together. it allows me to use the DRY method.

kubectl-slice

kubectl-slice is a nice tool to filter files from a stream. used to extract certain types from the kustomize build output

goreleaser

goreleaser is used to build and deploy the tool. see the goreleaser config file

cobra-cli

cobra-cli is the tool used to add new components to the CLI

golangci-lint

golangci-lint is used to validate the code I write. see the golangci-lint config file