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: ConfigMap and other resources are replaced #2453

Merged
merged 1 commit into from Sep 2, 2020

Conversation

manusa
Copy link
Member

@manusa manusa commented Sep 1, 2020

Description

fix #2445 : ConfigMap and other resources are replaced

  • Reverted behavior of BaseOperation#createOrReplace method (and similar)
    to the previous behavior.
    API will always be hit, POST to try to create, and PUT in case POST fails.
    This reverts the behavior trying to mimic kubectl and not performing
    the second PUT request in case the resource is identical to the server version.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

@centos-ci
Copy link

Can one of the admins verify this patch?

- Reverted **behavior** of BaseOperation#createOrReplace method (and similar)
  to the previous behavior.
  API will always be hit, POST to try to create, and PUT in case POST fails.
  This reverts the behavior trying to mimic kubectl and not performing
  the second PUT request in case the resource is identical to the server version.
@matthyx
Copy link
Contributor

matthyx commented Sep 2, 2020

@manusa I have the same issue... could we get an estimate for the next release featuring this patch?

@sonarcloud
Copy link

sonarcloud bot commented Sep 2, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 2 Code Smells

2.5% 2.5% Coverage
0.0% 0.0% Duplication

@manusa manusa removed the wip label Sep 2, 2020
@manusa manusa marked this pull request as ready for review September 2, 2020 07:36
@manusa
Copy link
Member Author

manusa commented Sep 2, 2020

@manusa I have the same issue... could we get an estimate for the next release featuring this patch?

Hi @matthyx , we'll try to do a release once we get this merged

@manusa
Copy link
Member Author

manusa commented Sep 2, 2020

[merge]

@fusesource-ci fusesource-ci merged commit 6dcebc9 into fabric8io:master Sep 2, 2020
@manusa manusa deleted the fix/config-map-replace branch September 2, 2020 10:53
@manusa
Copy link
Member Author

manusa commented Sep 2, 2020

Patch should be available in https://github.com/fabric8io/kubernetes-client/releases/tag/v4.11.1

@matthyx
Copy link
Contributor

matthyx commented Sep 2, 2020

Thanks for the quick response... I have another issue that I hoped to be fixed by that code as well, but alas no!
I will create a separate issue for it.

@manusa
Copy link
Member Author

manusa commented Sep 2, 2020

Thanks for the quick response... I have another issue that I hoped to be fixed by that code as well, but alas no!

Sorry to hear that :( I hope is not too critical.

I will create a separate issue for it.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossible to replace ConfigMap
6 participants