https://github.com/xvzf/zookeeper-libsonnet
Zookeeper Tanka Library
https://github.com/xvzf/zookeeper-libsonnet
jsonnet-lib
Last synced: 4 months ago
JSON representation
Zookeeper Tanka Library
- Host: GitHub
- URL: https://github.com/xvzf/zookeeper-libsonnet
- Owner: xvzf
- License: apache-2.0
- Created: 2021-07-19T18:18:26.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-24T13:00:24.000Z (over 4 years ago)
- Last Synced: 2025-04-13T19:50:15.083Z (about 1 year ago)
- Topics: jsonnet-lib
- Language: Jsonnet
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usage
```jsonnet
local zk = (import './zookeeper.libsonnet');
{
config+:: {
namespace: 'hello-zookeeper'
}
zookeeper: zk {
_config+:: $._config,
},
}
```
A verbose variant:
```jsonnet
local k = import 'k.libsonnet';
local zk = import 'zookeeper-libsonnet/zookeeper.libsonnet';
{
local this = self,
_config+:: {
namespace: 'zookeeper',
zookeeper+: {
pvc_class:: 'gp2',
},
},
_images+:: {
zookeeper: '1234567890.dkr.ecr.eu-west-1.amazonaws.com/zookeeper:3.7.0',
},
namespace: k.core.v1.namespace.new(this._config.namespace),
zookeeper: zk {
_config+:: this._config,
_images+:: this._images,
zookeeper+: {
data_pvc+:: {
storageClassName:: error('hiding this field intentionally to fall onto the default storageclass')
},
log_pvc+:: {
storageClassName:: error('hiding this field intentionally to fall onto the default storageclass')
},
},
},
},
```