database-operator

module
v0.0.0-...-eb707a0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT

README

database-operator

CI codecov GitHub

Database account configuration operator

Usage

Install
make install
make deploy

Then modify and apply the following configmap.

---
apiVersion: v1
data:
  controller_manager_config.yaml: |
    apiVersion: dbo.dosquad.github.io/v1
    kind: DatabaseAccountControllerConfig
    dsn: "postgres://databaseuser:databasepassword@psqlserver.example.com:5432/postgres"
kind: ConfigMap
metadata:
  name: database-operator-manager-config
  namespace: database-operator-system
Database accounts

Modify and apply the following database account resource.

---
apiVersion: dbo.dosquad.github.io/v1
kind: DatabaseAccount
metadata:
  labels:
    app: testapp
  name: testaccount

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the dbo v1 API group +kubebuilder:object:generate=true +groupName=dbo.dosquad.github.io
Package v1 contains API Schema definitions for the dbo v1 API group +kubebuilder:object:generate=true +groupName=dbo.dosquad.github.io
internal

Jump to

Keyboard shortcuts

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