Skip to content

[OSPP]Support Kubernetes ConfigMap for Apollo java, golang client#79

Merged
hezhangjian merged 27 commits intoapolloconfig:mainfrom
dyx1234:main
Oct 30, 2024
Merged

[OSPP]Support Kubernetes ConfigMap for Apollo java, golang client#79
hezhangjian merged 27 commits intoapolloconfig:mainfrom
dyx1234:main

Conversation

@dyx1234
Copy link
Contributor

@dyx1234 dyx1234 commented Sep 12, 2024

What's the purpose of this PR

解决Apollo客户端在Kubernetes环境下因服务端宕机或Pod重启导致配置信息文件丢失的问题。通过使用Kubernetes ConfigMap作为新的持久化存储方案,提高配置信息的可靠性和容错性。

Solve the problem of Apollo client configuration information files being lost due to server downtime or Pod restart in the Kubernetes environment. By using Kubernetes ConfigMap as a new persistent storage solution, the reliability and fault tolerance of configuration information are improved.

discussion apolloconfig/apollo#5210

Brief changelog

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • [✅] Read the Contributing Guide before making this pull request.
  • [✅] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • [✅] Write necessary unit tests to verify the code.
  • [❌] Run mvn clean test to make sure this pull request doesn't break anything.
  • [❌] Update the CHANGES log.

Summary by CodeRabbit

  • New Features

    • Introduced support for Kubernetes ConfigMap caching in the Apollo client.
    • Added configuration options for enabling Kubernetes cache and specifying the namespace.
  • Bug Fixes

    • Enhanced error handling and logging for ConfigMap operations.
  • Tests

    • Added comprehensive unit tests for K8sConfigMapConfigRepository and KubernetesManager to ensure functionality and reliability.
  • Documentation

    • Updated release notes to include new features and fixes related to Kubernetes support.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants