kube_config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

README

  ____             __ _                       _   _
 / ___|___  _ __  / _(_) __ _ _   _ _ __ __ _| |_(_) ___  _ __  ___
| |   / _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \/ __|
| |__| (_) | | | |  _| | (_| | |_| | | | (_| | |_| | (_) | | | \__ \
 \____\___/|_| |_|_| |_|\__, |\__,_|_|  \__,_|\__|_|\___/|_| |_|___/
                        |___/
  ____                           _
 / ___| ___ _ __   ___ _ __ __ _| |_ ___  _ __
| |  _ / _ \ '_ \ / _ \ '__/ _` | __/ _ \| '__|
| |_| |  __/ | | |  __/ | | (_| | || (_) | |
 \____|\___|_| |_|\___|_|  \__,_|\__\___/|_|

Overview

This project is a generator of configurations used in Kyma.

Prerequisites

The following tools are required to set up the project:

Installation

For installation use dedicated Helm chart

Usage

Configuration

Use the following arguments to configure the application:

Name Required Default Description
port No 8000 Application port.
kube-config-custer-name Yes Name of the Kubernetes cluster.
kube-config-url Yes URL of the Kubernetes Apiserver.
kube-config-ca Yes, if kube-config-ca-file not specified Certificate Authority of the Kubernetes cluster.
kube-config-ca-file Yes, if kube-config-ca not specified File with Certificate Authority of the Kubernetes cluster.
kube-config-ns No Default namespace of the Kubernetes context.

Run a local version

In order to run a local version, a running minikube is required.

To run the application without building the binary, execute the following commands:

go run cmd/generator/main.go \
  -kube-config-custer-name=minikue \
  -kube-config-url=:8443 \
  -kube-config-ca-file=~/.minikube/ca.crt

Development

Testing

Run tests:

go test -v ./...

Run tests with coverage:

go test -coverprofile=coverage_report.out -v ./...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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