goflux

package module
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

goflux

codebeat badge Go Report Card Go Doc Build Status GitHub release codecov FOSSA Status

Note

Nothing is final right now and the API aswell as the models might change until V1.0 release

The created kubernetes files are currently narrowed down to my personal usecase. I'm very open for Changerequests to make this cli useful for a broader audience.

Installation

Until we implemented AutoReleases for all platforms using github actions, you'll need to have go installed.

Using go get

go get -u -v github.com/Nerzal/goflux/cmd/goflux

After cloning locally

cd into the project folder and do

make

Usage Example

NAME:
   goflux - Used to automatically generate kubernetes files

USAGE:
   goflux [global options] command [command options] [arguments...]

COMMANDS:
   init, i        Initialize new project
   namespace, n   Create a namespace file
   service, s     Create a service file
   configmap, c   Create a configmap file
   deployment, d  Create a deployment file
   kustomize, k   Create a kustomization file
   hpa, h         Create a hpa file
   ingress, ig    Create a ingress file
   backend, b     Create files for a backend service
   help, h        Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

To initialize a new project do

goflux init --component myService

This will generate a basic folder structure.

To create all files needed for a backend deployment do

goflux backend --component myService --namespace myNamespace

The following commands work without goflux init

Create a Service File

goflux service --component myService --namespace myNamespace

Create a Namespace File

goflux namespace --namespace myNamespace

Create a Deployment File

goflux deployment --component myService --namespace myNamespace --image-secret myImagePullSecret

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goflux

type Goflux interface {
	Initialize(component string) error
	CreateBase(component, namespace string) error
	CreateEnv(component, namespace, env string) error

	CreateConfigMap(component, namespace string, data configmap.Data, path ...string) error
	CreateDeployment(component, namespace, imagePullSecret string, path ...string) error
	CreateNameSpace(component, namespace string, path ...string) error
	CreateService(component, namespace string, path ...string) error
	CreateKustomization(namespace string, path ...string) error
	CreateHpa(component, namespace string, minReplicas, maxReplicas int, path ...string) error
	CreateIngress(component, namespace, host, tlsHost, secretName, endpoint string, tlsAcme bool, path ...string) error
}

Goflux is used to create service, ingress, namespace files etc.

func New

func New() Goflux

New creates a new instance of Goflux

Directories

Path Synopsis
cmd
pkg
hpa

Jump to

Keyboard shortcuts

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