Closed alexellis closed 4 years ago
/assign: me https://github.com/openfaas/faas-netes/blob/b12f1b6c368e9015263835dd2a11dee43e42a729/handlers/deploy.go#L271 b/77851960b31b980f0328d55fd0f8c2b168bac8b7/pkg/controller/deployment.go#L173
seems to override any setting for that annotation. Ill have a look into it
For context: https://github.com/openfaas/docs/pull/224
Can you also see if the issue exists in the operator?
the operator adds the annotation first, then does a merge of the annotations, so setting it would use the user setting.
https://github.com/openfaas/faas-netes/blob/master/pkg/controller/deployment.go#L169-L192
Expected Behaviour
This should result in an annotation of
prometheus.io.scrape=true
being assigned to the Deployment, but it does not.Current Behaviour
The following shows it as `false:
Possible Solution
I'm guessing that it's hard-coded to be false.
Steps to Reproduce (for bugs)
kind create
arkade install openfaas
faas-cli store deploy figlet --annotation prometheus.io.scrape=true --annotation prometheus.io.port=8081
Context
This will be required for the tutorial on custom_metrics scaling: https://github.com/openfaas/docs/issues/173