copsctl

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT

README

copsctl

Introduction

copsctl - the Conplement AG Kubernetes developer tooling

Build Status

Requirements

Installation

Simply download a binary for your target system from Releases, set it to you PATH, and you are ready to go.

Contributing

For contributing to the project, and fo development instructions, please check CONTRIBUTING.md

Getting Started

Build the tool
# Clone the project into your %GOPATH%
git clone https://github.com/conplementAG/copsctl.git
# Build with go build
cd $GOPATH/src/github.com/conplementAG/copsctl/cmd/copsctl

# Embedd resources
go get -u github.com/mjibson/esc
go generate .

# Install dependencies
dep ensure

# Compile to executable
go build .

Additional Info:

The snippet above will put the esc-executable into your $GOPATH/bin directory, so it is available in the go generate phase. This is required because esc will search for yaml-files and embedd those into the final binary, so the executable can run idependant from any working directory.

Connect to a cluster

copsctrl connect -e <environment-tag>

(Environment-tag determines the name of the cluster.)

Create a kubernetes namespace

copsctl namespace create -n <namespace-name> -u John.Smith@conplement.de

(Namespace-name specifies the name of the kubernetes namespace.)

Show help

copsctl --help

Jump to

Keyboard shortcuts

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