go-libs
This project is focused on delivering a set of go tools used into various startx go modules.
Getting started
in your go code import the go-lib module
import (
sxUtils "gitlab.com/startx1/k8s/go-libs/pkg/utils"
)
Use the module in your code
// Use the module in your code
func main() {
display := sxUtils.NewCmdDisplay("main")
display.Debug("Display a debug message")
}
Here is a list of all the package present in this module
- Install the
go-libs
binary (download)
- Test it with
sxlibs version
- Log into a kubernetes cluster
kubectl login ...
- Create a new quotas based on the default template
sxlibs create myquotas
- Get your quotas to see the changes
kubectl get resourcequotas myquotas -o yaml
- Resize the quotas definitions
sxlibs resize myquotas 3
- Get your quotas to see the changes
kubectl get resourcequotas myquotas -o yaml
- Adjust the quotas definitions
sxlibs adjust myquotas
- Get your quotas to see the changes
kubectl get resourcequotas myquotas -o yaml