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 Jun 20, 2023. It is now read-only.
Since it's not easy to remove fields from a jsonnet obj (google/jsonnet#312), and there's different behavior between:
replicas: null
and when the replicas field is missing.
In the latter case, the field isn't changed in the resulting object in Kubernetes. Thus, if you have a deployment replica count managed by an HPA (or similar), you want to exclude that field.
When a deployment is first deployed and the field doesn't exist, it it set to 1 in the final object in k8s.
If the deployment already exists and the field doesn't exist in the manifest being reapplied, the field remains unchanged.
replicas: null is essentially equivalent to replicas: 1.
So there's no way, if using this library to easily remove the replicas field in order to get the desired behavior of having that field managed externally.
The text was updated successfully, but these errors were encountered:
https://github.com/bitnami-labs/kube-libsonnet/blob/master/kube.libsonnet#L448
Since it's not easy to remove fields from a jsonnet obj (google/jsonnet#312), and there's different behavior between:
and when the
replicas
field is missing.In the latter case, the field isn't changed in the resulting object in Kubernetes. Thus, if you have a deployment replica count managed by an HPA (or similar), you want to exclude that field.
When a deployment is first deployed and the field doesn't exist, it it set to 1 in the final object in k8s.
If the deployment already exists and the field doesn't exist in the manifest being reapplied, the field remains unchanged.
replicas: null
is essentially equivalent toreplicas: 1
.So there's no way, if using this library to easily remove the
replicas
field in order to get the desired behavior of having that field managed externally.The text was updated successfully, but these errors were encountered: