Closed abbottdev closed 10 hours ago
I have the very same problem as well as:
Also use of dash for the service name in aspire causes issues with variables:
Error: parse error at (aspire/templates/ticsems-postgres/secret.yaml:10): bad character U+002D '-'
---
apiVersion: "v1"
kind: "Secret"
metadata:
name: "ticsems-postgres-secrets"
labels:
app: "aspire"
component: "ticsems-postgres"
stringData:
POSTGRES_PASSWORD: "{{ .Values.secrets.ticsems-postgres.ticsems_postgres_password }}"
type: "Opaque"
And the POSTGRES_PASSWORD
variable is parsed from the wrong section
Error: template: aspire/templates/ticsemsgrpc/secret.yaml:10:101: executing "aspire/templates/ticsemsgrpc/secret.yaml" at <.Values.secrets.ticsemsgrpc.ticsemspostgres_password>: nil pointer evaluating interface {}.ticsemspostgres_password
...
secrets:
ticsemspostgres:
POSTGRES_PASSWORD: "blubb"
...
Yeah, I noticed the variables aren't escaped correctly with dashes too - I could work around that with a rename but the port mapping I can't work around without post-processing steps. The file looks autogen'd based on some schema but it's not documented how to regenerate otherwise I'd send a PR! 😄
Related #830
Is there an existing issue for this?
Describe the bug
I'm looking at the (preview) builds but found that the YAML that is generated by the new kubernetes k8s publisher is incorrect - it's serializing port and containerPorts to be an
intOrString
but when it's a port encoded string.Looking through the release notes it looks like these type defs were updated to be generated based on the go files rather than an independent schema - either way - this is rake someone will stand on!
Expected Behavior
The YAML files that are generated by
aspire publish
work with the latest versions of helm.Steps To Reproduce
Run:
aspire publish -o k8s
helm install <whatever> ./k8s --debug
Exceptions (if any)
No response
.NET Version info
Anything else?
.NET Aspire versions: