hashnao / gitops-practice

Install operators via OpenShift GitOps Operator
0 stars 0 forks source link

camelk wave #56

Closed hashnao closed 10 months ago

hashnao commented 10 months ago

Description

55 で README Troubleshooting に追加した Camel K Operator の IntegrationPlatform が作成されないに関する要因を特定する。

hashnao commented 10 months ago

IntegrationPlatform CR は Operator がインストールと自動で作成され Operator に管理されるため、Argo が IntegrationPlatform に変更を加えると差分が起きることが問題?

hashnao commented 10 months ago

kubectl|oc patch で strategic merge ができるとベター https://github.com/argoproj/argo-cd/issues/2437

hashnao commented 10 months ago

https://github.com/argoproj/argo-cd/issues/2437#issuecomment-1731521918 https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/ が該当する

hashnao commented 10 months ago

Failed to compare desired state to live state: failed to calculate diff: error calculating structured merge diff: error building typed value from config resource: .spec.build.maven.settings.ConfigMapKeyRef: field not declared in schema を解消する IntegrationPlatform CR は Operator をインストールすると自動で作成されるため、Replace を利用する https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#replace-resource-instead-of-applying-changes