store

command
v0.14.13-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

Store/SimpleStore Example

This example code is a simple demonstration of using crd.Store and crd.SimpleStore to manage custom resources without the need for a kubernetes client. It creates some custom resource definitions, then uses crd.Store to perform basic CRUD actions, and then crd.SimpleStore to do the same with a single definition. For more details about crd.Store and crd.SimpleStore, see the godocs for them, or the README in the crd package.

To Run

Using the run script
  1. Make sure you have k3d and go1.18+ installed
  2. Run the following to create a local k3d cluster and start the operator:
    $ ./run.sh
    
Manually

Start a local kubernetes cluster or use a remote one to which you have permission to create CRD's and monitor them. Set your kube context to the appropriate cluster, then run the operator:

$ go run basic.go --kubecfg="path_to_your_kube_config"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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