Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable basename for created resources #68

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

redbaron
Copy link

With this change it is possible to install multiple
Grafanas into same namespace without clashing

Also DRY object references a bit

Based on #67

@redbaron redbaron force-pushed the customizable-name branch from 2e5e3d5 to 66d8387 Compare May 22, 2019 20:05
It seems that shape of the object produced by individual
jsonnet library agreed to be following:

```
{
  hidden:: { ... }

  component: {
    resource1: { apiVersion: ... , kind: .... },
    resource2: { apiVersion: ... , kind: .... },
  }
}
```

so that std.objectFields(obj) returns an object
made of kubernetes object to apply.

Hidden fields are then can be used for cooperation
on values, such as `_config::`

This commit brings produced output in line with convention above
@redbaron redbaron force-pushed the customizable-name branch 3 times, most recently from 202e4b3 to b907c6e Compare May 23, 2019 10:28
redbaron added 3 commits May 23, 2019 11:34
If there is no dashboards, then no /grafana-dashboard-definitions/0/
is created and Grafana becomes upset, because it's provisioning
config points there.
With this change it is possible to install multiple
Grafanas into same namespace without clashing
@redbaron redbaron force-pushed the customizable-name branch from b907c6e to 1c12c74 Compare May 23, 2019 10:35
@brancz
Copy link
Owner

brancz commented May 28, 2019

I generally like this a lot. Let's first get #67 resolved, then continue with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants