kubegems

module
v1.21.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0

README

.github/workflows/build.yml

kubegem

under construction ... 🚧 🚧 🚧

Getting started

quick-start

Development

Run local

kubegems have 5 components:

  • service: provide kubegems api server.
  • msgbus: provide instant communication for service, agent and dashboard.
  • worker: execute long time task.
  • agent: proxy all request by service in a single cluster.
  • controller: reconcile all kubegems CRD requests.

Choose one of these component you want to run, then:

  1. prepare certs: cd scripts && bash generate-tls-certs.sh
  2. make build
  3. ./bin/kubegems {component} gencfg > config/config.yaml
  4. Modify config/config.yaml yourself, for different component, config.yaml is different, you can also use args or enironment variables.
  5. ./bin/kubegems {conpoment}
Debug by vscode
{
  "name": "service",
  "type": "go",
  "request": "launch",
  "mode": "debug",
  "program": "${workspaceFolder}/cmd",
  "cwd": "${workspaceFolder}", 
  "args": ["service"] // may also be msgbus, worker, agent, controller
}

Directories

Path Synopsis
cmd
docs
swagger
Package swagger GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package swagger GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
pkg
apis/application/v1beta1
+kubebuilder:object:generate=true +groupName=application.kubegems.io
+kubebuilder:object:generate=true +groupName=application.kubegems.io
apis/gems/v1beta1
Package v1beta1 is the v1beta1 version of the API.
Package v1beta1 is the v1beta1 version of the API.
apis/plugins/v1beta1
Package v1beta1 is the v1beta1 version of the API.
Package v1beta1 is the v1beta1 version of the API.
log
utils/harbor
* OCI Distribution Specification Client * * For more information visit below URL * https://github.com/opencontainers/distribution-spec/blob/main/spec.md#endpoints *
* OCI Distribution Specification Client * * For more information visit below URL * https://github.com/opencontainers/distribution-spec/blob/main/spec.md#endpoints *
scripts
tools
helm-schema Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳