haanhvu commented on PR #3185: URL: https://github.com/apache/camel-k/pull/3185#issuecomment-1120780470
> The Golang version we support is actually 1.16. As for the Custom Resource, probably it's because you still have some reference to the previous installation. Ideally you should delete all Custom Resources (ie, via `kamel uninstall --all -olm=false`). Later you need to use your local CLI to install the CRDs (ie, [this change you're adding in this PR](https://github.com/apache/camel-k/pull/3185/files#diff-d47e9df8f1b0746cce0eecbce7e96166f61204ebecf7b602c6395f82bb1f14cb)). You can do that running `./kamel install --skip-operator-setup --olm=false`. This command should set the new CRDs accordingly. @squakez I uninstalled camel-k. I knew it's uninstalled because when I checked with `kubectl -- api-resources`, no crds related to camel-k were there. Then I reinstalled again with `./kamel install --skip-operator-setup --olm=false` as you said. Checked again with `kubectl -- api-resources` and camel-k crds appeared. However, the new `settingsSecurity` still not in the crd: ``` minikube kubectl -- apply -f ip.yaml error: error validating "ip.yaml": error validating data: ValidationError(IntegrationPlatform.spec.build.maven): unknown field "settingsSecurity" in org.apache.camel.v1.IntegrationPlatform.spec.build.maven; if you choose to ignore these errors, turn validation off with --validate=false ``` In fact, when I checked the yaml of `IntegrationPlatform` crd in kubernetes: ``` minikube kubectl -- get ip -o yaml apiVersion: v1 items: - apiVersion: camel.apache.org/v1 kind: IntegrationPlatform metadata: creationTimestamp: "2022-05-08T14:18:15Z" generation: 1 labels: app: camel-k name: camel-k namespace: default resourceVersion: "5465" uid: 03049929-6410-487b-bf4a-5f42fdc65dbf spec: build: maven: settings: {} publishStrategy: Spectrum registry: address: 10.108.213.168 insecure: true kamelet: {} resources: {} kind: List metadata: resourceVersion: "" selfLink: "" ``` You can see `maven` only has one property `settings` Is that strange? Because looking at https://github.com/apache/camel-k/blob/main/config/crd/bases/camel.apache.org_integrationplatforms.yaml#L93-L226 I can see `maven` has other properties such as `caSecrets`, `localRepository` (the properties that were already there before my PR) I tried adding a `localRepository` property in my `ip.yaml` and kubernetes doesn't recognize it: ``` minikube kubectl -- apply -f ip.yaml error: error validating "ip.yaml": error validating data: [ValidationError(IntegrationPlatform.spec.build): unknown field "localRepository" in org.apache.camel.v1.IntegrationPlatform.spec.build, ValidationError(IntegrationPlatform.spec.build.maven): unknown field "settingsSecurity" in org.apache.camel.v1.IntegrationPlatform.spec.build.maven]; if you choose to ignore these errors, turn validation off with --validate=false ``` Is that normal that only `settings` property shows up in the crd? If not, what could possibly be the problem here? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org