Skip to content

Commit

Permalink
Merge pull request #3277 from mjudeikis/mjudeikis/replicate.apiexport…
Browse files Browse the repository at this point in the history
…slices

✨  Replicate APIExportEndpointSlices via cache server for consumer awarn…
  • Loading branch information
kcp-ci-bot authored Jan 28, 2025
2 parents 75281c7 + 8cbf790 commit 85ecae8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cache/server/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func Bootstrap(ctx context.Context, apiExtensionsClusterClient kcpapiextensionsc
{"apis.kcp.io", "apiresourceschemas"},
{"apis.kcp.io", "apiconversions"},
{"apis.kcp.io", "apiexports"},
{"apis.kcp.io", "apiexportendpointslices"},
{"core.kcp.io", "logicalclusters"},
{"core.kcp.io", "shards"},
{"tenancy.kcp.io", "workspacetypes"},
Expand Down
6 changes: 6 additions & 0 deletions pkg/reconciler/cache/replication/replication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ func InstallIndexers(
Local: localKcpInformers.Apis().V1alpha1().APIExports().Informer(),
Global: globalKcpInformers.Apis().V1alpha1().APIExports().Informer(),
},
apisv1alpha1.SchemeGroupVersion.WithResource("apiexportendpointslices"): {
Kind: "APIExportEndpointSlice",
Local: localKcpInformers.Apis().V1alpha1().APIExportEndpointSlices().Informer(),
Global: globalKcpInformers.Apis().V1alpha1().APIExportEndpointSlices().Informer(),
},

apisv1alpha1.SchemeGroupVersion.WithResource("apiresourceschemas"): {
Kind: "APIResourceSchema",
Local: localKcpInformers.Apis().V1alpha1().APIResourceSchemas().Informer(),
Expand Down

0 comments on commit 85ecae8

Please sign in to comment.