Skip to content

Conversation

Shrinidhikulkarni7
Copy link

@Shrinidhikulkarni7 Shrinidhikulkarni7 commented Nov 18, 2024

When trying Argo Rollouts with the command:
kustomize build ./examples/analysis | kubectl apply -f -

Got error:
"Error from server (BadRequest): error when creating "STDIN": Rollout in
version "v1alpha1" cannot be handled as a Rollout: strict decoding error:
unknown field "spec.strategy.canary.analysis.templateName""

Fix: The templateName field needs to be nested under a 'templates' array
in newer versions of Argo Rollouts. Updated the configuration to follow
the current schema by wrapping templateName inside templates:

spec:
  strategy:
    canary:
      analysis:
        templates:
        - templateName: success-rate

Signed-off-by: Shrinidhi <shrinidhi.kulkarni@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant