Skip to content

vshn/stardog-userrole-operator

Repository files navigation

Stardog Userrole Operator

Build Go version Kubernetes version Stardog version Version GitHub downloads Docker image License

A Kubernetes operator to manage Stardog users and roles.

Generating the REST client

The package stardogrest is a REST client generated by autorest based on the stardogrest/stardog_swagger.yaml file. If the stardog REST API changes, the stardogrest/stardog_swagger.yaml should be updated to reflect the changes, and then autorest should be run again with the following command:

make autorest

Local Development

Prerequisites

  • minikube
  • helm
  • kubectl
  • Stardog image registry credentials
  • Stardog license

See the VSHN wiki (internal) for details on how to retrieve registry credentials and licenses for Stardog.

Init local dev environment

minikube start

# Create values.yaml (fill in actual image registry credentials)
cat <<EOF > values.yaml
image:
  username: "foo"
  password: "supersecret"

stardog:
  adminPassword: "admin"

replicaCount: 1

zookeeper:
  enabled: false
EOF

# Provide Stardog license key
kubectl create secret generic stardog-license --from-file stardog-license-key.bin=stardog-license-key.bin

# Install Stardog
helm repo add appuio https://charts.appuio.ch
helm install stardog appuio/stardog -f values.yaml