Manage application configuration using Kubernetes secrets, configmaps, and Go templates.
by kelseyhightowerGo
Last 12 weeks · 0 commits
2 of 6 standards met
When i use configmap keys which contains these special characters (&,',,+ etc.) problem occuring because of html escape. sample input "userAddressBookGetPayload": "?userID=%s&appType=%d", output "userAddressBookGetPayload": "?userID=%s&a m p ;appType=%d", For resolve these problem It would be usefull if konfd would disable EscapeHTML flag with an annotation on template something like: konfd.io/escape-html: "false" sample: apiVersion: v1 kind: ConfigMap metadata: name: vault-template annotations: konfd.io/kind: configmap konfd.io/name: vault konfd.io/key: server.hcl konfd.io/escape-html: "false" labels: konfd.io/template: "true" data: template: | default_lease_ttl = {{configmap "vault-configs" "default_lease_ttl"}} backend "mysql" thanks for interest.
This might be a little bit crazier than the last one, but I keep getting asked why it's not possible to have a global/default configmap or secret. It seems that with RBAC enabled, and control over what gets written to the default namespace this is reasonable. It would be awesome if something like konfd would enable this with an annotation on a resource in the default namespace, something like: I can see the case being made that it should only behave as a default (given the namespace name) and should not overwrite existing resources in other namespaces if they already exist.
The pointer used at https://github.com/kelseyhightower/konfd/blob/master/template.go#L120,L121 ends up pointing to something in the iterator, which changes every time we iterate, so the configmap that is the last in the iteration gets processed the number of configmaps in the namespace and no other configmap template will be processed.
Repository: kelseyhightower/konfd. Description: Manage application configuration using Kubernetes secrets, configmaps, and Go templates. Stars: 491, Forks: 31. Primary language: Go. Languages: Go (96.5%), Shell (3.5%). License: Apache-2.0. Open PRs: 1, open issues: 3. Last activity: 8y ago. Community health: 42%. Top contributors: kelseyhightower, nakato.