cno

command module
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

User Guide

Install

GO111MODULE=on go get github.com/dakario/cno
NB:

Make sure you have $GOPATH/bin in your path or move $GOPATH/bin/cno binary in a folder of your path

Commandes

config

This command allows you to configure the cno cli so that it can communicate correctly with the sso and the cno api

Flags:

name description value example
server-url application api URL https://cno.beopenit.com
oidc-url sso server url https://sso.beopenit.com
oidc-client-id oidc client-id public
oidc-client-secret secret of the oidc client-id (maybe empty)

Use:

cno config --server-url=https://cno.beopenit.com --oidc-url=https://sso.beopenit.com --oidcclient-id=public --oidc-client-secret=""
NB:

If an flags is not setted, the cli will invite you to enter his value

select

This command have two other subcommands: project and env

select project

This command allows you to have a valid kubeconfig allowing you to interact with the cluster on which the project is deployed. The generated kubeconfig contains a certificate with your username as CN signed by the cluster k8s. Which will allow the k8s cluster to identify you.

Flags:

name description
project-id id of the project you want to select

Use:

cno select project --project-id <your-project-id>
NB:

If project-id flag not set, the cli will invite you to select first the organization and the group where your project is located and then the project as such.

select env

This command allows you to configure an environment of the selected project as the default namespace of you kubeconfig.

Flags:

name description
env-id id of the environment you want to select

Use:

cno select env --env-id <your-env-id>
NB:

If env-id flag not set, the cli will invite you to select an environment from the list of project environments to which you have access

Developer's Guide

Create and publish a new release

  1. Create a new tag and publish them

     git tag -a v0.1.0 -m "First release"
     git push origin v0.1.0
    
  2. Create a github access token and export GITHUB_TOKEN variable

     export GITHUB_TOKEN=<acces-token>
    
  3. Create and publish the release

     goreleaser --rm-dist
    

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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