mhd-robaii commented on issue #5225: URL: https://github.com/apache/camel-k/issues/5225#issuecomment-1985280046
Thanks Sergio, I would like to try Spectrum but I'm having trouble configuring it with gcp. I followed the steps of the guide https://camel.apache.org/camel-k/next/installation/registry/gcr.html to create a new service-account and created the new secret. `kubectl describe IntegrationPlatform camel-k` ```yaml Name: camel-k Namespace: connectors Labels: app=camel-k Annotations: camel.apache.org/operator.id: camel-k API Version: camel.apache.org/v1 Kind: IntegrationPlatform Metadata: Creation Timestamp: 2024-03-07T17:52:55Z Generation: 1 Resource Version: 375770020 UID: d76b3b72 Spec: Build: Build Configuration: Maven: Settings: Settings Security: Publish Strategy: Spectrum Registry: Address: eu.gcr.io Insecure: true Organization: iot-staging-3 Secret: camel-k-builder Kamelet: Traits: Status: Build: Publish Strategy Options: Kaniko Persistent Volume Claim: camel-k Base Image: eclipse-temurin:17 Build Configuration: Order Strategy: sequential Strategy: routine Maven: Cli Options: -V --no-transfer-progress -Dstyle.color=never Local Repository: /etc/maven/m2 Max Running Builds: 3 Publish Strategy: Spectrum Registry: Address: eu.gcr.io Insecure: true Organization: iot-staging-3 Secret: camel-k-builder Runtime Version: 3.2.3 Timeout: 5m0s Cluster: Kubernetes Conditions: Last Transition Time: 2024-03-07T17:52:57Z Last Update Time: 2024-03-07T17:52:57Z Message: integration platform created Reason: IntegrationPlatformCreated Status: True Type: Created Last Transition Time: 2024-03-07T17:52:57Z Last Update Time: 2024-03-07T17:52:57Z Message: registry available at eu.gcr.io Reason: IntegrationPlatformRegistryAvailable Status: True Type: RegistryAvailable Info: Git Commit: c6a9348d8467f68800dabb7c845a411765fad8e3 Go OS: linux Go Version: go1.21.0 Kamelet: Repositories: Uri: none Observed Generation: 1 Phase: Ready Version: 2.2.0 Events: <none> ``` with spectrum as pubblisher I can't publish images on gcp because it returns an UNAUTHORIZED error ```log Build kit-cnkvvag1vpvc73ep7grg failed: GET https://eu.gcr.io/v2/token?scope=repository%3Aiot-staging-3%2Fcamel-k-kit-cnkvvag1vpvc73ep7grg%3Apush%2Cpull&service=eu.gcr.io: UNAUTHORIZED: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication" ``` kamel install command that I used: ```sh kamel install \ --olm=false \ --registry eu.gcr.io \ --organization iot-staging-3 \ --registry-insecure \ --registry-secret camel-k-builder \ --build-publish-strategy Spectrum \ --log-level=debug \ -n connectors ``` Any idea how to configure spectrum with gcp registry? Thanks in advance. -- 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]
