@@ -455,16 +455,16 @@ func (ks *KongState) FillPlugins(
455455// that supports the FillID method (these are Service, Route, Consumer and Consumer
456456// Group). It makes their IDs deterministic, enabling their correct identification
457457// in external systems (e.g. Konnect Analytics).
458- func (ks * KongState ) FillIDs (logger logr.Logger ) {
458+ func (ks * KongState ) FillIDs (logger logr.Logger , workspace string ) {
459459 for svcIndex , svc := range ks .Services {
460- if err := svc .FillID (); err != nil {
460+ if err := svc .FillID (workspace ); err != nil {
461461 logger .Error (err , "Failed to fill ID for service" , "service_name" , * svc .Name )
462462 } else {
463463 ks .Services [svcIndex ] = svc
464464 }
465465
466466 for routeIndex , route := range svc .Routes {
467- if err := route .FillID (); err != nil {
467+ if err := route .FillID (workspace ); err != nil {
468468 logger .Error (err , "Failed to fill ID for route" , "route_name" , * route .Name )
469469 } else {
470470 ks .Services [svcIndex ].Routes [routeIndex ] = route
@@ -473,15 +473,15 @@ func (ks *KongState) FillIDs(logger logr.Logger) {
473473 }
474474
475475 for consumerIndex , consumer := range ks .Consumers {
476- if err := consumer .FillID (); err != nil {
476+ if err := consumer .FillID (workspace ); err != nil {
477477 logger .Error (err , "Failed to fill ID for consumer" , "consumer_name" , consumer .FriendlyName ())
478478 } else {
479479 ks .Consumers [consumerIndex ] = consumer
480480 }
481481 }
482482
483483 for consumerGroupIndex , consumerGroup := range ks .ConsumerGroups {
484- if err := consumerGroup .FillID (); err != nil {
484+ if err := consumerGroup .FillID (workspace ); err != nil {
485485 logger .Error (err , "Failed to fill ID for consumer group" , "consumer_group_name" , * consumerGroup .Name )
486486 } else {
487487 ks .ConsumerGroups [consumerGroupIndex ] = consumerGroup
0 commit comments