tasty

command module
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

Tasty repository

Tasty is a CLI to handle operators in a package manager fashion.

The tool provides the following primitives to interact with olm:

  • list
  • info
  • install
  • remove
  • search

Additionally, it can be used as a go library

As an alternative, consider kubectl-operator

Demo!

Installing

curl -s -L https://github.com/karmab/tasty/releases/latest/download/tasty-linux-amd64 > /usr/bin/tasty
chmod u+x /usr/bin/tasty
Some tasty install samples
  • Install OLM operators changing the sourceNamespace value
tasty install assisted-service-operator hive-operator --sourcens olm
  • Install OLM operators changing the CatalogSource and sourceNamespace value
tasty install assisted-service-operator hive-operator --source certified-operators --sourcens olm
  • Print yaml of OLM operator without install
tasty install assisted-service-operator

Requirements

Kubeconfig environment variable must be set

export KUBECONFIG=/path/to/kubeconfig

Alternatively, you can rely on your ~/.kube/config

Running as kubelet and oc plugin

Run the following and you can then use kubectl olm or oc olm

tasty config --enable-as-plugin

Using as a go library

Import tasty:

import "github.com/karmab/tasty/pkg/operator"

Then, create an operator using the constructor:

o := operator.NewOperator()

or with specific options:

o := operator.NewOperatorWithOptions(name, source, defaultChannel, description, csv, namespace, crd, configExecFile, configExecPath string)

The following methods are available to manage the operator:

o.SearchOperator()
o.GetList()
o.GetInfo()
o.SetConfiguration()
o.GetOperator()
o.InstallOperator()

Installing operators from a pod

Check job.yml.sample as an example of a job that will install a given operator using a sa with cluster admin privileges

Problems?

Open an issue!

Mc Fly!!!

karmab

Documentation

Overview

Copyright © 2021 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
Package cmd
Package cmd
pkg

Jump to

Keyboard shortcuts

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