dhall-kubernetes/default/io.k8s.api.apps.v1beta1.DeploymentRollback.dhall
Thomas Scholtes 1feeeac87a
Default kind and apiVersion values
The `kind` and `apiVersion` properties of a Kubernetes resource are
already implicitly determined by the resource. We adjust the default
functions so that they do not require the `kind` and `apiVersion`
parameters for resources.

We obtain the implied values by inspecting the
`x-kubernetes-group-version-kind` key from the OpenAPI schema for that
resource. The [Kubernetes OpenAPI Spec Readme][1] explains how these
values determine the resource values.

[1]: https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/README.md#x-kubernetes-group-version-kind
2018-07-08 11:34:03 +02:00

8 lines
379 B
Plaintext

\(_params : {name : (Text), rollbackTo : (../types/io.k8s.api.apps.v1beta1.RollbackConfig.dhall)}) ->
{ apiVersion = ("apps/v1beta1" : Text)
, kind = ("DeploymentRollback" : Text)
, name = _params.name
, rollbackTo = _params.rollbackTo
, updatedAnnotations = ([] : Optional ((List {mapKey : Text, mapValue : Text})))
} : ../types/io.k8s.api.apps.v1beta1.DeploymentRollback.dhall