Closed smartpcr closed 5 years ago
@smartpcr where are you creating/adding the second common.yaml
and dev.yaml
files?
I have two separate repos:
one on github that mimics fabrikate-definitions and include prometheus-operator
.
the other repo is in AzureDevOps that have component.yaml referencing github repo, and this repo contains config files: common.yaml and dev.yaml
I run fab command within second repo.
@smartpcr what does your component.yaml
look like? I suspect you might be missing another config layer. I created this repo as a sample to mimic your setup edaena/tmp-definitions
prometheus-operator
is what would be in the fabrikate-definitions
repo,
the test-prom-op-config
is what would be in your other repo. The dev.yaml
config looks like:
config:
subcomponents:
fabrikate-prometheus-operator:
subcomponents:
prometheus-operator:
config:
alertmanager:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
hosts:
- "alertmanager-dev.sace.works"
tls:
- secretName: "sslcert-sace-works"
hosts:
- "alertmanager-dev.sace.works"
prometheus:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
hosts:
- "prometheus-dev.sace.works"
tls:
- secretName: "sslcert-sace-works"
hosts:
- "prometheus-dev.sace.works"
grafana:
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
hosts:
- "grafana-dev.sace.works"
tls:
- secretName: "sslcert-sace-works"
hosts:
- "grafana-dev.sace.works"
As you can see, the first subcomponent is fabrikate-prometheus-operator
which is what's specified in the component.yaml
:
name: "test-prom-op-config"
subcomponents:
- name: "fabrikate-prometheus-operator"
type: component
source: "git@github.com:edaena/tmp-fabrikate-definitions.git"
path: "prometheus-operator"
method: git
Not sure if your component.yaml looks similar to this.
just got a chance to look at it. Thanks for taking the effort trying to reproduce the problem. You found the cause of my problem. :)
Describe the bug: I am trying to create prometheus-operator with customized ingress rule so that grafana/prometheus UI is exposed to internet. Have to add
common.yaml
under config in order for it to work. However, I cannot override values defined incommon.yaml
for different environment when I run fab command.To Reproduce:
In repo
fabrikate-definitions
, add the following folder:yaml files
component.yaml
common.yaml
Within HLD repo, I referenced
fabrikate-prometheus-operator
git repo and path using methodgit
. under config folder, I have the following two files:common.yaml
dev.yaml
When I run the following commands:
I got the following ingress settings in generated file:
prometheus-operator.yaml
:Expected behavior:
I expect values within file
dev.yaml
under config folder would be applied and generate the following ingress settings (note the difference:sace.works
instead ofmydomain
)Screenshots:
Additional context:
Desktop (please complete the following information):
Additional context