Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to failed to find unique target for patch #617

Merged
merged 1 commit into from
Jun 3, 2022
Merged

Fix to failed to find unique target for patch #617

merged 1 commit into from
Jun 3, 2022

Conversation

brews
Copy link
Member

@brews brews commented Jun 3, 2022

Versions of Argo workflows after v3.3.4 appear to have a namespace added to their install.yaml resources (see argoproj/argo-workflows#8280 and argoproj/argo-workflows#8250 (comment)), with causes an error when kustomization tries to apply updates:

ComparisonError  rpc error: code = Unknown desc = Manifest generation error (cached): `kustomize build /tmp/https___github.com_climateimpactlab_downscalecmip6/infrastructure/kubernetes-gcp/argo` failed exit status 1: Error: no matches for Id ~G_v1_ConfigMap|~X|workflow-controller-configmap; failed to find unique target for patch ~G_v1_ConfigMap|workflow-controller-configmap  2022-06-02 18:16:15 -0700 PDT

This might relate to a bug in customization (see kubernetes-sigs/kustomize#1332).

So we're specifying the namespace in the install.yaml resource when defining the patch for the customization with the hopes that it will be able to find its target.

  • closes #xxxx
  • tests added / passed
  • docs reflect changes
  • passes flake8 downscale tests docs
  • entry in HISTORY.rst

[summarize your pull request here]

Versions of Argo workflows after v3.3.4 appear to have a namespace added to their install.yaml resources (see argoproj/argo-workflows#8280 and argoproj/argo-workflows#8250 (comment)), with causes an error when kustomization tries to apply updates:

```
ComparisonError  rpc error: code = Unknown desc = Manifest generation error (cached): `kustomize build /tmp/https___github.com_climateimpactlab_downscalecmip6/infrastructure/kubernetes-gcp/argo` failed exit status 1: Error: no matches for Id ~G_v1_ConfigMap|~X|workflow-controller-configmap; failed to find unique target for patch ~G_v1_ConfigMap|workflow-controller-configmap  2022-06-02 18:16:15 -0700 PDT
```
This *might* relate to a bug in customization (see kubernetes-sigs/kustomize#1332).

So we're specifying the namespace in the install.yaml resource when defining the patch for the customization with the hopes that it will be able to find its target.
@brews brews added bug infrastructure Issues related to project cyberinfrastructure labels Jun 3, 2022
@brews brews self-assigned this Jun 3, 2022
@brews brews merged commit e305bcb into master Jun 3, 2022
@brews brews deleted the argo_patch branch June 3, 2022 01:49
@brews
Copy link
Member Author

brews commented Jun 3, 2022

Nope, this doesn't get it completely. Need to revert this and try something else.

brews added a commit that referenced this pull request Jun 3, 2022
Changes from PR #617 didn't actually solve the problem.
brews added a commit that referenced this pull request Jun 3, 2022
Reverting changes from PR #617 because this didn't actually fix the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug infrastructure Issues related to project cyberinfrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant