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 panic when set snapshotName selector #93

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

linglingye001
Copy link
Contributor

No description provided.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR fixes a panic related to setting the snapshotName selector by extending support for a snapshotName field in provider specs and corresponding filters.

  • Adds test cases for snapshotName in both key value and feature flag selectors
  • Updates the filter normalization function to propagate the SnapshotName field
  • Enhances controller tests by including snapshotName fields in the configuration

Reviewed Changes

File Description
internal/loader/configuraiton_setting_loader_test.go Adds tests for including snapshotName in key value and feature flag filters
internal/controller/appconfigurationprovider_controller_test.go Introduces snapshotName test properties for the provider controller
internal/loader/configuration_setting_loader.go Updates normalizeLabelFilter in the loader to copy over the SnapshotName from the incoming selectors

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

@linglingye001 linglingye001 merged commit 9cc6b1e into release/v2.2 Feb 27, 2025
3 checks passed
@linglingye001 linglingye001 deleted the linglingye/fixSnapshot branch February 27, 2025 03:42
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.

2 participants