diff --git a/apis/meta/v1alpha1/labels_annotations.go b/apis/meta/v1alpha1/labels_annotations.go index 4d5b1fe5..167d35ce 100644 --- a/apis/meta/v1alpha1/labels_annotations.go +++ b/apis/meta/v1alpha1/labels_annotations.go @@ -29,6 +29,8 @@ const ( NamespaceLabelKey = "core.kubernetes.io/namespace" // IntegrationClassLabelKey for integrationclass resource IntegrationClassLabelKey = "core.katanomi.dev/integrationClass" + // ProxyEnabledLabelKey + ProxyEnabledLabelKey = "core.katanomi.dev/proxyEnabled" // ClusterIntegrationLabelKey for cluster integration resources ClusterIntegrationLabelKey = "integrations.katanomi.dev/clusterIntegration" diff --git a/config/feature_flags.go b/config/feature_flags.go index c5042734..deed80b9 100644 --- a/config/feature_flags.go +++ b/config/feature_flags.go @@ -21,6 +21,10 @@ const ( // If the value is true, the feature is enabled cluster-wide. VersionEnabledFeatureKey = "version.enabled" + // ProxyEnabledFeatureKey indicates the configuration key of the proxy feature gate. + // If the value is true, the feature is enabled cluster-wide. + ProxyEnabledFeatureKey = "proxy.enabled" + // InitializeAllowLocalRequestsFeatureKey indicates the configuration key of. // If the value is true, the feature is enabled cluster-wide. InitializeAllowLocalRequestsFeatureKey = "plugin.gitlab.allow-local-requests" @@ -40,6 +44,10 @@ const ( // If the corresponding key does not exist, the default value is returned. DefaultVersionEnabled FeatureValue = "false" + // DefaultProxyEnabled indicates the default value of the proxy feature gate. + // If the corresponding key does not exist, the default value is returned. + DefaultProxyEnabled FeatureValue = "false" + // DefaultInitializeAllowLocalRequests indicates the configuration key of. // If the corresponding key does not exist, the default value is returned. DefaultInitializeAllowLocalRequests FeatureValue = "true" @@ -59,6 +67,7 @@ const ( // defaultFeatureValue defines the default value for the feature switch. var defaultFeatureValue = map[string]FeatureValue{ VersionEnabledFeatureKey: DefaultVersionEnabled, + ProxyEnabledFeatureKey: DefaultProxyEnabled, InitializeAllowLocalRequestsFeatureKey: DefaultInitializeAllowLocalRequests, PrunerDelayAfterCompletedFeatureKey: DefaultPrunerDelayAfterCompleted, PrunerKeepFeatureKey: DefaultPrunerKeep,