Building environment
In order to get the full developement environment, you must stick to the following procedure
0. Requirements
- Having a RedHat like (Fedora, CentOS, RHEL, …) operating system
- Install git with
sudo yum install git - Install helm with
sudo yum install go - Install a kubernetes client
- openshift client with
sudo yum install openshift-client - kubernetes client with
sudo yum install kubectl
1. Get a copy of the repository
git clone https://gitlab.com/startx1/k8s/sxcollector.git
cd sxcollector
git checkout devel
git checkout -b devel-myfeature
2. Generate the binary
Create a new sxcollector binary from source.
make build
3. Test your binary
Execute a test with the version command.
./bin/sxcollector version
4. Make change in application
Record all code change into the git repository.
make build
./bin/sxcollector adjust mylimitRange 2
5. Publish your changes
Publish all your change to the repository. Only publish to branch derivated from the devel branch.
git add .
git commit -m "my change to the repository"
git push origin devel-myfeature
5. Create a pull request
Create a pull-request from your devel-myfeature into the devel branch.