baremetal-runtimecfg

module
v0.0.0-...-53bcc3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0

README

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

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

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL