ops-cli

command module
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 2 Imported by: 0

README

ops-cli

Installation

# Darwin/macOS
curl -sSL https://github.com/181192/ops-cli/releases/latest/download/ops_cli_darwin_amd64 -o ops \
  && chmod +x ops \
  && sudo mv ops /usr/local/bin/ops

# Linux
curl -sSL https://github.com/181192/ops-cli/releases/latest/download/ops_cli_linux_amd64 -o ops \
  && chmod +x ops \
  && sudo mv ops /usr/local/bin/ops

# Windows (run terminal as admin)
Invoke-WebRequest -Uri https://github.com/181192/ops-cli/releases/latest/download/ops_cli_windows_amd64.exe -OutFile ops.exe

Example workflow

  1. Create a cluster-config.yaml
cat <<EOF > cluster-config.yaml
kind: ClusterConfig
apiVersion: opscli.io/v1alpha1
metadata:
  name: some-aks-cluster
spec:
  location: westeurope
  version: "1.15.6"
  loadBalancerIP: "10.0.1.2"
  loadBalancerResourceGroup: some-resource-group-ip
EOF
  1. Create a new repository on GitHub/Bitbucket...

  2. Install and enable Flux & Helm-Operator in your cluster and save the manifests in the git repository

ops enable repo \
  --git-url git@github.com:181192/empty-sample.git \
  -f cluster-config.yaml
  1. Enable a GitOps profile and deploy to cluster
ops enable profile \
  --name git@bitbucket.org:181192/kustomize-manifests.git \
  --git-url git@github.com:181192/empty-sample.git \
  -f cluster-config.yaml

Building from sources

Building the project

git clone git@github.com:181192/ops-cli.git && cd ops-cli
make deps
make build

Generate docs

make docs

Generate CRD API's

make generate-cleanup
make generate

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal module
pkg
apis/opscli.io/v1alpha1
+k8s:deepcopy-gen=package +groupName=opscli.io +k8s:deepcopy-gen=package +groupName=opscli.io +k8s:deepcopy-gen=package +groupName=opscli.io
+k8s:deepcopy-gen=package +groupName=opscli.io +k8s:deepcopy-gen=package +groupName=opscli.io +k8s:deepcopy-gen=package +groupName=opscli.io
generated/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
generated/clientset/versioned/typed/opscli.io/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
generated/clientset/versioned/typed/opscli.io/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
git
open
Package open opens a file, directory, or URI using the OS's default application for that object type.
Package open opens a file, directory, or URI using the OS's default application for that object type.
flux Module

Jump to

Keyboard shortcuts

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