Skip to content

danwinship/baremetal-runtimecfg

 
 

Repository files navigation

runtimecfg

runtimecfg is small utitily that reads KubeConfig and checks the current system for rendering OpenShift baremetal networking configuration.

Usage

runtimecfg [command]

The available commands are:

  • display: Displays the struct that contains the information for rendering
  • help: Help about any command
  • render: Renders go templates with the runtime configuration. Takes a -o/--out-dir parameter to specify where to write the rendered files.

The available flags are:

  • --api-vip: Virtual IP Address to reach the OpenShift API
  • --dns-vip: Virtual IP Address to reach an OpenShift node resolving DNS server
  • --ingress-vip Virtual IP Address to reach the OpenShift Ingress Routers

Note that you must pass at least one VIP for the VRRP interface to be found.

Test

Run on docker (recommended)

Running tests inside docker are consistet between machines and it keeps the host environment clean.

In order to run the tests you should have all these prerequisites:

  • make
  • docker
  • docker-compose
make docker_test

Run locally on host

There are some tests that require user capabilities (cap_net_admin, cap_net_raw). In case the user doesn't have these capabilities - The tests would be skipped.

Pay attention: This tests might change the machine networking.

make test

About

Runtime configuration renderer for OpenShift in platforms without Cloud DNSaaS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 87.8%
  • Python 10.2%
  • Dockerfile 1.4%
  • Other 0.6%