haanhvu commented on PR #3185:
URL: https://github.com/apache/camel-k/pull/3185#issuecomment-1117141699
@squakez I fixed the problem with `make generate`. Turned out the problem is
that `controller-gen` doesn't support go 1.18 yet, so I downgraded to go 1.17.9
and it worked.
I ran `make generate`, then `make`, then `make build-kamel`. I didn't set up
the operator locally but ran `make install-minikube` (with no previous Camel K
instance installed).
However in the end `kubectl` still doesn't know about the new
`settingsSecurity`:
```
$ 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
```
I pushed the generated changes from `make generate` here. Can you check if
there's anything wrong with them?
Or is there a problem with my `ip.yaml`?:
```
apiVersion: camel.apache.org/v1
kind: IntegrationPlatform
metadata:
name: camel-k
spec:
build:
maven:
settings:
configMapKeyRef:
key: settings.xml
name: maven-settings
settingsSecurity:
configMapKeyRef:
key: settings-security.xml
name: maven-settings-security
```
Also, as I said, I use the go version 1.17.9. Is it a recommended version
for camel-k?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]