You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
Unsure if this is intended or not, but from what I would expect with a with* field, it would take the current object and add a field. However, there are some that are missing the self +, so they create a new object with only the field that was called. For example:
A container livenessProbe mixin I would expect this:
This is the livenessProbe section with the fields:
// Path to access on the HTTP server.
withPath(path):: self + __httpGetMixin({path: path}),
// Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
withPort(port):: __httpGetMixin({port: port}),
// Scheme to use for connecting to the host. Defaults to HTTP.
withScheme(scheme):: self + __httpGetMixin({scheme: scheme}),
Which is from the precompiled ksonnet.beta.3 file.
The text was updated successfully, but these errors were encountered:
Unsure if this is intended or not, but from what I would expect with a
with*
field, it would take the current object and add a field. However, there are some that are missing theself +
, so they create a new object with only the field that was called. For example:A container
livenessProbe
mixin I would expect this:to generate:
But it instead just generates:
Along the same lines, if
withPort
is called before either of the others, jsonnet complains with an error:As a workaround, the following does generate the correct output:
This is the
livenessProbe
section with the fields:Which is from the precompiled
ksonnet.beta.3
file.The text was updated successfully, but these errors were encountered: