application

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

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

Local development

0. start a k8s cluster

# in laf project root path
sh scripts/start_vm.sh laf-test ~/.kube/config

1. run the controller locally (Prerequisite)

# terminal 1st
cd controllers/application/
make run

2. run all the tests

make test -v

Optional run a specific test for debugging

# run a specific test
go test ./tests/e2e/app_create_test.go -v

CI/CD

0. prepare a remote k8s cluster

TODO: ensure a ready k8s cluster config is located in ~/.kube/config

1. build & push the controller image

# build the image
IMG=ghcr.io/oss-controller:ci-test make docker-build

# push the image
IMG=ghcr.io/oss-controller:ci-test make docker-push

2. deploy the crd

# deploy the controller
kubectl apply -f config/crd/bases
kubectl apply -f config/rbac
kubectl apply -f config/manager

3. run tests in local

make test

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the application v1 API group +kubebuilder:object:generate=true +groupName=application.laf.dev
Package v1 contains API Schema definitions for the application v1 API group +kubebuilder:object:generate=true +groupName=application.laf.dev
tests
api

Jump to

Keyboard shortcuts

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