From e0dd84d482066294d5b5cd699023e1b7876ef6ee Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Thu, 12 Dec 2024 13:32:26 +0100 Subject: [PATCH] sort --- .../providers/pluginfw/pluginfw_rollout_utils.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/internal/providers/pluginfw/pluginfw_rollout_utils.go b/internal/providers/pluginfw/pluginfw_rollout_utils.go index da5110a63..ce36a610b 100644 --- a/internal/providers/pluginfw/pluginfw_rollout_utils.go +++ b/internal/providers/pluginfw/pluginfw_rollout_utils.go @@ -27,29 +27,33 @@ import ( ) // List of resources that have been migrated from SDK V2 to plugin framework +// Keep this list sorted. var migratedResources = []func() resource.Resource{ - qualitymonitor.ResourceQualityMonitor, library.ResourceLibrary, + qualitymonitor.ResourceQualityMonitor, } // List of data sources that have been migrated from SDK V2 to plugin framework +// Keep this list sorted. var migratedDataSources = []func() datasource.DataSource{ volume.DataSourceVolumes, } // List of resources that have been onboarded to the plugin framework - not migrated from sdkv2. +// Keep this list sorted. var pluginFwOnlyResources = []func() resource.Resource{ - sharing.ResourceShare, app.ResourceApp, + sharing.ResourceShare, } // List of data sources that have been onboarded to the plugin framework - not migrated from sdkv2. +// Keep this list sorted. var pluginFwOnlyDataSources = []func() datasource.DataSource{ - serving.DataSourceServingEndpoints, + catalog.DataSourceFunctions, + notificationdestinations.DataSourceNotificationDestinations, registered_model.DataSourceRegisteredModel, registered_model.DataSourceRegisteredModelVersions, - notificationdestinations.DataSourceNotificationDestinations, - catalog.DataSourceFunctions, + serving.DataSourceServingEndpoints, // TODO: Add DataSourceCluster into migratedDataSources after fixing unit tests. cluster.DataSourceCluster, // Using the staging name (with pluginframework suffix) sharing.DataSourceShare, // Using the staging name (with pluginframework suffix)