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

feat (kubernetes-client) : Add utility methods to KubernetesResourceUtil for creating ConfigMap from file (#4184) #5173

Merged
merged 9 commits into from
May 30, 2023

Conversation

shawkins
Copy link
Contributor

@shawkins shawkins commented May 24, 2023

Description

Fix #4184

This is a pared down version of @rohanKanojia changes to move forward with just 2 helper methods on KubernetesResourceUtil.

This didn't want to merge cleanly into the existing pr, so I opened up another one.

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

rohanKanojia and others added 7 commits January 20, 2023 15:32
…m file (fabric8io#4184)

+ Added ConfigMapResource for modifying default ConfigMap operations
+ Added FromFileCreatable DSL method to provide file
+ Move KubernetesResourceUtilTest to
  `io.fabric8.kubernetes.client.utils`

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
+ fromFile(key, path) can be chained in order to construct a ConfigMap
  with entries from different files
+ Move fromFile operation a level up so that it's available from
  `client.configMaps()` interface directly.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
now that we're considering allowing for the modification of the current
item, and not just create, this makes the api more consistent with the
rest of the dsl
@rohanKanojia rohanKanojia changed the title 4184 without the DSL changes feat (kubernetes-client) : Add utility methods to KubernetesResourceUtil for creating ConfigMap from file (#4184) May 29, 2023
@manusa manusa added this to the 6.7.0 milestone May 30, 2023
@sonarcloud
Copy link

sonarcloud bot commented May 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

94.3% 94.3% Coverage
0.0% 0.0% Duplication

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.

How Can I Create ConfigMap From File
3 participants