Skip to content

Commit

Permalink
prevent GRPC API from propagating to CP
Browse files Browse the repository at this point in the history
  • Loading branch information
DDH13 committed May 9, 2024
1 parent 8e5c24e commit b7fe22c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adapter/internal/operator/controllers/dp/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@ func (apiReconciler *APIReconciler) resolveAPIRefs(ctx context.Context, api dpv1

func isAPIPropagatable(apiState *synchronizer.APIState) bool {
validOrgs := []string{"carbon.super"}
if apiState.APIDefinition.Spec.APIType == "GRPC" {
return false
}
// System APIs should not be propagated to CP
if apiState.APIDefinition.Spec.SystemAPI {
return false
Expand Down

0 comments on commit b7fe22c

Please sign in to comment.