Open mloiseleur opened 8 months ago
Hey @mloiseleur I can't reproduce this with Kubernetes upstream v1.29.3 PR here https://github.com/fluxcd/kustomize-controller/pull/1124
It's annoying and no surprising at the same time : this test is like the strange things section in the issue description.
There is two possible difference between config of this issue and your PR.
ghcr.io/fluxcd/kustomize-controller:v1.2.2
on arm64 kubernete nodesince I cannot commit in your PR, I tried option 2 in https://github.com/fluxcd/kustomize-controller/pull/1125
Describe the bug
When applying infrastructure components yaml from AWS provider of Cluster API, flux kustomization fails with this error message:
error message
```shell Kustomization reconciliation failed: CustomResourceDefinition/rosacontrolplanes.controlplane.cluster.x-k8s.io dry-run failed (Invalid): CustomResourceDefinition.apiextensions.k8s.io "rosacontrolplanes.controlplane.cluster.x-k8s.io" is invalid: spec.validation.openAPIV3Schema.properties[spec].properties[version].x-kubernetes-validations[0].rule: Invalid value: apiextensions.ValidationRule{Rule:"self.matches('^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$')", Message:"version must be a valid semantic version", MessageExpression:"", Reason:(*apiextensions.FieldValueErrorReason)(nil), FieldPath:"", OptionalOldSelf:(*bool)(nil)}: compilation failed: ERROR: :1:14: Syntax error: token recognition error at: ''^(0|[1-9]\d' | self.matches('^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$') | .............^ ERROR: :1:26: Syntax error: extraneous input '*' expecting {'[', '{', '(', ')', '.', '-', '!', 'true', 'false', 'null', NUM_FLOAT, NUM_INT, NUM_UINT, STRING, BYTES, IDENTIFIER} | self.matches('^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$') | .........................^ ERROR: :1:28: Syntax error: token recognition error at: '\' | self.matches('^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$') | ...........................^ ERROR: :1:30: Syntax error: no viable alternative at input '.(' | self.matches('^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$') | .............................^ ERROR: :1:32: Syntax error: token recognition error at: '|[' | self.matches('^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$') | ...............................^ ERROR: :1:37: Syntax error: mismatched input ']' expecting