kisamoto opened a new issue #1370: PublishStrategy missing from 
IntegrationPlatform build spec
URL: https://github.com/apache/camel-k/issues/1370
 
 
   **Setup**
   
   * GKE cluster - Kubernetes `1.15.8-gke.3`
   * Kamel `1.0.0-RC2`
   * GCR registry storage
   
   **Problem**
   
   With a fresh install of Kamel on the cluster, following the GCR instructions 
I was receiving the following error message when running any integration:
   
   ```
   {
       [...]
        "error": "error during trait customization: unsupported secret type for 
registry authentication",
       "errorVerbose": "unsupported secret type for registry authentication
   github.com/apache/camel-k/pkg/trait.getRegistrySecretFor
        github.com/apache/camel-k@/pkg/trait/builder.go:404
   github.com/apache/camel-k/pkg/trait.(*builderTrait).buildahTask
        github.com/apache/camel-k@/pkg/trait/builder.go:244
   github.com/apache/camel-k/pkg/trait.(*builderTrait).Apply
        github.com/apache/camel-k@/pkg/trait/builder.go:83
   github.com/apache/camel-k/pkg/trait.(*Catalog).apply
        github.com/apache/camel-k@/pkg/trait/trait_catalog.go:115
   github.com/apache/camel-k/pkg/trait.Apply
        github.com/apache/camel-k@/pkg/trait/trait.go:46
       [...]
   }
   ```
   
   I knew I had the secret available with the correct name but it wasn't being 
picked up. Why?
   
   **Solution**
   
   * `builder.go:Apply()` was incorrectly choosing the buildahTask 
`IntegrationPlatformBuildPublishStrategyBuildah` not the kanikoTask 
`IntegrationPlatformBuildPublishStrategyKaniko` 
   * I traced this back to a missing `publishStrategy` from the installed 
`integrationplatform` resource in the kubernetes cluster
   * After manually adding `build.spec.publishStrategy = Kaniko` camel-k was 
able to push to registry
   
   **Bug**
   
   * Why is `build.spec.publishStrategy = Kaniko` not correctly added to the 
`integrationplatform` resource? 
   * I couldn't find where this is set during installation. Should it be?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to