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

Update secrets interface to work for CEL export #4383

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

matthchr
Copy link
Member

  • Interface is now ExportKubernetesSecrets.
  • Now accepts additionalSecrets.
  • Now returns KubernetesSecretExportResult including RawSecrets map[string]string, which can be passed to CEL.
  • Also a new ExportConfigMaps interface for ConfigMaps.

Related to #2555

  • this PR contains documentation
  • this PR contains tests
  • this PR contains YAML Samples

@matthchr
Copy link
Member Author

/ok-to-test sha=ba91b12

@matthchr matthchr force-pushed the matthchr/export-refactor branch from ba91b12 to 03928a7 Compare October 25, 2024 22:10
// implements this interface is successfully provisioned. This method is invoked once a resource has been
// successfully created in Azure, but before the Ready condition has been marked successful.
ExportKubernetesResources(
ExportKubernetesConfigMaps(
Copy link
Member Author

Choose a reason for hiding this comment

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

This function actually can still export any Kubernetes resource, we just have a special function for secrets.

I could keep this as KubernetesExporter rather than making it ConfigMap specific. Not sure if that's better?

@matthchr matthchr force-pushed the matthchr/export-refactor branch from 03928a7 to 953b5c1 Compare October 28, 2024 18:56
v2/internal/set/set.go Outdated Show resolved Hide resolved
v2/internal/reflecthelpers/reflect_helpers.go Outdated Show resolved Hide resolved
* Interface is now ExportKubernetesSecrets.
* Now accepts additionalSecrets.
* Now returns KubernetesSecretExportResult including RawSecrets
  map[string]string, which can be passed to CEL.
* Also a new ExportConfigMaps interface for ConfigMaps.
@matthchr matthchr force-pushed the matthchr/export-refactor branch from 658cdba to 3c811a2 Compare October 29, 2024 22:54
@matthchr
Copy link
Member Author

/ok-to-test sha=3c811a2

@matthchr matthchr added this pull request to the merge queue Oct 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2024
@matthchr matthchr added this pull request to the merge queue Oct 30, 2024
Merged via the queue into Azure:main with commit 0572b94 Oct 30, 2024
7 checks passed
@matthchr matthchr deleted the matthchr/export-refactor branch October 30, 2024 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants