Skip to content

stuttgart-things/clusterbook

Repository files navigation

stuttgart-things/clusterbook

gitops configuration service

sthings

[/ˈklʌstəʳbʊk/]- gitops cluster configuration management

DEPLOYMENT

USAGE

EXAMPLE CR
kubectl apply -f - <<EOF
---
apiVersion: github.stuttgart-things.com/v1
kind: NetworkConfig
metadata:
  name: networks-labul
  namespace: clusterbook
spec:
  networks:
    10.31.103:
    - "4"
    - "5"
    - 7:ASSIGNED:ipat
    - 3:assigned:sandiego
    10.31.104:
    - "5"
    - 4:pending:losangeles
EOF

DEV TASKS

task: Available tasks for this project:
* branch:         Create branch from main
* build:          Install
* build-ko:       Build image w/ KO
* commit:         Commit + push code into branch
* lint:           Lint Golang
* pr:             Create pull request into main
* proto:          Generate Go code from proto
* run:            Run
* test:           Test code

AUTHOR

Patrick Hermann, stuttgart-things 09/2024

EXAMPLE .env file

ENV FILE

.env file needed for Taskfile

cat <<EOF > .env
#LOAD_CONFIG_FROM=disk
#CONFIG_LOCATION=tests
#CONFIG_NAME=config.yaml
LOAD_CONFIG_FROM=cr
CONFIG_LOCATION=clusterbook #namespace
CONFIG_NAME=networks-labul #resource-name

SERVER_PORT=50051

#CLUSTERBOOK_SERVER=localhost:50051
#SECURE_CONNECTION=false
CLUSTERBOOK_SERVER=clusterbook.rke2.sthings-vsphere.labul.sva.de:443
SECURE_CONNECTION=true
EOF

LICENSE

Licensed under the Apache License, Version 2.0 (the "License").

You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.

See the License for the specific language governing permissions and limitations under the License.

Releases

No releases published

Packages

 
 
 

Languages