controller-runtime

command module
v0.0.0-...-d41a953 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

controller-runtime example

This example demonstrates how to use this library using controller-runtime client.

  1. Setup a kind cluster:
kind create cluster
  1. Install Argo CD:
kubectl --context kind-kind create namespace argocd
kubectl --context kind-kind apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
  1. Run the example:
kubectl config use-context kind-kind && go run main.go --kubeconfig=$HOME/.kube/config
  1. Verify the CR is created:
$ kubectl --context kind-kind get application -n argocd my-argo-app
NAME          SYNC STATUS   HEALTH STATUS
my-argo-app   Unknown       Unknown

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