* docs: update wording in diffing.md
The wording in "If you have a slash / in your pointer path, you can use the ~1 character" is inaccurate. The ~1 character is mandatory if you have a slash.
Signed-off-by: Daniel R. Dagfinrud <danieldagfinrud@gmail.com>
* docs: update wording in docs/user-guide/diffing.md
Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: Daniel R. Dagfinrud <danieldagfinrud@gmail.com>
---------
Signed-off-by: Daniel R. Dagfinrud <danieldagfinrud@gmail.com>
Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com>
So that this can be used for custom resources. The motivation for this
is issue #6008: with this change one should be able to use the known
type to ensure equal durations don't present a diff, e,g. via adding to
`argocd-cm`:
data:
resource.customizations.knownTypeFields.cert-manager.io_Certificate: |
- field: spec.duration
type: meta/v1/Duration
This change is based on 5b464c996b, though
I've included the API version in the type path to be consistent with the
generated type (i.e. `meta/v1/Duration` and not `meta/Duration`).
For documentation I've just manually listed the extra types that aren't
auto-generated, though this requires having to keep this list and the
code in-sync but this is probably not a big issue since the number of
extra types is not frequently changed.
In the tests I've used `require.*` methods since I find this simpler
than `if !assert.Blah(...) { return }` which the other tests in this
file are using.
Signed-off-by: Matthew Hughes <matthewhughes934@gmail.com>
* is a Yaml special character and must be quoted, otherwise ArgoCD fails to parse and shows an error.
Signed-off-by: Paul Martin <paul.martin@gmail.com>
Reordering `spec.metrics` will fix an OutOfSync state due to the HPA
controller reordering this array. The previously referenced
`spec.replicas` field doesn't exist within any known version of the
`HorizontalPodAutoscaler` (autoscaling/v1, autoscaling/v2beta1, or
autoscaling/v2beta2)