captain

command module
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

README

Captain

License Go Report Card Tag Docker Image CI Go

Captain is a Helm 3 Controller

About Helm3

The Helm 3 Design Proposal exists for a while and currently it is still under heavy development. Captain comes as the first implementation of Helm v3 Controller based on the Proposal.

This project is based on the core helm v3 code, acting as a library. Since it's not officially released yet (alpha stage for now), some modifications were made to help implement this controller on a fork: alauda/helm (will be deprecated once Helm's library is released).

Features

  • HelmRequest/ChartRepo/Release CRD, namespace based
  • Git/Svn as ChartRepo
  • Local ChartRepo based on ChartMuseum
  • Multi cluster support based on cluster-registry
  • Dependency check for HelmRequest (between HelmRequests)
  • valuesFrom support: support to ConfigMap or Secret value store
  • kubectl apply like resource manipulation: no more resource conflict and CRD management issues

Quick Start

Check the Installation Guide to learn how to install captain

Then, create a HelmRequest resource

kind: HelmRequest
apiVersion: app.alauda.io/v1alpha1
metadata:
  name: nginx-ingress
spec:
  chart: stable/nginx-ingress

After a few seconds, you have an nginx-ingress chart running

root@VM-16-12-ubuntu:~/demo# kubectl get pods
NAME                                             READY   STATUS    RESTARTS   AGE
nginx-ingress-controller-57987f445c-9rhv5        1/1     Running   0          16s
nginx-ingress-default-backend-7679dbd5c9-wkkss   1/1     Running   0          16s
root@VM-16-12-ubuntu:~/demo# kubectl get hr
NAME            CHART                  VERSION   NAMESPACE   ALLCLUSTER   PHASE    AGE
nginx-ingress   stable/nginx-ingress             default                  Synced   23s

For the detailed explain and advanced usage, please check the documentation below

Documention

SDK

  • Golang: also contains the CRD definition

Future Plans

  • Java SDK
  • Auto update of HelmRequest
  • Always update to the latest version of chart

Captain Releated Projects

  • flux: flux have a similar controller based on Helm2

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
clusterregistry/apis
+domain=k8s.io
+domain=k8s.io
clusterregistry/apis/clusterregistry
+k8s:deepcopy-gen=package,register +groupName=clusterregistry.k8s.io
+k8s:deepcopy-gen=package,register +groupName=clusterregistry.k8s.io
clusterregistry/apis/clusterregistry/v1alpha1
Package v1alpha1 is the v1alpha1 version of the clusterregistry API.
Package v1alpha1 is the v1alpha1 version of the clusterregistry API.
clusterregistry/client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clusterregistry/client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clusterregistry/client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clusterregistry/client/clientset/versioned/typed/clusterregistry/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clusterregistry/client/clientset/versioned/typed/clusterregistry/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
clusterregistry/controller
Package controller is unused by the cluster registry but required by kubebuilder.
Package controller is unused by the cluster registry but required by kubebuilder.
clusterregistry/inject
Package inject is unused by the cluster registry but required by kubebuilder.
Package inject is unused by the cluster registry but required by kubebuilder.

Jump to

Keyboard shortcuts

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