From 365a3e45bf13178811191c2d940554550838938f Mon Sep 17 00:00:00 2001 From: Srihari Date: Tue, 15 Apr 2025 21:48:10 +0530 Subject: [PATCH 01/37] Refactor Operator E2E test suite to ensure compatibility with OpenShift clusters --- infra/feast-operator/test/e2e/e2e_test.go | 31 ++++++++++++--- .../previous-version/previous_version_test.go | 4 +- ...v1alpha1_remote_registry_featurestore.yaml | 2 +- .../test/upgrade/upgrade_test.go | 4 +- infra/feast-operator/test/utils/test_util.go | 39 ++++++++++++++----- 5 files changed, 60 insertions(+), 20 deletions(-) diff --git a/infra/feast-operator/test/e2e/e2e_test.go b/infra/feast-operator/test/e2e/e2e_test.go index d1051900ae5..cc2cce9e97a 100644 --- a/infra/feast-operator/test/e2e/e2e_test.go +++ b/infra/feast-operator/test/e2e/e2e_test.go @@ -17,11 +17,16 @@ limitations under the License. package e2e import ( + "fmt" + "os" + "github.com/feast-dev/feast/infra/feast-operator/test/utils" . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" ) var _ = Describe("controller", Ordered, func() { + _, isRunOnOpenShiftCI := os.LookupEnv("RUN_ON_OPENSHIFT_CI") featureStoreName := "simple-feast-setup" feastResourceName := utils.FeastPrefix + featureStoreName feastK8sResourceNames := []string{ @@ -29,26 +34,40 @@ var _ = Describe("controller", Ordered, func() { feastResourceName + "-offline", feastResourceName + "-ui", } + namespace := "test-ns-feast" + defaultFeatureStoreCRTest := "TesDefaultFeastCR" + remoteRegisteFeatureStoreCRTest := "TestRemoteRegistryFeastCR" runTestDeploySimpleCRFunc := utils.GetTestDeploySimpleCRFunc("/test/e2e", "test/testdata/feast_integration_test_crs/v1alpha1_default_featurestore.yaml", - featureStoreName, feastResourceName, feastK8sResourceNames) + featureStoreName, feastResourceName, feastK8sResourceNames, namespace) runTestWithRemoteRegistryFunction := utils.GetTestWithRemoteRegistryFunc("/test/e2e", "test/testdata/feast_integration_test_crs/v1alpha1_default_featurestore.yaml", "test/testdata/feast_integration_test_crs/v1alpha1_remote_registry_featurestore.yaml", - featureStoreName, feastResourceName, feastK8sResourceNames) + featureStoreName, feastResourceName, feastK8sResourceNames, namespace) BeforeAll(func() { - utils.DeployOperatorFromCode("/test/e2e", false) + if !isRunOnOpenShiftCI { + utils.DeployOperatorFromCode("/test/e2e", false) + } + By(fmt.Sprintf("Creating test namespace: %s", namespace)) + err := utils.CreateNamespace(namespace, "/test/e2e") + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("failed to create namespace %s", namespace)) }) AfterAll(func() { - utils.DeleteOperatorDeployment("/test/e2e") + if !isRunOnOpenShiftCI { + utils.DeleteOperatorDeployment("/test/e2e") + } + By(fmt.Sprintf("Deleting test namespace: %s", namespace)) + err := utils.DeleteNamespace(namespace, "/test/e2e") + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("failed to delete namespace %s", namespace)) + }) Context("Operator E2E Tests", func() { - It("Should be able to deploy and run a default feature store CR successfully", runTestDeploySimpleCRFunc) - It("Should be able to deploy and run a feature store with remote registry CR successfully", runTestWithRemoteRegistryFunction) + It("Should be able to deploy and run a "+defaultFeatureStoreCRTest+" successfully", runTestDeploySimpleCRFunc) + It("Should be able to deploy and run a "+remoteRegisteFeatureStoreCRTest+" successfully", runTestWithRemoteRegistryFunction) }) }) diff --git a/infra/feast-operator/test/previous-version/previous_version_test.go b/infra/feast-operator/test/previous-version/previous_version_test.go index 9775d239bcc..9d0220674fb 100644 --- a/infra/feast-operator/test/previous-version/previous_version_test.go +++ b/infra/feast-operator/test/previous-version/previous_version_test.go @@ -38,9 +38,9 @@ var _ = Describe("previous version operator", Ordered, func() { } runTestDeploySimpleCRFunc := utils.GetTestDeploySimpleCRFunc("/test/upgrade", utils.GetSimplePreviousVerCR(), - utils.FeatureStoreName, utils.FeastResourceName, feastK8sResourceNames) + utils.FeatureStoreName, utils.FeastResourceName, feastK8sResourceNames, "default") runTestWithRemoteRegistryFunction := utils.GetTestWithRemoteRegistryFunc("/test/upgrade", utils.GetSimplePreviousVerCR(), - utils.GetRemoteRegistryPreviousVerCR(), utils.FeatureStoreName, utils.FeastResourceName, feastK8sResourceNames) + utils.GetRemoteRegistryPreviousVerCR(), utils.FeatureStoreName, utils.FeastResourceName, feastK8sResourceNames, "default") // Run Test on previous version operator It("Should be able to deploy and run a default feature store CR successfully", runTestDeploySimpleCRFunc) diff --git a/infra/feast-operator/test/testdata/feast_integration_test_crs/v1alpha1_remote_registry_featurestore.yaml b/infra/feast-operator/test/testdata/feast_integration_test_crs/v1alpha1_remote_registry_featurestore.yaml index 9746e3819a5..8c6d7ae6de3 100644 --- a/infra/feast-operator/test/testdata/feast_integration_test_crs/v1alpha1_remote_registry_featurestore.yaml +++ b/infra/feast-operator/test/testdata/feast_integration_test_crs/v1alpha1_remote_registry_featurestore.yaml @@ -12,4 +12,4 @@ spec: remote: feastRef: name: simple-feast-setup - namespace: default \ No newline at end of file + namespace: test-ns-feast \ No newline at end of file diff --git a/infra/feast-operator/test/upgrade/upgrade_test.go b/infra/feast-operator/test/upgrade/upgrade_test.go index 313fa41213c..3b7ba789767 100644 --- a/infra/feast-operator/test/upgrade/upgrade_test.go +++ b/infra/feast-operator/test/upgrade/upgrade_test.go @@ -33,9 +33,9 @@ var _ = Describe("operator upgrade", Ordered, func() { Context("Operator upgrade Tests", func() { runTestDeploySimpleCRFunc := utils.GetTestDeploySimpleCRFunc("/test/upgrade", utils.GetSimplePreviousVerCR(), - utils.FeatureStoreName, utils.FeastResourceName, []string{}) + utils.FeatureStoreName, utils.FeastResourceName, []string{}, "default") runTestWithRemoteRegistryFunction := utils.GetTestWithRemoteRegistryFunc("/test/upgrade", utils.GetSimplePreviousVerCR(), - utils.GetRemoteRegistryPreviousVerCR(), utils.FeatureStoreName, utils.FeastResourceName, []string{}) + utils.GetRemoteRegistryPreviousVerCR(), utils.FeatureStoreName, utils.FeastResourceName, []string{}, "default") // Run Test on current version operator with previous version CR It("Should be able to deploy and run a default feature store CR successfully", runTestDeploySimpleCRFunc) diff --git a/infra/feast-operator/test/utils/test_util.go b/infra/feast-operator/test/utils/test_util.go index b34c4272c46..4556c06272e 100644 --- a/infra/feast-operator/test/utils/test_util.go +++ b/infra/feast-operator/test/utils/test_util.go @@ -285,10 +285,9 @@ func validateTheFeatureStoreCustomResource(namespace string, featureStoreName st } // GetTestDeploySimpleCRFunc - returns a simple CR deployment function -func GetTestDeploySimpleCRFunc(testDir string, crYaml string, featureStoreName string, feastResourceName string, feastK8sResourceNames []string) func() { +func GetTestDeploySimpleCRFunc(testDir string, crYaml string, featureStoreName string, feastResourceName string, feastK8sResourceNames []string, namespace string) func() { return func() { By("deploying the Simple Feast Custom Resource to Kubernetes") - namespace := "default" cmd := exec.Command("kubectl", "apply", "-f", crYaml, "-n", namespace) _, cmdOutputerr := Run(cmd, testDir) @@ -297,27 +296,31 @@ func GetTestDeploySimpleCRFunc(testDir string, crYaml string, featureStoreName s validateTheFeatureStoreCustomResource(namespace, featureStoreName, feastResourceName, feastK8sResourceNames, Timeout) By("deleting the feast deployment") - cmd = exec.Command("kubectl", "delete", "-f", crYaml) + cmd = exec.Command("kubectl", "delete", "-f", crYaml, "-n", namespace) _, cmdOutputerr = Run(cmd, testDir) ExpectWithOffset(1, cmdOutputerr).NotTo(HaveOccurred()) } } // GetTestWithRemoteRegistryFunc - returns a CR deployment with a remote registry function -func GetTestWithRemoteRegistryFunc(testDir string, crYaml string, remoteRegistryCRYaml string, featureStoreName string, feastResourceName string, feastK8sResourceNames []string) func() { +func GetTestWithRemoteRegistryFunc(testDir string, crYaml string, remoteRegistryCRYaml string, featureStoreName string, feastResourceName string, feastK8sResourceNames []string, namespace string) func() { return func() { By("deploying the Simple Feast Custom Resource to Kubernetes") - namespace := "default" cmd := exec.Command("kubectl", "apply", "-f", crYaml, "-n", namespace) _, cmdOutputErr := Run(cmd, testDir) ExpectWithOffset(1, cmdOutputErr).NotTo(HaveOccurred()) validateTheFeatureStoreCustomResource(namespace, featureStoreName, feastResourceName, feastK8sResourceNames, Timeout) - var remoteRegistryNs = "remote-registry" - By(fmt.Sprintf("Creating the remote registry namespace=%s", remoteRegistryNs)) - cmd = exec.Command("kubectl", "create", "ns", remoteRegistryNs) - _, _ = Run(cmd, testDir) + var remoteRegistryNs = "test-ns-remote-registry" + err := CreateNamespace(remoteRegistryNs, "/test/e2e") + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("failed to create namespace %s", remoteRegistryNs)) + + DeferCleanup(func() { + By(fmt.Sprintf("Deleting remote registry namespace: %s", remoteRegistryNs)) + err := DeleteNamespace(remoteRegistryNs, testDir) + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("failed to delete namespace %s", remoteRegistryNs)) + }) By("deploying the Simple Feast remote registry Custom Resource on Kubernetes") cmd = exec.Command("kubectl", "apply", "-f", remoteRegistryCRYaml, "-n", remoteRegistryNs) @@ -446,3 +449,21 @@ func GetSimplePreviousVerCR() string { func GetRemoteRegistryPreviousVerCR() string { return fmt.Sprintf("https://raw.githubusercontent.com/feast-dev/feast/refs/tags/v%s/infra/feast-operator/test/testdata/feast_integration_test_crs/v1alpha1_remote_registry_featurestore.yaml", feastversion.FeastVersion) } + +func CreateNamespace(namespace string, testDir string) error { + cmd := exec.Command("kubectl", "create", "ns", namespace) + output, err := Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to create namespace %s: %v\nOutput: %s", namespace, err, output) + } + return nil +} + +func DeleteNamespace(namespace string, testDir string) error { + cmd := exec.Command("kubectl", "delete", "ns", namespace, "--timeout=180s") + output, err := Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to delete namespace %s: %v\nOutput: %s", namespace, err, output) + } + return nil +} From e86a498bd0b811d6aa10872ac14da24b27394023 Mon Sep 17 00:00:00 2001 From: Puneet Sharma Date: Thu, 30 Oct 2025 19:08:01 +0530 Subject: [PATCH 02/37] ODH Feature Server Power Support (#44) * Updating dockerfile and prebuild script for power arch * replace CentOS Stream repo * add Power support for feature server * Supports building Power-specific wheels * Addresses coderabbit review comment * Addressing coderabbit review comment * remove setuptools version pin * feature-server: dynamically detect package versions in Power prebuild * feature-server: fix error message to show correct release version * Addressing coderabbit review comment * feature-server: use Python-version variable in fallback URL for Power prebuild --- .../feature_servers/multicloud/Dockerfile | 20 +++ .../multicloud/prebuild-power-base.sh | 144 ++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 sdk/python/feast/infra/feature_servers/multicloud/prebuild-power-base.sh diff --git a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile index c98b358f079..6a34c31c2b9 100644 --- a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile +++ b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile @@ -1,7 +1,27 @@ FROM registry.access.redhat.com/ubi9/python-311:1 +# OS Packages needs to be installed as root +USER 0 + +# Copy Power prebuild script +COPY prebuild-power-base.sh /prebuild-power.sh +RUN chmod +x /prebuild-power.sh + COPY requirements.txt requirements.txt + +# Run prebuild script conditionally (Power only) +RUN if [ "$(uname -m)" = "ppc64le" ]; then \ + echo "Power architecture detected. Running prebuild script..."; \ + /prebuild-power.sh && pip install /wheelhouse/*.whl; \ + echo "Listing built wheels:" && ls -lh /wheelhouse; \ + else \ + echo "Non-Power architecture detected; skipping Power prebuild"; \ + fi + RUN pip install -r requirements.txt # modify permissions to support running with a random uid RUN chmod g+w $(python -c "import feast.ui as ui; print(ui.__path__)" | tr -d "[']")/build/projects-list.json + +# Switch back to the default non-root user +USER 1001 diff --git a/sdk/python/feast/infra/feature_servers/multicloud/prebuild-power-base.sh b/sdk/python/feast/infra/feature_servers/multicloud/prebuild-power-base.sh new file mode 100644 index 00000000000..9ba044b1480 --- /dev/null +++ b/sdk/python/feast/infra/feature_servers/multicloud/prebuild-power-base.sh @@ -0,0 +1,144 @@ +#!/bin/bash +set -Eeuo pipefail +trap 'echo "[prebuild-power] failed at line $LINENO"; exit 1' ERR +shopt -s dotglob nullglob +PYTHON_VERSION=3.11 +WORKDIR=$(pwd) + +echo "[prebuild-power] Starting prebuild script..." + +# Detect release version from requirements.txt if not already provided +if [[ -z "${RELEASE_VERSION:-}" && -f "requirements.txt" ]]; then + RELEASE_VERSION=$(grep -E '^feast\[minimal\]' requirements.txt | sed -E 's/.*==\s*([0-9]+\.[0-9]+\.[0-9]+).*/v\1/') + echo "[prebuild-power] Detected RELEASE_VERSION=$RELEASE_VERSION from requirements.txt" +fi + +# URL to requirements file (using the release version) +REQ_FILE_URL="https://raw.githubusercontent.com/opendatahub-io/feast/${RELEASE_VERSION}/sdk/python/requirements/py${PYTHON_VERSION}-ci-requirements.txt" + +# Fetch the file +echo "[prebuild-power] Fetching package versions from $REQ_FILE_URL ..." +if ! REQ_CONTENT=$(curl -fsSL "$REQ_FILE_URL"); then + echo "[prebuild-power] Failed to fetch from '$RELEASE_VERSION'. Falling back to master..." + REQ_FILE_URL="https://raw.githubusercontent.com/opendatahub-io/feast/master/sdk/python/requirements/py${PYTHON_VERSION}-ci-requirements.txt" + REQ_CONTENT=$(curl -fsSL "$REQ_FILE_URL") +fi + +# Extract package versions +DUCKDB_VER=$(echo "$REQ_CONTENT" | grep -E "^duckdb==" | head -n1 | sed -E 's/.*==([0-9a-zA-Z\.\-]+).*/\1/') +GRPCIO_VER=$(echo "$REQ_CONTENT" | grep -E "^grpcio==" | head -n1 | sed -E 's/.*==([0-9a-zA-Z\.\-]+).*/\1/') +PYARROW_VER=$(echo "$REQ_CONTENT" | grep -E "^pyarrow==" | head -n1 | sed -E 's/.*==([0-9a-zA-Z\.\-]+).*/\1/') +MILVUS_VER=$(echo "$REQ_CONTENT" | grep -E "^milvus-lite==" | head -n1 | sed -E 's/.*==([0-9a-zA-Z\.\-]+).*/\1/') + +echo "[prebuild-power] Detected versions:" +echo " duckdb=$DUCKDB_VER" +echo " grpcio=$GRPCIO_VER" +echo " pyarrow=$PYARROW_VER" +echo " milvus-lite=$MILVUS_VER" + +# Ensure all versions were detected +if [[ -z "$DUCKDB_VER" || -z "$GRPCIO_VER" || -z "$PYARROW_VER" || -z "$MILVUS_VER" ]]; then + echo "[prebuild-power] Error: One or more package versions could not be detected." + exit 1 +fi + +dnf install -y gcc-toolset-13 make cmake ninja-build libomp-devel \ + git python${PYTHON_VERSION} python${PYTHON_VERSION}-devel python${PYTHON_VERSION}-pip \ + openssl openssl-devel zlib-devel libuuid-devel + +# Enable GCC toolset +source /opt/rh/gcc-toolset-13/enable +export CXX=/opt/rh/gcc-toolset-13/root/usr/bin/g++ + +# Ensure CXXFLAGS and LINKFLAGS are initialized +: "${CMAKE_ARGS:=""}" +: "${CXXFLAGS:=""}" +: "${CFLAGS:=""}" +: "${LINKFLAGS:=""}" + +# Installing Python build dependencies +python${PYTHON_VERSION} -m pip install build wheel setuptools ninja pybind11 numpy setuptools_scm Cython==3.0.8 + +# Directory to collect built wheels +mkdir -p /wheelhouse + +####################################################### +# Build DuckDB (Python package) +####################################################### +echo "[prebuild-power] Building duckdb==$DUCKDB_VER ..." +git clone https://github.com/duckdb/duckdb.git +cd duckdb +git checkout "v${DUCKDB_VER}" +cd tools/pythonpkg +python${PYTHON_VERSION} -m build --wheel --no-isolation +ls dist/*.whl >/dev/null +cp -v dist/*.whl /wheelhouse/ +cd $WORKDIR + +####################################################### +# Build gRPC (Python package) +####################################################### +echo "[prebuild-power] Building grpcio==$GRPCIO_VER ..." +GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 python${PYTHON_VERSION} -m pip install --no-binary=:all: "grpcio==${GRPCIO_VER}" + +####################################################### +# Build Pyarrow (Python package) +####################################################### +echo "[prebuild-power] Building pyarrow==$PYARROW_VER ..." +git clone https://github.com/apache/arrow.git +cd arrow +git checkout "apache-arrow-${PYARROW_VER}" +git submodule update --init --recursive +cd cpp +mkdir -p release && cd release +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr/local \ + -DARROW_PYTHON=ON \ + -DARROW_PARQUET=ON \ + -DARROW_ORC=ON \ + -DARROW_FILESYSTEM=ON \ + -DARROW_WITH_LZ4=ON \ + -DARROW_WITH_ZSTD=ON \ + -DARROW_WITH_SNAPPY=ON \ + -DARROW_JSON=ON \ + -DARROW_CSV=ON \ + -DARROW_DATASET=ON \ + -DARROW_S3=ON \ + -DARROW_BUILD_TESTS=OFF \ + -DARROW_SUBSTRAIT=ON \ + -DProtobuf_SOURCE=BUNDLED \ + -DARROW_DEPENDENCY_SOURCE=BUNDLED \ + .. +make -j"$(nproc)" +make install +cd ../../python +export BUILD_TYPE=release +python${PYTHON_VERSION} setup.py build_ext --build-type=$BUILD_TYPE --bundle-arrow-cpp bdist_wheel +ls dist/*.whl >/dev/null +cp -v dist/*.whl /wheelhouse/ +cd $WORKDIR + +####################################################### +# Build Milvus-Lite (Python package) +####################################################### +echo "[prebuild-power] Building milvus-lite==$MILVUS_VER ..." +# Remove gcc-toolset-13; Milvus-Lite build (via Conan) requires standard gcc +dnf remove -y gcc-toolset-13 + +dnf install -y perl ncurses-devel wget openblas-devel cargo gcc gcc-c++ libstdc++-static which libaio \ + libtool m4 autoconf automake zlib-devel libffi-devel scl-utils xz + +export CC=gcc +export CXX=g++ +export CXXFLAGS="-std=c++17" + +python${PYTHON_VERSION} -m pip install conan==1.64.1 + +git clone https://github.com/milvus-io/milvus-lite +cd milvus-lite/python +git checkout "v${MILVUS_VER}" +git submodule update --init --recursive +python${PYTHON_VERSION} -m pip install -v -e . +cd $WORKDIR + +echo "[prebuild-power] All packages built successfully." From 3c4d48910c5b628a4956ab0f2a5629716f46d877 Mon Sep 17 00:00:00 2001 From: Jitendra Yejare Date: Tue, 16 Dec 2025 19:37:55 +0530 Subject: [PATCH 03/37] feat: Feast Controller to hold feast Client configmaps for notebook (#50) * Feast Controller to hold feast Client configmaps for notebook Signed-off-by: jyejare * Notebook CRD exists check, Comments fix Signed-off-by: jyejare --------- Signed-off-by: jyejare --- infra/feast-operator/cmd/main.go | 84 +++ infra/feast-operator/config/rbac/role.yaml | 27 + infra/feast-operator/dist/install.yaml | 27 + .../docs/notebook-configmap-integration.md | 219 ++++++ .../notebook_configmap_controller.go | 509 ++++++++++++++ .../notebook_configmap_controller_test.go | 633 ++++++++++++++++++ 6 files changed, 1499 insertions(+) create mode 100644 infra/feast-operator/docs/notebook-configmap-integration.md create mode 100644 infra/feast-operator/internal/controller/notebook_configmap_controller.go create mode 100644 infra/feast-operator/internal/controller/notebook_configmap_controller_test.go diff --git a/infra/feast-operator/cmd/main.go b/infra/feast-operator/cmd/main.go index 4be1777ac72..342189c06c0 100644 --- a/infra/feast-operator/cmd/main.go +++ b/infra/feast-operator/cmd/main.go @@ -17,18 +17,26 @@ limitations under the License. package main import ( + "context" "crypto/tls" "flag" + "fmt" "os" + "strings" // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.) // to ensure that exec-entrypoint and run can make use of them. _ "k8s.io/client-go/plugin/pkg/client/auth" corev1 "k8s.io/api/core/v1" + apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" + apierrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" + "k8s.io/client-go/rest" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/healthz" @@ -168,6 +176,37 @@ func main() { setupLog.Error(err, "unable to create controller", "controller", "FeatureStore") os.Exit(1) } + + // Setup Notebook ConfigMap controller for OpenDataHub integration + // Default to kubeflow.org/v1 Notebook CRD (used by OpenDataHub) + notebookGVK := schema.GroupVersionKind{ + Group: "kubeflow.org", + Version: "v1", + Kind: "Notebook", + } + // Validate Notebook CRD availability and skip controller setup if CRD is missing + crdExists, err := validateNotebookCRD(mgr.GetConfig(), notebookGVK) + if err != nil { + setupLog.Error(err, "Notebook CRD validation failed for feast specific configmap", "GVK", notebookGVK) + // If we can't verify (e.g., permission denied), set up controller anyway + // If CRD is confirmed missing, skip controller setup + if !crdExists { + setupLog.Info("Skipping Notebook ConfigMap controller setup - Notebook CRD not found") + } else { + setupLog.Info("Notebook ConfigMap controller will be set up anyway (could not verify CRD)") + } + } + if crdExists { + if err = (&controller.NotebookConfigMapReconciler{ + Client: mgr.GetClient(), + Scheme: mgr.GetScheme(), + NotebookGVK: notebookGVK, + }).SetupWithManager(mgr); err != nil { + setupLog.Error(err, "unable to create controller", "controller", "NotebookConfigMap") + os.Exit(1) + } + setupLog.Info("Notebook ConfigMap controller setup completed successfully") + } // +kubebuilder:scaffold:builder if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil { @@ -185,3 +224,48 @@ func main() { os.Exit(1) } } + +// validateNotebookCRD checks if the Notebook CRD exists in the cluster +// Returns (crdExists bool, error) where crdExists is true if CRD exists, false if not found or unknown +func validateNotebookCRD(config *rest.Config, gvk schema.GroupVersionKind) (bool, error) { + apiextensionsClientset, err := apiextensionsclient.NewForConfig(config) + if err != nil { + return false, fmt.Errorf("failed to create apiextensions client: %w", err) + } + + // Construct CRD name from GVK (format: plural.group) + // For kubeflow.org/v1 Notebook, the CRD name is "notebooks.kubeflow.org" + // Simple heuristic: convert Kind to lowercase and add 's' for plural + plural := strings.ToLower(gvk.Kind) + "s" + crdName := plural + "." + gvk.Group + + _, err = apiextensionsClientset.ApiextensionsV1().CustomResourceDefinitions().Get( + context.Background(), + crdName, + metav1.GetOptions{}, + ) + if err != nil { + if apierrors.IsNotFound(err) { + // Not an error: integration is optional and controller setup will be skipped. + setupLog.Info( + "Notebook CRD not found; skipping Notebook ConfigMap controller setup", + "GVK", gvk, + "expectedCRD", crdName, + ) + return false, nil + } + if apierrors.IsForbidden(err) { + // Can't verify - assume it might exist and let controller try + setupLog.Info( + "Unable to validate Notebook CRD (insufficient permissions), will attempt setup", + "CRD", crdName, + "GVK", gvk, + ) + return true, nil // Return true to allow controller setup + } + return false, fmt.Errorf("failed to check Notebook CRD availability: %w", err) + } + + setupLog.Info("Notebook CRD validated successfully", "CRD", crdName, "GVK", gvk) + return true, nil +} diff --git a/infra/feast-operator/config/rbac/role.yaml b/infra/feast-operator/config/rbac/role.yaml index 56a952dd95c..6338da867af 100644 --- a/infra/feast-operator/config/rbac/role.yaml +++ b/infra/feast-operator/config/rbac/role.yaml @@ -4,6 +4,13 @@ kind: ClusterRole metadata: name: manager-role rules: +- apiGroups: + - apiextensions.k8s.io + resources: + - customresourcedefinitions + verbs: + - get + - list - apiGroups: - apps resources: @@ -33,6 +40,18 @@ rules: - patch - update - watch +- apiGroups: + - "" + resources: + - configmaps + verbs: + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - "" resources: @@ -89,6 +108,14 @@ rules: - get - patch - update +- apiGroups: + - kubeflow.org + resources: + - notebooks + verbs: + - get + - list + - watch - apiGroups: - rbac.authorization.k8s.io resources: diff --git a/infra/feast-operator/dist/install.yaml b/infra/feast-operator/dist/install.yaml index 31069afe147..42a54883520 100644 --- a/infra/feast-operator/dist/install.yaml +++ b/infra/feast-operator/dist/install.yaml @@ -16525,6 +16525,13 @@ kind: ClusterRole metadata: name: feast-operator-manager-role rules: +- apiGroups: + - apiextensions.k8s.io + resources: + - customresourcedefinitions + verbs: + - get + - list - apiGroups: - apps resources: @@ -16554,6 +16561,18 @@ rules: - patch - update - watch +- apiGroups: + - "" + resources: + - configmaps + verbs: + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - "" resources: @@ -16610,6 +16629,14 @@ rules: - get - patch - update +- apiGroups: + - kubeflow.org + resources: + - notebooks + verbs: + - get + - list + - watch - apiGroups: - rbac.authorization.k8s.io resources: diff --git a/infra/feast-operator/docs/notebook-configmap-integration.md b/infra/feast-operator/docs/notebook-configmap-integration.md new file mode 100644 index 00000000000..ebf9359fec3 --- /dev/null +++ b/infra/feast-operator/docs/notebook-configmap-integration.md @@ -0,0 +1,219 @@ +# Notebook ConfigMap Integration + +## Overview + +The Feast operator can watch OpenDataHub Notebook custom resources and automatically create/update a `notebook-feast-config` ConfigMap in each notebook's namespace. This ConfigMap contains Feast client configuration for all projects referenced by the notebook's annotation. + +## Architecture + +The integration works bidirectionally: + +1. **Notebook → ConfigMap**: When a Notebook's annotation changes, the operator creates/updates the `notebook-feast-config` with Feast client configs for all referenced projects. + +2. **FeatureStore → ConfigMap**: When a FeatureStore's client ConfigMap changes, the operator updates all `notebook-feast-config` that reference that project. + +## Label Format + +Notebooks must have the following label: + +```yaml +labels: + opendatahub.io/feast-integration: "true" +``` +And the following annotation: + +```yaml +annotations: + opendatahub.io/feast-config: "project1,project2,project3" +``` + +The annotation value is a comma-separated list of Feast project names. The operator will: +- Fetch the client ConfigMap for each project from the FeatureStore +- Create/update `notebook-feast-config` in the notebook's namespace +- Use project names as keys and client ConfigMap YAML content as values + +## ConfigMap Structure + +The `notebook-feast-config` ConfigMap is created in the same namespace as the Notebook and has the following structure: + +```yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: -feast-config + namespace: + labels: + managed-by: feast-operator + ownerReferences: + - apiVersion: kubeflow.org/v1 + kind: Notebook + name: + uid: +data: + : | + +``` + +Each key in `data` is a Feast project name, and the value is the YAML content from that project's client ConfigMap. The ConfigMap is owned by the Notebook and will be deleted when the Notebook is deleted. + +## How It Works + +### 1. Notebook Reconciliation + +When a Notebook is created or updated: + +1. Operator checks for `opendatahub.io/feast-integration` label is set to `true` +2. Parses comma-separated project names from `opendatahub.io/feast-config` annotation +3. Creates/updates `notebook-feast-config` ConfigMap with project names as keys and YAML content from the project's client ConfigMap as values in the notebook's namespace + +### 2. FeatureStore Reconciliation + +When a FeatureStore's client ConfigMap changes: + +1. Operator identifies the project name from the FeatureStore's `spec.feastProject` +2. Lists all Notebooks across all namespaces +3. For each Notebook with the project in its `opendatahub.io/feast-config` annotation: + - Triggers reconciliation of that Notebook's `notebook-feast-config` ConfigMap +4. Updates the `notebook-feast-config` ConfigMap with the new client config + +### 3. Cleanup + +When a Notebook is deleted: +- The `notebook-feast-config` ConfigMap is automatically deleted (via owner reference) + +When a project is removed from a Notebook's `opendatahub.io/feast-config` annotation: +- The corresponding entry is removed from the ConfigMap + +## Example Usage + +### 1. Create a FeatureStore + +```yaml +apiVersion: feast.dev/v1alpha1 +kind: FeatureStore +metadata: + name: my-feast-store + namespace: feast-system +spec: + feastProject: my-project + services: + # ... service configuration +``` + +This creates a client ConfigMap (e.g., `my-feast-store-client`) with the Feast configuration. + +### 2. Create a Notebook with Feast Projects + +```yaml +apiVersion: kubeflow.org/v1 +kind: Notebook +metadata: + name: my-notebook + namespace: user-namespace + labels: + opendatahub.io/feast-integration: "true" + annotations: + opendatahub.io/feast-config: "my-project,another-project" +spec: + # ... notebook configuration +``` + +The operator automatically creates `my-notebook-feast-config` ConfigMap in `user-namespace`: + +```yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: my-notebook-feast-config + namespace: user-namespace + labels: + managed-by: feast-operator + ownerReferences: + - apiVersion: kubeflow.org/v1 + kind: Notebook + name: my-notebook + uid: +data: + my-project: | + # YAML content from my-project's client ConfigMap + another-project: | + # YAML content from another-project's client ConfigMap +``` + +### 3. Update Notebook Annotation + +If you update the Notebook annotation: + +```yaml +annotations: + opendatahub.io/feast-config: "my-project" # Removed another-project +``` + +The operator automatically removes `another-project` from the ConfigMap. + +### 4. Update FeatureStore + +If you update the FeatureStore configuration, the operator automatically updates all `my-notebook-feast-config` ConfigMaps that reference that project. + +## Configuration + +The Notebook GVK is configured in `cmd/main.go`: + +```go +notebookGVK := schema.GroupVersionKind{ + Group: "kubeflow.org", + Version: "v1", + Kind: "Notebook", +} +``` + +To use a different Notebook CRD, modify this GVK accordingly. + +## RBAC Permissions + +The operator requires the following permissions: + +```yaml +- apiGroups: + - kubeflow.org + resources: + - notebooks + verbs: + - get + - list + - watch +- apiGroups: + - feast.dev + resources: + - featurestores + verbs: + - get + - list + - watch +- apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +``` + +## Troubleshooting + +### ConfigMap Not Created + +- Verify the Notebook has the `opendatahub.io/feast-integration` label set to `true` +- Check that the annotation `opendatahub.io/feast-config` contains valid project names +- Ensure FeatureStores exist for all referenced projects +- Check operator logs for errors +### Project Not Found +- Ensure a FeatureStore exists with `spec.feastProject` matching the project name +- Verify the FeatureStore is in Ready state +- Check that the FeatureStore has a client ConfigMap created + diff --git a/infra/feast-operator/internal/controller/notebook_configmap_controller.go b/infra/feast-operator/internal/controller/notebook_configmap_controller.go new file mode 100644 index 00000000000..6f5f69cbe4a --- /dev/null +++ b/infra/feast-operator/internal/controller/notebook_configmap_controller.go @@ -0,0 +1,509 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package controller + +import ( + "context" + "fmt" + "strings" + + corev1 "k8s.io/api/core/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/types" + ctrl "sigs.k8s.io/controller-runtime" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" + handler "sigs.k8s.io/controller-runtime/pkg/handler" + "sigs.k8s.io/controller-runtime/pkg/log" + "sigs.k8s.io/controller-runtime/pkg/reconcile" + + feastdevv1alpha1 "github.com/feast-dev/feast/infra/feast-operator/api/v1alpha1" + "github.com/feast-dev/feast/infra/feast-operator/internal/controller/services" +) + +const ( + // NotebookFeastIntegrationLabel is the label that must be set to 'true' to enable feast integration + NotebookFeastIntegrationLabel = "opendatahub.io/feast-integration" + // NotebookFeastConfigAnnotation is the annotation key on Notebooks that contains comma-separated feast project names + NotebookFeastConfigAnnotation = "opendatahub.io/feast-config" + // NotebookConfigMapNameSuffix is the suffix for ConfigMap names created for each notebook + NotebookConfigMapNameSuffix = "-feast-config" + // TrueValue is the value that indicates feast integration is enabled + TrueValue = "true" +) + +// NotebookConfigMapReconciler reconciles Notebooks to create/update notebook-feast-config ConfigMaps +// based on feast project annotations +type NotebookConfigMapReconciler struct { + client.Client + Scheme *runtime.Scheme + // NotebookGVK is the GroupVersionKind of the Notebook custom resource + NotebookGVK schema.GroupVersionKind +} + +// +kubebuilder:rbac:groups=kubeflow.org,resources=notebooks,verbs=get;list;watch +// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=feast.dev,resources=featurestores,verbs=get;list;watch +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list + +// Reconcile handles Notebook reconciliation +func (r *NotebookConfigMapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { + logger := log.FromContext(ctx) + // Fetch the Notebook + notebook := &unstructured.Unstructured{} + notebook.SetGroupVersionKind(r.NotebookGVK) + if err := r.Get(ctx, req.NamespacedName, notebook); err != nil { + if apierrors.IsNotFound(err) { + // Notebook deleted - ConfigMap will be automatically deleted via owner reference + logger.V(1).Info("Notebook not found, ConfigMap will be cleaned up by owner reference") + return ctrl.Result{}, nil + } + logger.Error(err, "Unable to fetch Notebook") + return ctrl.Result{}, err + } + + // If Notebook is being deleted, owner reference will handle ConfigMap cleanup + if notebook.GetDeletionTimestamp() != nil { + logger.V(1).Info("Notebook is being deleted, ConfigMap will be cleaned up by owner reference") + return ctrl.Result{}, nil + } + + // Check if feast integration is enabled via label + labels := notebook.GetLabels() + if labels == nil { + logger.V(1).Info("No integration label found on Notebook, skipping reconciliation") + return r.cleanupNotebookConfigMap(ctx, req.Namespace, req.Name) + } + + feastIntegrationEnabled, exists := labels[NotebookFeastIntegrationLabel] + if !exists || feastIntegrationEnabled != TrueValue { + logger.V(1).Info("Feast integration not enabled, skipping reconciliation", "label", NotebookFeastIntegrationLabel, "value", feastIntegrationEnabled) + return r.cleanupNotebookConfigMap(ctx, req.Namespace, req.Name) + } + + // Extract feast project names from annotation + annotations := notebook.GetAnnotations() + + feastConfigAnnotation, exists := annotations[NotebookFeastConfigAnnotation] + if feastIntegrationEnabled == TrueValue && (!exists || feastConfigAnnotation == "") { + logger.V(1).Info("No feast config annotation found on Notebook, still keeping the ConfigMap for the notebook") + } + // Parse comma-separated project names from annotation + projectNames := r.parseProjectNames(feastConfigAnnotation) + + logger.Info("Reconciling notebook ConfigMap", "projects", projectNames, "namespace", req.Namespace) + + // Create or update the notebook-feast-config ConfigMap + if err := r.reconcileNotebookConfigMap(ctx, req.Namespace, notebook, projectNames); err != nil { + logger.Error(err, "Failed to reconcile notebook ConfigMap") + return ctrl.Result{}, err + } + + return ctrl.Result{}, nil +} + +// parseProjectNames parses comma-separated project names from the label value +func (r *NotebookConfigMapReconciler) parseProjectNames(labelValue string) []string { + projects := strings.Split(labelValue, ",") + var validProjects []string + for _, project := range projects { + project = strings.TrimSpace(project) + if project != "" { + validProjects = append(validProjects, project) + } + } + return validProjects +} + +// reconcileNotebookConfigMap creates or updates the notebook-feast-config ConfigMap for this notebook +func (r *NotebookConfigMapReconciler) reconcileNotebookConfigMap( + ctx context.Context, + namespace string, + notebook client.Object, + projectNames []string, +) error { + logger := log.FromContext(ctx) + + // Each notebook gets its own ConfigMap with a unique name + configMapName := fmt.Sprintf("%s%s", notebook.GetName(), NotebookConfigMapNameSuffix) + configMap := &corev1.ConfigMap{ + ObjectMeta: metav1.ObjectMeta{ + Name: configMapName, + Namespace: namespace, + }, + } + + if op, err := controllerutil.CreateOrUpdate(ctx, r.Client, configMap, func() error { + return r.setNotebookConfigMapData(ctx, configMap, notebook, projectNames) + }); err != nil { + return fmt.Errorf("failed to create or update notebook ConfigMap: %w", err) + } else if op == controllerutil.OperationResultCreated || op == controllerutil.OperationResultUpdated { + logger.Info("Successfully reconciled notebook ConfigMap", "ConfigMap", configMap.Name, "operation", op) + } + + return nil +} + +// setNotebookConfigMapData sets the ConfigMap data with feast project configs for this specific notebook +func (r *NotebookConfigMapReconciler) setNotebookConfigMapData( + ctx context.Context, + cm *corev1.ConfigMap, + notebook client.Object, + projectNames []string, +) error { + logger := log.FromContext(ctx) + + if cm.Data == nil { + cm.Data = make(map[string]string) + } + + // Track which projects should exist + expectedProjects := make(map[string]bool) + for _, projectName := range projectNames { + expectedProjects[projectName] = true + } + + // Add or update projects that are in the annotation + // This always fetches fresh data, so any updates to FeatureStore client ConfigMaps will be picked up + for _, projectName := range projectNames { + clientConfigYAML, err := r.getClientConfigYAMLForProject(ctx, projectName) + if err != nil { + // Log error and remove this project from ConfigMap if it exists + logger.Error(err, "Failed to get client config for project, removing from ConfigMap", "project", projectName, "notebook", notebook.GetName()) + delete(cm.Data, projectName) + continue + } + + // Check if this is an update + existingYAML, exists := cm.Data[projectName] + if exists && existingYAML != clientConfigYAML { + logger.Info("Updating project config in ConfigMap (FeatureStore client ConfigMap changed)", "project", projectName, "notebook", notebook.GetName()) + } + + // Set or update the project config + cm.Data[projectName] = clientConfigYAML + } + + // Remove projects that are no longer in the annotation + for key := range cm.Data { + if !expectedProjects[key] { + logger.Info("Removing project from ConfigMap (no longer in annotation)", "project", key, "notebook", notebook.GetName()) + delete(cm.Data, key) + } + } + + // Set labels + if cm.Labels == nil { + cm.Labels = make(map[string]string) + } + cm.Labels["managed-by"] = "feast-operator" + cm.Labels["source-resource"] = notebook.GetName() + cm.Labels["source-kind"] = notebook.GetObjectKind().GroupVersionKind().Kind + + // Set owner reference to the Notebook with blockOwnerDeletion: false + // This is required because Notebook CRD doesn't support finalizers + // The owner reference still allows Kubernetes to track the relationship + // and we handle cleanup manually in Reconcile() when Notebook is deleted + gvk := notebook.GetObjectKind().GroupVersionKind() + controller := false + blockOwnerDeletion := false + cm.OwnerReferences = []metav1.OwnerReference{ + { + APIVersion: gvk.GroupVersion().String(), + Kind: gvk.Kind, + Name: notebook.GetName(), + UID: notebook.GetUID(), + Controller: &controller, + BlockOwnerDeletion: &blockOwnerDeletion, + }, + } + + return nil +} + +// getClientConfigYAMLForProject finds a FeatureStore with the given project name and returns its client config YAML +func (r *NotebookConfigMapReconciler) getClientConfigYAMLForProject(ctx context.Context, projectName string) (string, error) { + logger := log.FromContext(ctx) + + // List all FeatureStores to find one with matching feastProject + var featureStoreList feastdevv1alpha1.FeatureStoreList + if err := r.List(ctx, &featureStoreList, client.InNamespace("")); err != nil { + return "", fmt.Errorf("failed to list FeatureStores: %w", err) + } + + // Find FeatureStore with matching project name + // Try to match by spec.feastProject first, then by metadata.name as fallback + var matchingFeatureStore *feastdevv1alpha1.FeatureStore + + for i := range featureStoreList.Items { + fs := &featureStoreList.Items[i] + var matches bool + + // First, try to match by spec.feastProject + project := fs.Spec.FeastProject + if fs.Status.Applied.FeastProject != "" { + project = fs.Status.Applied.FeastProject + } + if project == projectName { + matches = true + } else if fs.GetName() == projectName { + // Fallback: match by FeatureStore metadata name + matches = true + } + + if matches { + if fs.Status.ClientConfigMap != "" { + matchingFeatureStore = fs + break + } + } + } + + if matchingFeatureStore == nil { + // Provide helpful error message with available projects + var availableProjects []string + for i := range featureStoreList.Items { + fs := &featureStoreList.Items[i] + project := fs.Spec.FeastProject + if fs.Status.Applied.FeastProject != "" { + project = fs.Status.Applied.FeastProject + } + if project != "" { + availableProjects = append(availableProjects, fmt.Sprintf("%s (FeatureStore: %s/%s)", project, fs.Namespace, fs.Name)) + } + } + + if len(availableProjects) > 0 { + return "", fmt.Errorf("no FeatureStore found with feastProject: %s. Available projects are: %v", projectName, availableProjects) + } + return "", fmt.Errorf("no FeatureStore found with feastProject: %s. No FeatureStores found in the cluster", projectName) + } + + // Get the client configmap name from status + clientConfigMapName := matchingFeatureStore.Status.ClientConfigMap + if clientConfigMapName == "" { + featureStoreKey := fmt.Sprintf("%s/%s", matchingFeatureStore.Namespace, matchingFeatureStore.Name) + logger.Error(nil, "FeatureStore found but has no ClientConfigMap", "featurestore", featureStoreKey) + return "", fmt.Errorf("FeatureStore %s/%s does not have a client ConfigMap (may still be deploying)", matchingFeatureStore.Namespace, matchingFeatureStore.Name) + } + + // Fetch the client configmap + clientConfigMap := &corev1.ConfigMap{} + clientConfigMapKey := types.NamespacedName{ + Name: clientConfigMapName, + Namespace: matchingFeatureStore.Namespace, + } + + if err := r.Get(ctx, clientConfigMapKey, clientConfigMap); err != nil { + return "", fmt.Errorf("failed to get client ConfigMap %s: %w", clientConfigMapKey, err) + } + + // Extract the YAML content + yamlContent, exists := clientConfigMap.Data[services.FeatureStoreYamlCmKey] + if !exists { + return "", fmt.Errorf("client ConfigMap %s does not contain key %s", clientConfigMapName, services.FeatureStoreYamlCmKey) + } + + return yamlContent, nil +} + +// cleanupNotebookConfigMap removes the notebook-feast-config ConfigMap when integration label is completely removed and config annotation is empty +func (r *NotebookConfigMapReconciler) cleanupNotebookConfigMap(ctx context.Context, namespace, notebookName string) (ctrl.Result, error) { + logger := log.FromContext(ctx) + + configMapName := fmt.Sprintf("%s%s", notebookName, NotebookConfigMapNameSuffix) + configMap := &corev1.ConfigMap{} + if err := r.Get(ctx, types.NamespacedName{Name: configMapName, Namespace: namespace}, configMap); err != nil { + if apierrors.IsNotFound(err) { + return ctrl.Result{}, nil + } + return ctrl.Result{}, err + } + + if err := r.Delete(ctx, configMap); err != nil { + if apierrors.IsNotFound(err) { + return ctrl.Result{}, nil + } + logger.Error(err, "Failed to delete notebook ConfigMap", "ConfigMap", configMapName) + return ctrl.Result{}, err + } + + logger.Info("Deleted notebook ConfigMap (label removed)", "ConfigMap", configMapName, "namespace", namespace) + return ctrl.Result{}, nil +} + +// mapFeatureStoreToNotebookRequests maps a FeatureStore change to all Notebooks that reference its project +// This is called when a FeatureStore CR is created, updated, or deleted +func (r *NotebookConfigMapReconciler) mapFeatureStoreToNotebookRequests(ctx context.Context, obj client.Object) []reconcile.Request { + logger := log.FromContext(ctx) + + featureStore, ok := obj.(*feastdevv1alpha1.FeatureStore) + if !ok { + return nil + } + + // Get the project name from the FeatureStore + projectName := featureStore.Spec.FeastProject + if featureStore.Status.Applied.FeastProject != "" { + projectName = featureStore.Status.Applied.FeastProject + } + + if projectName == "" { + return nil + } + + logger.V(1).Info("FeatureStore changed, finding affected Notebooks", "project", projectName, "featurestore", fmt.Sprintf("%s/%s", featureStore.Namespace, featureStore.Name)) + + // List all Notebooks across all namespaces + notebookList := &unstructured.UnstructuredList{} + notebookList.SetGroupVersionKind(schema.GroupVersionKind{ + Group: r.NotebookGVK.Group, + Version: r.NotebookGVK.Version, + Kind: r.NotebookGVK.Kind + "List", + }) + + if err := r.List(ctx, notebookList, client.InNamespace("")); err != nil { + logger.Error(err, "Failed to list Notebooks") + return nil + } + + var requests []reconcile.Request + for i := range notebookList.Items { + notebook := ¬ebookList.Items[i] + labels := notebook.GetLabels() + if labels == nil { + continue + } + + // Check if feast integration is enabled + feastIntegrationEnabled, exists := labels[NotebookFeastIntegrationLabel] + if !exists || feastIntegrationEnabled != TrueValue { + continue + } + + // Read projects from annotation + annotations := notebook.GetAnnotations() + if annotations == nil { + continue + } + + feastConfigAnnotation, exists := annotations[NotebookFeastConfigAnnotation] + if !exists || feastConfigAnnotation == "" { + continue + } + + // Check if this notebook references the project + projectNames := r.parseProjectNames(feastConfigAnnotation) + for _, name := range projectNames { + if name == projectName { + requests = append(requests, reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebook.GetName(), + Namespace: notebook.GetNamespace(), + }, + }) + break + } + } + } + + if len(requests) > 0 { + logger.Info("FeatureStore change triggers Notebook reconciliation", "project", projectName, "notebooks", len(requests)) + } + + return requests +} + +// mapConfigMapToNotebookRequest maps a ConfigMap change back to its owning Notebook +// This ensures that if a user deletes or modifies the ConfigMap, it gets recreated/restored +func (r *NotebookConfigMapReconciler) mapConfigMapToNotebookRequest(ctx context.Context, obj client.Object) []reconcile.Request { + configMap, ok := obj.(*corev1.ConfigMap) + if !ok { + return nil + } + + // Check if this is a notebook ConfigMap by checking the name suffix + if !strings.HasSuffix(configMap.Name, NotebookConfigMapNameSuffix) { + return nil + } + + // Extract notebook name from ConfigMap name + // ConfigMap name format: {notebook-name}-feast-config + notebookName := strings.TrimSuffix(configMap.Name, NotebookConfigMapNameSuffix) + if notebookName == "" { + return nil + } + + // Check if ConfigMap has owner reference to a Notebook + // If it does, use that namespace, otherwise use ConfigMap's namespace + namespace := configMap.Namespace + for _, ownerRef := range configMap.OwnerReferences { + if ownerRef.Kind == r.NotebookGVK.Kind { + // Found Notebook owner reference + return []reconcile.Request{ + { + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + }, + } + } + } + + // If no owner reference, still try to reconcile the notebook + // (in case owner reference was removed or ConfigMap was recreated) + return []reconcile.Request{ + { + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + }, + } +} + +// SetupWithManager sets up the controller with the Manager +func (r *NotebookConfigMapReconciler) SetupWithManager(mgr ctrl.Manager) error { + // Create a source for unstructured Notebook resources + notebookSource := &unstructured.Unstructured{} + notebookSource.SetGroupVersionKind(r.NotebookGVK) + + bldr := ctrl.NewControllerManagedBy(mgr). + // For() watches Notebooks - any Notebook CRUD triggers Reconcile() + // Reconcile() filters to only process Notebooks with opendatahub.io/feast-integration label set to "true" + For(notebookSource). + // Watch ConfigMaps - when a notebook ConfigMap is modified or deleted, + // trigger reconciliation of the owning Notebook to restore it + Watches( + &corev1.ConfigMap{}, + handler.EnqueueRequestsFromMapFunc(r.mapConfigMapToNotebookRequest), + ). + // Watch FeatureStores - when a FeatureStore changes (CRUD), find all Notebooks + // that reference its project and trigger their reconciliation + // This ensures notebook ConfigMaps are updated when FeatureStore client configs change + Watches( + &feastdevv1alpha1.FeatureStore{}, + handler.EnqueueRequestsFromMapFunc(r.mapFeatureStoreToNotebookRequests), + ) + + return bldr.Complete(r) +} diff --git a/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go b/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go new file mode 100644 index 00000000000..e8b2cfb97ad --- /dev/null +++ b/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go @@ -0,0 +1,633 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package controller + +import ( + "context" + "fmt" + + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" + apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/types" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/reconcile" + + corev1 "k8s.io/api/core/v1" + + feastdevv1alpha1 "github.com/feast-dev/feast/infra/feast-operator/api/v1alpha1" + "github.com/feast-dev/feast/infra/feast-operator/internal/controller/services" +) + +var _ = Describe("NotebookConfigMap Controller", func() { + const ( + notebookName = "test-notebook" + namespace = "default" + projectName = "test-project" + featureStoreName = "test-featurestore" + clientConfigMapName = "test-featurestore-client" + ) + + var ( + ctx context.Context + reconciler *NotebookConfigMapReconciler + notebookGVK schema.GroupVersionKind + testYAMLContent string + ) + + BeforeEach(func() { + ctx = context.Background() + notebookGVK = schema.GroupVersionKind{ + Group: "kubeflow.org", + Version: "v1", + Kind: "Notebook", + } + + // Create Notebook CRD using apiextensions client + cfg := testEnv.Config + apiextensionsClientset, err := apiextensionsclient.NewForConfig(cfg) + Expect(err).NotTo(HaveOccurred()) + + crd := &apiextensionsv1.CustomResourceDefinition{ + ObjectMeta: metav1.ObjectMeta{ + Name: "notebooks.kubeflow.org", + }, + Spec: apiextensionsv1.CustomResourceDefinitionSpec{ + Group: "kubeflow.org", + Versions: []apiextensionsv1.CustomResourceDefinitionVersion{ + { + Name: "v1", + Served: true, + Storage: true, + Schema: &apiextensionsv1.CustomResourceValidation{ + OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{ + Type: "object", + Properties: map[string]apiextensionsv1.JSONSchemaProps{ + "spec": { + Type: "object", + }, + "status": { + Type: "object", + }, + }, + }, + }, + }, + }, + Scope: apiextensionsv1.NamespaceScoped, + Names: apiextensionsv1.CustomResourceDefinitionNames{ + Plural: "notebooks", + Singular: "notebook", + Kind: "Notebook", + }, + }, + } + + _, err = apiextensionsClientset.ApiextensionsV1().CustomResourceDefinitions().Create(ctx, crd, metav1.CreateOptions{}) + if err != nil && !errors.IsAlreadyExists(err) { + Expect(err).NotTo(HaveOccurred()) + } + + // Create and delete a dummy notebook to force the REST mapper to discover the CRD + dummyNotebook := &unstructured.Unstructured{} + dummyNotebook.SetGroupVersionKind(notebookGVK) + dummyNotebook.SetName("dummy-notebook-for-crd-discovery") + dummyNotebook.SetNamespace(namespace) + err = k8sClient.Create(ctx, dummyNotebook) + if err == nil { + _ = k8sClient.Delete(ctx, dummyNotebook) + } + + reconciler = &NotebookConfigMapReconciler{ + Client: k8sClient, + Scheme: k8sClient.Scheme(), + NotebookGVK: notebookGVK, + } + testYAMLContent = "project: test-project\nprovider: local" + }) + + AfterEach(func() { + // Clean up any test notebooks + notebookList := &unstructured.UnstructuredList{} + notebookList.SetGroupVersionKind(schema.GroupVersionKind{ + Group: notebookGVK.Group, + Version: notebookGVK.Version, + Kind: notebookGVK.Kind + "List", + }) + _ = k8sClient.List(ctx, notebookList, client.InNamespace(namespace)) + for i := range notebookList.Items { + _ = k8sClient.Delete(ctx, ¬ebookList.Items[i]) + } + + // Clean up all configmaps in the namespace (test configmaps) + configMapList := &corev1.ConfigMapList{} + _ = k8sClient.List(ctx, configMapList, client.InNamespace(namespace)) + for i := range configMapList.Items { + cm := &configMapList.Items[i] + // Delete all test-related configmaps + _ = k8sClient.Delete(ctx, cm) + } + + // Clean up feature stores + fsList := &feastdevv1alpha1.FeatureStoreList{} + _ = k8sClient.List(ctx, fsList, client.InNamespace(namespace)) + for i := range fsList.Items { + _ = k8sClient.Delete(ctx, &fsList.Items[i]) + } + }) + + createUnstructuredNotebook := func(name, ns string, labels, annotations map[string]string) *unstructured.Unstructured { + notebook := &unstructured.Unstructured{} + notebook.SetGroupVersionKind(notebookGVK) + notebook.SetName(name) + notebook.SetNamespace(ns) + if labels != nil { + notebook.SetLabels(labels) + } + if annotations != nil { + notebook.SetAnnotations(annotations) + } + return notebook + } + + createFeatureStore := func(name, ns, project string) *feastdevv1alpha1.FeatureStore { + fs := &feastdevv1alpha1.FeatureStore{ + ObjectMeta: metav1.ObjectMeta{ + Name: name, + Namespace: ns, + }, + Spec: feastdevv1alpha1.FeatureStoreSpec{ + FeastProject: project, + }, + } + return fs + } + + // Helper to set FeatureStore status after creation + setFeatureStoreStatus := func(fs *feastdevv1alpha1.FeatureStore, project string, configMapName string) { + fs.Status.ClientConfigMap = configMapName + fs.Status.Applied.FeastProject = project + } + + createClientConfigMap := func(name, ns string) *corev1.ConfigMap { + return &corev1.ConfigMap{ + ObjectMeta: metav1.ObjectMeta{ + Name: name, + Namespace: ns, + }, + Data: map[string]string{ + services.FeatureStoreYamlCmKey: testYAMLContent, + }, + } + } + + Context("Reconcile", func() { + It("should return nil when Notebook is not found", func() { + // Create and delete a notebook first to force the REST mapper to discover the CRD + // Use Eventually to wait for CRD to be recognized + tempNotebook := createUnstructuredNotebook("temp-notebook", namespace, nil, nil) + Eventually(func() error { + return k8sClient.Create(ctx, tempNotebook) + }, "10s", "1s").Should(Succeed()) + Expect(k8sClient.Delete(ctx, tempNotebook)).To(Succeed()) + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: "non-existent", + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + }) + + It("should return nil when Notebook is being deleted", func() { + notebook := createUnstructuredNotebook(notebookName, namespace, map[string]string{ + NotebookFeastIntegrationLabel: TrueValue, + }, map[string]string{ + NotebookFeastConfigAnnotation: projectName, + }) + now := metav1.Now() + notebook.SetDeletionTimestamp(&now) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + Expect(k8sClient.Delete(ctx, notebook)).To(Succeed()) + }) + + It("should cleanup ConfigMap when integration label is not set", func() { + notebook := createUnstructuredNotebook(notebookName, namespace, nil, nil) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + + configMap := createClientConfigMap(notebookName+NotebookConfigMapNameSuffix, namespace) + Expect(k8sClient.Create(ctx, configMap)).To(Succeed()) + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + cm := &corev1.ConfigMap{} + err = k8sClient.Get(ctx, types.NamespacedName{Name: configMap.Name, Namespace: namespace}, cm) + Expect(err).To(HaveOccurred()) + + Expect(k8sClient.Delete(ctx, notebook)).To(Succeed()) + }) + + It("should cleanup ConfigMap when integration label is not 'true'", func() { + notebook := createUnstructuredNotebook(notebookName, namespace, map[string]string{ + NotebookFeastIntegrationLabel: "false", + }, nil) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + + configMap := createClientConfigMap(notebookName+NotebookConfigMapNameSuffix, namespace) + Expect(k8sClient.Create(ctx, configMap)).To(Succeed()) + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + cm := &corev1.ConfigMap{} + err = k8sClient.Get(ctx, types.NamespacedName{Name: configMap.Name, Namespace: namespace}, cm) + Expect(err).To(HaveOccurred()) + + Expect(k8sClient.Delete(ctx, notebook)).To(Succeed()) + }) + + It("should create ConfigMap when integration is enabled but annotation is empty", func() { + fs := createFeatureStore(featureStoreName, namespace, projectName) + Expect(k8sClient.Create(ctx, fs)).To(Succeed()) + // Set and update status separately + setFeatureStoreStatus(fs, projectName, clientConfigMapName) + Expect(k8sClient.Status().Update(ctx, fs)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs) + }() + + clientCM := createClientConfigMap(clientConfigMapName, namespace) + Expect(k8sClient.Create(ctx, clientCM)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, clientCM) + }() + + notebook := createUnstructuredNotebook(notebookName, namespace, map[string]string{ + NotebookFeastIntegrationLabel: TrueValue, + }, nil) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, notebook) + }() + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + cm := &corev1.ConfigMap{} + err = k8sClient.Get(ctx, types.NamespacedName{ + Name: notebookName + NotebookConfigMapNameSuffix, + Namespace: namespace, + }, cm) + Expect(err).NotTo(HaveOccurred()) + Expect(cm.Data).To(BeEmpty()) + }) + + It("should create ConfigMap with project config when integration is enabled with annotation", func() { + fs := createFeatureStore(featureStoreName, namespace, projectName) + Expect(k8sClient.Create(ctx, fs)).To(Succeed()) + // Set and update status separately + setFeatureStoreStatus(fs, projectName, clientConfigMapName) + Expect(k8sClient.Status().Update(ctx, fs)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs) + }() + + clientCM := createClientConfigMap(clientConfigMapName, namespace) + Expect(k8sClient.Create(ctx, clientCM)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, clientCM) + }() + + notebook := createUnstructuredNotebook(notebookName, namespace, map[string]string{ + NotebookFeastIntegrationLabel: TrueValue, + }, map[string]string{ + NotebookFeastConfigAnnotation: projectName, + }) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, notebook) + }() + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + cm := &corev1.ConfigMap{} + err = k8sClient.Get(ctx, types.NamespacedName{ + Name: notebookName + NotebookConfigMapNameSuffix, + Namespace: namespace, + }, cm) + Expect(err).NotTo(HaveOccurred()) + Expect(cm.Data).To(HaveKey(projectName)) + Expect(cm.Data[projectName]).To(Equal(testYAMLContent)) + Expect(cm.Labels["managed-by"]).To(Equal("feast-operator")) + Expect(cm.Labels["source-resource"]).To(Equal(notebookName)) + Expect(cm.Labels["source-kind"]).To(Equal("Notebook")) + Expect(cm.OwnerReferences).To(HaveLen(1)) + Expect(cm.OwnerReferences[0].Name).To(Equal(notebookName)) + }) + + It("should handle multiple projects in annotation", func() { + projectName2 := "test-project-2" + featureStoreName2 := "test-featurestore-2" + clientConfigMapName2 := "test-featurestore-2-client" + + fs1 := createFeatureStore(featureStoreName, namespace, projectName) + Expect(k8sClient.Create(ctx, fs1)).To(Succeed()) + // Set and update status separately + setFeatureStoreStatus(fs1, projectName, clientConfigMapName) + Expect(k8sClient.Status().Update(ctx, fs1)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs1) + }() + + fs2 := createFeatureStore(featureStoreName2, namespace, projectName2) + Expect(k8sClient.Create(ctx, fs2)).To(Succeed()) + // Set and update status separately + setFeatureStoreStatus(fs2, projectName2, clientConfigMapName2) + Expect(k8sClient.Status().Update(ctx, fs2)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs2) + }() + + clientCM1 := createClientConfigMap(clientConfigMapName, namespace) + Expect(k8sClient.Create(ctx, clientCM1)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, clientCM1) + }() + + testYAMLContent2 := "project: test-project-2\nprovider: local" + clientCM2 := &corev1.ConfigMap{ + ObjectMeta: metav1.ObjectMeta{ + Name: clientConfigMapName2, + Namespace: namespace, + }, + Data: map[string]string{ + services.FeatureStoreYamlCmKey: testYAMLContent2, + }, + } + Expect(k8sClient.Create(ctx, clientCM2)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, clientCM2) + }() + + notebook := createUnstructuredNotebook(notebookName, namespace, map[string]string{ + NotebookFeastIntegrationLabel: TrueValue, + }, map[string]string{ + NotebookFeastConfigAnnotation: fmt.Sprintf("%s, %s", projectName, projectName2), + }) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, notebook) + }() + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + cm := &corev1.ConfigMap{} + err = k8sClient.Get(ctx, types.NamespacedName{ + Name: notebookName + NotebookConfigMapNameSuffix, + Namespace: namespace, + }, cm) + Expect(err).NotTo(HaveOccurred()) + Expect(cm.Data).To(HaveKey(projectName)) + Expect(cm.Data).To(HaveKey(projectName2)) + Expect(cm.Data[projectName]).To(Equal(testYAMLContent)) + Expect(cm.Data[projectName2]).To(Equal(testYAMLContent2)) + }) + + It("should handle project not found in FeatureStore", func() { + notebook := createUnstructuredNotebook(notebookName, namespace, map[string]string{ + NotebookFeastIntegrationLabel: TrueValue, + }, map[string]string{ + NotebookFeastConfigAnnotation: "non-existent-project", + }) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, notebook) + }() + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + cm := &corev1.ConfigMap{} + err = k8sClient.Get(ctx, types.NamespacedName{ + Name: notebookName + NotebookConfigMapNameSuffix, + Namespace: namespace, + }, cm) + Expect(err).NotTo(HaveOccurred()) + Expect(cm.Data).NotTo(HaveKey("non-existent-project")) + }) + + It("should update ConfigMap when project annotation changes", func() { + fs1 := createFeatureStore(featureStoreName, namespace, projectName) + Expect(k8sClient.Create(ctx, fs1)).To(Succeed()) + // Set and update status separately + setFeatureStoreStatus(fs1, projectName, clientConfigMapName) + Expect(k8sClient.Status().Update(ctx, fs1)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs1) + }() + + projectName2 := "test-project-2" + featureStoreName2 := "test-featurestore-2" + clientConfigMapName2 := "test-featurestore-2-client" + + fs2 := createFeatureStore(featureStoreName2, namespace, projectName2) + Expect(k8sClient.Create(ctx, fs2)).To(Succeed()) + // Set and update status separately + setFeatureStoreStatus(fs2, projectName2, clientConfigMapName2) + Expect(k8sClient.Status().Update(ctx, fs2)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs2) + }() + + clientCM1 := createClientConfigMap(clientConfigMapName, namespace) + Expect(k8sClient.Create(ctx, clientCM1)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, clientCM1) + }() + + testYAMLContent2 := "project: test-project-2\nprovider: local" + clientCM2 := &corev1.ConfigMap{ + ObjectMeta: metav1.ObjectMeta{ + Name: clientConfigMapName2, + Namespace: namespace, + }, + Data: map[string]string{ + services.FeatureStoreYamlCmKey: testYAMLContent2, + }, + } + Expect(k8sClient.Create(ctx, clientCM2)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, clientCM2) + }() + + notebook := createUnstructuredNotebook(notebookName, namespace, map[string]string{ + NotebookFeastIntegrationLabel: TrueValue, + }, map[string]string{ + NotebookFeastConfigAnnotation: projectName, + }) + Expect(k8sClient.Create(ctx, notebook)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, notebook) + }() + + req := reconcile.Request{ + NamespacedName: types.NamespacedName{ + Name: notebookName, + Namespace: namespace, + }, + } + result, err := reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + cm := &corev1.ConfigMap{} + err = k8sClient.Get(ctx, types.NamespacedName{ + Name: notebookName + NotebookConfigMapNameSuffix, + Namespace: namespace, + }, cm) + Expect(err).NotTo(HaveOccurred()) + Expect(cm.Data).To(HaveKey(projectName)) + Expect(cm.Data).NotTo(HaveKey(projectName2)) + + notebook.SetAnnotations(map[string]string{ + NotebookFeastConfigAnnotation: projectName2, + }) + Expect(k8sClient.Update(ctx, notebook)).To(Succeed()) + + result, err = reconciler.Reconcile(ctx, req) + Expect(err).NotTo(HaveOccurred()) + Expect(result).To(Equal(reconcile.Result{})) + + err = k8sClient.Get(ctx, types.NamespacedName{ + Name: notebookName + NotebookConfigMapNameSuffix, + Namespace: namespace, + }, cm) + Expect(err).NotTo(HaveOccurred()) + Expect(cm.Data).NotTo(HaveKey(projectName)) + Expect(cm.Data).To(HaveKey(projectName2)) + Expect(cm.Data[projectName2]).To(Equal(testYAMLContent2)) + }) + }) + + Context("getClientConfigYAMLForProject", func() { + It("should return YAML content for matching project", func() { + fs := createFeatureStore(featureStoreName, namespace, projectName) + Expect(k8sClient.Create(ctx, fs)).To(Succeed()) + // Set and update status separately + setFeatureStoreStatus(fs, projectName, clientConfigMapName) + Expect(k8sClient.Status().Update(ctx, fs)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs) + }() + + clientCM := createClientConfigMap(clientConfigMapName, namespace) + Expect(k8sClient.Create(ctx, clientCM)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, clientCM) + }() + + yaml, err := reconciler.getClientConfigYAMLForProject(ctx, projectName) + Expect(err).NotTo(HaveOccurred()) + Expect(yaml).To(Equal(testYAMLContent)) + }) + + It("should return error when project not found", func() { + _, err := reconciler.getClientConfigYAMLForProject(ctx, "non-existent-project") + Expect(err).To(HaveOccurred()) + Expect(err.Error()).To(ContainSubstring("no FeatureStore found")) + }) + + It("should return error when ClientConfigMap doesn't exist", func() { + fs := createFeatureStore(featureStoreName, namespace, projectName) + Expect(k8sClient.Create(ctx, fs)).To(Succeed()) + // Set status with non-existent configmap + setFeatureStoreStatus(fs, projectName, "non-existent-configmap") + Expect(k8sClient.Status().Update(ctx, fs)).To(Succeed()) + defer func() { + _ = k8sClient.Delete(ctx, fs) + }() + + _, err := reconciler.getClientConfigYAMLForProject(ctx, projectName) + Expect(err).To(HaveOccurred()) + Expect(err.Error()).To(ContainSubstring("failed to get client ConfigMap")) + }) + }) +}) From 6c31bdf8d73c287307223bba3354cc902ca0f218 Mon Sep 17 00:00:00 2001 From: jyejare Date: Wed, 17 Dec 2025 12:47:30 +0530 Subject: [PATCH 04/37] Notebook controller to use v1 Signed-off-by: jyejare --- .../controller/notebook_configmap_controller.go | 10 +++++----- .../controller/notebook_configmap_controller_test.go | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/infra/feast-operator/internal/controller/notebook_configmap_controller.go b/infra/feast-operator/internal/controller/notebook_configmap_controller.go index 6f5f69cbe4a..6fa52f78a92 100644 --- a/infra/feast-operator/internal/controller/notebook_configmap_controller.go +++ b/infra/feast-operator/internal/controller/notebook_configmap_controller.go @@ -35,7 +35,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/reconcile" - feastdevv1alpha1 "github.com/feast-dev/feast/infra/feast-operator/api/v1alpha1" + feastdevv1 "github.com/feast-dev/feast/infra/feast-operator/api/v1" "github.com/feast-dev/feast/infra/feast-operator/internal/controller/services" ) @@ -244,14 +244,14 @@ func (r *NotebookConfigMapReconciler) getClientConfigYAMLForProject(ctx context. logger := log.FromContext(ctx) // List all FeatureStores to find one with matching feastProject - var featureStoreList feastdevv1alpha1.FeatureStoreList + var featureStoreList feastdevv1.FeatureStoreList if err := r.List(ctx, &featureStoreList, client.InNamespace("")); err != nil { return "", fmt.Errorf("failed to list FeatureStores: %w", err) } // Find FeatureStore with matching project name // Try to match by spec.feastProject first, then by metadata.name as fallback - var matchingFeatureStore *feastdevv1alpha1.FeatureStore + var matchingFeatureStore *feastdevv1.FeatureStore for i := range featureStoreList.Items { fs := &featureStoreList.Items[i] @@ -355,7 +355,7 @@ func (r *NotebookConfigMapReconciler) cleanupNotebookConfigMap(ctx context.Conte func (r *NotebookConfigMapReconciler) mapFeatureStoreToNotebookRequests(ctx context.Context, obj client.Object) []reconcile.Request { logger := log.FromContext(ctx) - featureStore, ok := obj.(*feastdevv1alpha1.FeatureStore) + featureStore, ok := obj.(*feastdevv1.FeatureStore) if !ok { return nil } @@ -501,7 +501,7 @@ func (r *NotebookConfigMapReconciler) SetupWithManager(mgr ctrl.Manager) error { // that reference its project and trigger their reconciliation // This ensures notebook ConfigMaps are updated when FeatureStore client configs change Watches( - &feastdevv1alpha1.FeatureStore{}, + &feastdevv1.FeatureStore{}, handler.EnqueueRequestsFromMapFunc(r.mapFeatureStoreToNotebookRequests), ) diff --git a/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go b/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go index e8b2cfb97ad..e912c8298c5 100644 --- a/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go +++ b/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go @@ -34,7 +34,7 @@ import ( corev1 "k8s.io/api/core/v1" - feastdevv1alpha1 "github.com/feast-dev/feast/infra/feast-operator/api/v1alpha1" + feastdevv1 "github.com/feast-dev/feast/infra/feast-operator/api/v1" "github.com/feast-dev/feast/infra/feast-operator/internal/controller/services" ) @@ -148,7 +148,7 @@ var _ = Describe("NotebookConfigMap Controller", func() { } // Clean up feature stores - fsList := &feastdevv1alpha1.FeatureStoreList{} + fsList := &feastdevv1.FeatureStoreList{} _ = k8sClient.List(ctx, fsList, client.InNamespace(namespace)) for i := range fsList.Items { _ = k8sClient.Delete(ctx, &fsList.Items[i]) @@ -169,13 +169,13 @@ var _ = Describe("NotebookConfigMap Controller", func() { return notebook } - createFeatureStore := func(name, ns, project string) *feastdevv1alpha1.FeatureStore { - fs := &feastdevv1alpha1.FeatureStore{ + createFeatureStore := func(name, ns, project string) *feastdevv1.FeatureStore { + fs := &feastdevv1.FeatureStore{ ObjectMeta: metav1.ObjectMeta{ Name: name, Namespace: ns, }, - Spec: feastdevv1alpha1.FeatureStoreSpec{ + Spec: feastdevv1.FeatureStoreSpec{ FeastProject: project, }, } @@ -183,7 +183,7 @@ var _ = Describe("NotebookConfigMap Controller", func() { } // Helper to set FeatureStore status after creation - setFeatureStoreStatus := func(fs *feastdevv1alpha1.FeatureStore, project string, configMapName string) { + setFeatureStoreStatus := func(fs *feastdevv1.FeatureStore, project string, configMapName string) { fs.Status.ClientConfigMap = configMapName fs.Status.Applied.FeastProject = project } From 290ca4a28ce74f6ffbd8f73988249f8206754685 Mon Sep 17 00:00:00 2001 From: Srihari Date: Fri, 9 Jan 2026 11:44:04 +0530 Subject: [PATCH 05/37] test: Add E2E RHOAI tests Signed-off-by: Srihari --- .../test/e2e_rhoai/e2e_suite_test.go | 32 ++ .../test/e2e_rhoai/feast_postupgrade_test.go | 56 ++ .../test/e2e_rhoai/feast_preupgrade_test.go | 74 +++ .../feast_wb_connection_integration_test.go | 168 ++++++ .../test/e2e_rhoai/feast_wb_milvus_test.go | 65 +++ .../feast_wb_ray_offline_store_test.go | 83 +++ .../test/e2e_rhoai/resources/custom-nb.yaml | 92 ++++ .../feast-wb-connection-credit-scoring.ipynb | 416 ++++++++++++++ .../resources/feast-wb-milvus-test.ipynb | 481 ++++++++++++++++ .../resources/feast-wb-ray-test.ipynb | 516 ++++++++++++++++++ .../e2e_rhoai/resources/feast_kube_auth.yaml | 74 +++ .../resources/feature_repo/__init__.py | 0 .../resources/feature_repo/example_repo.py | 42 ++ .../resources/feature_repo/feature_store.yaml | 16 + .../resources/kueue_resources_setup.yaml | 31 ++ .../test/e2e_rhoai/resources/permissions.py | 19 + .../test/e2e_rhoai/resources/pvc.yaml | 10 + .../test/e2e_rhoai/utils/notebook_util.go | 388 +++++++++++++ .../test/e2e_rhoai/utils/util.go | 426 +++++++++++++++ 19 files changed, 2989 insertions(+) create mode 100644 infra/feast-operator/test/e2e_rhoai/e2e_suite_test.go create mode 100644 infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go create mode 100644 infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go create mode 100644 infra/feast-operator/test/e2e_rhoai/feast_wb_connection_integration_test.go create mode 100644 infra/feast-operator/test/e2e_rhoai/feast_wb_milvus_test.go create mode 100644 infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml create mode 100755 infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb create mode 100755 infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/feature_repo/__init__.py create mode 100755 infra/feast-operator/test/e2e_rhoai/resources/feature_repo/example_repo.py create mode 100755 infra/feast-operator/test/e2e_rhoai/resources/feature_repo/feature_store.yaml create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/kueue_resources_setup.yaml create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/permissions.py create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/pvc.yaml create mode 100644 infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go create mode 100644 infra/feast-operator/test/e2e_rhoai/utils/util.go diff --git a/infra/feast-operator/test/e2e_rhoai/e2e_suite_test.go b/infra/feast-operator/test/e2e_rhoai/e2e_suite_test.go new file mode 100644 index 00000000000..14b1dae2c59 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/e2e_suite_test.go @@ -0,0 +1,32 @@ +/* +Copyright 2025 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package e2erhoai + +import ( + "fmt" + "testing" + + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +// Run e2e RHOAI feast tests using the Ginkgo runner. +func TestFeastE2ETestSuite(t *testing.T) { + RegisterFailHandler(Fail) + _, _ = fmt.Fprintf(GinkgoWriter, "Feast E2E Test suite\n") + RunSpecs(t, "e2erhoai Feast E2E test suite") +} diff --git a/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go b/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go new file mode 100644 index 00000000000..9ec89d43e09 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go @@ -0,0 +1,56 @@ +/* +Copyright 2025 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package e2erhoai + +import ( + "fmt" + + . "github.com/feast-dev/feast/infra/feast-operator/test/e2e_rhoai/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +var _ = Describe("Feast PostUpgrade scenario Testing", Ordered, func() { + const ( + namespace = "test-ns-feast-upgrade" + testDir = "/test/e2e_rhoai" + feastDeploymentName = FeastPrefix + "credit-scoring" + feastCRName = "credit-scoring" + ) + + AfterAll(func() { + By(fmt.Sprintf("Deleting test namespace: %s", namespace)) + Expect(DeleteNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s deleted successfully\n", namespace) + }) + runPostUpgradeTest := func() { + By("Verify Feature Store CR is in Ready state") + ValidateFeatureStoreCRStatus(namespace, feastCRName) + + By("Running `feast apply` and `feast materialize-incremental` to validate registry definitions") + VerifyApplyFeatureStoreDefinitions(namespace, feastCRName, feastDeploymentName) + + By("Validating Feast entity, feature, and feature view presence") + VerifyFeastMethods(namespace, feastDeploymentName, testDir) + } + + // This context verifies that a pre-created Feast FeatureStore CR continues to function as expected + // after an upgrade. It validates `feast apply`, registry sync, feature retrieval, and model execution. + Context("Feast post Upgrade Test", func() { + It("Should create and run a feastPostUpgrade test scenario feast apply and materialize functionality successfully", runPostUpgradeTest) + }) +}) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go b/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go new file mode 100644 index 00000000000..c68077cb75c --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go @@ -0,0 +1,74 @@ +/* +Copyright 2025 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package e2erhoai + +import ( + "fmt" + + . "github.com/feast-dev/feast/infra/feast-operator/test/e2e_rhoai/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +var _ = Describe("Feast PreUpgrade scenario Testing", Ordered, func() { + const ( + namespace = "test-ns-feast-upgrade" + replaceNamespace = "test-ns-feast" + testDir = "/test/e2e_rhoai" + feastDeploymentName = FeastPrefix + "credit-scoring" + feastCRName = "credit-scoring" + ) + + filesToUpdateNamespace := []string{ + "test/testdata/feast_integration_test_crs/postgres.yaml", + "test/testdata/feast_integration_test_crs/redis.yaml", + "test/testdata/feast_integration_test_crs/feast.yaml", + } + + BeforeAll(func() { + By(fmt.Sprintf("Creating test namespace: %s", namespace)) + Expect(CreateNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s created successfully\n", namespace) + + By("Replacing placeholder namespace in CR YAMLs for test setup") + Expect(ReplaceNamespaceInYamlFilesInPlace(filesToUpdateNamespace, replaceNamespace, namespace)).To(Succeed()) + }) + + AfterAll(func() { + By("Restoring original namespace in CR YAMLs") + Expect(ReplaceNamespaceInYamlFilesInPlace(filesToUpdateNamespace, namespace, replaceNamespace)).To(Succeed()) + + if CurrentSpecReport().Failed() { + By(fmt.Sprintf("Deleting test namespace: %s", namespace)) + Expect(DeleteNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s deleted successfully\n", namespace) + } + }) + + runPreUpgradeTest := func() { + By("Applying Feast infra manifests and verifying setup") + ApplyFeastInfraManifestsAndVerify(namespace, testDir) + + By("Applying and validating the credit-scoring FeatureStore CR") + ApplyFeastYamlAndVerify(namespace, testDir, feastDeploymentName, feastCRName, "test/testdata/feast_integration_test_crs/feast.yaml") + } + + // This context ensures the Feast CR setup is functional prior to any upgrade + Context("Feast Pre Upgrade Test", func() { + It("Should create and run a feastPreUpgrade test scenario feast credit-scoring CR setup successfully", runPreUpgradeTest) + }) +}) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_wb_connection_integration_test.go b/infra/feast-operator/test/e2e_rhoai/feast_wb_connection_integration_test.go new file mode 100644 index 00000000000..98208884c88 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/feast_wb_connection_integration_test.go @@ -0,0 +1,168 @@ +/* +Copyright 2025 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package e2erhoai provides end-to-end (E2E) test coverage for Feast integration with +// Red Hat OpenShift AI (RHOAI) environments. +// This specific test validates the functionality +// of executing a Feast workbench integration connection with kubernetes auth and without auth successfully +package e2erhoai + +import ( + "fmt" + "time" + + . "github.com/feast-dev/feast/infra/feast-operator/test/e2e_rhoai/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +var _ = Describe("Feast Workbench Integration Connection Testing", Ordered, func() { + const ( + namespace = "test-ns-feast" + configMapName = "feast-wb-cm" + rolebindingName = "rb-feast-test" + notebookFile = "test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb" + pvcFile = "test/e2e_rhoai/resources/pvc.yaml" + permissionFile = "test/e2e_rhoai/resources/permissions.py" + notebookPVC = "jupyterhub-nb-kube-3aadmin-pvc" + testDir = "/test/e2e_rhoai" + notebookName = "feast-wb-connection-credit-scoring.ipynb" + feastDeploymentName = FeastPrefix + "credit-scoring" + feastCRName = "credit-scoring" + ) + + // Verify feast ConfigMap + verifyFeastConfigMap := func(authEnabled bool) { + feastConfigMapName := "jupyter-nb-kube-3aadmin-feast-config" + configMapKey := "credit_scoring_local" + By(fmt.Sprintf("Listing ConfigMaps and verifying %s exists with correct content", feastConfigMapName)) + + // Build expected content based on auth type + expectedContent := []string{ + "project: credit_scoring_local", + } + if authEnabled { + expectedContent = append(expectedContent, "type: kubernetes") + } else { + expectedContent = append(expectedContent, "type: no_auth") + } + + // First, list ConfigMaps and check if target ConfigMap exists + // Retry with polling since the ConfigMap may be created asynchronously + const maxRetries = 5 + const retryInterval = 5 * time.Second + var configMapExists bool + var err error + + for i := 0; i < maxRetries; i++ { + exists, listErr := VerifyConfigMapExistsInList(namespace, feastConfigMapName) + if listErr != nil { + err = listErr + if i < maxRetries-1 { + fmt.Printf("Failed to list ConfigMaps, retrying in %v... (attempt %d/%d)\n", retryInterval, i+1, maxRetries) + time.Sleep(retryInterval) + continue + } + } else if exists { + configMapExists = true + fmt.Printf("ConfigMap %s found in ConfigMap list\n", feastConfigMapName) + break + } + + if i < maxRetries-1 { + fmt.Printf("ConfigMap %s not found in list yet, retrying in %v... (attempt %d/%d)\n", feastConfigMapName, retryInterval, i+1, maxRetries) + time.Sleep(retryInterval) + } + } + + if !configMapExists { + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to find ConfigMap %s in ConfigMap list after %d attempts: %v", feastConfigMapName, maxRetries, err)) + } + + // Once ConfigMap exists in list, verify content (project name and auth type) + err = VerifyFeastConfigMapContent(namespace, feastConfigMapName, configMapKey, expectedContent) + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to verify Feast ConfigMap %s content: %v", feastConfigMapName, err)) + fmt.Printf("Feast ConfigMap %s verified successfully with project and auth type\n", feastConfigMapName) + } + + // Parameterized test function that handles both auth and non-auth scenarios + runFeastWorkbenchIntegration := func(authEnabled bool) { + // Apply permissions only if auth is enabled + if authEnabled { + By("Applying Feast permissions for kubernetes authenticated scenario") + ApplyFeastPermissions(permissionFile, "/feast-data/credit_scoring_local/feature_repo/permissions.py", namespace, feastDeploymentName) + } + + // Create notebook with all setup steps + // Pass feastProject parameter to set the opendatahub.io/feast-config annotation + CreateNotebookTest(namespace, configMapName, notebookFile, "test/e2e_rhoai/resources/feature_repo", pvcFile, rolebindingName, notebookPVC, notebookName, testDir, "credit_scoring_local") + + // Verify Feast ConfigMap was created with correct auth type + verifyFeastConfigMap(authEnabled) + + // Monitor notebook execution + MonitorNotebookTest(namespace, notebookName) + } + + BeforeAll(func() { + By(fmt.Sprintf("Creating test namespace: %s", namespace)) + Expect(CreateNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s created successfully\n", namespace) + + By("Applying Feast infra manifests and verifying setup") + ApplyFeastInfraManifestsAndVerify(namespace, testDir) + }) + + AfterAll(func() { + By(fmt.Sprintf("Deleting test namespace: %s", namespace)) + Expect(DeleteNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s deleted successfully\n", namespace) + }) + + Context("Feast Workbench Integration Tests - Without Auth", func() { + BeforeEach(func() { + By("Applying and validating the credit-scoring FeatureStore CR without auth") + ApplyFeastYamlAndVerify(namespace, testDir, feastDeploymentName, feastCRName, "test/testdata/feast_integration_test_crs/feast.yaml") + + By("Verify Feature Store CR is in Ready state") + ValidateFeatureStoreCRStatus(namespace, feastCRName) + + By("Running `feast apply` and `feast materialize-incremental` to validate registry definitions") + VerifyApplyFeatureStoreDefinitions(namespace, feastCRName, feastDeploymentName) + }) + + It("Should create and run a FeastWorkbenchIntegrationWithoutAuth scenario successfully", func() { + runFeastWorkbenchIntegration(false) + }) + }) + + Context("Feast Workbench Integration Tests - With Auth", func() { + BeforeEach(func() { + By("Applying and validating the credit-scoring FeatureStore CR (with auth)") + ApplyFeastYamlAndVerify(namespace, testDir, feastDeploymentName, feastCRName, "test/e2e_rhoai/resources/feast_kube_auth.yaml") + + By("Verify Feature Store CR is in Ready state") + ValidateFeatureStoreCRStatus(namespace, feastCRName) + + By("Running `feast apply` and `feast materialize-incremental` to validate registry definitions") + VerifyApplyFeatureStoreDefinitions(namespace, feastCRName, feastDeploymentName) + }) + + It("Should create and run a FeastWorkbenchIntegrationWithAuth scenario successfully", func() { + runFeastWorkbenchIntegration(true) + }) + }) +}) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_wb_milvus_test.go b/infra/feast-operator/test/e2e_rhoai/feast_wb_milvus_test.go new file mode 100644 index 00000000000..288f10285d7 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/feast_wb_milvus_test.go @@ -0,0 +1,65 @@ +/* +Copyright 2025 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package e2erhoai provides end-to-end (E2E) test coverage for Feast integration with +// Red Hat OpenShift AI (RHOAI) environments. This specific test validates the functionality +// of executing a Feast Jupyter notebook within a fully configured OpenShift namespace +package e2erhoai + +import ( + "fmt" + + . "github.com/feast-dev/feast/infra/feast-operator/test/e2e_rhoai/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +var _ = Describe("Feast Jupyter Notebook Testing", Ordered, func() { + const ( + namespace = "test-ns-feast-wb" + configMapName = "feast-wb-cm" + rolebindingName = "rb-feast-test" + notebookFile = "test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb" + pvcFile = "test/e2e_rhoai/resources/pvc.yaml" + notebookPVC = "jupyterhub-nb-kube-3aadmin-pvc" + testDir = "/test/e2e_rhoai" + notebookName = "feast-wb-milvus-test.ipynb" + feastMilvusTest = "TestFeastMilvusNotebook" + ) + + BeforeAll(func() { + By(fmt.Sprintf("Creating test namespace: %s", namespace)) + Expect(CreateNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s created successfully\n", namespace) + }) + + AfterAll(func() { + By(fmt.Sprintf("Deleting test namespace: %s", namespace)) + Expect(DeleteNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s deleted successfully\n", namespace) + }) + + Context("Feast Jupyter Notebook Test", func() { + It("Should create and run a "+feastMilvusTest+" successfully", func() { + // Create notebook with all setup steps + // Pass empty string for feastProject to keep annotation empty + CreateNotebookTest(namespace, configMapName, notebookFile, "test/e2e_rhoai/resources/feature_repo", pvcFile, rolebindingName, notebookPVC, notebookName, testDir, "") + + // Monitor notebook execution + MonitorNotebookTest(namespace, notebookName) + }) + }) +}) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go b/infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go new file mode 100644 index 00000000000..34abcacfd37 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go @@ -0,0 +1,83 @@ +/* +Copyright 2025 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package e2erhoai provides end-to-end (E2E) test coverage for Feast integration with +// Red Hat OpenShift AI (RHOAI) environments. This specific test validates the functionality +// of executing a Feast Jupyter notebook with Ray offline store within a fully configured OpenShift namespace +package e2erhoai + +import ( + "fmt" + "os/exec" + + . "github.com/feast-dev/feast/infra/feast-operator/test/e2e_rhoai/utils" + testutils "github.com/feast-dev/feast/infra/feast-operator/test/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +var _ = Describe("Feast Jupyter Notebook Testing with Ray Offline Store", Ordered, func() { + const ( + namespace = "test-ns-feast-wb-ray" + configMapName = "feast-wb-ray-cm" + rolebindingName = "rb-feast-ray-test" + notebookFile = "test/e2e_rhoai/resources/feast-wb-ray-test.ipynb" + pvcFile = "test/e2e_rhoai/resources/pvc.yaml" + kueueResourcesFile = "test/e2e_rhoai/resources/kueue_resources_setup.yaml" + notebookPVC = "jupyterhub-nb-kube-3aadmin-pvc" + testDir = "/test/e2e_rhoai" + notebookName = "feast-wb-ray-test.ipynb" + feastRayTest = "TestFeastRayOfflineStoreNotebook" + ) + + BeforeAll(func() { + By(fmt.Sprintf("Creating test namespace: %s", namespace)) + Expect(CreateNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s created successfully\n", namespace) + + By("Applying Kueue resources setup") + // Apply with namespace flag - cluster-scoped resources (ResourceFlavor, ClusterQueue) will be applied at cluster level, + // and namespace-scoped resources (LocalQueue) will be applied in the specified namespace + cmd := exec.Command("kubectl", "apply", "-f", kueueResourcesFile, "-n", namespace) + output, err := testutils.Run(cmd, testDir) + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to apply Kueue resources: %v\nOutput: %s", err, output)) + fmt.Printf("Kueue resources applied successfully\n") + }) + + AfterAll(func() { + By("Deleting Kueue resources") + // Delete with namespace flag - will delete namespace-scoped resources from the namespace + // and cluster-scoped resources from the cluster + cmd := exec.Command("kubectl", "delete", "-f", kueueResourcesFile, "-n", namespace, "--ignore-not-found=true") + _, _ = testutils.Run(cmd, testDir) + fmt.Printf("Kueue resources cleanup completed\n") + + By(fmt.Sprintf("Deleting test namespace: %s", namespace)) + Expect(DeleteNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s deleted successfully\n", namespace) + }) + + Context("Feast Jupyter Notebook Test with Ray Offline store", func() { + It("Should create and run a "+feastRayTest+" successfully", func() { + // Create notebook with all setup steps + // Pass empty string for feastProject to keep annotation empty + CreateNotebookTest(namespace, configMapName, notebookFile, "test/e2e_rhoai/resources/feature_repo", pvcFile, rolebindingName, notebookPVC, notebookName, testDir, "") + + // Monitor notebook execution + MonitorNotebookTest(namespace, notebookName) + }) + }) +}) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml b/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml new file mode 100644 index 00000000000..6dd9304e4b9 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml @@ -0,0 +1,92 @@ +# This template maybe used to spin up a custom notebook image +# i.e.: sed s/{{.IngressDomain}}/$(oc get ingresses.config/cluster -o jsonpath={.spec.domain})/g tests/resources/custom-nb.template | oc apply -f - +# resources generated: +# pod/jupyter-nb-kube-3aadmin-0 +# service/jupyter-nb-kube-3aadmin +# route.route.openshift.io/jupyter-nb-kube-3aadmin (jupyter-nb-kube-3aadmin-opendatahub.apps.tedbig412.cp.fyre.ibm.com) +# service/jupyter-nb-kube-3aadmin-tls +apiVersion: kubeflow.org/v1 +kind: Notebook +metadata: + annotations: + notebooks.opendatahub.io/inject-auth: "true" + notebooks.opendatahub.io/last-size-selection: Small + opendatahub.io/link: https://jupyter-nb-kube-3aadmin-{{.Namespace}}.{{.IngressDomain}}/notebook/{{.Namespace}}/jupyter-nb-kube-3aadmin + opendatahub.io/username: {{.Username}} + opendatahub.io/feast-config: {{.FeastProject}} + generation: 1 + labels: + app: jupyter-nb-kube-3aadmin + opendatahub.io/dashboard: "true" + opendatahub.io/odh-managed: "true" + opendatahub.io/user: {{.Username}} + opendatahub.io/feast-integration: 'true' + name: jupyter-nb-kube-3aadmin + namespace: {{.Namespace}} +spec: + template: + spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: nvidia.com/gpu.present + operator: NotIn + values: + - "true" + weight: 1 + containers: + - env: + - name: NOTEBOOK_ARGS + value: |- + --ServerApp.port=8888 + --ServerApp.token='' + --ServerApp.password='' + --ServerApp.base_url=/notebook/test-feast-wb/jupyter-nb-kube-3aadmin + --ServerApp.quit_button=False + --ServerApp.tornado_settings={"user":"{{.Username}}","hub_host":"https://odh-dashboard-{{.OpenDataHubNamespace}}.{{.IngressDomain}}","hub_prefix":"/notebookController/{{.Username}}"} + - name: JUPYTER_IMAGE + value: {{.NotebookImage}} + - name: JUPYTER_NOTEBOOK_PORT + value: "8888" + - name: PIP_INDEX_URL + value: {{.PipIndexUrl}} + - name: PIP_TRUSTED_HOST + value: {{.PipTrustedHost}} + - name: FEAST_VERSION + value: {{.FeastVerison}} + - name: OPENAI_API_KEY + value: {{.OpenAIAPIKey}} + - name: NAMESPACE + value: {{.Namespace}} + image: {{.NotebookImage}} + command: {{.Command}} + imagePullPolicy: Always + name: jupyter-nb-kube-3aadmin + ports: + - containerPort: 8888 + name: notebook-port + protocol: TCP + resources: + limits: + cpu: "2" + memory: 3Gi + requests: + cpu: "1" + memory: 3Gi + volumeMounts: + - mountPath: /opt/app-root/src + name: jupyterhub-nb-kube-3aadmin-pvc + - mountPath: /opt/app-root/notebooks + name: {{.NotebookConfigMapName}} + workingDir: /opt/app-root/src + enableServiceLinks: false + serviceAccountName: default + volumes: + - name: jupyterhub-nb-kube-3aadmin-pvc + persistentVolumeClaim: + claimName: {{.NotebookPVC}} + - name: {{.NotebookConfigMapName}} + configMap: + name: {{.NotebookConfigMapName}} diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb new file mode 100755 index 00000000000..39e1f9c6e37 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb @@ -0,0 +1,416 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import feast\n", + "\n", + "actual_version = feast.__version__\n", + "assert actual_version == os.environ.get(\"FEAST_VERSION\"), (\n", + " f\"❌ Feast version mismatch. Expected: {os.environ.get('FEAST_VERSION')}, Found: {actual_version}\"\n", + ")\n", + "print(f\"✅ Found Expected Feast version: {actual_version} in workbench\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# --- Configuration Variables ---\n", + "import os \n", + "\n", + "# Fetch token and server directly from oc CLI\n", + "import subprocess\n", + "\n", + "def oc(cmd):\n", + " return subprocess.check_output(cmd, shell=True).decode(\"utf-8\").strip()\n", + "\n", + "token = oc(\"oc whoami -t\")\n", + "server = oc(\"oc whoami --show-server\")\n", + "namespace = os.environ.get(\"NAMESPACE\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "!oc login --token=$token --server=$server" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Add user permission to namespace\n", + "!oc adm policy add-role-to-user admin $(oc whoami) -n $namespace" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "\n", + "namespace = os.environ.get(\"NAMESPACE\") # read namespace from env\n", + "if not namespace:\n", + " raise ValueError(\"NAMESPACE environment variable is not set\")\n", + "\n", + "yaml_content = os.popen(\n", + " f\"oc get configmap feast-credit-scoring-client -n {namespace} \"\n", + " \"-o jsonpath='{.data.feature_store\\\\.yaml}' | sed 's/\\\\\\\\n/\\\\n/g'\"\n", + ").read()\n", + "\n", + "# Save the configmap data into an environment variable (if needed)\n", + "os.environ[\"CONFIGMAP_DATA\"] = yaml_content" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from feast import FeatureStore\n", + "fs_credit_scoring_local = FeatureStore(fs_yaml_file='/opt/app-root/src/feast-config/credit_scoring_local')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "project_name = \"credit_scoring_local\"\n", + "project = fs_credit_scoring_local.get_project(project_name)\n", + "\n", + "# 1. Assert object returned\n", + "assert project is not None, f\"❌ get_project('{project_name}') returned None\"\n", + "\n", + "# 2. Extract project name (works for dict or Feast object)\n", + "if isinstance(project, dict):\n", + " returned_name = project.get(\"spec\", {}).get(\"name\")\n", + "else:\n", + " # Feast Project object\n", + " returned_name = getattr(project, \"name\", None)\n", + " if not returned_name and hasattr(project, \"spec\") and hasattr(project.spec, \"name\"):\n", + " returned_name = project.spec.name\n", + "\n", + "# 3. Assert that name exists\n", + "assert returned_name, f\"❌ Returned project does not contain a valid name: {project}\"\n", + "\n", + "print(\"• Project Name Returned:\", returned_name)\n", + "\n", + "# 4. Assert the name matches expected\n", + "assert returned_name == project_name, (\n", + " f\"❌ Expected project '{project_name}', but got '{returned_name}'\"\n", + ")\n", + "\n", + "print(f\"\\n✓ get_project('{project_name}') validation passed!\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "feast_list_functions = [\n", + " \"list_projects\",\n", + " \"list_entities\",\n", + " \"list_feature_views\",\n", + " \"list_all_feature_views\",\n", + " \"list_batch_feature_views\",\n", + " \"list_on_demand_feature_views\",\n", + "]\n", + "\n", + "# validates feast list methods returns data and method type\n", + "def validate_list_method(fs_obj, method_name):\n", + " assert hasattr(fs_obj, method_name), f\"Method not found: {method_name}\"\n", + "\n", + " method = getattr(fs_obj, method_name)\n", + " result = method()\n", + "\n", + " assert isinstance(result, list), (\n", + " f\"{method_name}() must return a list, got {type(result)}\"\n", + " )\n", + " assert len(result) > 0, (\n", + " f\"{method_name}() returned an empty list — expected data\"\n", + " )\n", + "\n", + " print(f\"✓ {method_name}() returned {len(result)} items\")\n", + "\n", + "for m in feast_list_functions:\n", + " validate_list_method(fs_credit_scoring_local, m)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "feast_list_functions = [\n", + " \"list_feature_services\",\n", + " # \"list_permissions\",\n", + " \"list_saved_datasets\",\n", + "]\n", + "\n", + "# validates feast methods exists and type is valid\n", + "def validate_list_func(fs_obj, method_name):\n", + " assert hasattr(fs_obj, method_name), f\"Method not found: {method_name}\"\n", + "\n", + " method = getattr(fs_obj, method_name)\n", + "\n", + " result = method()\n", + "\n", + " assert isinstance(result, list), (\n", + " f\"{method_name}() must return a list, got {type(result)}\"\n", + " )\n", + "\n", + "for m in feast_list_functions:\n", + " validate_list_func(fs_credit_scoring_local, m)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# validate_list_data_sources for with and without permissions \n", + "\n", + "import os\n", + "from feast.errors import FeastPermissionError\n", + "\n", + "def validate_list_data_sources(fs_obj):\n", + " \"\"\"\n", + " Validates list_data_sources() with special handling for Kubernetes auth mode.\n", + " If CONFIGMAP_DATA indicates auth=kubernetes, expect FeastPermissionError.\n", + " Otherwise validate output type normally.\n", + " \"\"\"\n", + " auth_mode = os.getenv(\"CONFIGMAP_DATA\")\n", + "\n", + " # Case 1: Kubernetes auth → expect permission error\n", + " if \"kubernetes\" in auth_mode.lower():\n", + " try:\n", + " fs_obj.list_data_sources()\n", + " raise AssertionError(\n", + " \"Expected FeastPermissionError due to Kubernetes auth, but the call succeeded.\"\n", + " )\n", + " except FeastPermissionError as e:\n", + " # Correct, this is expected\n", + " return\n", + " except Exception as e:\n", + " raise AssertionError(\n", + " f\"Expected FeastPermissionError, but got different exception: {type(e)} - {e}\"\n", + " )\n", + "\n", + " # Case 2: Non-Kubernetes auth → normal path\n", + " assert hasattr(fs_obj, \"list_data_sources\"), \"Method not found: list_data_sources\"\n", + " result = fs_obj.list_data_sources()\n", + " assert isinstance(result, list), (\n", + " f\"list_data_sources() must return a list, got {type(result)}\"\n", + " )\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "\n", + "entity = fs_credit_scoring_local.get_entity(\"dob_ssn\")\n", + "\n", + "assert entity is not None, \"❌ Entity 'dob_ssn' not found!\"\n", + "assert entity.name == \"dob_ssn\", f\"❌ Entity name mismatch: {entity.name}\"\n", + "\n", + "print(\"✓ Entity validation successful!\\n\", entity.name)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "\n", + "fv = fs_credit_scoring_local.get_feature_view(\"credit_history\")\n", + "\n", + "assert fv is not None, \"❌ FeatureView 'credit_history' not found!\"\n", + "assert fv.name == \"credit_history\", f\"❌ Name mismatch: {fv.name}\"\n", + "\n", + "print(\"• FeatureView : validation successful!\", fv.name)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "from feast.errors import FeastPermissionError\n", + "\n", + "def validate_get_data_source(fs_obj, name: str):\n", + " auth_mode = os.getenv(\"CONFIGMAP_DATA\", \"\")\n", + "\n", + " print(\"📌 CONFIGMAP_DATA:\", auth_mode)\n", + "\n", + " # If Kubernetes auth is enabled → expect permission error\n", + " if \"auth\" in \"kubernetes\" in auth_mode.lower():\n", + " print(f\"🔒 Kubernetes auth detected, expecting permission error for get_data_source('{name}')\")\n", + "\n", + " try:\n", + " fs_obj.get_data_source(name)\n", + " raise AssertionError(\n", + " f\"❌ Expected FeastPermissionError when accessing data source '{name}', but call succeeded\"\n", + " )\n", + "\n", + " except FeastPermissionError as e:\n", + " print(f\"✅ Correctly blocked with FeastPermissionError: {e}\")\n", + " return\n", + "\n", + " except Exception as e:\n", + " raise AssertionError(\n", + " f\"❌ Expected FeastPermissionError but got {type(e)}: {e}\"\n", + " )\n", + "\n", + " # Otherwise → normal validation\n", + " print(f\"🔍 Fetching data source '{name}'...\")\n", + "\n", + " ds = fs_obj.get_data_source(name)\n", + "\n", + " print(\"\\n📌 Data Source Object:\")\n", + " print(ds)\n", + "\n", + " assert ds.name == name, (\n", + " f\"❌ Expected name '{name}', got '{ds.name}'\"\n", + " )\n", + "\n", + " print(f\"✅ Data source '{name}' exists and is correctly configured.\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "feast_features = [\n", + " \"zipcode_features:city\",\n", + " \"zipcode_features:state\",\n", + "]\n", + "\n", + "entity_rows = [{\n", + " \"zipcode\": 1463,\n", + " \"dob_ssn\": \"19530219_5179\"\n", + "}]\n", + "\n", + "response = fs_credit_scoring_local.get_online_features(\n", + " features=feast_features,\n", + " entity_rows=entity_rows,\n", + ").to_dict()\n", + "\n", + "print(\"Actual response:\", response)\n", + "\n", + "expected = {\n", + " 'zipcode': [1463],\n", + " 'dob_ssn': ['19530219_5179'],\n", + " 'city': ['PEPPERELL'],\n", + " 'state': ['MA'],\n", + "}\n", + "\n", + "assert response == expected" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "\n", + "# Input entity dataframe\n", + "entity_df = pd.DataFrame({\n", + " \"dob_ssn\": [\"19530219_5179\"],\n", + " \"zipcode\": [1463],\n", + " \"event_timestamp\": [pd.Timestamp(\"2020-04-26 18:01:04\")]\n", + "})\n", + "\n", + "feast_features = [\n", + " \"zipcode_features:city\",\n", + " \"zipcode_features:state\",\n", + " \"credit_history:credit_card_due\",\n", + " \"credit_history:mortgage_due\",\n", + "]\n", + "\n", + "# Retrieve historical features\n", + "historical_df = fs_credit_scoring_local.get_historical_features(\n", + " entity_df=entity_df,\n", + " features=feast_features,\n", + ").to_df()\n", + "\n", + "print(\"Historical DF:\\n\", historical_df)\n", + "\n", + "# Validate dataframe is not empty\n", + "assert not historical_df.empty, \" Historical features dataframe is empty!\"\n", + "\n", + "# 2. Validate required columns exist\n", + "expected_cols = {\n", + " \"dob_ssn\", \"zipcode\", \"event_timestamp\",\n", + " \"city\", \"state\",\n", + " \"credit_card_due\", \"mortgage_due\"\n", + "}\n", + "\n", + "missing_cols = expected_cols - set(historical_df.columns)\n", + "assert not missing_cols, f\" Missing columns in result: {missing_cols}\"\n", + "\n", + "# 3. Validate city/state are non-null (critical features)\n", + "assert pd.notna(historical_df.loc[0, \"city\"]), \" 'city' value is null!\"\n", + "assert pd.notna(historical_df.loc[0, \"state\"]), \" 'state' value is null!\"\n", + "\n", + "# 4. Validate entity matches input\n", + "assert historical_df.loc[0, \"zipcode\"] == 1463, \" zipcode mismatch!\"\n", + "assert historical_df.loc[0, \"dob_ssn\"] == \"19530219_5179\", \"❌ dob_ssn mismatch!\"\n", + "\n", + "print(\"✅ All validations passed successfully!\")\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" + }, + "orig_nbformat": 4 + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb new file mode 100755 index 00000000000..e2838a4f33e --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb @@ -0,0 +1,481 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import feast\n", + "\n", + "actual_version = feast.__version__\n", + "assert actual_version == os.environ.get(\"FEAST_VERSION\"), (\n", + " f\"❌ Feast version mismatch. Expected: {os.environ.get('FEAST_VERSION')}, Found: {actual_version}\"\n", + ")\n", + "print(f\"✅ Successfully installed Feast version: {actual_version}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%cd /opt/app-root/src/feature_repo\n", + "!ls -l" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "!cat /opt/app-root/src/feature_repo/feature_store.yaml" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "!mkdir -p data\n", + "!wget -O data/city_wikipedia_summaries_with_embeddings.parquet https://raw.githubusercontent.com/opendatahub-io/feast/master/examples/rag/feature_repo/data/city_wikipedia_summaries_with_embeddings.parquet" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd \n", + "\n", + "df = pd.read_parquet(\"./data/city_wikipedia_summaries_with_embeddings.parquet\")\n", + "df['vector'] = df['vector'].apply(lambda x: x.tolist())\n", + "embedding_length = len(df['vector'][0])\n", + "assert embedding_length == 384, f\"❌ Expected vector length 384, but got {embedding_length}\"\n", + "print(f'embedding length = {embedding_length}')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from IPython.display import display\n", + "\n", + "display(df.head())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "!pip install -q pymilvus[milvus_lite] transformers torch" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import subprocess\n", + "\n", + "# Run `feast apply` and capture output\n", + "result = subprocess.run([\"feast\", \"apply\"], capture_output=True, text=True)\n", + "\n", + "# Combine stdout and stderr in case important info is in either\n", + "output = result.stdout + result.stderr\n", + "\n", + "# Print full output for debugging (optional)\n", + "print(output)\n", + "\n", + "# Expected substrings to validate\n", + "expected_messages = [\n", + " \"Applying changes for project rag\",\n", + " \"Connecting to Milvus in local mode\",\n", + " \"Deploying infrastructure for city_embeddings\"\n", + "]\n", + "\n", + "# Validate all expected messages are in output\n", + "for msg in expected_messages:\n", + " assert msg in output, f\"❌ Expected message not found: '{msg}'\"\n", + "\n", + "print(\"✅ All expected messages were found in the output.\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from datetime import datetime\n", + "from feast import FeatureStore\n", + "\n", + "store = FeatureStore(repo_path=\".\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import io\n", + "import sys\n", + "\n", + "# Capture stdout\n", + "captured_output = io.StringIO()\n", + "sys_stdout_backup = sys.stdout\n", + "sys.stdout = captured_output\n", + "\n", + "# Call the function\n", + "store.write_to_online_store(feature_view_name='city_embeddings', df=df)\n", + "\n", + "# Restore stdout\n", + "sys.stdout = sys_stdout_backup\n", + "\n", + "# Get the output\n", + "output_str = captured_output.getvalue()\n", + "\n", + "# Expected message\n", + "expected_msg = \"Connecting to Milvus in local mode using data/online_store.db\"\n", + "\n", + "# Validate\n", + "assert expected_msg in output_str, f\"❌ Expected message not found.\\nExpected: {expected_msg}\\nActual Output:\\n{output_str}\"\n", + "\n", + "print(\"✅ Output message validated successfully.\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# List batch feature views\n", + "batch_fvs = store.list_batch_feature_views()\n", + "\n", + "# Print the number of batch feature views\n", + "print(\"Number of batch feature views:\", len(batch_fvs))\n", + "\n", + "# Assert that the result is an integer and non-negative\n", + "assert isinstance(len(batch_fvs), int), \"Result is not an integer\"\n", + "assert len(batch_fvs) >= 0, \"Feature view count is negative\"\n", + "\n", + "print(\"Feature views listed correctly ✅\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from feast import FeatureStore\n", + "\n", + "# Initialize store (if not already)\n", + "store = FeatureStore(repo_path=\".\") # Adjust path if necessary\n", + "\n", + "# Retrieve the feature view\n", + "fv = store.get_feature_view(\"city_embeddings\")\n", + "\n", + "# Assert name\n", + "assert fv.name == \"city_embeddings\", \"Feature view name mismatch\"\n", + "\n", + "# Assert entities\n", + "assert fv.entities == [\"item_id\"], f\"Expected entities ['item_id'], got {fv.entities}\"\n", + "\n", + "# Assert feature names and vector index settings\n", + "feature_names = [f.name for f in fv.features]\n", + "assert \"vector\" in feature_names, \"Missing 'vector' feature\"\n", + "assert \"state\" in feature_names, \"Missing 'state' feature\"\n", + "assert \"sentence_chunks\" in feature_names, \"Missing 'sentence_chunks' feature\"\n", + "assert \"wiki_summary\" in feature_names, \"Missing 'wiki_summary' feature\"\n", + "\n", + "# Assert 'vector' feature is a vector index with COSINE metric\n", + "vector_feature = next(f for f in fv.features if f.name == \"vector\")\n", + "assert vector_feature.vector_index, \"'vector' feature is not indexed\"\n", + "assert vector_feature.vector_search_metric == \"COSINE\", \"Expected COSINE search metric for 'vector'\"\n", + "\n", + "print(\"All assertions passed ✅\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from feast.entity import Entity\n", + "from feast.types import ValueType\n", + "entity = Entity(\n", + " name=\"item_id1\",\n", + " value_type=ValueType.INT64,\n", + " description=\"test id\",\n", + " tags={\"team\": \"feast\"},\n", + ")\n", + "store.apply(entity)\n", + "assert any(e.name == \"item_id1\" for e in store.list_entities())\n", + "print(\"Entity added ✅\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "entity_to_delete = store.get_entity(\"item_id1\")\n", + "\n", + "store.apply(\n", + " objects=[],\n", + " objects_to_delete=[entity_to_delete],\n", + " partial=False\n", + ")\n", + "\n", + "# Validation after deletion\n", + "assert not any(e.name == \"item_id1\" for e in store.list_entities())\n", + "print(\"Entity deleted ✅\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# List batch feature views\n", + "batch_fvs = store.list_batch_feature_views()\n", + "assert len(batch_fvs) == 1\n", + "\n", + "# Print count\n", + "print(f\"Found {len(batch_fvs)} batch feature view(s) ✅\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "pymilvus_client = store._provider._online_store._connect(store.config)\n", + "COLLECTION_NAME = pymilvus_client.list_collections()[0]\n", + "\n", + "milvus_query_result = pymilvus_client.query(\n", + " collection_name=COLLECTION_NAME,\n", + " filter=\"item_id == '0'\",\n", + ")\n", + "pd.DataFrame(milvus_query_result[0]).head()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import torch\n", + "import torch.nn.functional as F\n", + "from feast import FeatureStore\n", + "from pymilvus import MilvusClient, DataType, FieldSchema\n", + "from transformers import AutoTokenizer, AutoModel\n", + "from example_repo import city_embeddings_feature_view, item\n", + "\n", + "TOKENIZER = \"sentence-transformers/all-MiniLM-L6-v2\"\n", + "MODEL = \"sentence-transformers/all-MiniLM-L6-v2\"\n", + "\n", + "def mean_pooling(model_output, attention_mask):\n", + " token_embeddings = model_output[\n", + " 0\n", + " ] # First element of model_output contains all token embeddings\n", + " input_mask_expanded = (\n", + " attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()\n", + " )\n", + " return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(\n", + " input_mask_expanded.sum(1), min=1e-9\n", + " )\n", + "\n", + "def run_model(sentences, tokenizer, model):\n", + " encoded_input = tokenizer(\n", + " sentences, padding=True, truncation=True, return_tensors=\"pt\"\n", + " )\n", + " # Compute token embeddings\n", + " with torch.no_grad():\n", + " model_output = model(**encoded_input)\n", + "\n", + " sentence_embeddings = mean_pooling(model_output, encoded_input[\"attention_mask\"])\n", + " sentence_embeddings = F.normalize(sentence_embeddings, p=2, dim=1)\n", + " return sentence_embeddings" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "question = \"Which city has the largest population in New York?\"\n", + "\n", + "tokenizer = AutoTokenizer.from_pretrained(TOKENIZER)\n", + "model = AutoModel.from_pretrained(MODEL)\n", + "query_embedding = run_model(question, tokenizer, model)\n", + "query = query_embedding.detach().cpu().numpy().tolist()[0]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from IPython.display import display\n", + "\n", + "# Retrieve top k documents\n", + "context_data = store.retrieve_online_documents_v2(\n", + " features=[\n", + " \"city_embeddings:vector\",\n", + " \"city_embeddings:item_id\",\n", + " \"city_embeddings:state\",\n", + " \"city_embeddings:sentence_chunks\",\n", + " \"city_embeddings:wiki_summary\",\n", + " ],\n", + " query=query,\n", + " top_k=3,\n", + " distance_metric='COSINE',\n", + ").to_df()\n", + "display(context_data)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "def format_documents(context_df):\n", + " output_context = \"\"\n", + " unique_documents = context_df.drop_duplicates().apply(\n", + " lambda x: \"City & State = {\" + x['state'] +\"}\\nSummary = {\" + x['wiki_summary'].strip()+\"}\",\n", + " axis=1,\n", + " )\n", + " for i, document_text in enumerate(unique_documents):\n", + " output_context+= f\"****START DOCUMENT {i}****\\n{document_text.strip()}\\n****END DOCUMENT {i}****\"\n", + " return output_context" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "RAG_CONTEXT = format_documents(context_data[['state', 'wiki_summary']])\n", + "print(RAG_CONTEXT)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "FULL_PROMPT = f\"\"\"\n", + "You are an assistant for answering questions about states. You will be provided documentation from Wikipedia. Provide a conversational answer.\n", + "If you don't know the answer, just say \"I do not know.\" Don't make up an answer.\n", + "\n", + "Here are document(s) you should use when answer the users question:\n", + "{RAG_CONTEXT}\n", + "\"\"\"" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "!pip install openai" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "from openai import OpenAI\n", + "\n", + "client = OpenAI(\n", + " api_key=os.environ.get(\"OPENAI_API_KEY\"),\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "response = client.chat.completions.create(\n", + " model=\"gpt-4o-mini\",\n", + " messages=[\n", + " {\"role\": \"system\", \"content\": FULL_PROMPT},\n", + " {\"role\": \"user\", \"content\": question}\n", + " ],\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# The expected output\n", + "expected_output = (\n", + " \"New York City\"\n", + ")\n", + "\n", + "# Actual output from response\n", + "actual_output = '\\n'.join([c.message.content.strip() for c in response.choices])\n", + "\n", + "# Validate\n", + "assert expected_output in actual_output, f\"❌ Output mismatch:\\nExpected: {expected_output}\\nActual: {actual_output}\"\n", + "\n", + "print(\"✅ Output matches expected response.\")" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" + }, + "orig_nbformat": 4 + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb new file mode 100644 index 00000000000..3b91bcccd8e --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb @@ -0,0 +1,516 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# --- Configuration Variables ---\n", + "import os \n", + "\n", + "# Namespace where your resources exist\n", + "namespace = os.environ.get(\"NAMESPACE\")\n", + "\n", + "fsconfigmap = \"cm-fs-data\"\n", + "\n", + "# Fetch token and server directly from oc CLI\n", + "import subprocess\n", + "\n", + "def oc(cmd):\n", + " return subprocess.check_output(cmd, shell=True).decode(\"utf-8\").strip()\n", + "\n", + "token = oc(\"oc whoami -t\")\n", + "server = oc(\"oc whoami --show-server\")\n", + "\n", + "os.environ[\"CLUSTER_TOKEN\"] = token\n", + "os.environ[\"CLUSTER_SERVER\"] = server\n", + "\n", + "\n", + "# RayCluster name\n", + "raycluster = \"feastraytest\"\n", + "os.environ[\"RAY_CLUSTER\"] = raycluster\n", + "\n", + "# Show configured values\n", + "print(\"Configuration Variables:\")\n", + "print(f\" Namespace: {namespace}\")\n", + "print(f\" Server: {server}\")\n", + "print(f\" Token: {'*' * 20}\") # hide actual token\n", + "print(f\" Ray Cluster: {raycluster}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "! git clone https://github.com/Srihari1192/feast-rag-ray.git" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%cd feast-rag-ray/feature_repo" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "!oc login --token=$token --server=$server" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "!oc create configmap $fsconfigmap --from-file=data/customer_daily_profile.parquet --from-file=data/driver_stats.parquet -n $namespace" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Import pieces from codeflare-sdk\n", + "from codeflare_sdk import Cluster, ClusterConfiguration, TokenAuthentication\n", + "\n", + "# Create authentication with token and server from oc\n", + "auth = TokenAuthentication(\n", + " token=token,\n", + " server=server,\n", + " skip_tls=True\n", + ")\n", + "auth.login()\n", + "print(\"✓ Authentication successful\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from kubernetes.client import (\n", + " V1Volume,\n", + " V1ConfigMapVolumeSource,\n", + " V1VolumeMount,\n", + ") \n", + "\n", + "data_volume = V1Volume(\n", + " name=\"data\",\n", + " config_map=V1ConfigMapVolumeSource(name=fsconfigmap)\n", + ")\n", + "\n", + "data_mount = V1VolumeMount(\n", + " name=\"data\",\n", + " mount_path=\"/opt/app-root/src/feast-rag-ray/feature_repo/data\",\n", + " read_only=True\n", + ")\n", + "\n", + "cluster = Cluster(ClusterConfiguration(\n", + " name=raycluster,\n", + " head_cpu_requests=1,\n", + " head_cpu_limits=1,\n", + " head_memory_requests=4,\n", + " head_memory_limits=4,\n", + " head_extended_resource_requests={'nvidia.com/gpu':0}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n", + " worker_extended_resource_requests={'nvidia.com/gpu':0},\n", + " num_workers=2,\n", + " worker_cpu_requests='250m',\n", + " worker_cpu_limits=1,\n", + " worker_memory_requests=4,\n", + " worker_memory_limits=4,\n", + " # image=\"\", # Optional Field \n", + " write_to_file=False, # When enabled Ray Cluster yaml files are written to /HOME/.codeflare/resources\n", + " local_queue=\"fs-user-queue\", # Specify the local queue manually\n", + " # ⭐ Best method: Use secretKeyRef to expose AWS credentials safely\n", + " volumes=[data_volume],\n", + " volume_mounts=[data_mount],\n", + " \n", + "))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "cluster.apply()\n", + "# cluster.wait_ready()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import time\n", + "\n", + "MAX_WAIT = 180 # 3 minutes\n", + "INTERVAL = 5 # check every 5 seconds\n", + "elapsed = 0\n", + "\n", + "print(\"⏳ Waiting up to 3 minutes for RayCluster to be READY...\\n\")\n", + "\n", + "while elapsed < MAX_WAIT:\n", + " details = cluster.details()\n", + " status = details.status.value\n", + "\n", + " print(details)\n", + " print(\"Cluster Status:\", status)\n", + "\n", + " if status == \"ready\":\n", + " print(\"✅ RayCluster is READY!\")\n", + " break\n", + " \n", + " print(f\"⏳ RayCluster is NOT ready yet: {status} ... checking again in {INTERVAL}s\\n\")\n", + " time.sleep(INTERVAL)\n", + " elapsed += INTERVAL\n", + "\n", + "else:\n", + " print(\"❌ Timeout: RayCluster did NOT become READY within 3 minutes.\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "! feast apply" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import sys\n", + "from pathlib import Path\n", + "from feast import FeatureStore\n", + "\n", + "# Add feature repo to PYTHONPATH\n", + "repo_path = Path(\".\")\n", + "sys.path.append(str(repo_path))\n", + "\n", + "# Initialize Feature Store\n", + "print(\"Initializing Feast with Ray configuration...\")\n", + "store = FeatureStore(repo_path=\".\")\n", + "\n", + "# Assertions: Verify store is initialized correctly\n", + "assert store is not None, \"FeatureStore should be initialized\"\n", + "assert store.config is not None, \"Store config should be available\"\n", + "assert store.config.offline_store is not None, \"Offline store should be configured\"\n", + "\n", + "print(f\"✓ Offline store: {store.config.offline_store.type}\")\n", + "if hasattr(store.config, \"batch_engine\") and store.config.batch_engine:\n", + " print(f\"✓ Compute engine: {store.config.batch_engine.type}\")\n", + " # Assertion: Verify batch engine is configured if present\n", + " assert store.config.batch_engine.type is not None, \"Batch engine type should be set\"\n", + "else:\n", + " print(\"⚠ No compute engine configured\")\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 2. Create Entity DataFrame\n", + "\n", + "Create an entity DataFrame for historical feature retrieval with point-in-time timestamps.\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from datetime import datetime, timedelta\n", + "import pandas as pd\n", + "\n", + "# --- Create time window ---\n", + "end_date = datetime.now().replace(microsecond=0, second=0, minute=0)\n", + "start_date = end_date - timedelta(days=2)\n", + "\n", + "\n", + "entity_df = pd.DataFrame(\n", + " {\n", + " \"driver_id\": [1001, 1002, 1003],\n", + " \"customer_id\": [2001, 2002, 2003],\n", + " \"event_timestamp\": [\n", + " pd.Timestamp(end_date - timedelta(hours=24), tz=\"UTC\"),\n", + " pd.Timestamp(end_date - timedelta(hours=12), tz=\"UTC\"),\n", + " pd.Timestamp(end_date - timedelta(hours=6), tz=\"UTC\"),\n", + " ],\n", + " }\n", + ")\n", + "\n", + "# Assertions: Verify entity DataFrame is created correctly\n", + "assert len(entity_df) == 3, f\"Expected 3 rows, got {len(entity_df)}\"\n", + "assert \"driver_id\" in entity_df.columns, \"driver_id column should be present\"\n", + "assert \"customer_id\" in entity_df.columns, \"customer_id column should be present\"\n", + "assert \"event_timestamp\" in entity_df.columns, \"event_timestamp column should be present\"\n", + "assert all(entity_df[\"driver_id\"].isin([1001, 1002, 1003])), \"driver_id values should match expected\"\n", + "assert all(entity_df[\"customer_id\"].isin([2001, 2002, 2003])), \"customer_id values should match expected\"\n", + "assert entity_df[\"event_timestamp\"].notna().all(), \"All event_timestamp values should be non-null\"\n", + "\n", + "print(f\"✓ Created entity DataFrame with {len(entity_df)} rows\")\n", + "print(f\"✓ Time range: {start_date} to {end_date}\")\n", + "print(\"\\nEntity DataFrame:\")\n", + "print(entity_df)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 3. Retrieve Historical Features\n", + "\n", + "Retrieve historical features using Ray compute engine for distributed point-in-time joins.\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Cell 4: Retrieve Historical Features\n", + "print(\"Retrieving historical features with Ray compute engine...\")\n", + "print(\"(This demonstrates distributed point-in-time joins)\")\n", + "\n", + "try:\n", + " # Get historical features - this uses Ray compute engine for distributed processing\n", + " historical_features = store.get_historical_features(\n", + " entity_df=entity_df,\n", + " features=[\n", + " \"driver_hourly_stats:conv_rate\",\n", + " \"driver_hourly_stats:acc_rate\",\n", + " \"driver_hourly_stats:avg_daily_trips\",\n", + " \"customer_daily_profile:current_balance\",\n", + " \"customer_daily_profile:avg_passenger_count\",\n", + " \"customer_daily_profile:lifetime_trip_count\",\n", + " ],\n", + " )\n", + "\n", + " # Convert to DataFrame - Ray processes this efficiently\n", + " historical_df = historical_features.to_df()\n", + " \n", + " # Assertions: Verify historical features are retrieved correctly\n", + " assert historical_df is not None, \"Historical features DataFrame should not be None\"\n", + " assert len(historical_df) > 0, \"Should retrieve at least one row of historical features\"\n", + " assert \"driver_id\" in historical_df.columns, \"driver_id should be in the result\"\n", + " assert \"customer_id\" in historical_df.columns, \"customer_id should be in the result\"\n", + " \n", + " # Verify expected feature columns are present (some may be None if data doesn't exist)\n", + " expected_features = [\n", + " \"conv_rate\", \"acc_rate\", \"avg_daily_trips\",\n", + " \"current_balance\", \"avg_passenger_count\", \"lifetime_trip_count\"\n", + " ]\n", + " feature_columns = [col for col in historical_df.columns if col in expected_features]\n", + " assert len(feature_columns) > 0, f\"Should have at least one feature column, got: {historical_df.columns.tolist()}\"\n", + " \n", + " print(f\"✓ Retrieved {len(historical_df)} historical feature rows\")\n", + " print(f\"✓ Features: {list(historical_df.columns)}\")\n", + " \n", + " # Display the results\n", + " print(\"\\nHistorical Features DataFrame:\")\n", + " display(historical_df.head(10))\n", + "\n", + "except Exception as e:\n", + " print(f\"⚠ Historical features retrieval failed: {e}\")\n", + " print(\"This might be due to missing Ray dependencies or data\")\n", + " raise\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 4. Test On-Demand Feature Transformations\n", + "\n", + "Demonstrate on-demand feature transformations that are computed at request time.\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Cell 5: Test On-Demand Features\n", + "print(\"Testing on-demand feature transformations...\")\n", + "\n", + "try:\n", + " # Get features including on-demand transformations\n", + " features_with_odfv = store.get_historical_features(\n", + " entity_df=entity_df.head(1),\n", + " features=[\n", + " \"driver_hourly_stats:conv_rate\",\n", + " \"driver_hourly_stats:acc_rate\",\n", + " \"driver_hourly_stats:avg_daily_trips\",\n", + " \"driver_activity_v2:conv_rate_plus_acc_rate\",\n", + " \"driver_activity_v2:trips_per_day_normalized\",\n", + " ],\n", + " )\n", + "\n", + " odfv_df = features_with_odfv.to_df()\n", + " \n", + " # Assertions: Verify on-demand features are computed correctly\n", + " assert odfv_df is not None, \"On-demand features DataFrame should not be None\"\n", + " assert len(odfv_df) > 0, \"Should retrieve at least one row with on-demand features\"\n", + " assert \"driver_id\" in odfv_df.columns, \"driver_id should be in the result\"\n", + " \n", + " # Verify on-demand feature columns if they exist\n", + " if \"conv_rate_plus_acc_rate\" in odfv_df.columns:\n", + " # Assertion: Verify the on-demand feature is computed\n", + " assert odfv_df[\"conv_rate_plus_acc_rate\"].notna().any(), \"conv_rate_plus_acc_rate should have non-null values\"\n", + " print(\"✓ On-demand feature 'conv_rate_plus_acc_rate' is computed\")\n", + " \n", + " if \"trips_per_day_normalized\" in odfv_df.columns:\n", + " assert odfv_df[\"trips_per_day_normalized\"].notna().any(), \"trips_per_day_normalized should have non-null values\"\n", + " print(\"✓ On-demand feature 'trips_per_day_normalized' is computed\")\n", + " \n", + " print(f\"✓ Retrieved {len(odfv_df)} rows with on-demand transformations\")\n", + " \n", + " # Display results\n", + " print(\"\\nFeatures with On-Demand Transformations:\")\n", + " display(odfv_df)\n", + " \n", + " # Show specific transformed features\n", + " if \"conv_rate_plus_acc_rate\" in odfv_df.columns:\n", + " print(\"\\nSample with on-demand features:\")\n", + " display(\n", + " odfv_df[[\"driver_id\", \"conv_rate\", \"acc_rate\", \"conv_rate_plus_acc_rate\"]]\n", + " )\n", + "\n", + "except Exception as e:\n", + " print(f\"⚠ On-demand features failed: {e}\")\n", + " raise\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 5. Materialize Features to Online Store\n", + "\n", + "Materialize features to the online store using Ray compute engine for efficient batch processing.\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from datetime import timezone\n", + "print(\"Materializing features to online store...\")\n", + "store.materialize(\n", + "\tstart_date=datetime(2025, 1, 1, tzinfo=timezone.utc),\n", + "\tend_date=end_date,\n", + ")\n", + "\n", + "# Minimal output assertion: materialization succeeded if no exception\n", + "assert True, \"Materialization completed successfully\"\n", + "print(\"✓ Initial materialization successful\")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 6. Test Online Feature Serving\n", + "\n", + "Retrieve features from the online store for low-latency serving.\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Cell 7: Test Online Feature Serving\n", + "print(\"Testing online feature serving...\")\n", + "\n", + "try:\n", + " entity_rows = [\n", + " {\"driver_id\": 1001, \"customer_id\": 2001},\n", + " {\"driver_id\": 1002, \"customer_id\": 2002},\n", + " ]\n", + " \n", + " # Assertion: Verify entity rows are valid\n", + " assert len(entity_rows) == 2, \"Should have 2 entity rows\"\n", + " assert all(\"driver_id\" in row for row in entity_rows), \"All entity rows should have driver_id\"\n", + " assert all(\"customer_id\" in row for row in entity_rows), \"All entity rows should have customer_id\"\n", + " \n", + " online_features = store.get_online_features(\n", + " features=[\n", + " \"driver_hourly_stats:conv_rate\",\n", + " \"driver_hourly_stats:acc_rate\",\n", + " \"customer_daily_profile:current_balance\",\n", + " ],\n", + " entity_rows=entity_rows,\n", + " )\n", + "\n", + " online_df = online_features.to_df()\n", + " \n", + " # Assertions: Verify online features are retrieved correctly\n", + " assert online_df is not None, \"Online features DataFrame should not be None\"\n", + " assert len(online_df) == len(entity_rows), f\"Should retrieve {len(entity_rows)} rows, got {len(online_df)}\"\n", + " assert \"driver_id\" in online_df.columns, \"driver_id should be in the result\"\n", + " assert \"customer_id\" in online_df.columns, \"customer_id should be in the result\"\n", + " \n", + " # Verify expected feature columns are present\n", + " expected_features = [\"conv_rate\", \"acc_rate\", \"current_balance\"]\n", + " feature_columns = [col for col in online_df.columns if col in expected_features]\n", + " assert len(feature_columns) > 0, f\"Should have at least one feature column, got: {online_df.columns.tolist()}\"\n", + " \n", + " # Verify entity IDs match\n", + " assert all(online_df[\"driver_id\"].isin([1001, 1002])), \"driver_id values should match entity rows\"\n", + " assert all(online_df[\"customer_id\"].isin([2001, 2002])), \"customer_id values should match entity rows\"\n", + " \n", + " print(f\"✓ Retrieved {len(online_df)} online feature rows\")\n", + " print(f\"✓ Features retrieved: {feature_columns}\")\n", + " \n", + " print(\"\\nOnline Features DataFrame:\")\n", + " display(online_df)\n", + "\n", + "except Exception as e:\n", + " print(f\"⚠ Online serving failed: {e}\")\n", + " raise\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "cluster.down()" + ] + } + ], + "metadata": { + "language_info": { + "name": "python" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml b/infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml new file mode 100644 index 00000000000..fae126b528a --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml @@ -0,0 +1,74 @@ +apiVersion: v1 +kind: Secret +metadata: + name: feast-data-stores + namespace: test-ns-feast +stringData: + redis: | + connection_string: redis.test-ns-feast.svc.cluster.local:6379 + sql: | + path: postgresql+psycopg://${POSTGRESQL_USER}:${POSTGRESQL_PASSWORD}@postgres.test-ns-feast.svc.cluster.local:5432/${POSTGRESQL_DATABASE} + cache_ttl_seconds: 60 + sqlalchemy_config_kwargs: + echo: false + pool_pre_ping: true +--- +apiVersion: feast.dev/v1 +kind: FeatureStore +metadata: + name: credit-scoring + namespace: test-ns-feast +spec: + authz: + kubernetes: + roles: [] + feastProject: credit_scoring_local + feastProjectDir: + git: + url: https://github.com/feast-dev/feast-credit-score-local-tutorial + ref: 598a270 + services: + offlineStore: + persistence: + file: + type: duckdb + server: + envFrom: + - secretRef: + name: postgres-secret + env: + - name: MPLCONFIGDIR + value: /tmp + resources: + requests: + cpu: 150m + memory: 128Mi + onlineStore: + persistence: + store: + type: redis + secretRef: + name: feast-data-stores + server: + envFrom: + - secretRef: + name: postgres-secret + env: + - name: MPLCONFIGDIR + value: /tmp + resources: + requests: + cpu: 150m + memory: 128Mi + registry: + local: + persistence: + store: + type: sql + secretRef: + name: feast-data-stores + server: + envFrom: + - secretRef: + name: postgres-secret + restAPI: true diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/__init__.py b/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/example_repo.py b/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/example_repo.py new file mode 100755 index 00000000000..7a37d99d495 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/example_repo.py @@ -0,0 +1,42 @@ +from datetime import timedelta + +from feast import ( + FeatureView, + Field, + FileSource, +) +from feast.data_format import ParquetFormat +from feast.types import Float32, Array, String, ValueType +from feast import Entity + +item = Entity( + name="item_id", + description="Item ID", + value_type=ValueType.INT64, +) + +parquet_file_path = "./data/city_wikipedia_summaries_with_embeddings.parquet" + +source = FileSource( + file_format=ParquetFormat(), + path=parquet_file_path, + timestamp_field="event_timestamp", +) + +city_embeddings_feature_view = FeatureView( + name="city_embeddings", + entities=[item], + schema=[ + Field( + name="vector", + dtype=Array(Float32), + vector_index=True, + vector_search_metric="COSINE", + ), + Field(name="state", dtype=String), + Field(name="sentence_chunks", dtype=String), + Field(name="wiki_summary", dtype=String), + ], + source=source, + ttl=timedelta(hours=2), +) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/feature_store.yaml b/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/feature_store.yaml new file mode 100755 index 00000000000..f8f9cc293dc --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feature_repo/feature_store.yaml @@ -0,0 +1,16 @@ +project: rag +provider: local +registry: data/registry.db +online_store: + type: milvus + path: data/online_store.db + vector_enabled: true + embedding_dim: 384 + index_type: "FLAT" + metric_type: "COSINE" +offline_store: + type: file +entity_key_serialization_version: 3 +auth: + type: no_auth + diff --git a/infra/feast-operator/test/e2e_rhoai/resources/kueue_resources_setup.yaml b/infra/feast-operator/test/e2e_rhoai/resources/kueue_resources_setup.yaml new file mode 100644 index 00000000000..ebcac54f4a0 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/kueue_resources_setup.yaml @@ -0,0 +1,31 @@ +apiVersion: kueue.x-k8s.io/v1beta1 +kind: ResourceFlavor +metadata: + name: "fs-resource-flavor" +--- +apiVersion: kueue.x-k8s.io/v1beta1 +kind: ClusterQueue +metadata: + name: "fs-cluster-queue" +spec: + namespaceSelector: {} # match all. + resourceGroups: + - coveredResources: ["cpu", "memory","nvidia.com/gpu"] + flavors: + - name: "fs-resource-flavor" + resources: + - name: "cpu" + nominalQuota: 9 + - name: "memory" + nominalQuota: 36Gi + - name: "nvidia.com/gpu" + nominalQuota: 0 +--- +apiVersion: kueue.x-k8s.io/v1beta1 +kind: LocalQueue +metadata: + name: "fs-user-queue" + annotations: + "kueue.x-k8s.io/default-queue": "true" +spec: + clusterQueue: "fs-cluster-queue" diff --git a/infra/feast-operator/test/e2e_rhoai/resources/permissions.py b/infra/feast-operator/test/e2e_rhoai/resources/permissions.py new file mode 100644 index 00000000000..7b48a7b4c56 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/permissions.py @@ -0,0 +1,19 @@ +from feast.feast_object import ALL_FEATURE_VIEW_TYPES +from feast.permissions.permission import Permission +from feast.permissions.action import READ, AuthzedAction +from feast.permissions.policy import NamespaceBasedPolicy +from feast.project import Project +from feast.entity import Entity +from feast.feature_service import FeatureService +from feast.saved_dataset import SavedDataset + +perm_namespace = ["test-ns-feast"] + +WITHOUT_DATA_SOURCE = [Project, Entity, FeatureService, SavedDataset] + ALL_FEATURE_VIEW_TYPES + +test_perm = Permission( + name="feast-auth", + types=WITHOUT_DATA_SOURCE, + policy=NamespaceBasedPolicy(namespaces=perm_namespace), + actions=[AuthzedAction.DESCRIBE] + READ +) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/pvc.yaml b/infra/feast-operator/test/e2e_rhoai/resources/pvc.yaml new file mode 100644 index 00000000000..a9e8c1be299 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/pvc.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: jupyterhub-nb-kube-3aadmin-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi diff --git a/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go b/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go new file mode 100644 index 00000000000..be5220a49d9 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go @@ -0,0 +1,388 @@ +package utils + +import ( + "bytes" + "fmt" + "os" + "os/exec" + "strings" + "text/template" + "time" + + testutils "github.com/feast-dev/feast/infra/feast-operator/test/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +type NotebookTemplateParams struct { + Namespace string + IngressDomain string + OpenDataHubNamespace string + NotebookImage string + NotebookConfigMapName string + NotebookPVC string + Username string + OC_TOKEN string + OC_SERVER string + NotebookFile string + Command string + PipIndexUrl string + PipTrustedHost string + FeastVerison string + OpenAIAPIKey string + FeastProject string +} + +// CreateNotebook renders a notebook manifest from a template and applies it using kubectl. +func CreateNotebook(params NotebookTemplateParams) error { + content, err := os.ReadFile("test/e2e_rhoai/resources/custom-nb.yaml") + if err != nil { + return fmt.Errorf("failed to read template file: %w", err) + } + + tmpl, err := template.New("notebook").Parse(string(content)) + if err != nil { + return fmt.Errorf("failed to parse template: %w", err) + } + + var rendered bytes.Buffer + if err := tmpl.Execute(&rendered, params); err != nil { + return fmt.Errorf("failed to substitute template: %w", err) + } + + tmpFile, err := os.CreateTemp("", "notebook-*.yaml") + if err != nil { + return fmt.Errorf("failed to create temp file: %w", err) + } + + // Defer cleanup of temp file + defer func() { + if err := os.Remove(tmpFile.Name()); err != nil { + fmt.Printf("warning: failed to remove temp file %s: %v", tmpFile.Name(), err) + } + }() + + if _, err := tmpFile.Write(rendered.Bytes()); err != nil { + return fmt.Errorf("failed to write to temp file: %w", err) + } + + if err := tmpFile.Close(); err != nil { + return fmt.Errorf("failed to close temp file: %w", err) + } + + // fmt.Println("Notebook manifest applied successfully") + cmd := exec.Command("kubectl", "apply", "-f", tmpFile.Name(), "-n", params.Namespace) + output, err := testutils.Run(cmd, "/test/e2e_rhoai") + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf( + "Failed to create Notebook %s.\nError: %v\nOutput: %s\n", + tmpFile.Name(), err, output, + )) + fmt.Printf("Notebook %s created successfully\n", tmpFile.Name()) + return nil +} + +// MonitorNotebookPod waits for a notebook pod to reach Running state and verifies execution logs. +func MonitorNotebookPod(namespace, podPrefix string, notebookName string) error { + const successMarker = "Notebook executed successfully" + const failureMarker = "Notebook execution failed" + const pollInterval = 5 * time.Second + var pod *PodInfo + + fmt.Println("🔄 Waiting for notebook pod to reach Running & Ready state...") + + foundRunningReady := false + for i := 0; i < 36; i++ { + var err error + pod, err = getPodByPrefix(namespace, podPrefix) + if err != nil { + fmt.Printf("⏳ Pod not created yet: %v\n", err) + time.Sleep(pollInterval) + continue + } + if pod.Status == "Running" { + fmt.Printf("✅ Pod %s is Running and Ready.\n", pod.Name) + foundRunningReady = true + break + } + fmt.Printf("⏳ Pod %s not ready yet. Phase: %s\n", pod.Name, pod.Status) + time.Sleep(pollInterval) + } + + if !foundRunningReady { + return fmt.Errorf("❌ Pod %s did not reach Running & Ready state within 3 minutes", podPrefix) + } + + // Start monitoring notebook logs + fmt.Printf("⏳ Monitoring Notebook pod %s Logs for Jupyter Notebook %s execution status\n", pod.Name, notebookName) + + for i := 0; i < 60; i++ { + logs, err := getPodLogs(namespace, pod.Name) + if err != nil { + fmt.Printf("⏳ Failed to get logs for pod %s: %v\n", pod.Name, err) + time.Sleep(pollInterval) + continue + } + + if strings.Contains(logs, successMarker) { + Expect(logs).To(ContainSubstring(successMarker)) + fmt.Printf("✅ Jupyter Notebook pod %s executed successfully.\n", pod.Name) + return nil + } + + if strings.Contains(logs, failureMarker) { + fmt.Printf("❌ Notebook pod %s failed: failure marker found.\n", pod.Name) + return fmt.Errorf("Notebook failed in execution. Logs:\n%s", logs) + } + + time.Sleep(pollInterval) + } + + return fmt.Errorf("❌ Timed out waiting for notebook pod %s to complete", podPrefix) +} + +type PodInfo struct { + Name string + Status string +} + +// returns the first pod matching a name prefix in the given namespace. +func getPodByPrefix(namespace, prefix string) (*PodInfo, error) { + cmd := exec.Command( + "kubectl", "get", "pods", "-n", namespace, + "-o", "jsonpath={range .items[*]}{.metadata.name} {.status.phase}{\"\\n\"}{end}", + ) + output, err := testutils.Run(cmd, "/test/e2e_rhoai") + if err != nil { + return nil, fmt.Errorf("failed to get pods: %w", err) + } + + lines := strings.Split(strings.TrimSpace(string(output)), "\n") + for _, line := range lines { + parts := strings.Fields(line) + if len(parts) < 2 { + continue + } + name := parts[0] + status := parts[1] + + if strings.HasPrefix(name, prefix) { + return &PodInfo{ + Name: name, + Status: status, + }, nil + } + } + + return nil, fmt.Errorf("no pod found with prefix %q in namespace %q", prefix, namespace) +} + +// retrieves the logs of a specified pod in the given namespace. +func getPodLogs(namespace, podName string) (string, error) { + cmd := exec.Command("kubectl", "logs", "-n", namespace, podName) + var out bytes.Buffer + var stderr bytes.Buffer + cmd.Stdout = &out + cmd.Stderr = &stderr + + err := cmd.Run() + if err != nil { + return "", fmt.Errorf("error getting pod logs: %v - %s", err, stderr.String()) + } + + return out.String(), nil +} + +// returns the OpenShift cluster ingress domain. +func GetIngressDomain(testDir string) string { + cmd := exec.Command("oc", "get", "ingresses.config.openshift.io", "cluster", "-o", "jsonpath={.spec.domain}") + output, _ := testutils.Run(cmd, testDir) + return string(output) +} + +// returns the current OpenShift user authentication token. +func GetOCToken(testDir string) string { + cmd := exec.Command("oc", "whoami", "--show-token") + output, _ := testutils.Run(cmd, testDir) + return string(output) +} + +// returns the OpenShift API server URL for the current user. +func GetOCServer(testDir string) string { + cmd := exec.Command("oc", "whoami", "--show-server") + output, _ := testutils.Run(cmd, testDir) + return string(output) +} + +// returns the OpenShift cluster logged in Username +func GetOCUser(testDir string) string { + cmd := exec.Command("oc", "whoami") + output, _ := testutils.Run(cmd, testDir) + return strings.TrimSpace(string(output)) +} + +// SetNamespaceContext sets the kubectl namespace context to the specified namespace +func SetNamespaceContext(namespace, testDir string) error { + cmd := exec.Command("kubectl", "config", "set-context", "--current", "--namespace", namespace) + output, err := testutils.Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to set namespace context to %s: %w\nOutput: %s", namespace, err, output) + } + return nil +} + +// CreateNotebookConfigMap creates a ConfigMap containing the notebook file and feature repo +func CreateNotebookConfigMap(namespace, configMapName, notebookFile, featureRepoPath, testDir string) error { + cmd := exec.Command("kubectl", "create", "configmap", configMapName, + "--from-file="+notebookFile, + "--from-file="+featureRepoPath) + output, err := testutils.Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to create ConfigMap %s: %w\nOutput: %s", configMapName, err, output) + } + return nil +} + +// CreateNotebookPVC creates a PersistentVolumeClaim for the notebook +func CreateNotebookPVC(pvcFile, testDir string) error { + cmd := exec.Command("kubectl", "apply", "-f", pvcFile) + _, err := testutils.Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to create PVC from %s: %w", pvcFile, err) + } + return nil +} + +// CreateNotebookRoleBinding creates a rolebinding for the user in the specified namespace +func CreateNotebookRoleBinding(namespace, rolebindingName, username, testDir string) error { + cmd := exec.Command("kubectl", "create", "rolebinding", rolebindingName, + "-n", namespace, + "--role=admin", + "--user="+username) + _, err := testutils.Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to create rolebinding %s: %w", rolebindingName, err) + } + return nil +} + +// BuildNotebookCommand builds the command array for executing a notebook with papermill +func BuildNotebookCommand(notebookName, testDir string) []string { + return []string{ + "/bin/sh", + "-c", + fmt.Sprintf( + "pip install papermill && "+ + "mkdir -p /opt/app-root/src/feature_repo && "+ + "cp -rL /opt/app-root/notebooks/* /opt/app-root/src/feature_repo/ && "+ + "oc login --token=%s --server=%s --insecure-skip-tls-verify=true && "+ + "(papermill /opt/app-root/notebooks/%s /opt/app-root/src/output.ipynb --kernel python3 && "+ + "echo '✅ Notebook executed successfully' || "+ + "(echo '❌ Notebook execution failed' && "+ + "cp /opt/app-root/src/output.ipynb /opt/app-root/src/failed_output.ipynb && "+ + "echo '📄 Copied failed notebook to failed_output.ipynb')) && "+ + "jupyter nbconvert --to notebook --stdout /opt/app-root/src/output.ipynb || echo '⚠️ nbconvert failed' && "+ + "sleep 100; exit 0", + GetOCToken(testDir), + GetOCServer(testDir), + notebookName, + ), + } +} + +// GetNotebookParams builds and returns NotebookTemplateParams from environment variables and configuration +// feastProject is optional - if provided, it will be set in the notebook annotation, otherwise it will be empty +func GetNotebookParams(namespace, configMapName, notebookPVC, notebookName, testDir string, feastProject string) NotebookTemplateParams { + username := GetOCUser(testDir) + command := BuildNotebookCommand(notebookName, testDir) + + getEnv := func(key string) string { + val, _ := os.LookupEnv(key) + return val + } + + return NotebookTemplateParams{ + Namespace: namespace, + IngressDomain: GetIngressDomain(testDir), + OpenDataHubNamespace: getEnv("APPLICATIONS_NAMESPACE"), + NotebookImage: getEnv("NOTEBOOK_IMAGE"), + NotebookConfigMapName: configMapName, + NotebookPVC: notebookPVC, + Username: username, + OC_TOKEN: GetOCToken(testDir), + OC_SERVER: GetOCServer(testDir), + NotebookFile: notebookName, + Command: "[\"" + strings.Join(command, "\",\"") + "\"]", + PipIndexUrl: getEnv("PIP_INDEX_URL"), + PipTrustedHost: getEnv("PIP_TRUSTED_HOST"), + FeastVerison: getEnv("FEAST_VERSION"), + OpenAIAPIKey: getEnv("OPENAI_API_KEY"), + FeastProject: feastProject, + } +} + +// SetupNotebookEnvironment performs all the setup steps required for notebook testing +func SetupNotebookEnvironment(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, testDir string) error { + // Set namespace context + if err := SetNamespaceContext(namespace, testDir); err != nil { + return fmt.Errorf("failed to set namespace context: %w", err) + } + + // Create config map + if err := CreateNotebookConfigMap(namespace, configMapName, notebookFile, featureRepoPath, testDir); err != nil { + return fmt.Errorf("failed to create config map: %w", err) + } + + // Create PVC + if err := CreateNotebookPVC(pvcFile, testDir); err != nil { + return fmt.Errorf("failed to create PVC: %w", err) + } + + // Create rolebinding + username := GetOCUser(testDir) + if err := CreateNotebookRoleBinding(namespace, rolebindingName, username, testDir); err != nil { + return fmt.Errorf("failed to create rolebinding: %w", err) + } + + return nil +} + +// CreateNotebookTest performs all the setup steps and creates a notebook. +// This function handles namespace context, ConfigMap, PVC, rolebinding, and notebook creation. +// feastProject is optional - if provided, it will be set in the notebook annotation, otherwise it will be empty +func CreateNotebookTest(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, notebookName, testDir string, feastProject string) { + // Execute common setup steps + By(fmt.Sprintf("Setting namespace context to : %s", namespace)) + Expect(SetNamespaceContext(namespace, testDir)).To(Succeed()) + fmt.Printf("Successfully set namespace context to: %s\n", namespace) + + By(fmt.Sprintf("Creating Config map: %s", configMapName)) + Expect(CreateNotebookConfigMap(namespace, configMapName, notebookFile, featureRepoPath, testDir)).To(Succeed()) + fmt.Printf("ConfigMap %s created successfully\n", configMapName) + + By(fmt.Sprintf("Creating Persistent volume claim: %s", notebookPVC)) + Expect(CreateNotebookPVC(pvcFile, testDir)).To(Succeed()) + fmt.Printf("Persistent Volume Claim %s created successfully\n", notebookPVC) + + By(fmt.Sprintf("Creating rolebinding %s for the user", rolebindingName)) + Expect(CreateNotebookRoleBinding(namespace, rolebindingName, GetOCUser(testDir), testDir)).To(Succeed()) + fmt.Printf("Created rolebinding %s successfully\n", rolebindingName) + + // Build notebook parameters and create notebook + nbParams := GetNotebookParams(namespace, configMapName, notebookPVC, notebookName, testDir, feastProject) + By("Creating Jupyter Notebook") + Expect(CreateNotebook(nbParams)).To(Succeed(), "Failed to create notebook") +} + +// MonitorNotebookTest monitors the notebook execution and verifies completion. +func MonitorNotebookTest(namespace, notebookName string) { + By("Monitoring notebook logs") + Expect(MonitorNotebookPod(namespace, "jupyter-nb-", notebookName)).To(Succeed(), "Notebook execution failed") +} + +// RunNotebookTest performs all the setup steps, creates a notebook, and monitors its execution. +// This function is kept for backward compatibility. For new tests, use CreateNotebookTest and MonitorNotebookTest separately. +// feastProject is optional - if provided, it will be set in the notebook annotation, otherwise it will be empty +func RunNotebookTest(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, notebookName, testDir string, feastProject string) { + CreateNotebookTest(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, notebookName, testDir, feastProject) + MonitorNotebookTest(namespace, notebookName) +} diff --git a/infra/feast-operator/test/e2e_rhoai/utils/util.go b/infra/feast-operator/test/e2e_rhoai/utils/util.go new file mode 100644 index 00000000000..db56ff8c9ac --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/utils/util.go @@ -0,0 +1,426 @@ +package utils + +import ( + "bytes" + "fmt" + "os" + "os/exec" + "regexp" + "strings" + + testutils "github.com/feast-dev/feast/infra/feast-operator/test/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +const ( + FeastPrefix = "feast-" +) + +func ListConfigMaps(namespace string) ([]string, error) { + cmd := exec.Command("kubectl", "get", "cm", "-n", namespace, "-o", "jsonpath={range .items[*]}{.metadata.name}{\"\\n\"}{end}") + var out bytes.Buffer + var stderr bytes.Buffer + cmd.Stdout = &out + cmd.Stderr = &stderr + + if err := cmd.Run(); err != nil { + return nil, fmt.Errorf("failed to list config maps in namespace %s. Error: %v. Stderr: %s", + namespace, err, stderr.String()) + } + + configMaps := strings.Split(strings.TrimSpace(out.String()), "\n") + // Filter out empty strings + var result []string + for _, cm := range configMaps { + if cm != "" { + result = append(result, cm) + } + } + return result, nil +} + +// VerifyConfigMapExistsInList checks if a ConfigMap exists in the list of ConfigMaps +func VerifyConfigMapExistsInList(namespace, configMapName string) (bool, error) { + configMaps, err := ListConfigMaps(namespace) + if err != nil { + return false, err + } + + for _, cm := range configMaps { + if cm == configMapName { + return true, nil + } + } + + return false, nil +} + +// checkIfConfigMapExists validates if a config map exists using the kubectl CLI. +func checkIfConfigMapExists(namespace, configMapName string) error { + cmd := exec.Command("kubectl", "get", "cm", configMapName, "-n", namespace) + + var out bytes.Buffer + var stderr bytes.Buffer + cmd.Stdout = &out + cmd.Stderr = &stderr + + if err := cmd.Run(); err != nil { + return fmt.Errorf("failed to find config map %s in namespace %s. Error: %v. Stderr: %s", + configMapName, namespace, err, stderr.String()) + } + + // Check the output to confirm presence + if !strings.Contains(out.String(), configMapName) { + return fmt.Errorf("config map %s not found in namespace %s", configMapName, namespace) + } + + return nil +} + +// VerifyFeastConfigMapExists verifies that a ConfigMap exists and contains the specified key/file +func VerifyFeastConfigMapExists(namespace, configMapName, expectedKey string) error { + // First verify the ConfigMap exists + if err := checkIfConfigMapExists(namespace, configMapName); err != nil { + return fmt.Errorf("config map %s does not exist: %w", configMapName, err) + } + + // Get the ConfigMap data to verify the key exists + cmd := exec.Command("kubectl", "get", "cm", configMapName, "-n", namespace, "-o", "jsonpath={.data."+expectedKey+"}") + var out bytes.Buffer + var stderr bytes.Buffer + cmd.Stdout = &out + cmd.Stderr = &stderr + + if err := cmd.Run(); err != nil { + return fmt.Errorf("failed to get config map data for %s in namespace %s. Error: %v. Stderr: %s", + configMapName, namespace, err, stderr.String()) + } + + configContent := out.String() + if configContent == "" { + return fmt.Errorf("config map %s does not contain key %s", configMapName, expectedKey) + } + + return nil +} + +// VerifyFeastConfigMapContent verifies that a ConfigMap contains the expected feast configuration content +// This assumes the ConfigMap and key already exist (use VerifyFeastConfigMapExists first) +func VerifyFeastConfigMapContent(namespace, configMapName, expectedKey string, expectedContent []string) error { + // Get the ConfigMap data + cmd := exec.Command("kubectl", "get", "cm", configMapName, "-n", namespace, "-o", "jsonpath={.data."+expectedKey+"}") + var out bytes.Buffer + var stderr bytes.Buffer + cmd.Stdout = &out + cmd.Stderr = &stderr + + if err := cmd.Run(); err != nil { + return fmt.Errorf("failed to get config map data for %s in namespace %s. Error: %v. Stderr: %s", + configMapName, namespace, err, stderr.String()) + } + + configContent := out.String() + if configContent == "" { + return fmt.Errorf("config map %s does not contain key %s", configMapName, expectedKey) + } + + // Verify all expected content strings are present + for _, expected := range expectedContent { + if !strings.Contains(configContent, expected) { + return fmt.Errorf("config map %s content does not contain expected string: %s. Content:\n%s", + configMapName, expected, configContent) + } + } + + return nil +} + +func ApplyFeastPermissions(fileName string, registryFilePath string, namespace string, podNamePrefix string) { + By("Applying Feast permissions to the Feast registry pod") + + // 1. Get the pod by prefix + By(fmt.Sprintf("Finding pod with prefix %q in namespace %q", podNamePrefix, namespace)) + pod, err := getPodByPrefix(namespace, podNamePrefix) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + ExpectWithOffset(1, pod).NotTo(BeNil()) + + podName := pod.Name + fmt.Printf("Found pod: %s\n", podName) + + cmd := exec.Command( + "oc", "cp", + fileName, // local source file + fmt.Sprintf("%s/%s:%s", namespace, podName, registryFilePath), // remote destination + "-c", "registry", + ) + + _, err = testutils.Run(cmd, "/test/e2e_rhoai") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + fmt.Printf("Successfully copied file to pod: %s\n", podName) + + // Run `feast apply` inside the pod to apply updated permissions + By("Running feast apply inside the Feast registry pod") + cmd = exec.Command( + "oc", "exec", podName, + "-n", namespace, + "-c", "registry", + "--", + "bash", "-c", + "cd /feast-data/credit_scoring_local/feature_repo && feast apply", + ) + _, err = testutils.Run(cmd, "/test/e2e_rhoai") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + fmt.Println("Feast permissions apply executed successfully") + + By("Validating that Feast permission has been applied") + + cmd = exec.Command( + "oc", "exec", podName, + "-n", namespace, + "-c", "registry", + "--", + "feast", "permissions", "list", + ) + + output, err := testutils.Run(cmd, "/test/e2e_rhoai") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + // Change "feast-auth" if your permission name is different + ExpectWithOffset(1, output).To(ContainSubstring("feast-auth"), "Expected permission 'feast-auth' to exist") + + fmt.Println("Verified: Feast permission 'feast-auth' exists") +} + +// CreateNamespace - create the namespace for tests +func CreateNamespace(namespace string, testDir string) error { + cmd := exec.Command("kubectl", "create", "ns", namespace) + output, err := testutils.Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to create namespace %s: %v\nOutput: %s", namespace, err, output) + } + return nil +} + +// DeleteNamespace - Delete the namespace for tests +func DeleteNamespace(namespace string, testDir string) error { + cmd := exec.Command("kubectl", "delete", "ns", namespace, "--timeout=180s") + output, err := testutils.Run(cmd, testDir) + if err != nil { + return fmt.Errorf("failed to delete namespace %s: %v\nOutput: %s", namespace, err, output) + } + return nil +} + +// applies the manifests for Redis and Postgres and checks whether the deployments become available +func ApplyFeastInfraManifestsAndVerify(namespace string, testDir string) { + By("Applying postgres.yaml and redis.yaml manifests") + cmd := exec.Command("kubectl", "apply", "-n", namespace, "-f", "test/testdata/feast_integration_test_crs/postgres.yaml", "-f", "test/testdata/feast_integration_test_crs/redis.yaml") + _, cmdOutputerr := testutils.Run(cmd, testDir) + ExpectWithOffset(1, cmdOutputerr).NotTo(HaveOccurred()) + CheckDeployment(namespace, "postgres") + CheckDeployment(namespace, "redis") +} + +// CheckDeployment verifies the specified deployment exists and is in the "Available" state. +func CheckDeployment(namespace, name string) { + By(fmt.Sprintf("Waiting for %s deployment to become available", name)) + err := testutils.CheckIfDeploymentExistsAndAvailable(namespace, name, 2*testutils.Timeout) + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf( + "Deployment %s is not available but expected to be.\nError: %v", name, err, + )) + fmt.Printf("Deployment %s is available\n", name) +} + +// validate that the status of the FeatureStore CR is "Ready". +func ValidateFeatureStoreCRStatus(namespace, crName string) { + Eventually(func() string { + cmd := exec.Command("kubectl", "get", "feast", crName, "-n", namespace, "-o", "jsonpath={.status.phase}") + output, err := cmd.Output() + if err != nil { + return "" + } + return string(output) + }, "2m", "5s").Should(Equal("Ready"), "Feature Store CR did not reach 'Ready' state in time") + + fmt.Printf("✅ Feature Store CR %s/%s is in Ready state\n", namespace, crName) +} + +// validates the `feast apply` and `feast materialize-incremental commands were configured in the FeatureStore CR's CronJob config. +func VerifyApplyFeatureStoreDefinitions(namespace string, feastCRName string, feastDeploymentName string) { + By("Verify CronJob commands in FeatureStore CR") + cmd := exec.Command("kubectl", "get", "-n", namespace, "feast/"+feastCRName, "-o", "jsonpath={.status.applied.cronJob.containerConfigs.commands}") + output, err := cmd.CombinedOutput() + Expect(err).NotTo(HaveOccurred(), fmt.Sprintf("Failed to fetch CronJob commands:\n%s", output)) + commands := string(output) + fmt.Println("CronJob commands:", commands) + Expect(commands).To(ContainSubstring(`feast apply`)) + Expect(commands).To(ContainSubstring(`feast materialize-incremental $(date -u +'%Y-%m-%dT%H:%M:%S')`)) + + CreateAndVerifyJobFromCron(namespace, feastDeploymentName, "feast-test-apply", "", []string{ + "No project found in the repository", + "Applying changes for project credit_scoring_local", + "Deploying infrastructure for credit_history", + "Deploying infrastructure for zipcode_features", + "Materializing 2 feature views to", + "into the redis online store", + "credit_history from", + "zipcode_features from", + }) +} + +// Create a Job and verifies its logs contain expected substrings +func CreateAndVerifyJobFromCron(namespace, cronName, jobName, testDir string, expectedLogSubstrings []string) { + By(fmt.Sprintf("Creating Job %s from CronJob %s", jobName, cronName)) + cmd := exec.Command("kubectl", "create", "job", "--from=cronjob/"+cronName, jobName, "-n", namespace) + _, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + By("Waiting for Job completion") + cmd = exec.Command("kubectl", "wait", "--for=condition=complete", "--timeout=5m", "job/"+jobName, "-n", namespace) + _, err = testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + By("Checking logs of completed job") + cmd = exec.Command("kubectl", "logs", "job/"+jobName, "-n", namespace, "--all-containers=true") + output, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + outputStr := string(output) + ansi := regexp.MustCompile(`\x1b\[[0-9;]*m`) + outputStr = ansi.ReplaceAllString(outputStr, "") + for _, expected := range expectedLogSubstrings { + Expect(outputStr).To(ContainSubstring(expected)) + } + fmt.Printf("created Job %s and Verified expected Logs ", jobName) +} + +// validate the feature store yaml +func validateFeatureStoreYaml(namespace, deployment string) { + cmd := exec.Command("kubectl", "exec", "deploy/"+deployment, "-n", namespace, "-c", "online", "--", "cat", "feature_store.yaml") + output, err := cmd.CombinedOutput() + Expect(err).NotTo(HaveOccurred(), "Failed to read feature_store.yaml") + + content := string(output) + Expect(content).To(ContainSubstring("offline_store:\n type: duckdb")) + Expect(content).To(ContainSubstring("online_store:\n type: redis")) + Expect(content).To(ContainSubstring("registry_type: sql")) +} + +// apply and verifies the Feast deployment becomes available, the CR status is "Ready +func ApplyFeastYamlAndVerify(namespace string, testDir string, feastDeploymentName string, feastCRName string, feastYAMLFilePath string) { + By("Applying Feast yaml for secrets and Feature store CR") + cmd := exec.Command("kubectl", "apply", "-n", namespace, + "-f", feastYAMLFilePath) + _, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + CheckDeployment(namespace, feastDeploymentName) + + By("Verify Feature Store CR is in Ready state") + ValidateFeatureStoreCRStatus(namespace, feastCRName) + + By("Verifying that the Postgres DB contains the expected Feast tables") + cmd = exec.Command("kubectl", "exec", "deploy/postgres", "-n", namespace, "--", "psql", "-h", "localhost", "-U", "feast", "feast", "-c", `\dt`) + output, err := cmd.CombinedOutput() + Expect(err).NotTo(HaveOccurred(), fmt.Sprintf("Failed to get tables from Postgres. Output:\n%s", output)) + outputStr := string(output) + fmt.Println("Postgres Tables:\n", outputStr) + // List of expected tables + expectedTables := []string{ + "data_sources", "entities", "feast_metadata", "feature_services", "feature_views", + "managed_infra", "on_demand_feature_views", "permissions", "projects", + "saved_datasets", "stream_feature_views", "validation_references", + } + for _, table := range expectedTables { + Expect(outputStr).To(ContainSubstring(table), fmt.Sprintf("Expected table %q not found in output:\n%s", table, outputStr)) + } + + By("Verifying that the Feast repo was successfully cloned by the init container") + cmd = exec.Command("kubectl", "logs", "-f", "-n", namespace, "deploy/"+feastDeploymentName, "-c", "feast-init") + output, err = cmd.CombinedOutput() + Expect(err).NotTo(HaveOccurred(), fmt.Sprintf("Failed to get logs from init container. Output:\n%s", output)) + outputStr = string(output) + fmt.Println("Init Container Logs:\n", outputStr) + // Assert that the logs contain success indicators + Expect(outputStr).To(ContainSubstring("Feast repo creation complete"), "Expected Feast repo creation message not found") + + By("Verifying client feature_store.yaml for expected store types") + validateFeatureStoreYaml(namespace, feastDeploymentName) +} + +// checks for the presence of expected entities, features, feature views, data sources, etc. +func VerifyFeastMethods(namespace string, feastDeploymentName string, testDir string) { + type feastCheck struct { + command []string + expected []string + logPrefix string + } + checks := []feastCheck{ + { + command: []string{"feast", "projects", "list"}, + expected: []string{"credit_scoring_local"}, + logPrefix: "Projects List", + }, + { + command: []string{"feast", "feature-views", "list"}, + expected: []string{"credit_history", "zipcode_features", "total_debt_calc"}, + logPrefix: "Feature Views List", + }, + { + command: []string{"feast", "entities", "list"}, + expected: []string{"zipcode", "dob_ssn"}, + logPrefix: "Entities List", + }, + { + command: []string{"feast", "data-sources", "list"}, + expected: []string{"Zipcode source", "Credit history", "application_data"}, + logPrefix: "Data Sources List", + }, + { + command: []string{"feast", "features", "list"}, + expected: []string{ + "credit_card_due", "mortgage_due", "student_loan_due", "vehicle_loan_due", + "hard_pulls", "missed_payments_2y", "missed_payments_1y", "missed_payments_6m", + "bankruptcies", "city", "state", "location_type", "tax_returns_filed", + "population", "total_wages", "total_debt_due", + }, + logPrefix: "Features List", + }, + } + + for _, check := range checks { + cmd := exec.Command("kubectl", "exec", "deploy/"+feastDeploymentName, "-n", namespace, "-c", "online", "--") + cmd.Args = append(cmd.Args, check.command...) + output, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + fmt.Printf("%s:\n%s\n", check.logPrefix, string(output)) + VerifyOutputContains(output, check.expected) + } +} + +// ReplaceNamespaceInYaml reads a YAML file, replaces all existingNamespace with the actual namespace +func ReplaceNamespaceInYamlFilesInPlace(filePaths []string, existingNamespace string, actualNamespace string) error { + for _, filePath := range filePaths { + data, err := os.ReadFile(filePath) + if err != nil { + return fmt.Errorf("failed to read YAML file %s: %w", filePath, err) + } + updated := strings.ReplaceAll(string(data), existingNamespace, actualNamespace) + + err = os.WriteFile(filePath, []byte(updated), 0644) + if err != nil { + return fmt.Errorf("failed to write updated YAML file %s: %w", filePath, err) + } + } + return nil +} + +// asserts that all expected substrings are present in the given output. +func VerifyOutputContains(output []byte, expectedSubstrings []string) { + outputStr := string(output) + for _, expected := range expectedSubstrings { + Expect(outputStr).To(ContainSubstring(expected), fmt.Sprintf("Expected output to contain: %s", expected)) + } +} From f7c08d872afb74fa0a4c580d2add152379260bb6 Mon Sep 17 00:00:00 2001 From: Srihari Date: Tue, 13 Jan 2026 11:26:23 +0530 Subject: [PATCH 06/37] --amend Signed-off-by: Srihari --- .../test/e2e_rhoai/feast_preupgrade_test.go | 1 + .../test/e2e_rhoai/resources/custom-nb.yaml | 4 +- .../feast-wb-connection-credit-scoring.ipynb | 53 +++++++++++++++---- .../test/e2e_rhoai/utils/notebook_util.go | 4 +- 4 files changed, 48 insertions(+), 14 deletions(-) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go b/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go index c68077cb75c..5ae44468a81 100644 --- a/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go +++ b/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go @@ -52,6 +52,7 @@ var _ = Describe("Feast PreUpgrade scenario Testing", Ordered, func() { By("Restoring original namespace in CR YAMLs") Expect(ReplaceNamespaceInYamlFilesInPlace(filesToUpdateNamespace, namespace, replaceNamespace)).To(Succeed()) + // Only delete namespace on failure; successful runs preserve resources for post-upgrade verification if CurrentSpecReport().Failed() { By(fmt.Sprintf("Deleting test namespace: %s", namespace)) Expect(DeleteNamespace(namespace, testDir)).To(Succeed()) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml b/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml index 6dd9304e4b9..3ae52ff8d19 100644 --- a/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml +++ b/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml @@ -43,7 +43,7 @@ spec: --ServerApp.port=8888 --ServerApp.token='' --ServerApp.password='' - --ServerApp.base_url=/notebook/test-feast-wb/jupyter-nb-kube-3aadmin + --ServerApp.base_url=/notebook/{{.Namespace}}/jupyter-nb-kube-3aadmin --ServerApp.quit_button=False --ServerApp.tornado_settings={"user":"{{.Username}}","hub_host":"https://odh-dashboard-{{.OpenDataHubNamespace}}.{{.IngressDomain}}","hub_prefix":"/notebookController/{{.Username}}"} - name: JUPYTER_IMAGE @@ -55,7 +55,7 @@ spec: - name: PIP_TRUSTED_HOST value: {{.PipTrustedHost}} - name: FEAST_VERSION - value: {{.FeastVerison}} + value: {{.FeastVersion}} - name: OPENAI_API_KEY value: {{.OpenAIAPIKey}} - name: NAMESPACE diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb index 39e1f9c6e37..5b697391719 100755 --- a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb @@ -28,11 +28,12 @@ "# Fetch token and server directly from oc CLI\n", "import subprocess\n", "\n", - "def oc(cmd):\n", - " return subprocess.check_output(cmd, shell=True).decode(\"utf-8\").strip()\n", + "def oc(cmd_list):\n", + " \"\"\"Safely execute oc commands without shell injection risk.\"\"\"\n", + " return subprocess.check_output(cmd_list, shell=False).decode(\"utf-8\").strip()\n", "\n", - "token = oc(\"oc whoami -t\")\n", - "server = oc(\"oc whoami --show-server\")\n", + "token = oc([\"oc\", \"whoami\", \"-t\"])\n", + "server = oc([\"oc\", \"whoami\", \"--show-server\"])\n", "namespace = os.environ.get(\"NAMESPACE\")\n" ] }, @@ -42,7 +43,12 @@ "metadata": {}, "outputs": [], "source": [ - "!oc login --token=$token --server=$server" + "# Safely execute oc login without shell injection risk\n", + "import subprocess\n", + "subprocess.check_output(\n", + " [\"oc\", \"login\", \"--token\", token, \"--server\", server],\n", + " shell=False\n", + ")" ] }, { @@ -52,7 +58,19 @@ "outputs": [], "source": [ "# Add user permission to namespace\n", - "!oc adm policy add-role-to-user admin $(oc whoami) -n $namespace" + "import subprocess\n", + "\n", + "# Get current user safely\n", + "current_user = subprocess.check_output(\n", + " [\"oc\", \"whoami\"],\n", + " shell=False\n", + ").decode(\"utf-8\").strip()\n", + "\n", + "# Add role to user safely\n", + "subprocess.check_output(\n", + " [\"oc\", \"adm\", \"policy\", \"add-role-to-user\", \"admin\", current_user, \"-n\", namespace],\n", + " shell=False\n", + ")" ] }, { @@ -62,15 +80,30 @@ "outputs": [], "source": [ "import os\n", + "import subprocess\n", "\n", "namespace = os.environ.get(\"NAMESPACE\") # read namespace from env\n", "if not namespace:\n", " raise ValueError(\"NAMESPACE environment variable is not set\")\n", "\n", - "yaml_content = os.popen(\n", - " f\"oc get configmap feast-credit-scoring-client -n {namespace} \"\n", - " \"-o jsonpath='{.data.feature_store\\\\.yaml}' | sed 's/\\\\\\\\n/\\\\n/g'\"\n", - ").read()\n", + "# Safely execute oc command and pipe through sed without shell injection risk\n", + "oc_process = subprocess.Popen(\n", + " [\"oc\", \"get\", \"configmap\", \"feast-credit-scoring-client\", \"-n\", namespace,\n", + " \"-o\", \"jsonpath={.data.feature_store\\\\.yaml}\"],\n", + " stdout=subprocess.PIPE,\n", + " stderr=subprocess.PIPE,\n", + " shell=False\n", + ")\n", + "sed_process = subprocess.Popen(\n", + " [\"sed\", \"s/\\\\\\\\n/\\\\n/g\"],\n", + " stdin=oc_process.stdout,\n", + " stdout=subprocess.PIPE,\n", + " stderr=subprocess.PIPE,\n", + " shell=False\n", + ")\n", + "oc_process.stdout.close()\n", + "yaml_content, _ = sed_process.communicate()\n", + "yaml_content = yaml_content.decode(\"utf-8\")\n", "\n", "# Save the configmap data into an environment variable (if needed)\n", "os.environ[\"CONFIGMAP_DATA\"] = yaml_content" diff --git a/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go b/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go index be5220a49d9..ba02a4a676f 100644 --- a/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go +++ b/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go @@ -28,7 +28,7 @@ type NotebookTemplateParams struct { Command string PipIndexUrl string PipTrustedHost string - FeastVerison string + FeastVersion string OpenAIAPIKey string FeastProject string } @@ -314,7 +314,7 @@ func GetNotebookParams(namespace, configMapName, notebookPVC, notebookName, test Command: "[\"" + strings.Join(command, "\",\"") + "\"]", PipIndexUrl: getEnv("PIP_INDEX_URL"), PipTrustedHost: getEnv("PIP_TRUSTED_HOST"), - FeastVerison: getEnv("FEAST_VERSION"), + FeastVersion: getEnv("FEAST_VERSION"), OpenAIAPIKey: getEnv("OPENAI_API_KEY"), FeastProject: feastProject, } From 50b3e708ade193ccfd0f53260ac46e170b76bb1f Mon Sep 17 00:00:00 2001 From: Srihari Date: Fri, 30 Jan 2026 15:22:32 +0530 Subject: [PATCH 07/37] Update Feast Workbench Connection Remote functions Signed-off-by: Srihari --- .../feast-wb-connection-credit-scoring.ipynb | 1076 ++++++++++------- 1 file changed, 630 insertions(+), 446 deletions(-) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb index 5b697391719..7ea2116f69c 100755 --- a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-connection-credit-scoring.ipynb @@ -1,449 +1,633 @@ { - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import os\n", - "import feast\n", - "\n", - "actual_version = feast.__version__\n", - "assert actual_version == os.environ.get(\"FEAST_VERSION\"), (\n", - " f\"❌ Feast version mismatch. Expected: {os.environ.get('FEAST_VERSION')}, Found: {actual_version}\"\n", - ")\n", - "print(f\"✅ Found Expected Feast version: {actual_version} in workbench\")" - ] + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import feast\n", + "\n", + "actual_version = feast.__version__\n", + "assert actual_version == os.environ.get(\"FEAST_VERSION\"), (\n", + " f\"❌ Feast version mismatch. Expected: {os.environ.get('FEAST_VERSION')}, Found: {actual_version}\"\n", + ")\n", + "print(f\"✅ Found Expected Feast version: {actual_version} in workbench\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# --- Configuration Variables ---\n", + "import os \n", + "\n", + "# Fetch token and server directly from oc CLI\n", + "import subprocess\n", + "\n", + "def oc(cmd_list):\n", + " \"\"\"Safely execute oc commands without shell injection risk.\"\"\"\n", + " return subprocess.check_output(cmd_list, shell=False).decode(\"utf-8\").strip()\n", + "\n", + "token = oc([\"oc\", \"whoami\", \"-t\"])\n", + "server = oc([\"oc\", \"whoami\", \"--show-server\"])\n", + "namespace = os.environ.get(\"NAMESPACE\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Safely execute oc login without shell injection risk \n", + "import subprocess\n", + "subprocess.check_output(\n", + " [\"oc\", \"login\", \"--token\", token, \"--server\", server],\n", + " shell=False\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Add user permission to namespace\n", + "import subprocess\n", + "\n", + "# Get current user safely\n", + "current_user = subprocess.check_output(\n", + " [\"oc\", \"whoami\"],\n", + " shell=False\n", + ").decode(\"utf-8\").strip()\n", + "\n", + "# Add role to user safely\n", + "subprocess.check_output(\n", + " [\"oc\", \"adm\", \"policy\", \"add-role-to-user\", \"admin\", current_user, \"-n\", namespace],\n", + " shell=False\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import subprocess\n", + "\n", + "namespace = os.environ.get(\"NAMESPACE\") # read namespace from env\n", + "if not namespace:\n", + " raise ValueError(\"NAMESPACE environment variable is not set\")\n", + "\n", + "# Safely execute oc command and pipe through sed without shell injection risk\n", + "oc_process = subprocess.Popen(\n", + " [\"oc\", \"get\", \"configmap\", \"feast-credit-scoring-client\", \"-n\", namespace,\n", + " \"-o\", \"jsonpath={.data.feature_store\\\\.yaml}\"],\n", + " stdout=subprocess.PIPE,\n", + " stderr=subprocess.PIPE,\n", + " shell=False\n", + ")\n", + "sed_process = subprocess.Popen(\n", + " [\"sed\", \"s/\\\\\\\\n/\\\\n/g\"],\n", + " stdin=oc_process.stdout,\n", + " stdout=subprocess.PIPE,\n", + " stderr=subprocess.PIPE,\n", + " shell=False\n", + ")\n", + "oc_process.stdout.close()\n", + "yaml_content, _ = sed_process.communicate()\n", + "yaml_content = yaml_content.decode(\"utf-8\")\n", + "\n", + "# Save the configmap data into an environment variable (if needed)\n", + "os.environ[\"CONFIGMAP_DATA\"] = yaml_content" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from feast import FeatureStore\n", + "fs_credit_scoring_local = FeatureStore(fs_yaml_file='/opt/app-root/src/feast-config/credit_scoring_local')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "fs_credit_scoring_local.refresh_registry()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "project_name = \"credit_scoring_local\"\n", + "project = fs_credit_scoring_local.get_project(project_name)\n", + "\n", + "# 1. Assert object returned\n", + "assert project is not None, f\"❌ get_project('{project_name}') returned None\"\n", + "\n", + "# 2. Extract project name (works for dict or Feast object)\n", + "if isinstance(project, dict):\n", + " returned_name = project.get(\"spec\", {}).get(\"name\")\n", + "else:\n", + " # Feast Project object\n", + " returned_name = getattr(project, \"name\", None)\n", + " if not returned_name and hasattr(project, \"spec\") and hasattr(project.spec, \"name\"):\n", + " returned_name = project.spec.name\n", + "\n", + "# 3. Assert that name exists\n", + "assert returned_name, f\"❌ Returned project does not contain a valid name: {project}\"\n", + "\n", + "print(\"• Project Name Returned:\", returned_name)\n", + "\n", + "# 4. Assert the name matches expected\n", + "assert returned_name == project_name, (\n", + " f\"❌ Expected project '{project_name}', but got '{returned_name}'\"\n", + ")\n", + "\n", + "print(f\"\\n✓ get_project('{project_name}') validation passed!\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "feast_list_functions = [\n", + " \"list_projects\",\n", + " \"list_entities\",\n", + " \"list_feature_views\",\n", + " \"list_all_feature_views\",\n", + " \"list_batch_feature_views\",\n", + " \"list_on_demand_feature_views\",\n", + "]\n", + "\n", + "# validates feast list methods returns data and method type\n", + "def validate_list_method(fs_obj, method_name):\n", + " assert hasattr(fs_obj, method_name), f\"Method not found: {method_name}\"\n", + "\n", + " method = getattr(fs_obj, method_name)\n", + " result = method()\n", + "\n", + " assert isinstance(result, list), (\n", + " f\"{method_name}() must return a list, got {type(result)}\"\n", + " )\n", + " assert len(result) > 0, (\n", + " f\"{method_name}() returned an empty list — expected data\"\n", + " )\n", + "\n", + " print(f\"✓ {method_name}() returned {len(result)} items\")\n", + "\n", + "for m in feast_list_functions:\n", + " validate_list_method(fs_credit_scoring_local, m)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "feast_list_functions = [\n", + " \"list_feature_services\",\n", + " # \"list_permissions\",\n", + " \"list_saved_datasets\",\n", + "]\n", + "\n", + "# validates feast methods exists and type is valid\n", + "def validate_list_func(fs_obj, method_name):\n", + " assert hasattr(fs_obj, method_name), f\"Method not found: {method_name}\"\n", + "\n", + " method = getattr(fs_obj, method_name)\n", + "\n", + " result = method()\n", + "\n", + " assert isinstance(result, list), (\n", + " f\"{method_name}() must return a list, got {type(result)}\"\n", + " )\n", + "\n", + "for m in feast_list_functions:\n", + " validate_list_func(fs_credit_scoring_local, m)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# validate_list_data_sources for with and without permissions \n", + "\n", + "import os\n", + "from feast.errors import FeastPermissionError\n", + "\n", + "def validate_list_data_sources(fs_obj):\n", + " \"\"\"\n", + " Validates list_data_sources() with special handling for Kubernetes auth mode.\n", + " If CONFIGMAP_DATA indicates auth=kubernetes, expect FeastPermissionError.\n", + " Otherwise validate output type normally.\n", + " \"\"\"\n", + " auth_mode = os.getenv(\"CONFIGMAP_DATA\")\n", + "\n", + " # Case 1: Kubernetes auth → expect permission error\n", + " if \"kubernetes\" in auth_mode.lower():\n", + " try:\n", + " fs_obj.list_data_sources()\n", + " raise AssertionError(\n", + " \"Expected FeastPermissionError due to Kubernetes auth, but the call succeeded.\"\n", + " )\n", + " except FeastPermissionError as e:\n", + " # Correct, this is expected\n", + " return\n", + " except Exception as e:\n", + " raise AssertionError(\n", + " f\"Expected FeastPermissionError, but got different exception: {type(e)} - {e}\"\n", + " )\n", + "\n", + " # Case 2: Non-Kubernetes auth → normal path\n", + " assert hasattr(fs_obj, \"list_data_sources\"), \"Method not found: list_data_sources\"\n", + " result = fs_obj.list_data_sources()\n", + " assert isinstance(result, list), (\n", + " f\"list_data_sources() must return a list, got {type(result)}\"\n", + " )\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "\n", + "entity = fs_credit_scoring_local.get_entity(\"dob_ssn\")\n", + "\n", + "assert entity is not None, \"❌ Entity 'dob_ssn' not found!\"\n", + "assert entity.name == \"dob_ssn\", f\"❌ Entity name mismatch: {entity.name}\"\n", + "\n", + "print(\"✓ Entity validation successful!\\n\", entity.name)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "from feast.errors import FeastPermissionError\n", + "\n", + "def validate_get_data_source(fs_obj, name: str):\n", + " auth_mode = os.getenv(\"CONFIGMAP_DATA\", \"\")\n", + "\n", + " print(\"📌 CONFIGMAP_DATA:\", auth_mode)\n", + "\n", + " # If Kubernetes auth is enabled → expect permission error\n", + " if \"auth\" in \"kubernetes\" in auth_mode.lower():\n", + " print(f\"🔒 Kubernetes auth detected, expecting permission error for get_data_source('{name}')\")\n", + "\n", + " try:\n", + " fs_obj.get_data_source(name)\n", + " raise AssertionError(\n", + " f\"❌ Expected FeastPermissionError when accessing data source '{name}', but call succeeded\"\n", + " )\n", + "\n", + " except FeastPermissionError as e:\n", + " print(f\"✅ Correctly blocked with FeastPermissionError: {e}\")\n", + " return\n", + "\n", + " except Exception as e:\n", + " raise AssertionError(\n", + " f\"❌ Expected FeastPermissionError but got {type(e)}: {e}\"\n", + " )\n", + "\n", + " # Otherwise → normal validation\n", + " print(f\"🔍 Fetching data source '{name}'...\")\n", + "\n", + " ds = fs_obj.get_data_source(name)\n", + "\n", + " print(\"\\n📌 Data Source Object:\")\n", + " print(ds)\n", + "\n", + " assert ds.name == name, (\n", + " f\"❌ Expected name '{name}', got '{ds.name}'\"\n", + " )\n", + "\n", + " print(f\"✅ Data source '{name}' exists and is correctly configured.\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import time\n", + "\n", + "feast_features = [\n", + " \"zipcode_features:city\",\n", + " \"zipcode_features:state\",\n", + "]\n", + "\n", + "entity_rows = [{\n", + " \"zipcode\": 1463,\n", + " \"dob_ssn\": \"19530219_5179\"\n", + "}]\n", + "\n", + "response = None\n", + "last_error = None\n", + "\n", + "for attempt in range(1, 4):\n", + " try:\n", + " response = fs_credit_scoring_local.get_online_features(\n", + " features=feast_features,\n", + " entity_rows=entity_rows,\n", + " ).to_dict()\n", + " break\n", + " except Exception as exc:\n", + " last_error = exc\n", + " if attempt < 3:\n", + " print(f\"⚠️ Online read failed (attempt {attempt}/3): {exc}\")\n", + " time.sleep(5)\n", + " else:\n", + " raise\n", + "\n", + "assert response is not None, f\"Online feature read failed: {last_error}\"\n", + "\n", + "print(\"Actual response:\", response)\n", + "\n", + "expected = {\n", + " 'zipcode': [1463],\n", + " 'dob_ssn': ['19530219_5179'],\n", + " 'city': ['PEPPERELL'],\n", + " 'state': ['MA'],\n", + "}\n", + "\n", + "assert response == expected" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# Offline store write\n", + "import os\n", + "import pandas as pd\n", + "from feast.errors import FeastPermissionError\n", + "\n", + "write_feature_view = \"zipcode_features\"\n", + "write_location_type = \"PRIMARY_WRITE_TEST\"\n", + "write_total_wages = 310246739\n", + "\n", + "offline_base_write_data = {\n", + " \"zipcode\": [1463],\n", + " \"city\": [\"PEPPERELL\"],\n", + " \"state\": [\"MA\"],\n", + " \"location_type\": [write_location_type],\n", + " \"tax_returns_filed\": [5549],\n", + " \"population\": [10100],\n", + " \"total_wages\": [write_total_wages],\n", + " \"event_timestamp\": [pd.Timestamp(\"2017-01-01 12:00:00+00:00\")],\n", + " \"created_timestamp\": [pd.Timestamp(\"2017-01-01 12:00:00+00:00\")],\n", + "}\n", + "\n", + "# Offline store requires created_timestamp in this repo\n", + "offline_write_df = pd.DataFrame(offline_base_write_data)\n", + "\n", + "auth_mode = os.getenv(\"CONFIGMAP_DATA\", \"\")\n", + "if \"kubernetes\" in auth_mode.lower():\n", + " try:\n", + " fs_credit_scoring_local.write_to_offline_store(\n", + " feature_view_name=write_feature_view,\n", + " df=offline_write_df,\n", + " allow_registry_cache=False,\n", + " reorder_columns=True,\n", + " )\n", + " raise AssertionError(\"❌ Expected FeastPermissionError for offline write, but call succeeded\")\n", + " except FeastPermissionError as exc:\n", + " print(f\"✅ Correctly blocked offline write with FeastPermissionError: {exc}\")\n", + "else:\n", + " fs_credit_scoring_local.write_to_offline_store(\n", + " feature_view_name=write_feature_view,\n", + " df=offline_write_df,\n", + " allow_registry_cache=False,\n", + " reorder_columns=True,\n", + " )\n", + " print(f\"✅ write_to_offline_store() executed for '{write_feature_view}'\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "\n", + "import os\n", + "import pandas as pd\n", + "from datetime import timedelta\n", + "from feast import FeatureView\n", + "from feast.errors import FeastPermissionError\n", + "from feast.types import Int64\n", + "from feast.field import Field\n", + "from feast.entity import Entity\n", + "from feast.value_type import ValueType\n", + "from feast.infra.offline_stores.file_source import FileSource\n", + "from feast.data_format import ParquetFormat\n", + "\n", + "# ---- Define Entity (REQUIRED) ----\n", + "dob_ssn = Entity(\n", + " name=\"dob_ssn\",\n", + " value_type=ValueType.STRING,\n", + " description=\"Date of birth + last four digits of SSN\",\n", + ")\n", + "\n", + "# ---- FileSource WITHOUT created_timestamp ----\n", + "credit_history_source = FileSource(\n", + " name=\"Credit history\",\n", + " path=\"data/credit_history.parquet\",\n", + " file_format=ParquetFormat(),\n", + " timestamp_field=\"event_timestamp\",\n", + ")\n", + "\n", + "# ---- FeatureView (use Entity object) ----\n", + "credit_history = FeatureView(\n", + " name=\"credit_history\",\n", + " entities=[dob_ssn], # ✅ correct\n", + " ttl=timedelta(days=90),\n", + " schema=[\n", + " Field(name=\"credit_card_due\", dtype=Int64),\n", + " Field(name=\"mortgage_due\", dtype=Int64),\n", + " Field(name=\"student_loan_due\", dtype=Int64),\n", + " Field(name=\"vehicle_loan_due\", dtype=Int64),\n", + " Field(name=\"hard_pulls\", dtype=Int64),\n", + " Field(name=\"missed_payments_2y\", dtype=Int64),\n", + " Field(name=\"missed_payments_1y\", dtype=Int64),\n", + " Field(name=\"missed_payments_6m\", dtype=Int64),\n", + " Field(name=\"bankruptcies\", dtype=Int64),\n", + " ],\n", + " source=credit_history_source,\n", + ")\n", + "\n", + "auth_mode = os.getenv(\"CONFIGMAP_DATA\", \"\")\n", + "if \"kubernetes\" in auth_mode.lower():\n", + " try:\n", + " fs_credit_scoring_local.apply([dob_ssn, credit_history])\n", + " raise AssertionError(\"❌ Expected FeastPermissionError for apply, but call succeeded\")\n", + " except FeastPermissionError as exc:\n", + " print(f\"✅ Correctly blocked apply with FeastPermissionError: {exc}\")\n", + "else:\n", + " # ---- Apply FeatureView ----\n", + " fs_credit_scoring_local.apply([dob_ssn, credit_history])\n", + "\n", + " # ---- Online write (NO created_timestamp) ----\n", + " ts = pd.Timestamp(\"2020-04-26 18:01:04.746575\")\n", + "\n", + " online_write_df = pd.DataFrame({\n", + " \"dob_ssn\": [\"19530219_5179\"],\n", + " \"credit_card_due\": [8419],\n", + " \"mortgage_due\": [91803],\n", + " \"student_loan_due\": [22328],\n", + " \"vehicle_loan_due\": [15078],\n", + " \"hard_pulls\": [0],\n", + " \"missed_payments_2y\": [1],\n", + " \"missed_payments_1y\": [0],\n", + " \"missed_payments_6m\": [0],\n", + " \"bankruptcies\": [0],\n", + " \"event_timestamp\": [ts],\n", + " })\n", + "\n", + " fs_credit_scoring_local.write_to_online_store(\n", + " feature_view_name=\"credit_history\",\n", + " df=online_write_df,\n", + " allow_registry_cache=False,\n", + " )\n", + "\n", + " print(\"✅ Online store write succeeded\")\n", + "\n", + " # ---- Verify ----\n", + " online_df = fs_credit_scoring_local.get_online_features(\n", + " features=[\n", + " \"credit_history:credit_card_due\",\n", + " \"credit_history:mortgage_due\",\n", + " ],\n", + " entity_rows=[{\"dob_ssn\": \"19530219_5179\"}],\n", + " ).to_df()\n", + "\n", + " print(online_df)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "from feast.errors import FeastPermissionError\n", + "\n", + "feature_view_name = \"credit_history\"\n", + "\n", + "auth_mode = os.getenv(\"CONFIGMAP_DATA\", \"\")\n", + "if \"kubernetes\" in auth_mode.lower():\n", + " try:\n", + " fs_credit_scoring_local.delete_feature_view(feature_view_name)\n", + " raise AssertionError(\"❌ Expected FeastPermissionError for delete_feature_view, but call succeeded\")\n", + " except FeastPermissionError as exc:\n", + " print(f\"✅ Correctly blocked delete_feature_view with FeastPermissionError: {exc}\")\n", + "else:\n", + " fs_credit_scoring_local.delete_feature_view(feature_view_name)\n", + "\n", + " # Verify deletion via list and get calls\n", + " remaining_fvs = [fv.name for fv in fs_credit_scoring_local.list_feature_views()]\n", + " assert feature_view_name not in remaining_fvs, (\n", + " f\"❌ FeatureView '{feature_view_name}' still present after deletion\"\n", + " )\n", + "\n", + " try:\n", + " fs_credit_scoring_local.get_feature_view(feature_view_name)\n", + " raise AssertionError(\n", + " f\"❌ Expected get_feature_view('{feature_view_name}') to fail after deletion\"\n", + " )\n", + " except Exception as exc:\n", + " print(f\"✅ Deletion verified for FeatureView '{feature_view_name}': {type(exc).__name__}\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "odfv_name = \"total_debt_calc\"\n", + "odfv = fs_credit_scoring_local.get_on_demand_feature_view(odfv_name)\n", + "\n", + "assert odfv is not None, f\"❌ get_on_demand_feature_view('{odfv_name}') returned None\"\n", + "\n", + "if isinstance(odfv, dict):\n", + " odfv_name_returned = odfv.get(\"spec\", {}).get(\"name\")\n", + " odfv_feature_names = [\n", + " f.get(\"spec\", {}).get(\"name\")\n", + " for f in odfv.get(\"spec\", {}).get(\"features\", [])\n", + " ]\n", + " odfv_write_to_online = odfv.get(\"spec\", {}).get(\"write_to_online_store\")\n", + "else:\n", + " odfv_name_returned = getattr(odfv, \"name\", None)\n", + " if not odfv_name_returned and hasattr(odfv, \"spec\") and hasattr(odfv.spec, \"name\"):\n", + " odfv_name_returned = odfv.spec.name\n", + " odfv_feature_names = [f.name for f in getattr(odfv, \"features\", [])]\n", + " odfv_write_to_online = getattr(odfv, \"write_to_online_store\", None)\n", + "\n", + "assert odfv_name_returned == odfv_name, (\n", + " f\"❌ Expected ODFV '{odfv_name}', but got '{odfv_name_returned}'\"\n", + ")\n", + "assert \"total_debt_due\" in odfv_feature_names, (\n", + " f\"❌ ODFV '{odfv_name}' missing 'total_debt_due' feature\"\n", + ")\n", + "assert odfv_write_to_online is False, (\n", + " f\"❌ ODFV '{odfv_name}' write_to_online_store expected False\"\n", + ")\n", + "\n", + "print(f\"✅ get_on_demand_feature_view('{odfv_name}')\")" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" + }, + "orig_nbformat": 4 }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# --- Configuration Variables ---\n", - "import os \n", - "\n", - "# Fetch token and server directly from oc CLI\n", - "import subprocess\n", - "\n", - "def oc(cmd_list):\n", - " \"\"\"Safely execute oc commands without shell injection risk.\"\"\"\n", - " return subprocess.check_output(cmd_list, shell=False).decode(\"utf-8\").strip()\n", - "\n", - "token = oc([\"oc\", \"whoami\", \"-t\"])\n", - "server = oc([\"oc\", \"whoami\", \"--show-server\"])\n", - "namespace = os.environ.get(\"NAMESPACE\")\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Safely execute oc login without shell injection risk\n", - "import subprocess\n", - "subprocess.check_output(\n", - " [\"oc\", \"login\", \"--token\", token, \"--server\", server],\n", - " shell=False\n", - ")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# Add user permission to namespace\n", - "import subprocess\n", - "\n", - "# Get current user safely\n", - "current_user = subprocess.check_output(\n", - " [\"oc\", \"whoami\"],\n", - " shell=False\n", - ").decode(\"utf-8\").strip()\n", - "\n", - "# Add role to user safely\n", - "subprocess.check_output(\n", - " [\"oc\", \"adm\", \"policy\", \"add-role-to-user\", \"admin\", current_user, \"-n\", namespace],\n", - " shell=False\n", - ")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import os\n", - "import subprocess\n", - "\n", - "namespace = os.environ.get(\"NAMESPACE\") # read namespace from env\n", - "if not namespace:\n", - " raise ValueError(\"NAMESPACE environment variable is not set\")\n", - "\n", - "# Safely execute oc command and pipe through sed without shell injection risk\n", - "oc_process = subprocess.Popen(\n", - " [\"oc\", \"get\", \"configmap\", \"feast-credit-scoring-client\", \"-n\", namespace,\n", - " \"-o\", \"jsonpath={.data.feature_store\\\\.yaml}\"],\n", - " stdout=subprocess.PIPE,\n", - " stderr=subprocess.PIPE,\n", - " shell=False\n", - ")\n", - "sed_process = subprocess.Popen(\n", - " [\"sed\", \"s/\\\\\\\\n/\\\\n/g\"],\n", - " stdin=oc_process.stdout,\n", - " stdout=subprocess.PIPE,\n", - " stderr=subprocess.PIPE,\n", - " shell=False\n", - ")\n", - "oc_process.stdout.close()\n", - "yaml_content, _ = sed_process.communicate()\n", - "yaml_content = yaml_content.decode(\"utf-8\")\n", - "\n", - "# Save the configmap data into an environment variable (if needed)\n", - "os.environ[\"CONFIGMAP_DATA\"] = yaml_content" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from feast import FeatureStore\n", - "fs_credit_scoring_local = FeatureStore(fs_yaml_file='/opt/app-root/src/feast-config/credit_scoring_local')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "project_name = \"credit_scoring_local\"\n", - "project = fs_credit_scoring_local.get_project(project_name)\n", - "\n", - "# 1. Assert object returned\n", - "assert project is not None, f\"❌ get_project('{project_name}') returned None\"\n", - "\n", - "# 2. Extract project name (works for dict or Feast object)\n", - "if isinstance(project, dict):\n", - " returned_name = project.get(\"spec\", {}).get(\"name\")\n", - "else:\n", - " # Feast Project object\n", - " returned_name = getattr(project, \"name\", None)\n", - " if not returned_name and hasattr(project, \"spec\") and hasattr(project.spec, \"name\"):\n", - " returned_name = project.spec.name\n", - "\n", - "# 3. Assert that name exists\n", - "assert returned_name, f\"❌ Returned project does not contain a valid name: {project}\"\n", - "\n", - "print(\"• Project Name Returned:\", returned_name)\n", - "\n", - "# 4. Assert the name matches expected\n", - "assert returned_name == project_name, (\n", - " f\"❌ Expected project '{project_name}', but got '{returned_name}'\"\n", - ")\n", - "\n", - "print(f\"\\n✓ get_project('{project_name}') validation passed!\")\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "feast_list_functions = [\n", - " \"list_projects\",\n", - " \"list_entities\",\n", - " \"list_feature_views\",\n", - " \"list_all_feature_views\",\n", - " \"list_batch_feature_views\",\n", - " \"list_on_demand_feature_views\",\n", - "]\n", - "\n", - "# validates feast list methods returns data and method type\n", - "def validate_list_method(fs_obj, method_name):\n", - " assert hasattr(fs_obj, method_name), f\"Method not found: {method_name}\"\n", - "\n", - " method = getattr(fs_obj, method_name)\n", - " result = method()\n", - "\n", - " assert isinstance(result, list), (\n", - " f\"{method_name}() must return a list, got {type(result)}\"\n", - " )\n", - " assert len(result) > 0, (\n", - " f\"{method_name}() returned an empty list — expected data\"\n", - " )\n", - "\n", - " print(f\"✓ {method_name}() returned {len(result)} items\")\n", - "\n", - "for m in feast_list_functions:\n", - " validate_list_method(fs_credit_scoring_local, m)\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "feast_list_functions = [\n", - " \"list_feature_services\",\n", - " # \"list_permissions\",\n", - " \"list_saved_datasets\",\n", - "]\n", - "\n", - "# validates feast methods exists and type is valid\n", - "def validate_list_func(fs_obj, method_name):\n", - " assert hasattr(fs_obj, method_name), f\"Method not found: {method_name}\"\n", - "\n", - " method = getattr(fs_obj, method_name)\n", - "\n", - " result = method()\n", - "\n", - " assert isinstance(result, list), (\n", - " f\"{method_name}() must return a list, got {type(result)}\"\n", - " )\n", - "\n", - "for m in feast_list_functions:\n", - " validate_list_func(fs_credit_scoring_local, m)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# validate_list_data_sources for with and without permissions \n", - "\n", - "import os\n", - "from feast.errors import FeastPermissionError\n", - "\n", - "def validate_list_data_sources(fs_obj):\n", - " \"\"\"\n", - " Validates list_data_sources() with special handling for Kubernetes auth mode.\n", - " If CONFIGMAP_DATA indicates auth=kubernetes, expect FeastPermissionError.\n", - " Otherwise validate output type normally.\n", - " \"\"\"\n", - " auth_mode = os.getenv(\"CONFIGMAP_DATA\")\n", - "\n", - " # Case 1: Kubernetes auth → expect permission error\n", - " if \"kubernetes\" in auth_mode.lower():\n", - " try:\n", - " fs_obj.list_data_sources()\n", - " raise AssertionError(\n", - " \"Expected FeastPermissionError due to Kubernetes auth, but the call succeeded.\"\n", - " )\n", - " except FeastPermissionError as e:\n", - " # Correct, this is expected\n", - " return\n", - " except Exception as e:\n", - " raise AssertionError(\n", - " f\"Expected FeastPermissionError, but got different exception: {type(e)} - {e}\"\n", - " )\n", - "\n", - " # Case 2: Non-Kubernetes auth → normal path\n", - " assert hasattr(fs_obj, \"list_data_sources\"), \"Method not found: list_data_sources\"\n", - " result = fs_obj.list_data_sources()\n", - " assert isinstance(result, list), (\n", - " f\"list_data_sources() must return a list, got {type(result)}\"\n", - " )\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "\n", - "entity = fs_credit_scoring_local.get_entity(\"dob_ssn\")\n", - "\n", - "assert entity is not None, \"❌ Entity 'dob_ssn' not found!\"\n", - "assert entity.name == \"dob_ssn\", f\"❌ Entity name mismatch: {entity.name}\"\n", - "\n", - "print(\"✓ Entity validation successful!\\n\", entity.name)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "\n", - "fv = fs_credit_scoring_local.get_feature_view(\"credit_history\")\n", - "\n", - "assert fv is not None, \"❌ FeatureView 'credit_history' not found!\"\n", - "assert fv.name == \"credit_history\", f\"❌ Name mismatch: {fv.name}\"\n", - "\n", - "print(\"• FeatureView : validation successful!\", fv.name)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import os\n", - "from feast.errors import FeastPermissionError\n", - "\n", - "def validate_get_data_source(fs_obj, name: str):\n", - " auth_mode = os.getenv(\"CONFIGMAP_DATA\", \"\")\n", - "\n", - " print(\"📌 CONFIGMAP_DATA:\", auth_mode)\n", - "\n", - " # If Kubernetes auth is enabled → expect permission error\n", - " if \"auth\" in \"kubernetes\" in auth_mode.lower():\n", - " print(f\"🔒 Kubernetes auth detected, expecting permission error for get_data_source('{name}')\")\n", - "\n", - " try:\n", - " fs_obj.get_data_source(name)\n", - " raise AssertionError(\n", - " f\"❌ Expected FeastPermissionError when accessing data source '{name}', but call succeeded\"\n", - " )\n", - "\n", - " except FeastPermissionError as e:\n", - " print(f\"✅ Correctly blocked with FeastPermissionError: {e}\")\n", - " return\n", - "\n", - " except Exception as e:\n", - " raise AssertionError(\n", - " f\"❌ Expected FeastPermissionError but got {type(e)}: {e}\"\n", - " )\n", - "\n", - " # Otherwise → normal validation\n", - " print(f\"🔍 Fetching data source '{name}'...\")\n", - "\n", - " ds = fs_obj.get_data_source(name)\n", - "\n", - " print(\"\\n📌 Data Source Object:\")\n", - " print(ds)\n", - "\n", - " assert ds.name == name, (\n", - " f\"❌ Expected name '{name}', got '{ds.name}'\"\n", - " )\n", - "\n", - " print(f\"✅ Data source '{name}' exists and is correctly configured.\")\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "feast_features = [\n", - " \"zipcode_features:city\",\n", - " \"zipcode_features:state\",\n", - "]\n", - "\n", - "entity_rows = [{\n", - " \"zipcode\": 1463,\n", - " \"dob_ssn\": \"19530219_5179\"\n", - "}]\n", - "\n", - "response = fs_credit_scoring_local.get_online_features(\n", - " features=feast_features,\n", - " entity_rows=entity_rows,\n", - ").to_dict()\n", - "\n", - "print(\"Actual response:\", response)\n", - "\n", - "expected = {\n", - " 'zipcode': [1463],\n", - " 'dob_ssn': ['19530219_5179'],\n", - " 'city': ['PEPPERELL'],\n", - " 'state': ['MA'],\n", - "}\n", - "\n", - "assert response == expected" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import pandas as pd\n", - "\n", - "# Input entity dataframe\n", - "entity_df = pd.DataFrame({\n", - " \"dob_ssn\": [\"19530219_5179\"],\n", - " \"zipcode\": [1463],\n", - " \"event_timestamp\": [pd.Timestamp(\"2020-04-26 18:01:04\")]\n", - "})\n", - "\n", - "feast_features = [\n", - " \"zipcode_features:city\",\n", - " \"zipcode_features:state\",\n", - " \"credit_history:credit_card_due\",\n", - " \"credit_history:mortgage_due\",\n", - "]\n", - "\n", - "# Retrieve historical features\n", - "historical_df = fs_credit_scoring_local.get_historical_features(\n", - " entity_df=entity_df,\n", - " features=feast_features,\n", - ").to_df()\n", - "\n", - "print(\"Historical DF:\\n\", historical_df)\n", - "\n", - "# Validate dataframe is not empty\n", - "assert not historical_df.empty, \" Historical features dataframe is empty!\"\n", - "\n", - "# 2. Validate required columns exist\n", - "expected_cols = {\n", - " \"dob_ssn\", \"zipcode\", \"event_timestamp\",\n", - " \"city\", \"state\",\n", - " \"credit_card_due\", \"mortgage_due\"\n", - "}\n", - "\n", - "missing_cols = expected_cols - set(historical_df.columns)\n", - "assert not missing_cols, f\" Missing columns in result: {missing_cols}\"\n", - "\n", - "# 3. Validate city/state are non-null (critical features)\n", - "assert pd.notna(historical_df.loc[0, \"city\"]), \" 'city' value is null!\"\n", - "assert pd.notna(historical_df.loc[0, \"state\"]), \" 'state' value is null!\"\n", - "\n", - "# 4. Validate entity matches input\n", - "assert historical_df.loc[0, \"zipcode\"] == 1463, \" zipcode mismatch!\"\n", - "assert historical_df.loc[0, \"dob_ssn\"] == \"19530219_5179\", \"❌ dob_ssn mismatch!\"\n", - "\n", - "print(\"✅ All validations passed successfully!\")\n" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.11.5" - }, - "orig_nbformat": 4 - }, - "nbformat": 4, - "nbformat_minor": 2 + "nbformat": 4, + "nbformat_minor": 2 } From c01f57d03440876254289b601a308f51b6123be5 Mon Sep 17 00:00:00 2001 From: Srihari Date: Thu, 5 Feb 2026 13:51:20 +0530 Subject: [PATCH 08/37] Fix Ray Offline Store Notebook tests memory issues --- .../test/e2e_rhoai/feast_wb_ray_offline_store_test.go | 2 +- .../test/e2e_rhoai/resources/feast-wb-ray-test.ipynb | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go b/infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go index 34abcacfd37..a936901e08b 100644 --- a/infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go +++ b/infra/feast-operator/test/e2e_rhoai/feast_wb_ray_offline_store_test.go @@ -61,7 +61,7 @@ var _ = Describe("Feast Jupyter Notebook Testing with Ray Offline Store", Ordere By("Deleting Kueue resources") // Delete with namespace flag - will delete namespace-scoped resources from the namespace // and cluster-scoped resources from the cluster - cmd := exec.Command("kubectl", "delete", "-f", kueueResourcesFile, "-n", namespace, "--ignore-not-found=true") + cmd := exec.Command("kubectl", "delete", "-f", kueueResourcesFile, "-n", namespace, "--ignore-not-found=true", "--timeout=60s") _, _ = testutils.Run(cmd, testDir) fmt.Printf("Kueue resources cleanup completed\n") diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb index 3b91bcccd8e..f11c43e1ffd 100644 --- a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-ray-test.ipynb @@ -121,15 +121,15 @@ " name=raycluster,\n", " head_cpu_requests=1,\n", " head_cpu_limits=1,\n", - " head_memory_requests=4,\n", - " head_memory_limits=4,\n", + " head_memory_requests=8,\n", + " head_memory_limits=8,\n", " head_extended_resource_requests={'nvidia.com/gpu':0}, # For GPU enabled workloads set the head_extended_resource_requests and worker_extended_resource_requests\n", " worker_extended_resource_requests={'nvidia.com/gpu':0},\n", " num_workers=2,\n", - " worker_cpu_requests='250m',\n", + " worker_cpu_requests='500m',\n", " worker_cpu_limits=1,\n", - " worker_memory_requests=4,\n", - " worker_memory_limits=4,\n", + " worker_memory_requests=8,\n", + " worker_memory_limits=8,\n", " # image=\"\", # Optional Field \n", " write_to_file=False, # When enabled Ray Cluster yaml files are written to /HOME/.codeflare/resources\n", " local_queue=\"fs-user-queue\", # Specify the local queue manually\n", From d6434c186e28a0aac90781e2aa44c50451657f68 Mon Sep 17 00:00:00 2001 From: Srihari Date: Thu, 5 Mar 2026 15:59:41 +0530 Subject: [PATCH 09/37] Fix lint error --- .../test/e2e_rhoai/resources/permissions.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/permissions.py b/infra/feast-operator/test/e2e_rhoai/resources/permissions.py index 7b48a7b4c56..5c2746cb875 100644 --- a/infra/feast-operator/test/e2e_rhoai/resources/permissions.py +++ b/infra/feast-operator/test/e2e_rhoai/resources/permissions.py @@ -9,11 +9,16 @@ perm_namespace = ["test-ns-feast"] -WITHOUT_DATA_SOURCE = [Project, Entity, FeatureService, SavedDataset] + ALL_FEATURE_VIEW_TYPES +WITHOUT_DATA_SOURCE = [ + Project, + Entity, + FeatureService, + SavedDataset, +] + ALL_FEATURE_VIEW_TYPES test_perm = Permission( name="feast-auth", types=WITHOUT_DATA_SOURCE, policy=NamespaceBasedPolicy(namespaces=perm_namespace), - actions=[AuthzedAction.DESCRIBE] + READ + actions=[AuthzedAction.DESCRIBE] + READ, ) From 29335092e6c76f8bd3282e8f5102a49a3e21de2f Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Wed, 11 Mar 2026 16:58:37 +0530 Subject: [PATCH 10/37] Fix: Feast configmap failure due to missing notebook CRD timing Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- infra/feast-operator/cmd/main.go | 74 +++++++++++++++++++++++++++----- 1 file changed, 63 insertions(+), 11 deletions(-) diff --git a/infra/feast-operator/cmd/main.go b/infra/feast-operator/cmd/main.go index 342189c06c0..d4f5fe64f85 100644 --- a/infra/feast-operator/cmd/main.go +++ b/infra/feast-operator/cmd/main.go @@ -23,6 +23,7 @@ import ( "fmt" "os" "strings" + "time" // Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.) // to ensure that exec-entrypoint and run can make use of them. @@ -41,6 +42,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/healthz" "sigs.k8s.io/controller-runtime/pkg/log/zap" + "sigs.k8s.io/controller-runtime/pkg/manager" "sigs.k8s.io/controller-runtime/pkg/metrics/filters" metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server" "sigs.k8s.io/controller-runtime/pkg/webhook" @@ -185,11 +187,9 @@ func main() { Kind: "Notebook", } // Validate Notebook CRD availability and skip controller setup if CRD is missing - crdExists, err := validateNotebookCRD(mgr.GetConfig(), notebookGVK) + crdExists, err := validateNotebookCRD(context.Background(), mgr.GetConfig(), notebookGVK) if err != nil { setupLog.Error(err, "Notebook CRD validation failed for feast specific configmap", "GVK", notebookGVK) - // If we can't verify (e.g., permission denied), set up controller anyway - // If CRD is confirmed missing, skip controller setup if !crdExists { setupLog.Info("Skipping Notebook ConfigMap controller setup - Notebook CRD not found") } else { @@ -197,15 +197,23 @@ func main() { } } if crdExists { - if err = (&controller.NotebookConfigMapReconciler{ - Client: mgr.GetClient(), - Scheme: mgr.GetScheme(), - NotebookGVK: notebookGVK, - }).SetupWithManager(mgr); err != nil { + if err = setupNotebookController(mgr, notebookGVK); err != nil { setupLog.Error(err, "unable to create controller", "controller", "NotebookConfigMap") os.Exit(1) } - setupLog.Info("Notebook ConfigMap controller setup completed successfully") + } else { + // CRD not found at startup (not an error, just not installed yet). + // During DSC deployment the Notebook CRD may be installed after the Feast + // operator starts. Poll in the background and trigger a process restart + // when the CRD appears so the controller can register during normal startup. + // Dynamic controller registration on a running manager is not supported by + // controller-runtime v0.18 (cache sync fails for late-added informers). + setupLog.Info("Notebook CRD not found at startup, will poll for CRD availability", "GVK", notebookGVK) + if addErr := mgr.Add(manager.RunnableFunc(func(ctx context.Context) error { + return waitForCRDAndRestart(ctx, mgr.GetConfig(), notebookGVK) + })); addErr != nil { + setupLog.Error(addErr, "Failed to add CRD watcher runnable") + } } // +kubebuilder:scaffold:builder @@ -227,7 +235,7 @@ func main() { // validateNotebookCRD checks if the Notebook CRD exists in the cluster // Returns (crdExists bool, error) where crdExists is true if CRD exists, false if not found or unknown -func validateNotebookCRD(config *rest.Config, gvk schema.GroupVersionKind) (bool, error) { +func validateNotebookCRD(ctx context.Context, config *rest.Config, gvk schema.GroupVersionKind) (bool, error) { apiextensionsClientset, err := apiextensionsclient.NewForConfig(config) if err != nil { return false, fmt.Errorf("failed to create apiextensions client: %w", err) @@ -240,7 +248,7 @@ func validateNotebookCRD(config *rest.Config, gvk schema.GroupVersionKind) (bool crdName := plural + "." + gvk.Group _, err = apiextensionsClientset.ApiextensionsV1().CustomResourceDefinitions().Get( - context.Background(), + ctx, crdName, metav1.GetOptions{}, ) @@ -269,3 +277,47 @@ func validateNotebookCRD(config *rest.Config, gvk schema.GroupVersionKind) (bool setupLog.Info("Notebook CRD validated successfully", "CRD", crdName, "GVK", gvk) return true, nil } + +const crdPollInterval = 5 * time.Second + +func setupNotebookController(mgr ctrl.Manager, notebookGVK schema.GroupVersionKind) error { + if err := (&controller.NotebookConfigMapReconciler{ + Client: mgr.GetClient(), + Scheme: mgr.GetScheme(), + NotebookGVK: notebookGVK, + }).SetupWithManager(mgr); err != nil { + return err + } + setupLog.Info("Notebook ConfigMap controller setup completed successfully") + return nil +} + +// waitForCRDAndRestart polls for the Notebook CRD and exits the process when +// it becomes available. Kubernetes will restart the pod, and on the next startup +// the controller registers normally via the standard code path. This avoids +// dynamically adding controllers to a running manager, which causes cache sync +// failures in controller-runtime v0.18. +func waitForCRDAndRestart(ctx context.Context, config *rest.Config, gvk schema.GroupVersionKind) error { + ticker := time.NewTicker(crdPollInterval) + defer ticker.Stop() + + setupLog.Info("Waiting for Notebook CRD to become available...", "GVK", gvk) + + for { + select { + case <-ctx.Done(): + setupLog.Info("Context cancelled, stopping CRD watch", "GVK", gvk) + return nil + case <-ticker.C: + crdExists, err := validateNotebookCRD(ctx, config, gvk) + if err != nil { + setupLog.Error(err, "Failed to check Notebook CRD availability, will retry") + continue + } + if crdExists { + setupLog.Info("Notebook CRD detected, restarting operator to initialize Notebook ConfigMap controller", "GVK", gvk) + os.Exit(0) + } + } + } +} From e754be8ecb786259f30ae3a341b82083d1581218 Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Mon, 9 Mar 2026 13:01:30 +0530 Subject: [PATCH 11/37] Feast client config Auto Access to users and groups based on policies Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- infra/feast-operator/config/rbac/role.yaml | 9 + infra/feast-operator/dist/install.yaml | 9 + infra/feast-operator/docs/auto-access.md | 47 ++ .../feast-operator/docs/namespace-registry.md | 58 --- .../internal/controller/access/access.go | 80 ++++ .../internal/controller/access/access_test.go | 145 ++++++ .../internal/controller/access/rbac.go | 230 +++++++++ .../internal/controller/access/rbac_test.go | 320 +++++++++++++ .../controller/featurestore_controller.go | 98 ++-- ...tore_controller_namespace_registry_test.go | 453 ------------------ .../internal/controller/registry/client.go | 136 ++++++ .../controller/registry/client_test.go | 222 +++++++++ .../controller/services/namespace_registry.go | 433 ----------------- .../internal/controller/services/services.go | 3 - .../controller/services/services_types.go | 5 +- 15 files changed, 1253 insertions(+), 995 deletions(-) create mode 100644 infra/feast-operator/docs/auto-access.md delete mode 100644 infra/feast-operator/docs/namespace-registry.md create mode 100644 infra/feast-operator/internal/controller/access/access.go create mode 100644 infra/feast-operator/internal/controller/access/access_test.go create mode 100644 infra/feast-operator/internal/controller/access/rbac.go create mode 100644 infra/feast-operator/internal/controller/access/rbac_test.go delete mode 100644 infra/feast-operator/internal/controller/featurestore_controller_namespace_registry_test.go create mode 100644 infra/feast-operator/internal/controller/registry/client.go create mode 100644 infra/feast-operator/internal/controller/registry/client_test.go delete mode 100644 infra/feast-operator/internal/controller/services/namespace_registry.go diff --git a/infra/feast-operator/config/rbac/role.yaml b/infra/feast-operator/config/rbac/role.yaml index fbaeaf5c41a..70322460f0f 100644 --- a/infra/feast-operator/config/rbac/role.yaml +++ b/infra/feast-operator/config/rbac/role.yaml @@ -82,6 +82,15 @@ rules: - "" resources: - namespaces + verbs: + - get + - list + - patch + - update + - watch +- apiGroups: + - "" + resources: - pods - secrets verbs: diff --git a/infra/feast-operator/dist/install.yaml b/infra/feast-operator/dist/install.yaml index def7c27200f..ef551fef345 100644 --- a/infra/feast-operator/dist/install.yaml +++ b/infra/feast-operator/dist/install.yaml @@ -20377,6 +20377,15 @@ rules: - "" resources: - namespaces + verbs: + - get + - list + - patch + - update + - watch +- apiGroups: + - "" + resources: - pods - secrets verbs: diff --git a/infra/feast-operator/docs/auto-access.md b/infra/feast-operator/docs/auto-access.md new file mode 100644 index 00000000000..44e9007657d --- /dev/null +++ b/infra/feast-operator/docs/auto-access.md @@ -0,0 +1,47 @@ +# Feast Auto Access Enablement + +## Overview + +The Feast Operator automatically enables discovery and view access for users and groups defined in Feast permissions. Dashboard applications use user credentials to list Feast namespaces and client ConfigMaps, with no dependency on a central registry or service account. + +## Namespace Labeling + +The operator adds the label `opendatahub.io/feast: "true"` to namespaces that contain a deployed FeatureStore. This enables dashboards to discover Feast namespaces cluster-wide by listing namespaces with this label selector. + +- **Label**: `opendatahub.io/feast=true` +- **When added**: After a FeatureStore is successfully deployed +- **When removed**: When the last FeatureStore in the namespace is deleted + +## Auto-Access RBAC + +When the registry REST API is enabled and permissions are defined in `permissions.py`, the operator creates RBAC so users and groups from Feast permissions get view access: + +1. **GroupBasedPolicy**: All users in the listed groups +2. **NamespaceBasedPolicy**: All users/groups with any RoleBinding in the Data Science Project (K8s namespace) +3. **CombinedGroupNamespacePolicy**: Both groups and namespace-based subjects + +### RBAC Resources Created + +- **ClusterRole** `feast-discover-namespaces`: Allows `get`, `list`, `watch` on namespaces (for cluster-wide discovery) +- **ClusterRoleBinding** (per FeatureStore): Binds the ClusterRole to subjects from permissions +- **Role** (namespace-scoped): Allows `get`, `list`, `watch` on the client ConfigMap +- **RoleBinding** (namespace-scoped): Binds the Role to the same subjects + +### View Access + +View access grants: +- List namespaces cluster-wide (with label `opendatahub.io/feast=true`) +- Get/list/watch the Feature Store client ConfigMap in each accessible namespace + +## Dashboard Contract + +Dashboards should: + +1. List namespaces with label selector `opendatahub.io/feast=true` using the user's token +2. For each namespace the user can access, list ConfigMaps to find client ConfigMaps (e.g. `feast--client`) + +## Prerequisites + +- Registry REST API must be enabled (`spec.services.registry.local.server.restAPI: true`) +- Permissions must be applied via `feast apply` (from `permissions.py` in the feature repo) +- The operator reconciles permissions periodically (every 5 minutes) to pick up changes diff --git a/infra/feast-operator/docs/namespace-registry.md b/infra/feast-operator/docs/namespace-registry.md deleted file mode 100644 index e025c62406d..00000000000 --- a/infra/feast-operator/docs/namespace-registry.md +++ /dev/null @@ -1,58 +0,0 @@ -# Feast Namespace Registry - -## Overview - -The Feast Namespace Registry is a feature that automatically creates and maintains a centralized ConfigMap containing information about all Feast feature store instances deployed by the operator. This enables dashboard applications and other tools to discover and connect to Feast instances across different namespaces. - -## Implementation Details - -1. **ConfigMap Creation**: The operator creates a ConfigMap in the appropriate namespace: - - **OpenShift AI**: `redhat-ods-applications` namespace (or DSCi configured namespace) - - **Kubernetes**: `feast-operator-system` namespace - -2. **Access Control**: A RoleBinding is created to allow `system:authenticated` users to read the ConfigMap - -3. **Automatic Registration & Cleanup**: When a new feature store instance is created, it automatically registers its namespace and client configuration in the ConfigMap. When deleted, it automatically removes its entry from the ConfigMap - -4. **Data Structure**: The ConfigMap contains a JSON structure with namespace names as keys and lists of client configuration names as values - -### ConfigMap Structure - -The namespace registry ConfigMap (`feast-configs-registry`) contains the following data: - -```json -{ - "namespaces": { - "namespace-1": ["client-config-1", "client-config-2"], - "namespace-2": ["client-config-3"] - } -} -``` - -### Usage - -The namespace registry is automatically deployed when any Feast feature store instance is created. No additional configuration is required. - -#### For External Applications - -External applications can discover Feast instances by: - -1. Reading the ConfigMap from the appropriate namespace: - ```bash - # For OpenShift - kubectl get configmap feast-configs-registry -n redhat-ods-applications -o jsonpath='{.data.namespaces}' - - # For Kubernetes - kubectl get configmap feast-configs-registry -n feast-operator-system -o jsonpath='{.data.namespaces}' - ``` - -### Lifecycle Management - -The namespace registry automatically manages the lifecycle of feature store instances: - -1. **Creation**: When a feature store is deployed, it registers itself in the ConfigMap -2. **Updates**: If a feature store is updated, its entry remains in the ConfigMap -3. **Deletion**: When a feature store is deleted, its entry is automatically removed from the ConfigMap -4. **Namespace Cleanup**: If all feature stores in a namespace are deleted, the namespace entry is also removed - - diff --git a/infra/feast-operator/internal/controller/access/access.go b/infra/feast-operator/internal/controller/access/access.go new file mode 100644 index 00000000000..8b0b0ab17cd --- /dev/null +++ b/infra/feast-operator/internal/controller/access/access.go @@ -0,0 +1,80 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package access + +import ( + "context" + "fmt" + + corev1 "k8s.io/api/core/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/log" +) + +const ( + FeastNamespaceLabelKey = "opendatahub.io/feast" + FeastNamespaceLabelValue = "true" +) + +// EnsureNamespaceLabel adds the Feast discovery label to the namespace. +// Call when a FeatureStore is successfully deployed. +func EnsureNamespaceLabel(ctx context.Context, c client.Client, namespace string) error { + ns := &corev1.Namespace{} + if err := c.Get(ctx, client.ObjectKey{Name: namespace}, ns); err != nil { + if apierrors.IsNotFound(err) { + return nil + } + return fmt.Errorf("failed to get namespace %s: %w", namespace, err) + } + if ns.Labels == nil { + ns.Labels = make(map[string]string) + } + if ns.Labels[FeastNamespaceLabelKey] == FeastNamespaceLabelValue { + return nil + } + ns.Labels[FeastNamespaceLabelKey] = FeastNamespaceLabelValue + if err := c.Update(ctx, ns); err != nil { + return fmt.Errorf("failed to patch namespace %s with Feast label: %w", namespace, err) + } + log.FromContext(ctx).Info("Added Feast discovery label to namespace", "namespace", namespace) + return nil +} + +// RemoveNamespaceLabelIfLast removes the Feast label from the namespace when +// otherFeatureStoreCount is 0. Call when a FeatureStore is being deleted. +func RemoveNamespaceLabelIfLast(ctx context.Context, c client.Client, namespace string, otherFeatureStoreCount int) error { + if otherFeatureStoreCount > 0 { + return nil + } + ns := &corev1.Namespace{} + if err := c.Get(ctx, client.ObjectKey{Name: namespace}, ns); err != nil { + if apierrors.IsNotFound(err) { + return nil + } + return fmt.Errorf("failed to get namespace %s: %w", namespace, err) + } + if ns.Labels == nil || ns.Labels[FeastNamespaceLabelKey] == "" { + return nil + } + delete(ns.Labels, FeastNamespaceLabelKey) + if err := c.Update(ctx, ns); err != nil { + return fmt.Errorf("failed to remove Feast label from namespace %s: %w", namespace, err) + } + log.FromContext(ctx).Info("Removed Feast discovery label from namespace", "namespace", namespace) + return nil +} diff --git a/infra/feast-operator/internal/controller/access/access_test.go b/infra/feast-operator/internal/controller/access/access_test.go new file mode 100644 index 00000000000..49fd394fe17 --- /dev/null +++ b/infra/feast-operator/internal/controller/access/access_test.go @@ -0,0 +1,145 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package access + +import ( + "context" + "testing" + + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/client/fake" +) + +func newScheme() *runtime.Scheme { + s := runtime.NewScheme() + _ = corev1.AddToScheme(s) + return s +} + +func newNamespace(name string, labels map[string]string) *corev1.Namespace { + return &corev1.Namespace{ + ObjectMeta: metav1.ObjectMeta{ + Name: name, + Labels: labels, + }, + } +} + +func getNamespace(t *testing.T, c client.Client, name string) *corev1.Namespace { + t.Helper() + ns := &corev1.Namespace{} + if err := c.Get(context.Background(), client.ObjectKey{Name: name}, ns); err != nil { + t.Fatalf("Failed to get namespace %s: %v", name, err) + } + return ns +} + +func TestEnsureNamespaceLabel_AddsLabel(t *testing.T) { + ns := newNamespace("test-ns", nil) + c := fake.NewClientBuilder().WithScheme(newScheme()).WithObjects(ns).Build() + + if err := EnsureNamespaceLabel(context.Background(), c, "test-ns"); err != nil { + t.Fatalf("unexpected error: %v", err) + } + updated := getNamespace(t, c, "test-ns") + if updated.Labels[FeastNamespaceLabelKey] != FeastNamespaceLabelValue { + t.Fatalf("expected label %s=%s, got %v", FeastNamespaceLabelKey, FeastNamespaceLabelValue, updated.Labels) + } +} + +func TestEnsureNamespaceLabel_AlreadyLabeled(t *testing.T) { + ns := newNamespace("test-ns", map[string]string{FeastNamespaceLabelKey: FeastNamespaceLabelValue}) + c := fake.NewClientBuilder().WithScheme(newScheme()).WithObjects(ns).Build() + + if err := EnsureNamespaceLabel(context.Background(), c, "test-ns"); err != nil { + t.Fatalf("unexpected error: %v", err) + } + updated := getNamespace(t, c, "test-ns") + if updated.Labels[FeastNamespaceLabelKey] != FeastNamespaceLabelValue { + t.Fatalf("label should still be present") + } +} + +func TestEnsureNamespaceLabel_NamespaceNotFound(t *testing.T) { + c := fake.NewClientBuilder().WithScheme(newScheme()).Build() + + if err := EnsureNamespaceLabel(context.Background(), c, "missing-ns"); err != nil { + t.Fatalf("expected nil error for missing namespace, got: %v", err) + } +} + +func TestEnsureNamespaceLabel_PreservesExistingLabels(t *testing.T) { + ns := newNamespace("test-ns", map[string]string{"existing": "label"}) + c := fake.NewClientBuilder().WithScheme(newScheme()).WithObjects(ns).Build() + + if err := EnsureNamespaceLabel(context.Background(), c, "test-ns"); err != nil { + t.Fatalf("unexpected error: %v", err) + } + updated := getNamespace(t, c, "test-ns") + if updated.Labels["existing"] != "label" { + t.Fatal("existing label was removed") + } + if updated.Labels[FeastNamespaceLabelKey] != FeastNamespaceLabelValue { + t.Fatal("feast label was not added") + } +} + +func TestRemoveNamespaceLabelIfLast_RemovesWhenZero(t *testing.T) { + ns := newNamespace("test-ns", map[string]string{FeastNamespaceLabelKey: FeastNamespaceLabelValue}) + c := fake.NewClientBuilder().WithScheme(newScheme()).WithObjects(ns).Build() + + if err := RemoveNamespaceLabelIfLast(context.Background(), c, "test-ns", 0); err != nil { + t.Fatalf("unexpected error: %v", err) + } + updated := getNamespace(t, c, "test-ns") + if _, ok := updated.Labels[FeastNamespaceLabelKey]; ok { + t.Fatal("label should have been removed") + } +} + +func TestRemoveNamespaceLabelIfLast_KeepsWhenOthersExist(t *testing.T) { + ns := newNamespace("test-ns", map[string]string{FeastNamespaceLabelKey: FeastNamespaceLabelValue}) + c := fake.NewClientBuilder().WithScheme(newScheme()).WithObjects(ns).Build() + + if err := RemoveNamespaceLabelIfLast(context.Background(), c, "test-ns", 1); err != nil { + t.Fatalf("unexpected error: %v", err) + } + updated := getNamespace(t, c, "test-ns") + if updated.Labels[FeastNamespaceLabelKey] != FeastNamespaceLabelValue { + t.Fatal("label should not have been removed when other FeatureStores exist") + } +} + +func TestRemoveNamespaceLabelIfLast_NoLabelNoOp(t *testing.T) { + ns := newNamespace("test-ns", nil) + c := fake.NewClientBuilder().WithScheme(newScheme()).WithObjects(ns).Build() + + if err := RemoveNamespaceLabelIfLast(context.Background(), c, "test-ns", 0); err != nil { + t.Fatalf("unexpected error: %v", err) + } +} + +func TestRemoveNamespaceLabelIfLast_NamespaceNotFound(t *testing.T) { + c := fake.NewClientBuilder().WithScheme(newScheme()).Build() + + if err := RemoveNamespaceLabelIfLast(context.Background(), c, "missing-ns", 0); err != nil { + t.Fatalf("expected nil error for missing namespace, got: %v", err) + } +} diff --git a/infra/feast-operator/internal/controller/access/rbac.go b/infra/feast-operator/internal/controller/access/rbac.go new file mode 100644 index 00000000000..ae23afeff9e --- /dev/null +++ b/infra/feast-operator/internal/controller/access/rbac.go @@ -0,0 +1,230 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package access + +import ( + "context" + "fmt" + + rbacv1 "k8s.io/api/rbac/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" + "sigs.k8s.io/controller-runtime/pkg/log" + + "github.com/feast-dev/feast/infra/feast-operator/internal/controller/registry" +) + +const ( + FeastDiscoverClusterRoleName = "feast-discover-namespaces" +) + +// ReconcileAutoAccessRBAC creates or updates RBAC so subjects from registry permissions +// get view access to the Feature Store namespace and client ConfigMap. +func ReconcileAutoAccessRBAC(ctx context.Context, c client.Client, scheme *runtime.Scheme, owner client.Object, namespace, name, clientConfigMapName string, policies []registry.PermissionPolicy) error { + subjects := buildSubjects(ctx, c, policies) + if len(subjects) == 0 { + return nil + } + if err := ensureFeastDiscoverClusterRole(ctx, c); err != nil { + return err + } + clusterBindingName := "feast-" + namespace + "-" + name + "-discover" + if err := reconcileClusterRoleBinding(ctx, c, scheme, owner, clusterBindingName, subjects); err != nil { + return err + } + roleName := "feast-" + name + "-viewer" + if err := reconcileViewerRole(ctx, c, scheme, owner, namespace, roleName, clientConfigMapName); err != nil { + return err + } + if err := reconcileViewerRoleBinding(ctx, c, scheme, owner, namespace, roleName, subjects); err != nil { + return err + } + return nil +} + +func buildSubjects(ctx context.Context, c client.Client, policies []registry.PermissionPolicy) []rbacv1.Subject { + seen := make(map[string]struct{}) + var subjects []rbacv1.Subject + for _, p := range policies { + for _, g := range p.Groups { + key := "Group:" + g + if _, ok := seen[key]; ok { + continue + } + seen[key] = struct{}{} + subjects = append(subjects, rbacv1.Subject{ + APIGroup: rbacv1.GroupName, + Kind: "Group", + Name: g, + }) + } + for _, ns := range p.Namespaces { + subs, err := listSubjectsInNamespace(ctx, c, ns) + if err != nil { + log.FromContext(ctx).V(1).Info("Failed to list RoleBindings in namespace for NamespaceBasedPolicy", "namespace", ns, "error", err) + continue + } + for _, s := range subs { + key := subjectKey(s) + if _, ok := seen[key]; ok { + continue + } + seen[key] = struct{}{} + subjects = append(subjects, s) + } + } + } + return subjects +} + +func subjectKey(s rbacv1.Subject) string { + apiGroup := s.APIGroup + if apiGroup == "" { + apiGroup = "rbac.authorization.k8s.io" + } + return s.Kind + ":" + apiGroup + ":" + s.Name + ":" + s.Namespace +} + +func listSubjectsInNamespace(ctx context.Context, c client.Client, namespace string) ([]rbacv1.Subject, error) { + var list rbacv1.RoleBindingList + if err := c.List(ctx, &list, client.InNamespace(namespace)); err != nil { + return nil, err + } + var out []rbacv1.Subject + seen := make(map[string]struct{}) + for i := range list.Items { + for _, s := range list.Items[i].Subjects { + key := subjectKey(s) + if _, ok := seen[key]; ok { + continue + } + seen[key] = struct{}{} + out = append(out, s) + } + } + return out, nil +} + +func ensureFeastDiscoverClusterRole(ctx context.Context, c client.Client) error { + cr := &rbacv1.ClusterRole{ + ObjectMeta: metav1.ObjectMeta{Name: FeastDiscoverClusterRoleName}, + } + _, err := controllerutil.CreateOrUpdate(ctx, c, cr, func() error { + cr.Rules = []rbacv1.PolicyRule{ + { + APIGroups: []string{""}, + Resources: []string{"namespaces"}, + Verbs: []string{"get", "list", "watch"}, + }, + } + return nil + }) + return err +} + +func reconcileClusterRoleBinding(ctx context.Context, c client.Client, scheme *runtime.Scheme, owner client.Object, name string, subjects []rbacv1.Subject) error { + crb := &rbacv1.ClusterRoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: name}, + } + _, err := controllerutil.CreateOrUpdate(ctx, c, crb, func() error { + crb.RoleRef = rbacv1.RoleRef{ + APIGroup: rbacv1.GroupName, + Kind: "ClusterRole", + Name: FeastDiscoverClusterRoleName, + } + crb.Subjects = subjects + if owner != nil && scheme != nil { + return controllerutil.SetControllerReference(owner, crb, scheme) + } + return nil + }) + return err +} + +func reconcileViewerRole(ctx context.Context, c client.Client, scheme *runtime.Scheme, owner client.Object, namespace, roleName, configMapName string) error { + role := &rbacv1.Role{ + ObjectMeta: metav1.ObjectMeta{Name: roleName, Namespace: namespace}, + } + _, err := controllerutil.CreateOrUpdate(ctx, c, role, func() error { + role.Rules = []rbacv1.PolicyRule{ + { + APIGroups: []string{""}, + Resources: []string{"configmaps"}, + ResourceNames: []string{configMapName}, + Verbs: []string{"get", "list", "watch"}, + }, + } + if owner != nil && scheme != nil { + return controllerutil.SetControllerReference(owner, role, scheme) + } + return nil + }) + return err +} + +func reconcileViewerRoleBinding(ctx context.Context, c client.Client, scheme *runtime.Scheme, owner client.Object, namespace, roleName string, subjects []rbacv1.Subject) error { + rb := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: roleName, Namespace: namespace}, + } + _, err := controllerutil.CreateOrUpdate(ctx, c, rb, func() error { + rb.RoleRef = rbacv1.RoleRef{ + APIGroup: rbacv1.GroupName, + Kind: "Role", + Name: roleName, + } + rb.Subjects = subjects + if owner != nil && scheme != nil { + return controllerutil.SetControllerReference(owner, rb, scheme) + } + return nil + }) + return err +} + +// CleanupAutoAccessRBAC removes the auto-access ClusterRoleBinding, Role, and RoleBinding. +func CleanupAutoAccessRBAC(ctx context.Context, c client.Client, namespace, name string) error { + clusterBindingName := "feast-" + namespace + "-" + name + "-discover" + crb := &rbacv1.ClusterRoleBinding{} + if err := c.Get(ctx, client.ObjectKey{Name: clusterBindingName}, crb); err != nil { + if !apierrors.IsNotFound(err) { + return err + } + } else if err := c.Delete(ctx, crb); err != nil && !apierrors.IsNotFound(err) { + return fmt.Errorf("failed to delete ClusterRoleBinding %s: %w", clusterBindingName, err) + } + roleName := "feast-" + name + "-viewer" + role := &rbacv1.Role{} + if err := c.Get(ctx, client.ObjectKey{Namespace: namespace, Name: roleName}, role); err != nil { + if !apierrors.IsNotFound(err) { + return err + } + } else if err := c.Delete(ctx, role); err != nil && !apierrors.IsNotFound(err) { + return fmt.Errorf("failed to delete Role %s: %w", roleName, err) + } + rb := &rbacv1.RoleBinding{} + if err := c.Get(ctx, client.ObjectKey{Namespace: namespace, Name: roleName}, rb); err != nil { + if !apierrors.IsNotFound(err) { + return err + } + } else if err := c.Delete(ctx, rb); err != nil && !apierrors.IsNotFound(err) { + return fmt.Errorf("failed to delete RoleBinding %s: %w", roleName, err) + } + return nil +} diff --git a/infra/feast-operator/internal/controller/access/rbac_test.go b/infra/feast-operator/internal/controller/access/rbac_test.go new file mode 100644 index 00000000000..c0949fbc078 --- /dev/null +++ b/infra/feast-operator/internal/controller/access/rbac_test.go @@ -0,0 +1,320 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package access + +import ( + "context" + "testing" + + corev1 "k8s.io/api/core/v1" + rbacv1 "k8s.io/api/rbac/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/client/fake" + + "github.com/feast-dev/feast/infra/feast-operator/internal/controller/registry" +) + +func newRBACScheme() *runtime.Scheme { + s := runtime.NewScheme() + _ = corev1.AddToScheme(s) + _ = rbacv1.AddToScheme(s) + return s +} + +func TestBuildSubjects_GroupBasedPolicy(t *testing.T) { + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).Build() + policies := []registry.PermissionPolicy{ + {Groups: []string{"admins", "data-team"}}, + } + subjects := buildSubjects(context.Background(), c, policies) + if len(subjects) != 2 { + t.Fatalf("expected 2 subjects, got %d", len(subjects)) + } + assertSubject(t, subjects[0], "Group", "admins") + assertSubject(t, subjects[1], "Group", "data-team") +} + +func TestBuildSubjects_NamespaceBasedPolicy(t *testing.T) { + rb := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "rb1", Namespace: "ds-project"}, + Subjects: []rbacv1.Subject{ + {Kind: "User", Name: "alice", APIGroup: rbacv1.GroupName}, + {Kind: "Group", Name: "team-x", APIGroup: rbacv1.GroupName}, + }, + } + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).WithObjects(rb).Build() + policies := []registry.PermissionPolicy{ + {Namespaces: []string{"ds-project"}}, + } + subjects := buildSubjects(context.Background(), c, policies) + if len(subjects) != 2 { + t.Fatalf("expected 2 subjects, got %d", len(subjects)) + } +} + +func TestBuildSubjects_CombinedPolicy(t *testing.T) { + rb := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "rb1", Namespace: "ns1"}, + Subjects: []rbacv1.Subject{ + {Kind: "User", Name: "bob", APIGroup: rbacv1.GroupName}, + }, + } + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).WithObjects(rb).Build() + policies := []registry.PermissionPolicy{ + {Groups: []string{"engineers"}, Namespaces: []string{"ns1"}}, + } + subjects := buildSubjects(context.Background(), c, policies) + if len(subjects) != 2 { + t.Fatalf("expected 2 subjects (1 group + 1 user), got %d", len(subjects)) + } +} + +func TestBuildSubjects_DeduplicatesGroups(t *testing.T) { + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).Build() + policies := []registry.PermissionPolicy{ + {Groups: []string{"admins"}}, + {Groups: []string{"admins", "other"}}, + } + subjects := buildSubjects(context.Background(), c, policies) + if len(subjects) != 2 { + t.Fatalf("expected 2 unique subjects, got %d: %v", len(subjects), subjects) + } +} + +func TestBuildSubjects_DeduplicatesNamespaceSubjects(t *testing.T) { + rb1 := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "rb1", Namespace: "ns1"}, + Subjects: []rbacv1.Subject{{Kind: "User", Name: "alice", APIGroup: rbacv1.GroupName}}, + } + rb2 := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "rb2", Namespace: "ns1"}, + Subjects: []rbacv1.Subject{{Kind: "User", Name: "alice", APIGroup: rbacv1.GroupName}}, + } + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).WithObjects(rb1, rb2).Build() + policies := []registry.PermissionPolicy{ + {Namespaces: []string{"ns1"}}, + } + subjects := buildSubjects(context.Background(), c, policies) + if len(subjects) != 1 { + t.Fatalf("expected 1 deduplicated subject, got %d", len(subjects)) + } +} + +func TestBuildSubjects_EmptyPolicies(t *testing.T) { + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).Build() + subjects := buildSubjects(context.Background(), c, nil) + if len(subjects) != 0 { + t.Fatalf("expected 0 subjects for nil policies, got %d", len(subjects)) + } +} + +func TestBuildSubjects_NonexistentNamespace(t *testing.T) { + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).Build() + policies := []registry.PermissionPolicy{ + {Namespaces: []string{"nonexistent"}}, + } + // Should not error, just return no subjects from that namespace + subjects := buildSubjects(context.Background(), c, policies) + if len(subjects) != 0 { + t.Fatalf("expected 0 subjects for nonexistent namespace, got %d", len(subjects)) + } +} + +func TestReconcileAutoAccessRBAC_CreatesAllResources(t *testing.T) { + scheme := newRBACScheme() + ns := newNamespace("feast-ns", nil) + c := fake.NewClientBuilder().WithScheme(scheme).WithObjects(ns).Build() + + policies := []registry.PermissionPolicy{ + {Groups: []string{"data-scientists"}}, + } + err := ReconcileAutoAccessRBAC(context.Background(), c, scheme, nil, "feast-ns", "my-feast", "feast-client-config", policies) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + + // Verify ClusterRole + cr := &rbacv1.ClusterRole{} + if err := c.Get(context.Background(), client.ObjectKey{Name: FeastDiscoverClusterRoleName}, cr); err != nil { + t.Fatalf("Failed to get ClusterRole: %v", err) + } + if len(cr.Rules) != 1 || cr.Rules[0].Resources[0] != "namespaces" { + t.Fatalf("unexpected ClusterRole rules: %v", cr.Rules) + } + + // Verify ClusterRoleBinding + crb := &rbacv1.ClusterRoleBinding{} + if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-feast-ns-my-feast-discover"}, crb); err != nil { + t.Fatalf("Failed to get ClusterRoleBinding: %v", err) + } + if len(crb.Subjects) != 1 || crb.Subjects[0].Name != "data-scientists" { + t.Fatalf("unexpected ClusterRoleBinding subjects: %v", crb.Subjects) + } + + // Verify Role + role := &rbacv1.Role{} + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "feast-ns", Name: "feast-my-feast-viewer"}, role); err != nil { + t.Fatalf("Failed to get Role: %v", err) + } + if len(role.Rules) != 1 || role.Rules[0].ResourceNames[0] != "feast-client-config" { + t.Fatalf("unexpected Role rules: %v", role.Rules) + } + + // Verify RoleBinding + rb := &rbacv1.RoleBinding{} + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "feast-ns", Name: "feast-my-feast-viewer"}, rb); err != nil { + t.Fatalf("Failed to get RoleBinding: %v", err) + } + if len(rb.Subjects) != 1 || rb.Subjects[0].Name != "data-scientists" { + t.Fatalf("unexpected RoleBinding subjects: %v", rb.Subjects) + } +} + +func TestReconcileAutoAccessRBAC_NoSubjects(t *testing.T) { + scheme := newRBACScheme() + c := fake.NewClientBuilder().WithScheme(scheme).Build() + + // Empty policies -> no subjects -> should be a no-op + err := ReconcileAutoAccessRBAC(context.Background(), c, scheme, nil, "ns", "name", "cm", nil) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + crb := &rbacv1.ClusterRoleBinding{} + if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-ns-name-discover"}, crb); err == nil { + t.Fatal("ClusterRoleBinding should not exist when there are no subjects") + } +} + +func TestReconcileAutoAccessRBAC_UpdatesExistingResources(t *testing.T) { + scheme := newRBACScheme() + ns := newNamespace("feast-ns", nil) + c := fake.NewClientBuilder().WithScheme(scheme).WithObjects(ns).Build() + + // First reconcile with one group + policies := []registry.PermissionPolicy{{Groups: []string{"group-a"}}} + if err := ReconcileAutoAccessRBAC(context.Background(), c, scheme, nil, "feast-ns", "fs", "cm", policies); err != nil { + t.Fatalf("unexpected error on first reconcile: %v", err) + } + + // Second reconcile with different group + policies = []registry.PermissionPolicy{{Groups: []string{"group-b"}}} + if err := ReconcileAutoAccessRBAC(context.Background(), c, scheme, nil, "feast-ns", "fs", "cm", policies); err != nil { + t.Fatalf("unexpected error on second reconcile: %v", err) + } + + crb := &rbacv1.ClusterRoleBinding{} + if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-feast-ns-fs-discover"}, crb); err != nil { + t.Fatalf("Failed to get ClusterRoleBinding: %v", err) + } + if len(crb.Subjects) != 1 || crb.Subjects[0].Name != "group-b" { + t.Fatalf("expected updated subject group-b, got: %v", crb.Subjects) + } +} + +func TestCleanupAutoAccessRBAC(t *testing.T) { + scheme := newRBACScheme() + c := fake.NewClientBuilder().WithScheme(scheme).WithObjects( + &rbacv1.ClusterRoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "feast-ns-my-feast-discover"}, + }, + &rbacv1.Role{ + ObjectMeta: metav1.ObjectMeta{Name: "feast-my-feast-viewer", Namespace: "ns"}, + }, + &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "feast-my-feast-viewer", Namespace: "ns"}, + }, + ).Build() + + if err := CleanupAutoAccessRBAC(context.Background(), c, "ns", "my-feast"); err != nil { + t.Fatalf("unexpected error: %v", err) + } + + crb := &rbacv1.ClusterRoleBinding{} + if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-ns-my-feast-discover"}, crb); err == nil { + t.Fatal("ClusterRoleBinding should have been deleted") + } + role := &rbacv1.Role{} + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "ns", Name: "feast-my-feast-viewer"}, role); err == nil { + t.Fatal("Role should have been deleted") + } + rb := &rbacv1.RoleBinding{} + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "ns", Name: "feast-my-feast-viewer"}, rb); err == nil { + t.Fatal("RoleBinding should have been deleted") + } +} + +func TestCleanupAutoAccessRBAC_AlreadyGone(t *testing.T) { + scheme := newRBACScheme() + c := fake.NewClientBuilder().WithScheme(scheme).Build() + + // Should not error when resources don't exist + if err := CleanupAutoAccessRBAC(context.Background(), c, "ns", "name"); err != nil { + t.Fatalf("unexpected error: %v", err) + } +} + +func TestEnsureFeastDiscoverClusterRole_Idempotent(t *testing.T) { + scheme := newRBACScheme() + c := fake.NewClientBuilder().WithScheme(scheme).Build() + + if err := ensureFeastDiscoverClusterRole(context.Background(), c); err != nil { + t.Fatalf("first call failed: %v", err) + } + if err := ensureFeastDiscoverClusterRole(context.Background(), c); err != nil { + t.Fatalf("second call (idempotent) failed: %v", err) + } + cr := &rbacv1.ClusterRole{} + if err := c.Get(context.Background(), client.ObjectKey{Name: FeastDiscoverClusterRoleName}, cr); err != nil { + t.Fatalf("Failed to get ClusterRole: %v", err) + } +} + +func TestListSubjectsInNamespace(t *testing.T) { + rb1 := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "rb1", Namespace: "ns1"}, + Subjects: []rbacv1.Subject{ + {Kind: "User", Name: "alice", APIGroup: rbacv1.GroupName}, + {Kind: "Group", Name: "team-a", APIGroup: rbacv1.GroupName}, + }, + } + rb2 := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{Name: "rb2", Namespace: "ns1"}, + Subjects: []rbacv1.Subject{ + {Kind: "User", Name: "alice", APIGroup: rbacv1.GroupName}, + {Kind: "User", Name: "bob", APIGroup: rbacv1.GroupName}, + }, + } + c := fake.NewClientBuilder().WithScheme(newRBACScheme()).WithObjects(rb1, rb2).Build() + + subjects, err := listSubjectsInNamespace(context.Background(), c, "ns1") + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + // alice (deduplicated), team-a, bob = 3 unique subjects + if len(subjects) != 3 { + t.Fatalf("expected 3 unique subjects, got %d: %v", len(subjects), subjects) + } +} + +func assertSubject(t *testing.T, s rbacv1.Subject, expectedKind, expectedName string) { + t.Helper() + if s.Kind != expectedKind || s.Name != expectedName { + t.Fatalf("expected subject %s/%s, got %s/%s", expectedKind, expectedName, s.Kind, s.Name) + } +} diff --git a/infra/feast-operator/internal/controller/featurestore_controller.go b/infra/feast-operator/internal/controller/featurestore_controller.go index aa3ad3b03e5..c93f719d5a1 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller.go +++ b/infra/feast-operator/internal/controller/featurestore_controller.go @@ -39,15 +39,18 @@ import ( "sigs.k8s.io/controller-runtime/pkg/reconcile" feastdevv1 "github.com/feast-dev/feast/infra/feast-operator/api/v1" + "github.com/feast-dev/feast/infra/feast-operator/internal/controller/access" "github.com/feast-dev/feast/infra/feast-operator/internal/controller/authz" feasthandler "github.com/feast-dev/feast/infra/feast-operator/internal/controller/handler" + "github.com/feast-dev/feast/infra/feast-operator/internal/controller/registry" "github.com/feast-dev/feast/infra/feast-operator/internal/controller/services" routev1 "github.com/openshift/api/route/v1" ) // Constants for requeue const ( - RequeueDelayError = 5 * time.Second + RequeueDelayError = 5 * time.Second + RequeuePeriodicInterval = 5 * time.Minute ) // FeatureStoreReconciler reconciles a FeatureStore object @@ -62,7 +65,8 @@ type FeatureStoreReconciler struct { // +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;create;update;watch;delete // +kubebuilder:rbac:groups=core,resources=services;configmaps;persistentvolumeclaims;serviceaccounts,verbs=get;list;create;update;watch;delete // +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles;rolebindings;clusterroles;clusterrolebindings;subjectaccessreviews,verbs=get;list;create;update;watch;delete -// +kubebuilder:rbac:groups=core,resources=secrets;pods;namespaces,verbs=get;list;watch +// +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;patch;update +// +kubebuilder:rbac:groups=core,resources=secrets;pods,verbs=get;list;watch // +kubebuilder:rbac:groups=core,resources=pods/exec,verbs=create // +kubebuilder:rbac:groups=authentication.k8s.io,resources=tokenreviews,verbs=create // +kubebuilder:rbac:groups=route.openshift.io,resources=routes,verbs=get;list;create;update;watch;delete @@ -82,18 +86,7 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request err := r.Get(ctx, req.NamespacedName, cr) if err != nil { if apierrors.IsNotFound(err) { - // CR deleted since request queued, child objects getting GC'd, no requeue logger.V(1).Info("FeatureStore CR not found, has been deleted") - // Clean up namespace registry entry even if the CR is not found - if err := r.cleanupNamespaceRegistry(ctx, &feastdevv1.FeatureStore{ - ObjectMeta: metav1.ObjectMeta{ - Name: req.NamespacedName.Name, - Namespace: req.NamespacedName.Namespace, - }, - }); err != nil { - logger.Error(err, "Failed to clean up namespace registry entry for deleted FeatureStore") - // Don't return error here as the CR is already deleted - } return ctrl.Result{}, nil } logger.Error(err, "Unable to get FeatureStore CR") @@ -101,12 +94,13 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request } currentStatus := cr.Status.DeepCopy() - // Handle deletion - clean up namespace registry entry if cr.DeletionTimestamp != nil { - logger.Info("FeatureStore is being deleted, cleaning up namespace registry entry") - if err := r.cleanupNamespaceRegistry(ctx, cr); err != nil { - logger.Error(err, "Failed to clean up namespace registry entry") - return ctrl.Result{}, err + otherCount := r.countOtherFeatureStoresInNamespace(ctx, cr.Namespace, cr.Name) + if err := access.RemoveNamespaceLabelIfLast(ctx, r.Client, cr.Namespace, otherCount); err != nil { + logger.Error(err, "Failed to remove Feast label from namespace") + } + if err := access.CleanupAutoAccessRBAC(ctx, r.Client, cr.Namespace, cr.Name); err != nil { + logger.Error(err, "Failed to cleanup auto-access RBAC") } return ctrl.Result{}, nil } @@ -127,25 +121,55 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request } } - // Add to namespace registry if deployment was successful and not being deleted - if recErr == nil && cr.DeletionTimestamp == nil { - feast := services.FeastServices{ - Handler: feasthandler.FeastHandler{ - Client: r.Client, - Context: ctx, - FeatureStore: cr, - Scheme: r.Scheme, - }, + if recErr == nil && cr.DeletionTimestamp == nil && apimeta.IsStatusConditionTrue(cr.Status.Conditions, feastdevv1.ReadyType) { + if err := access.EnsureNamespaceLabel(ctx, r.Client, cr.Namespace); err != nil { + logger.Error(err, "Failed to add Feast label to namespace") } - if err := feast.AddToNamespaceRegistry(); err != nil { - logger.Error(err, "Failed to add FeatureStore to namespace registry") - // Don't return error here as the FeatureStore is already deployed successfully + policies, err := r.fetchPermissionsFromRegistry(ctx, cr) + if err != nil { + logger.V(1).Info("Could not fetch permissions from registry", "error", err) + } else if len(policies) > 0 && cr.Status.ClientConfigMap != "" { + if err := access.ReconcileAutoAccessRBAC(ctx, r.Client, r.Scheme, cr, cr.Namespace, cr.Name, cr.Status.ClientConfigMap, policies); err != nil { + logger.Error(err, "Failed to reconcile auto-access RBAC") + } } } + if recErr == nil && result.RequeueAfter == 0 { + result.RequeueAfter = RequeuePeriodicInterval + } return result, recErr } +func (r *FeatureStoreReconciler) fetchPermissionsFromRegistry(ctx context.Context, cr *feastdevv1.FeatureStore) ([]registry.PermissionPolicy, error) { + registryRest := cr.Status.ServiceHostnames.RegistryRest + if registryRest == "" { + return nil, nil + } + project := cr.Status.Applied.FeastProject + if project == "" { + project = cr.Spec.FeastProject + } + if project == "" { + return nil, nil + } + return registry.ListPermissions(ctx, registryRest, project) +} + +func (r *FeatureStoreReconciler) countOtherFeatureStoresInNamespace(ctx context.Context, namespace, excludeName string) int { + var list feastdevv1.FeatureStoreList + if err := r.List(ctx, &list, client.InNamespace(namespace)); err != nil { + return -1 + } + count := 0 + for i := range list.Items { + if list.Items[i].Name != excludeName && list.Items[i].DeletionTimestamp == nil { + count++ + } + } + return count +} + func (r *FeatureStoreReconciler) deployFeast(ctx context.Context, cr *feastdevv1.FeatureStore) (result ctrl.Result, err error) { logger := log.FromContext(ctx) condition := metav1.Condition{ @@ -249,20 +273,6 @@ func (r *FeatureStoreReconciler) SetupWithManager(mgr ctrl.Manager) error { } -// cleanupNamespaceRegistry removes the feature store instance from the namespace registry -func (r *FeatureStoreReconciler) cleanupNamespaceRegistry(ctx context.Context, cr *feastdevv1.FeatureStore) error { - feast := services.FeastServices{ - Handler: feasthandler.FeastHandler{ - Client: r.Client, - Context: ctx, - FeatureStore: cr, - Scheme: r.Scheme, - }, - } - - return feast.RemoveFromNamespaceRegistry() -} - // if a remotely referenced FeatureStore is changed, reconcile any FeatureStores that reference it. func (r *FeatureStoreReconciler) mapFeastRefsToFeastRequests(ctx context.Context, object client.Object) []reconcile.Request { logger := log.FromContext(ctx) diff --git a/infra/feast-operator/internal/controller/featurestore_controller_namespace_registry_test.go b/infra/feast-operator/internal/controller/featurestore_controller_namespace_registry_test.go deleted file mode 100644 index b92d5cec50e..00000000000 --- a/infra/feast-operator/internal/controller/featurestore_controller_namespace_registry_test.go +++ /dev/null @@ -1,453 +0,0 @@ -/* -Copyright 2025 Feast Community. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package controller - -import ( - "context" - "encoding/json" - "fmt" - "time" - - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" - corev1 "k8s.io/api/core/v1" - rbacv1 "k8s.io/api/rbac/v1" - "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" - "sigs.k8s.io/controller-runtime/pkg/reconcile" - - feastdevv1 "github.com/feast-dev/feast/infra/feast-operator/api/v1" - "github.com/feast-dev/feast/infra/feast-operator/internal/controller/services" -) - -const DefaultNamespace = "default" -const FeastControllerNamespace = "feast-operator-system" - -var ctx = context.Background() - -var _ = Describe("FeatureStore Controller - Namespace Registry", func() { - - Context("When deploying a FeatureStore with namespace registry", func() { - const resourceName = "namespace-registry-test" - var pullPolicy = corev1.PullAlways - var image = "feastdev/feast:latest" - - typeNamespacedName := types.NamespacedName{ - Name: resourceName, - Namespace: DefaultNamespace, - } - featurestore := &feastdevv1.FeatureStore{} - - BeforeEach(func() { - By("Ensuring manager namespace exists") - namespace := &corev1.Namespace{ - ObjectMeta: metav1.ObjectMeta{ - Name: FeastControllerNamespace, - }, - } - // Try to create, ignore if already exists - err := k8sClient.Create(ctx, namespace) - if err != nil && !errors.IsAlreadyExists(err) { - Expect(err).NotTo(HaveOccurred()) - } - - By("Creating a FeatureStore resource") - featurestore = createFeatureStoreResource(resourceName, image, pullPolicy, nil, nil) - Expect(k8sClient.Create(ctx, featurestore)).Should(Succeed()) - - // Wait for the resource to be created - Eventually(func() error { - return k8sClient.Get(ctx, typeNamespacedName, featurestore) - }, time.Second*10, time.Millisecond*250).Should(Succeed()) - }) - - AfterEach(func() { - By("Cleaning up the FeatureStore resource") - // Only delete if the resource still exists - err := k8sClient.Get(ctx, typeNamespacedName, featurestore) - if err == nil { - Expect(k8sClient.Delete(ctx, featurestore)).Should(Succeed()) - - // Wait for the resource to be deleted - Eventually(func() bool { - err := k8sClient.Get(ctx, typeNamespacedName, featurestore) - return errors.IsNotFound(err) - }, time.Second*10, time.Millisecond*250).Should(BeTrue()) - } - }) - - It("should create namespace registry ConfigMap", func() { - By("Reconciling the FeatureStore") - reconciler := &FeatureStoreReconciler{ - Client: k8sClient, - Scheme: k8sClient.Scheme(), - } - - _, err := reconciler.Reconcile(ctx, reconcile.Request{ - NamespacedName: typeNamespacedName, - }) - Expect(err).NotTo(HaveOccurred()) - - By("Checking that namespace registry ConfigMap is created") - Eventually(func() error { - cm := &corev1.ConfigMap{} - return k8sClient.Get(ctx, types.NamespacedName{ - Name: services.NamespaceRegistryConfigMapName, - Namespace: services.DefaultKubernetesNamespace, // Assuming Kubernetes environment - }, cm) - }, time.Second*30, time.Millisecond*500).Should(Succeed()) - }) - - It("should create namespace registry Role and RoleBinding", func() { - By("Reconciling the FeatureStore") - reconciler := &FeatureStoreReconciler{ - Client: k8sClient, - Scheme: k8sClient.Scheme(), - } - - _, err := reconciler.Reconcile(ctx, reconcile.Request{ - NamespacedName: typeNamespacedName, - }) - Expect(err).NotTo(HaveOccurred()) - - By("Checking that namespace registry Role is created") - Eventually(func() error { - role := &rbacv1.Role{} - return k8sClient.Get(ctx, types.NamespacedName{ - Name: services.NamespaceRegistryConfigMapName + "-reader", - Namespace: services.DefaultKubernetesNamespace, - }, role) - }, time.Second*30, time.Millisecond*500).Should(Succeed()) - - By("Checking that namespace registry RoleBinding is created") - Eventually(func() error { - roleBinding := &rbacv1.RoleBinding{} - return k8sClient.Get(ctx, types.NamespacedName{ - Name: services.NamespaceRegistryConfigMapName + "-reader", - Namespace: services.DefaultKubernetesNamespace, - }, roleBinding) - }, time.Second*30, time.Millisecond*500).Should(Succeed()) - }) - - It("should register feature store in namespace registry", func() { - By("Reconciling the FeatureStore") - reconciler := &FeatureStoreReconciler{ - Client: k8sClient, - Scheme: k8sClient.Scheme(), - } - - _, err := reconciler.Reconcile(ctx, reconcile.Request{ - NamespacedName: typeNamespacedName, - }) - Expect(err).NotTo(HaveOccurred()) - - By("Checking that feature store is registered in namespace registry") - Eventually(func() error { - cm := &corev1.ConfigMap{} - err := k8sClient.Get(ctx, types.NamespacedName{ - Name: services.NamespaceRegistryConfigMapName, - Namespace: services.DefaultKubernetesNamespace, - }, cm) - if err != nil { - return err - } - - // Check if the ConfigMap contains the expected data - if cm.Data == nil || cm.Data[services.NamespaceRegistryDataKey] == "" { - return fmt.Errorf("namespace registry data is empty") - } - - // Parse the JSON data - var registryData services.NamespaceRegistryData - err = json.Unmarshal([]byte(cm.Data[services.NamespaceRegistryDataKey]), ®istryData) - if err != nil { - return err - } - - // Check if the feature store namespace is registered - if registryData.Namespaces == nil { - return fmt.Errorf("namespaces map is nil") - } - - // The feature store should be registered in its namespace - featureStoreNamespace := featurestore.Namespace - if featureStoreNamespace == "" { - featureStoreNamespace = DefaultNamespace - } - - configs, exists := registryData.Namespaces[featureStoreNamespace] - if !exists { - return fmt.Errorf("feature store namespace %s not found in registry", featureStoreNamespace) - } - - // Check if the client config is registered - expectedConfigName := featurestore.Status.ClientConfigMap - if expectedConfigName == "" { - // If no client config name is set, we expect at least one config - if len(configs) == 0 { - return fmt.Errorf("no client configs found for namespace %s", featureStoreNamespace) - } - } else { - // Check if the specific config is registered - found := false - for _, config := range configs { - if config == expectedConfigName { - found = true - break - } - } - if !found { - return fmt.Errorf("expected client config %s not found in registry", expectedConfigName) - } - } - - return nil - }, time.Second*30, time.Millisecond*500).Should(Succeed()) - }) - - It("should clean up namespace registry entry when FeatureStore is deleted", func() { - By("Reconciling the FeatureStore to create registry entry") - reconciler := &FeatureStoreReconciler{ - Client: k8sClient, - Scheme: k8sClient.Scheme(), - } - - _, err := reconciler.Reconcile(ctx, reconcile.Request{ - NamespacedName: typeNamespacedName, - }) - Expect(err).NotTo(HaveOccurred()) - - By("Verifying feature store is registered") - Eventually(func() error { - cm := &corev1.ConfigMap{} - err := k8sClient.Get(ctx, types.NamespacedName{ - Name: services.NamespaceRegistryConfigMapName, - Namespace: services.DefaultKubernetesNamespace, - }, cm) - if err != nil { - return err - } - - if cm.Data == nil || cm.Data[services.NamespaceRegistryDataKey] == "" { - return fmt.Errorf("namespace registry data is empty") - } - - var registryData services.NamespaceRegistryData - err = json.Unmarshal([]byte(cm.Data[services.NamespaceRegistryDataKey]), ®istryData) - if err != nil { - return err - } - - featureStoreNamespace := featurestore.Namespace - if featureStoreNamespace == "" { - featureStoreNamespace = DefaultNamespace - } - - _, exists := registryData.Namespaces[featureStoreNamespace] - if !exists { - return fmt.Errorf("feature store not registered") - } - - return nil - }, time.Second*30, time.Millisecond*500).Should(Succeed()) - - By("Deleting the FeatureStore") - Expect(k8sClient.Delete(ctx, featurestore)).Should(Succeed()) - - By("Reconciling the deletion") - _, err = reconciler.Reconcile(ctx, reconcile.Request{ - NamespacedName: typeNamespacedName, - }) - Expect(err).NotTo(HaveOccurred()) - - By("Verifying namespace registry entry is cleaned up") - Eventually(func() error { - cm := &corev1.ConfigMap{} - err := k8sClient.Get(ctx, types.NamespacedName{ - Name: services.NamespaceRegistryConfigMapName, - Namespace: services.DefaultKubernetesNamespace, - }, cm) - if err != nil { - return err - } - - if cm.Data == nil || cm.Data[services.NamespaceRegistryDataKey] == "" { - // Empty registry is acceptable after cleanup - return nil - } - - var registryData services.NamespaceRegistryData - err = json.Unmarshal([]byte(cm.Data[services.NamespaceRegistryDataKey]), ®istryData) - if err != nil { - return err - } - - featureStoreNamespace := featurestore.Namespace - if featureStoreNamespace == "" { - featureStoreNamespace = DefaultNamespace - } - - // Check that the specific FeatureStore's config is removed - configs, exists := registryData.Namespaces[featureStoreNamespace] - if exists { - expectedClientConfigName := "feast-" + featurestore.Name + "-client" - for _, config := range configs { - if config == expectedClientConfigName { - return fmt.Errorf("feature store config %s still exists after deletion", expectedClientConfigName) - } - } - } - - return nil - }, time.Second*30, time.Millisecond*500).Should(Succeed()) - }) - }) - - Context("When testing namespace registry data operations", func() { - It("should correctly serialize and deserialize namespace registry data", func() { - By("Creating test data") - originalData := &services.NamespaceRegistryData{ - Namespaces: map[string][]string{ - "test-namespace-1": {"client-config-1", "client-config-2"}, - "test-namespace-2": {"client-config-3"}, - }, - } - - By("Marshaling to JSON") - jsonData, err := json.Marshal(originalData) - Expect(err).NotTo(HaveOccurred()) - - By("Unmarshaling back") - var unmarshaledData services.NamespaceRegistryData - err = json.Unmarshal(jsonData, &unmarshaledData) - Expect(err).NotTo(HaveOccurred()) - - By("Verifying data integrity") - Expect(unmarshaledData.Namespaces).To(Equal(originalData.Namespaces)) - }) - - It("should handle empty namespace registry data", func() { - By("Creating empty data") - originalData := &services.NamespaceRegistryData{ - Namespaces: make(map[string][]string), - } - - By("Marshaling to JSON") - jsonData, err := json.Marshal(originalData) - Expect(err).NotTo(HaveOccurred()) - - By("Unmarshaling back") - var unmarshaledData services.NamespaceRegistryData - err = json.Unmarshal(jsonData, &unmarshaledData) - Expect(err).NotTo(HaveOccurred()) - - By("Verifying empty data") - Expect(unmarshaledData.Namespaces).To(Equal(originalData.Namespaces)) - Expect(unmarshaledData.Namespaces).To(BeEmpty()) - }) - - It("should correctly remove entries from namespace registry data", func() { - By("Creating test data with multiple entries") - originalData := &services.NamespaceRegistryData{ - Namespaces: map[string][]string{ - "namespace-1": {"config-1", "config-2", "config-3"}, - "namespace-2": {"config-4"}, - }, - } - - By("Marshaling to JSON") - jsonData, err := json.Marshal(originalData) - Expect(err).NotTo(HaveOccurred()) - - By("Unmarshaling back") - var data services.NamespaceRegistryData - err = json.Unmarshal(jsonData, &data) - Expect(err).NotTo(HaveOccurred()) - - By("Simulating removal of specific config") - namespace := "namespace-1" - configToRemove := "config-2" - - if configs, exists := data.Namespaces[namespace]; exists { - var updatedConfigs []string - for _, config := range configs { - if config != configToRemove { - updatedConfigs = append(updatedConfigs, config) - } - } - data.Namespaces[namespace] = updatedConfigs - } - - By("Verifying removal worked") - expectedConfigs := []string{"config-1", "config-3"} - Expect(data.Namespaces[namespace]).To(Equal(expectedConfigs)) - - By("Verifying other namespace is unchanged") - Expect(data.Namespaces["namespace-2"]).To(Equal([]string{"config-4"})) - }) - - It("should remove entire namespace when last config is removed", func() { - By("Creating test data with single config per namespace") - originalData := &services.NamespaceRegistryData{ - Namespaces: map[string][]string{ - "namespace-1": {"config-1"}, - "namespace-2": {"config-2"}, - }, - } - - By("Marshaling to JSON") - jsonData, err := json.Marshal(originalData) - Expect(err).NotTo(HaveOccurred()) - - By("Unmarshaling back") - var data services.NamespaceRegistryData - err = json.Unmarshal(jsonData, &data) - Expect(err).NotTo(HaveOccurred()) - - By("Simulating removal of the only config from namespace-1") - namespace := "namespace-1" - configToRemove := "config-1" - - if configs, exists := data.Namespaces[namespace]; exists { - var updatedConfigs []string - for _, config := range configs { - if config != configToRemove { - updatedConfigs = append(updatedConfigs, config) - } - } - - // If no configs left, remove the namespace entry - if len(updatedConfigs) == 0 { - delete(data.Namespaces, namespace) - } else { - data.Namespaces[namespace] = updatedConfigs - } - } - - By("Verifying namespace was removed") - _, exists := data.Namespaces[namespace] - Expect(exists).To(BeFalse()) - - By("Verifying other namespace is unchanged") - Expect(data.Namespaces["namespace-2"]).To(Equal([]string{"config-2"})) - - By("Verifying total namespace count") - Expect(data.Namespaces).To(HaveLen(1)) - }) - }) -}) diff --git a/infra/feast-operator/internal/controller/registry/client.go b/infra/feast-operator/internal/controller/registry/client.go new file mode 100644 index 00000000000..4b510d2193f --- /dev/null +++ b/infra/feast-operator/internal/controller/registry/client.go @@ -0,0 +1,136 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package registry + +import ( + "context" + "crypto/tls" + "encoding/json" + "fmt" + "net/http" + "net/url" + "strings" + "time" +) + +const ( + permissionsPath = "/api/v1/permissions" + requestTimeout = 10 * time.Second +) + +// PermissionPolicy holds the extracted policy data from a Feast permission. +type PermissionPolicy struct { + Groups []string + Namespaces []string +} + +// ListPermissions fetches permissions from the registry REST API for the given project. +// Uses cluster-internal TLS (InsecureSkipVerify for service certs). +// Returns policies from GroupBasedPolicy, NamespaceBasedPolicy, and CombinedGroupNamespacePolicy only. +func ListPermissions(ctx context.Context, registryRestURL string, project string) ([]PermissionPolicy, error) { + if registryRestURL == "" || project == "" { + return nil, nil + } + baseURL := registryRestURL + if !strings.HasPrefix(baseURL, "http://") && !strings.HasPrefix(baseURL, "https://") { + baseURL = "https://" + baseURL + } + u, err := url.Parse(baseURL) + if err != nil { + return nil, fmt.Errorf("failed to parse registry URL: %w", err) + } + u.Path = strings.TrimSuffix(u.Path, "/") + permissionsPath + q := u.Query() + q.Set("project", project) + u.RawQuery = q.Encode() + + req, err := http.NewRequestWithContext(ctx, http.MethodGet, u.String(), nil) + if err != nil { + return nil, fmt.Errorf("failed to create request: %w", err) + } + client := &http.Client{ + Timeout: requestTimeout, + Transport: &http.Transport{ + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + }, + } + resp, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("failed to fetch permissions: %w", err) + } + defer func() { _ = resp.Body.Close() }() + if resp.StatusCode != http.StatusOK { + return nil, fmt.Errorf("registry returned status %d", resp.StatusCode) + } + var result struct { + Permissions []struct { + Spec *struct { + Policy map[string]json.RawMessage `json:"policy,omitempty"` + } `json:"spec,omitempty"` + } `json:"permissions,omitempty"` + } + if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { + return nil, fmt.Errorf("failed to decode permissions response: %w", err) + } + var policies []PermissionPolicy + for _, p := range result.Permissions { + if p.Spec == nil || p.Spec.Policy == nil { + continue + } + pol := extractPolicy(p.Spec.Policy) + if pol != nil { + policies = append(policies, *pol) + } + } + return policies, nil +} + +func extractPolicy(policy map[string]json.RawMessage) *PermissionPolicy { + var groups, namespaces []string + for k, v := range policy { + norm := strings.ToLower(strings.ReplaceAll(k, "_", "")) + switch norm { + case "groupbasedpolicy": + var g struct { + Groups []string `json:"groups,omitempty"` + } + if err := json.Unmarshal(v, &g); err == nil { + groups = append(groups, g.Groups...) + } + case "namespacebasedpolicy": + var n struct { + Namespaces []string `json:"namespaces,omitempty"` + } + if err := json.Unmarshal(v, &n); err == nil { + namespaces = append(namespaces, n.Namespaces...) + } + case "combinedgroupnamespacepolicy": + var c struct { + Groups []string `json:"groups,omitempty"` + Namespaces []string `json:"namespaces,omitempty"` + } + if err := json.Unmarshal(v, &c); err == nil { + groups = append(groups, c.Groups...) + namespaces = append(namespaces, c.Namespaces...) + } + } + } + if len(groups) == 0 && len(namespaces) == 0 { + return nil + } + return &PermissionPolicy{Groups: groups, Namespaces: namespaces} +} diff --git a/infra/feast-operator/internal/controller/registry/client_test.go b/infra/feast-operator/internal/controller/registry/client_test.go new file mode 100644 index 00000000000..19cdeffd096 --- /dev/null +++ b/infra/feast-operator/internal/controller/registry/client_test.go @@ -0,0 +1,222 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package registry + +import ( + "context" + "encoding/json" + "net/http" + "net/http/httptest" + "testing" +) + +func TestExtractPolicy_GroupBasedPolicy(t *testing.T) { + policy := map[string]json.RawMessage{ + "groupBasedPolicy": json.RawMessage(`{"groups":["admin-group","data-team"]}`), + } + result := extractPolicy(policy) + if result == nil { + t.Fatal("expected non-nil result") + } + assertStrSlice(t, result.Groups, []string{"admin-group", "data-team"}) + assertStrSlice(t, result.Namespaces, nil) +} + +func TestExtractPolicy_NamespaceBasedPolicy(t *testing.T) { + policy := map[string]json.RawMessage{ + "namespaceBasedPolicy": json.RawMessage(`{"namespaces":["ds-project-1","ds-project-2"]}`), + } + result := extractPolicy(policy) + if result == nil { + t.Fatal("expected non-nil result") + } + assertStrSlice(t, result.Groups, nil) + assertStrSlice(t, result.Namespaces, []string{"ds-project-1", "ds-project-2"}) +} + +func TestExtractPolicy_CombinedGroupNamespacePolicy(t *testing.T) { + policy := map[string]json.RawMessage{ + "combinedGroupNamespacePolicy": json.RawMessage(`{"groups":["ml-engineers"],"namespaces":["prod-ns"]}`), + } + result := extractPolicy(policy) + if result == nil { + t.Fatal("expected non-nil result") + } + assertStrSlice(t, result.Groups, []string{"ml-engineers"}) + assertStrSlice(t, result.Namespaces, []string{"prod-ns"}) +} + +func TestExtractPolicy_RoleBasedPolicyIgnored(t *testing.T) { + policy := map[string]json.RawMessage{ + "roleBasedPolicy": json.RawMessage(`{"roles":["admin"]}`), + } + result := extractPolicy(policy) + if result != nil { + t.Fatalf("expected nil for RoleBasedPolicy, got %+v", result) + } +} + +func TestExtractPolicy_EmptyPolicy(t *testing.T) { + result := extractPolicy(map[string]json.RawMessage{}) + if result != nil { + t.Fatalf("expected nil for empty policy, got %+v", result) + } +} + +func TestExtractPolicy_SnakeCaseKeys(t *testing.T) { + // Verify normalization handles snake_case (e.g. from alternative serializers) + policy := map[string]json.RawMessage{ + "group_based_policy": json.RawMessage(`{"groups":["team-a"]}`), + } + result := extractPolicy(policy) + if result == nil { + t.Fatal("expected non-nil result for snake_case key") + } + assertStrSlice(t, result.Groups, []string{"team-a"}) +} + +func TestListPermissions_EmptyInputs(t *testing.T) { + policies, err := ListPermissions(context.Background(), "", "project") + if err != nil || policies != nil { + t.Fatalf("expected nil,nil for empty URL; got %v, %v", policies, err) + } + policies, err = ListPermissions(context.Background(), "http://localhost", "") + if err != nil || policies != nil { + t.Fatalf("expected nil,nil for empty project; got %v, %v", policies, err) + } +} + +func TestListPermissions_Success(t *testing.T) { + responseBody := `{ + "permissions": [ + { + "spec": { + "name": "perm1", + "project": "my_project", + "policy": { + "groupBasedPolicy": {"groups": ["group-a", "group-b"]} + } + } + }, + { + "spec": { + "name": "perm2", + "project": "my_project", + "policy": { + "namespaceBasedPolicy": {"namespaces": ["ns-1"]} + } + } + }, + { + "spec": { + "name": "perm3", + "project": "my_project", + "policy": { + "roleBasedPolicy": {"roles": ["admin"]} + } + } + } + ] + }` + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path != permissionsPath { + t.Errorf("unexpected path: %s", r.URL.Path) + } + if r.URL.Query().Get("project") != "my_project" { + t.Errorf("unexpected project param: %s", r.URL.Query().Get("project")) + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(responseBody)) + })) + defer server.Close() + + policies, err := ListPermissions(context.Background(), server.URL, "my_project") + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + // RoleBasedPolicy should be filtered out, leaving 2 policies + if len(policies) != 2 { + t.Fatalf("expected 2 policies, got %d", len(policies)) + } + assertStrSlice(t, policies[0].Groups, []string{"group-a", "group-b"}) + assertStrSlice(t, policies[1].Namespaces, []string{"ns-1"}) +} + +func TestListPermissions_NonOKStatus(t *testing.T) { + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { + w.WriteHeader(http.StatusInternalServerError) + })) + defer server.Close() + + _, err := ListPermissions(context.Background(), server.URL, "p") + if err == nil { + t.Fatal("expected error for non-200 status") + } +} + +func TestListPermissions_EmptyPermissions(t *testing.T) { + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { + w.Header().Set("Content-Type", "application/json") + _, _ = w.Write([]byte(`{"permissions":[]}`)) + })) + defer server.Close() + + policies, err := ListPermissions(context.Background(), server.URL, "p") + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if len(policies) != 0 { + t.Fatalf("expected 0 policies, got %d", len(policies)) + } +} + +func TestListPermissions_NoSpecPermission(t *testing.T) { + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { + w.Header().Set("Content-Type", "application/json") + _, _ = w.Write([]byte(`{"permissions":[{}]}`)) + })) + defer server.Close() + + policies, err := ListPermissions(context.Background(), server.URL, "p") + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if len(policies) != 0 { + t.Fatalf("expected 0 policies for nil spec, got %d", len(policies)) + } +} + +func TestListPermissions_URLWithoutScheme(t *testing.T) { + // Verify https:// is prepended when scheme is missing + _, err := ListPermissions(context.Background(), "nonexistent-host:8080", "p") + if err == nil { + t.Fatal("expected error for unreachable host") + } +} + +func assertStrSlice(t *testing.T, got, want []string) { + t.Helper() + if len(got) != len(want) { + t.Fatalf("slice length mismatch: got %v, want %v", got, want) + } + for i := range got { + if got[i] != want[i] { + t.Fatalf("slice[%d] mismatch: got %q, want %q", i, got[i], want[i]) + } + } +} diff --git a/infra/feast-operator/internal/controller/services/namespace_registry.go b/infra/feast-operator/internal/controller/services/namespace_registry.go deleted file mode 100644 index 64cdaebd6f0..00000000000 --- a/infra/feast-operator/internal/controller/services/namespace_registry.go +++ /dev/null @@ -1,433 +0,0 @@ -/* -Copyright 2024 Feast Community. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package services - -import ( - "encoding/json" - "fmt" - "os" - - corev1 "k8s.io/api/core/v1" - rbacv1 "k8s.io/api/rbac/v1" - apierrors "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" - "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" - "sigs.k8s.io/controller-runtime/pkg/log" -) - -// NamespaceRegistryData represents the structure of data stored in the namespace registry ConfigMap -type NamespaceRegistryData struct { - Namespaces map[string][]string `json:"namespaces"` -} - -// deployNamespaceRegistry creates and manages the namespace registry ConfigMap -func (feast *FeastServices) deployNamespaceRegistry() error { - // Check if we can determine the target namespace before creating any resources - targetNamespace, err := feast.getNamespaceRegistryNamespace() - if err != nil { - logger := log.FromContext(feast.Handler.Context) - logger.V(1).Info("Skipping namespace registry deployment: unable to determine target namespace", "error", err) - return nil // Return nil to avoid failing the entire deployment - } - - logger := log.FromContext(feast.Handler.Context) - logger.V(1).Info("Deploying namespace registry", "targetNamespace", targetNamespace) - - if err := feast.createNamespaceRegistryConfigMap(targetNamespace); err != nil { - return err - } - if err := feast.createNamespaceRegistryRoleBinding(targetNamespace); err != nil { - return err - } - return nil -} - -// createNamespaceRegistryConfigMap creates the namespace registry ConfigMap -func (feast *FeastServices) createNamespaceRegistryConfigMap(targetNamespace string) error { - logger := log.FromContext(feast.Handler.Context) - - cm := &corev1.ConfigMap{ - ObjectMeta: metav1.ObjectMeta{ - Name: NamespaceRegistryConfigMapName, - Namespace: targetNamespace, - }, - } - cm.SetGroupVersionKind(corev1.SchemeGroupVersion.WithKind("ConfigMap")) - - if op, err := controllerutil.CreateOrUpdate(feast.Handler.Context, feast.Handler.Client, cm, controllerutil.MutateFn(func() error { - return feast.setNamespaceRegistryConfigMap(cm) - })); err != nil { - return err - } else if op == controllerutil.OperationResultCreated || op == controllerutil.OperationResultUpdated { - logger.Info("Successfully reconciled namespace registry ConfigMap", "ConfigMap", cm.Name, "Namespace", cm.Namespace, "operation", op) - } - - return nil -} - -// setNamespaceRegistryConfigMap sets the data for the namespace registry ConfigMap -func (feast *FeastServices) setNamespaceRegistryConfigMap(cm *corev1.ConfigMap) error { - // Get existing data or initialize empty structure - existingData := &NamespaceRegistryData{ - Namespaces: make(map[string][]string), - } - - if cm.Data != nil && cm.Data[NamespaceRegistryDataKey] != "" { - if err := json.Unmarshal([]byte(cm.Data[NamespaceRegistryDataKey]), existingData); err != nil { - // If unmarshaling fails, start with empty data - existingData = &NamespaceRegistryData{ - Namespaces: make(map[string][]string), - } - } - } - - // Add current feature store instance to the registry - featureStoreNamespace := feast.Handler.FeatureStore.Namespace - clientConfigName := feast.Handler.FeatureStore.Status.ClientConfigMap - - if clientConfigName != "" { - if existingData.Namespaces[featureStoreNamespace] == nil { - existingData.Namespaces[featureStoreNamespace] = []string{} - } - - // Check if client config is already in the list - found := false - for _, config := range existingData.Namespaces[featureStoreNamespace] { - if config == clientConfigName { - found = true - break - } - } - - if !found { - existingData.Namespaces[featureStoreNamespace] = append(existingData.Namespaces[featureStoreNamespace], clientConfigName) - } - } - - // Marshal the data back to JSON - dataBytes, err := json.Marshal(existingData) - if err != nil { - return fmt.Errorf("failed to marshal namespace registry data: %w", err) - } - - // Set the ConfigMap data - if cm.Data == nil { - cm.Data = make(map[string]string) - } - cm.Data[NamespaceRegistryDataKey] = string(dataBytes) - - // Set labels - cm.Labels = feast.getLabels() - - return nil -} - -// createNamespaceRegistryRoleBinding creates a RoleBinding to allow system:authenticated to read the ConfigMap -func (feast *FeastServices) createNamespaceRegistryRoleBinding(targetNamespace string) error { - logger := log.FromContext(feast.Handler.Context) - - roleBinding := &rbacv1.RoleBinding{ - ObjectMeta: metav1.ObjectMeta{ - Name: NamespaceRegistryConfigMapName + "-reader", - Namespace: targetNamespace, - }, - } - roleBinding.SetGroupVersionKind(rbacv1.SchemeGroupVersion.WithKind("RoleBinding")) - - if op, err := controllerutil.CreateOrUpdate(feast.Handler.Context, feast.Handler.Client, roleBinding, controllerutil.MutateFn(func() error { - return feast.setNamespaceRegistryRoleBinding(roleBinding) - })); err != nil { - return err - } else if op == controllerutil.OperationResultCreated || op == controllerutil.OperationResultUpdated { - logger.Info("Successfully reconciled namespace registry RoleBinding", "RoleBinding", roleBinding.Name, "Namespace", roleBinding.Namespace, "operation", op) - } - - return nil -} - -// setNamespaceRegistryRoleBinding sets the RoleBinding for namespace registry access -func (feast *FeastServices) setNamespaceRegistryRoleBinding(rb *rbacv1.RoleBinding) error { - // Create a Role that allows reading the ConfigMap - role := &rbacv1.Role{ - ObjectMeta: metav1.ObjectMeta{ - Name: NamespaceRegistryConfigMapName + "-reader", - Namespace: rb.Namespace, - }, - Rules: []rbacv1.PolicyRule{ - { - APIGroups: []string{""}, - Resources: []string{"configmaps"}, - ResourceNames: []string{NamespaceRegistryConfigMapName}, - Verbs: []string{"get", "list"}, - }, - }, - } - - // Create or update the Role - if _, err := controllerutil.CreateOrUpdate(feast.Handler.Context, feast.Handler.Client, role, controllerutil.MutateFn(func() error { - role.Rules = []rbacv1.PolicyRule{ - { - APIGroups: []string{""}, - Resources: []string{"configmaps"}, - ResourceNames: []string{NamespaceRegistryConfigMapName}, - Verbs: []string{"get", "list"}, - }, - } - return nil - })); err != nil { - return err - } - - // Set the RoleBinding - rb.RoleRef = rbacv1.RoleRef{ - APIGroup: "rbac.authorization.k8s.io", - Kind: "Role", - Name: role.Name, - } - - rb.Subjects = []rbacv1.Subject{ - { - APIGroup: "rbac.authorization.k8s.io", - Kind: "Group", - Name: "system:authenticated", - }, - } - - return nil -} - -// getNamespaceRegistryNamespace determines the target namespace for the namespace registry ConfigMap -func (feast *FeastServices) getNamespaceRegistryNamespace() (string, error) { - // Check if we're running on OpenShift - logger := log.FromContext(feast.Handler.Context) - if isOpenShift { - // TODO: Add support for reading DSCi configuration - if data, err := os.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace"); err == nil { - if ns := string(data); len(ns) > 0 { - logger.V(1).Info("Using OpenShift namespace", "namespace", ns) - return ns, nil - } - } - // This is what notebook controller team is doing, we are following them - // They are not defaulting to redhat-ods-applications namespace - return "", fmt.Errorf("unable to determine the namespace") - } - - return DefaultKubernetesNamespace, nil -} - -// AddToNamespaceRegistry adds a feature store instance to the namespace registry -func (feast *FeastServices) AddToNamespaceRegistry() error { - logger := log.FromContext(feast.Handler.Context) - targetNamespace, err := feast.getNamespaceRegistryNamespace() - if err != nil { - logger.V(1).Info("Skipping namespace registry addition: unable to determine target namespace", "error", err) - return nil // Return nil to avoid failing the entire operation - } - - // Get the existing ConfigMap - cm := &corev1.ConfigMap{} - err = feast.Handler.Client.Get(feast.Handler.Context, types.NamespacedName{ - Name: NamespaceRegistryConfigMapName, - Namespace: targetNamespace, - }, cm) - if err != nil { - if apierrors.IsNotFound(err) { - logger.V(1).Info("Namespace registry ConfigMap not found, nothing to add to") - return nil - } - return fmt.Errorf("failed to get namespace registry ConfigMap: %w", err) - } - - // Parse existing data - var existingData NamespaceRegistryData - if cm.Data != nil && cm.Data[NamespaceRegistryDataKey] != "" { - err = json.Unmarshal([]byte(cm.Data[NamespaceRegistryDataKey]), &existingData) - if err != nil { - logger.V(1).Info("Failed to unmarshal namespace registry data, nothing to add to") - return nil - } - } - - // Add current feature store instance to the registry - featureStoreNamespace := feast.Handler.FeatureStore.Namespace - clientConfigName := feast.Handler.FeatureStore.Status.ClientConfigMap - - if clientConfigName != "" { - // Initialize namespace map if it doesn't exist - if existingData.Namespaces == nil { - existingData.Namespaces = make(map[string][]string) - } - if existingData.Namespaces[featureStoreNamespace] == nil { - existingData.Namespaces[featureStoreNamespace] = []string{} - } - - // Check if client config is already in the list - found := false - for _, config := range existingData.Namespaces[featureStoreNamespace] { - if config == clientConfigName { - found = true - break - } - } - - // Add if not already present - if !found { - existingData.Namespaces[featureStoreNamespace] = append(existingData.Namespaces[featureStoreNamespace], clientConfigName) - } - } - - // Marshal the updated data back to JSON - dataBytes, err := json.Marshal(existingData) - if err != nil { - return fmt.Errorf("failed to marshal updated namespace registry data: %w", err) - } - - // Update the ConfigMap - if cm.Data == nil { - cm.Data = make(map[string]string) - } - cm.Data[NamespaceRegistryDataKey] = string(dataBytes) - - // Update the ConfigMap - if err := feast.Handler.Client.Update(feast.Handler.Context, cm); err != nil { - return fmt.Errorf("failed to update namespace registry ConfigMap: %w", err) - } - - logger.Info("Successfully added feature store to namespace registry", - "namespace", featureStoreNamespace, - "clientConfig", clientConfigName, - "targetNamespace", targetNamespace) - - return nil -} - -// RemoveFromNamespaceRegistry removes a feature store instance from the namespace registry -func (feast *FeastServices) RemoveFromNamespaceRegistry() error { - logger := log.FromContext(feast.Handler.Context) - - // Determine the target namespace based on platform - targetNamespace, err := feast.getNamespaceRegistryNamespace() - if err != nil { - logger.V(1).Info("Skipping namespace registry removal: unable to determine target namespace", "error", err) - return nil // Return nil to avoid failing the entire operation - } - - // Get the existing ConfigMap - cm := &corev1.ConfigMap{} - err = feast.Handler.Client.Get(feast.Handler.Context, client.ObjectKey{ - Name: NamespaceRegistryConfigMapName, - Namespace: targetNamespace, - }, cm) - if err != nil { - if apierrors.IsNotFound(err) { - // ConfigMap doesn't exist, nothing to clean up - logger.V(1).Info("Namespace registry ConfigMap not found, nothing to clean up") - return nil - } - return fmt.Errorf("failed to get namespace registry ConfigMap: %w", err) - } - - // Get existing data - existingData := &NamespaceRegistryData{ - Namespaces: make(map[string][]string), - } - - if cm.Data != nil && cm.Data[NamespaceRegistryDataKey] != "" { - if err := json.Unmarshal([]byte(cm.Data[NamespaceRegistryDataKey]), existingData); err != nil { - // If unmarshaling fails, there's nothing to clean up - logger.V(1).Info("Failed to unmarshal namespace registry data, nothing to clean up") - return nil - } - } - - // Remove current feature store instance from the registry - featureStoreNamespace := feast.Handler.FeatureStore.Namespace - clientConfigName := feast.Handler.FeatureStore.Status.ClientConfigMap - featureStoreName := feast.Handler.FeatureStore.Name - - // Generate expected client config name using the same logic as creation - expectedClientConfigName := "feast-" + featureStoreName + "-client" - - logger.Info("Removing feature store from registry", - "featureStoreName", featureStoreName, - "featureStoreNamespace", featureStoreNamespace, - "clientConfigName", clientConfigName, - "expectedClientConfigName", expectedClientConfigName) - - if existingData.Namespaces[featureStoreNamespace] != nil { - var updatedConfigs []string - removed := false - - for _, config := range existingData.Namespaces[featureStoreNamespace] { - // Remove if it matches the client config name or the expected pattern - if config == clientConfigName || config == expectedClientConfigName { - logger.Info("Removing config from registry", "config", config) - removed = true - } else { - updatedConfigs = append(updatedConfigs, config) - } - } - - existingData.Namespaces[featureStoreNamespace] = updatedConfigs - - // If no configs left for this namespace, remove the namespace entry - if len(existingData.Namespaces[featureStoreNamespace]) == 0 { - delete(existingData.Namespaces, featureStoreNamespace) - logger.Info("Removed empty namespace entry from registry", "namespace", featureStoreNamespace) - } - - if !removed { - logger.V(1).Info("No matching config found to remove from registry", - "existingConfigs", existingData.Namespaces[featureStoreNamespace]) - } - } else { - logger.V(1).Info("Namespace not found in registry", "namespace", featureStoreNamespace) - } - - // Marshal the updated data back to JSON - dataBytes, err := json.Marshal(existingData) - if err != nil { - return fmt.Errorf("failed to marshal updated namespace registry data: %w", err) - } - - // Update the ConfigMap - if cm.Data == nil { - cm.Data = make(map[string]string) - } - cm.Data[NamespaceRegistryDataKey] = string(dataBytes) - - // Update the ConfigMap - if err := feast.Handler.Client.Update(feast.Handler.Context, cm); err != nil { - return fmt.Errorf("failed to update namespace registry ConfigMap: %w", err) - } - - logger.Info("Updated namespace registry ConfigMap", - "namespace", featureStoreNamespace, - "clientConfig", clientConfigName, - "remainingConfigs", existingData.Namespaces[featureStoreNamespace], - "targetNamespace", targetNamespace) - - logger.Info("Successfully removed feature store from namespace registry", - "namespace", featureStoreNamespace, - "clientConfig", clientConfigName, - "targetNamespace", targetNamespace) - - return nil -} diff --git a/infra/feast-operator/internal/controller/services/services.go b/infra/feast-operator/internal/controller/services/services.go index 446b5ab8ae0..47505b6f5ce 100644 --- a/infra/feast-operator/internal/controller/services/services.go +++ b/infra/feast-operator/internal/controller/services/services.go @@ -90,9 +90,6 @@ func (feast *FeastServices) Deploy() error { if err := feast.deployClient(); err != nil { return err } - if err := feast.deployNamespaceRegistry(); err != nil { - return err - } if err := feast.deployCronJob(); err != nil { return err } diff --git a/infra/feast-operator/internal/controller/services/services_types.go b/infra/feast-operator/internal/controller/services/services_types.go index 10ac3538a99..075b3cc382e 100644 --- a/infra/feast-operator/internal/controller/services/services_types.go +++ b/infra/feast-operator/internal/controller/services/services_types.go @@ -35,10 +35,7 @@ const ( DefaultOnlineStorePath = "online_store.db" svcDomain = ".svc.cluster.local" - // Namespace registry ConfigMap constants - NamespaceRegistryConfigMapName = "feast-configs-registry" - NamespaceRegistryDataKey = "namespaces" - DefaultKubernetesNamespace = "feast-operator-system" + DefaultKubernetesNamespace = "feast-operator-system" HttpPort = 80 HttpsPort = 443 From 32134e74231b3db5aa1827909d7987a79dca05bc Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Wed, 18 Mar 2026 19:44:27 +0530 Subject: [PATCH 12/37] Permisisons fetch using Infra token Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- .../controller/featurestore_controller.go | 28 ++++++- .../internal/controller/registry/client.go | 24 +++++- .../controller/registry/client_test.go | 81 +++++++++++++++++-- .../internal/controller/services/cronjob.go | 2 + .../internal/controller/services/services.go | 63 +++++++++++++-- .../controller/services/services_types.go | 4 +- 6 files changed, 181 insertions(+), 21 deletions(-) diff --git a/infra/feast-operator/internal/controller/featurestore_controller.go b/infra/feast-operator/internal/controller/featurestore_controller.go index c93f719d5a1..f7f7c3b8d01 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller.go +++ b/infra/feast-operator/internal/controller/featurestore_controller.go @@ -50,7 +50,7 @@ import ( // Constants for requeue const ( RequeueDelayError = 5 * time.Second - RequeuePeriodicInterval = 5 * time.Minute + RequeuePeriodicInterval = 30 * time.Second ) // FeatureStoreReconciler reconciles a FeatureStore object @@ -127,8 +127,12 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request } policies, err := r.fetchPermissionsFromRegistry(ctx, cr) if err != nil { - logger.V(1).Info("Could not fetch permissions from registry", "error", err) - } else if len(policies) > 0 && cr.Status.ClientConfigMap != "" { + logger.Error(err, "Failed to fetch permissions from registry") + } else if len(policies) == 0 { + logger.V(1).Info("No auto-access policies found in registry") + } else if cr.Status.ClientConfigMap == "" { + logger.Info("Skipping auto-access RBAC reconciliation: clientConfigMap is not set in status") + } else { if err := access.ReconcileAutoAccessRBAC(ctx, r.Client, r.Scheme, cr, cr.Namespace, cr.Name, cr.Status.ClientConfigMap, policies); err != nil { logger.Error(err, "Failed to reconcile auto-access RBAC") } @@ -142,8 +146,10 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request } func (r *FeatureStoreReconciler) fetchPermissionsFromRegistry(ctx context.Context, cr *feastdevv1.FeatureStore) ([]registry.PermissionPolicy, error) { + logger := log.FromContext(ctx) registryRest := cr.Status.ServiceHostnames.RegistryRest if registryRest == "" { + logger.V(1).Info("Skipping permission fetch: registry REST API hostname is not set (ensure RestAPI is enabled)") return nil, nil } project := cr.Status.Applied.FeastProject @@ -151,9 +157,23 @@ func (r *FeatureStoreReconciler) fetchPermissionsFromRegistry(ctx context.Contex project = cr.Spec.FeastProject } if project == "" { + logger.Info("Skipping permission fetch: feast project name is not set") return nil, nil } - return registry.ListPermissions(ctx, registryRest, project) + intraCommToken, err := r.readIntraCommunicationToken(ctx, cr) + if err != nil { + return nil, err + } + return registry.ListPermissions(ctx, registryRest, project, intraCommToken) +} + +func (r *FeatureStoreReconciler) readIntraCommunicationToken(ctx context.Context, cr *feastdevv1.FeatureStore) (string, error) { + cmName := services.GetIntraCommunicationConfigMapName(cr.Name) + cm := &corev1.ConfigMap{} + if err := r.Get(ctx, types.NamespacedName{Name: cmName, Namespace: cr.Namespace}, cm); err != nil { + return "", err + } + return cm.Data["token"], nil } func (r *FeatureStoreReconciler) countOtherFeatureStoresInNamespace(ctx context.Context, namespace, excludeName string) int { diff --git a/infra/feast-operator/internal/controller/registry/client.go b/infra/feast-operator/internal/controller/registry/client.go index 4b510d2193f..961b0d5766b 100644 --- a/infra/feast-operator/internal/controller/registry/client.go +++ b/infra/feast-operator/internal/controller/registry/client.go @@ -18,7 +18,10 @@ package registry import ( "context" + "crypto/hmac" + "crypto/sha256" "crypto/tls" + "encoding/base64" "encoding/json" "fmt" "net/http" @@ -39,9 +42,10 @@ type PermissionPolicy struct { } // ListPermissions fetches permissions from the registry REST API for the given project. +// The intraCommToken is the per-instance secret used to bypass per-user auth on the registry. // Uses cluster-internal TLS (InsecureSkipVerify for service certs). // Returns policies from GroupBasedPolicy, NamespaceBasedPolicy, and CombinedGroupNamespacePolicy only. -func ListPermissions(ctx context.Context, registryRestURL string, project string) ([]PermissionPolicy, error) { +func ListPermissions(ctx context.Context, registryRestURL, project, intraCommToken string) ([]PermissionPolicy, error) { if registryRestURL == "" || project == "" { return nil, nil } @@ -62,6 +66,9 @@ func ListPermissions(ctx context.Context, registryRestURL string, project string if err != nil { return nil, fmt.Errorf("failed to create request: %w", err) } + if intraCommToken != "" { + req.Header.Set("Authorization", "Bearer "+BuildIntraCommunicationJWT(intraCommToken)) + } client := &http.Client{ Timeout: requestTimeout, Transport: &http.Transport{ @@ -99,6 +106,21 @@ func ListPermissions(ctx context.Context, registryRestURL string, project string return policies, nil } +// BuildIntraCommunicationJWT creates a JWT matching the Python SDK's +// intra-service communication format: HS256 signed with an empty key, +// sub=":::". The registry recognises this and bypasses per-user +// permission checks. +func BuildIntraCommunicationJWT(intraCommToken string) string { + b64 := base64.RawURLEncoding.EncodeToString + header := b64([]byte(`{"alg":"HS256","typ":"JWT"}`)) + payload := b64([]byte(`{"sub":":::` + intraCommToken + `"}`)) + signingInput := header + "." + payload + mac := hmac.New(sha256.New, []byte("")) + mac.Write([]byte(signingInput)) + sig := b64(mac.Sum(nil)) + return signingInput + "." + sig +} + func extractPolicy(policy map[string]json.RawMessage) *PermissionPolicy { var groups, namespaces []string for k, v := range policy { diff --git a/infra/feast-operator/internal/controller/registry/client_test.go b/infra/feast-operator/internal/controller/registry/client_test.go index 19cdeffd096..59cfdba2493 100644 --- a/infra/feast-operator/internal/controller/registry/client_test.go +++ b/infra/feast-operator/internal/controller/registry/client_test.go @@ -18,9 +18,11 @@ package registry import ( "context" + "encoding/base64" "encoding/json" "net/http" "net/http/httptest" + "strings" "testing" ) @@ -90,11 +92,11 @@ func TestExtractPolicy_SnakeCaseKeys(t *testing.T) { } func TestListPermissions_EmptyInputs(t *testing.T) { - policies, err := ListPermissions(context.Background(), "", "project") + policies, err := ListPermissions(context.Background(), "", "project", "tok") if err != nil || policies != nil { t.Fatalf("expected nil,nil for empty URL; got %v, %v", policies, err) } - policies, err = ListPermissions(context.Background(), "http://localhost", "") + policies, err = ListPermissions(context.Background(), "http://localhost", "", "tok") if err != nil || policies != nil { t.Fatalf("expected nil,nil for empty project; got %v, %v", policies, err) } @@ -145,7 +147,7 @@ func TestListPermissions_Success(t *testing.T) { })) defer server.Close() - policies, err := ListPermissions(context.Background(), server.URL, "my_project") + policies, err := ListPermissions(context.Background(), server.URL, "my_project", "test-token") if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -163,7 +165,7 @@ func TestListPermissions_NonOKStatus(t *testing.T) { })) defer server.Close() - _, err := ListPermissions(context.Background(), server.URL, "p") + _, err := ListPermissions(context.Background(), server.URL, "p", "tok") if err == nil { t.Fatal("expected error for non-200 status") } @@ -176,7 +178,7 @@ func TestListPermissions_EmptyPermissions(t *testing.T) { })) defer server.Close() - policies, err := ListPermissions(context.Background(), server.URL, "p") + policies, err := ListPermissions(context.Background(), server.URL, "p", "tok") if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -192,7 +194,7 @@ func TestListPermissions_NoSpecPermission(t *testing.T) { })) defer server.Close() - policies, err := ListPermissions(context.Background(), server.URL, "p") + policies, err := ListPermissions(context.Background(), server.URL, "p", "tok") if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -203,12 +205,77 @@ func TestListPermissions_NoSpecPermission(t *testing.T) { func TestListPermissions_URLWithoutScheme(t *testing.T) { // Verify https:// is prepended when scheme is missing - _, err := ListPermissions(context.Background(), "nonexistent-host:8080", "p") + _, err := ListPermissions(context.Background(), "nonexistent-host:8080", "p", "tok") if err == nil { t.Fatal("expected error for unreachable host") } } +func TestBuildIntraCommunicationJWT(t *testing.T) { + secretToken := "my-random-secret-value" + jwt := BuildIntraCommunicationJWT(secretToken) + parts := strings.Split(jwt, ".") + if len(parts) != 3 { + t.Fatalf("expected 3 JWT parts, got %d", len(parts)) + } + + payloadBytes, err := base64.RawURLEncoding.DecodeString(parts[1]) + if err != nil { + t.Fatalf("failed to decode payload: %v", err) + } + var payload struct { + Sub string `json:"sub"` + } + if err := json.Unmarshal(payloadBytes, &payload); err != nil { + t.Fatalf("failed to unmarshal payload: %v", err) + } + expectedSub := ":::" + secretToken + if payload.Sub != expectedSub { + t.Fatalf("expected sub %q, got %q", expectedSub, payload.Sub) + } +} + +func TestListPermissions_SendsIntraCommunicationJWT(t *testing.T) { + var receivedAuth string + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + receivedAuth = r.Header.Get("Authorization") + w.Header().Set("Content-Type", "application/json") + _, _ = w.Write([]byte(`{"permissions":[]}`)) + })) + defer server.Close() + + _, err := ListPermissions(context.Background(), server.URL, "p", "my-secret") + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if !strings.HasPrefix(receivedAuth, "Bearer ") { + t.Fatalf("expected Bearer token, got %q", receivedAuth) + } + token := strings.TrimPrefix(receivedAuth, "Bearer ") + parts := strings.Split(token, ".") + if len(parts) != 3 { + t.Fatalf("expected valid JWT with 3 parts, got %d", len(parts)) + } +} + +func TestListPermissions_NoTokenNoAuthHeader(t *testing.T) { + var receivedAuth string + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + receivedAuth = r.Header.Get("Authorization") + w.Header().Set("Content-Type", "application/json") + _, _ = w.Write([]byte(`{"permissions":[]}`)) + })) + defer server.Close() + + _, err := ListPermissions(context.Background(), server.URL, "p", "") + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if receivedAuth != "" { + t.Fatalf("expected no Authorization header when token is empty, got %q", receivedAuth) + } +} + func assertStrSlice(t *testing.T, got, want []string) { t.Helper() if len(got) != len(want) { diff --git a/infra/feast-operator/internal/controller/services/cronjob.go b/infra/feast-operator/internal/controller/services/cronjob.go index f3b978928f7..c0eeb7567c2 100644 --- a/infra/feast-operator/internal/controller/services/cronjob.go +++ b/infra/feast-operator/internal/controller/services/cronjob.go @@ -167,6 +167,7 @@ func (feast *FeastServices) setCronJobContainers(podSpec *corev1.PodSpec) { } func (feast *FeastServices) getCronJobContainer(containerName, cronJobCmd string) corev1.Container { + intraCommCMName := GetIntraCommunicationConfigMapName(feast.Handler.FeatureStore.Name) return *getContainer( containerName, "", @@ -177,6 +178,7 @@ func (feast *FeastServices) getCronJobContainer(containerName, cronJobCmd string }, feast.Handler.FeatureStore.Status.Applied.CronJob.ContainerConfigs.ContainerConfigs, "", + intraCommCMName, ) } diff --git a/infra/feast-operator/internal/controller/services/services.go b/infra/feast-operator/internal/controller/services/services.go index 47505b6f5ce..19c31cb5ef4 100644 --- a/infra/feast-operator/internal/controller/services/services.go +++ b/infra/feast-operator/internal/controller/services/services.go @@ -17,6 +17,8 @@ limitations under the License. package services import ( + "crypto/rand" + "encoding/base64" "errors" "strconv" "strings" @@ -78,6 +80,9 @@ func (feast *FeastServices) Deploy() error { if err := feast.createServiceAccount(); err != nil { return err } + if err := feast.createIntraCommunicationConfigMap(); err != nil { + return err + } if err := feast.createDeployment(); err != nil { return err } @@ -336,6 +341,38 @@ func (feast *FeastServices) createServiceAccount() error { return nil } +// GetIntraCommunicationConfigMapName returns the name of the ConfigMap holding the intra-communication token. +func GetIntraCommunicationConfigMapName(featureStoreName string) string { + return handler.FeastPrefix + featureStoreName + "-intra-comm" +} + +func (feast *FeastServices) createIntraCommunicationConfigMap() error { + logger := log.FromContext(feast.Handler.Context) + cr := feast.Handler.FeatureStore + cmName := GetIntraCommunicationConfigMapName(cr.Name) + cm := &corev1.ConfigMap{ + ObjectMeta: metav1.ObjectMeta{Name: cmName, Namespace: cr.Namespace}, + } + if op, err := controllerutil.CreateOrUpdate(feast.Handler.Context, feast.Handler.Client, cm, controllerutil.MutateFn(func() error { + if cm.Data == nil || cm.Data[intraCommunicationTokenKey] == "" { + b := make([]byte, 32) + if _, err := rand.Read(b); err != nil { + return err + } + cm.Data = map[string]string{ + intraCommunicationTokenKey: base64.StdEncoding.EncodeToString(b), + } + } + cm.Labels = feast.getLabels() + return controllerutil.SetControllerReference(cr, cm, feast.Handler.Scheme) + })); err != nil { + return err + } else if op == controllerutil.OperationResultCreated || op == controllerutil.OperationResultUpdated { + logger.Info("Successfully reconciled", "ConfigMap", cmName, "operation", op) + } + return nil +} + func (feast *FeastServices) createDeployment() error { logger := log.FromContext(feast.Handler.Context) deploy := feast.initFeastDeploy() @@ -464,7 +501,8 @@ func (feast *FeastServices) setContainer(containers *[]corev1.Container, feastTy name := string(feastType) workingDir := feast.getFeatureRepoDir() cmd := feast.getContainerCommand(feastType) - container := getContainer(name, workingDir, cmd, serverConfigs.ContainerConfigs, fsYamlB64) + intraCommCMName := GetIntraCommunicationConfigMapName(feast.Handler.FeatureStore.Name) + container := getContainer(name, workingDir, cmd, serverConfigs.ContainerConfigs, fsYamlB64, intraCommCMName) tls := feast.getTlsConfigs(feastType) probeHandler := feast.getProbeHandler(feastType, tls) container.Ports = []corev1.ContainerPort{} @@ -521,7 +559,7 @@ func (feast *FeastServices) setContainer(containers *[]corev1.Container, feastTy } } -func getContainer(name, workingDir string, cmd []string, containerConfigs feastdevv1.ContainerConfigs, fsYamlB64 string) *corev1.Container { +func getContainer(name, workingDir string, cmd []string, containerConfigs feastdevv1.ContainerConfigs, fsYamlB64, intraCommCMName string) *corev1.Container { container := &corev1.Container{ Name: name, Command: cmd, @@ -529,13 +567,22 @@ func getContainer(name, workingDir string, cmd []string, containerConfigs feastd if len(workingDir) > 0 { container.WorkingDir = workingDir } - if len(fsYamlB64) > 0 { - container.Env = []corev1.EnvVar{ - { - Name: TmpFeatureStoreYamlEnvVar, - Value: fsYamlB64, + container.Env = []corev1.EnvVar{ + { + Name: IntraCommunicationBase64EnvVar, + ValueFrom: &corev1.EnvVarSource{ + ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ + LocalObjectReference: corev1.LocalObjectReference{Name: intraCommCMName}, + Key: intraCommunicationTokenKey, + }, }, - } + }, + } + if len(fsYamlB64) > 0 { + container.Env = append(container.Env, corev1.EnvVar{ + Name: TmpFeatureStoreYamlEnvVar, + Value: fsYamlB64, + }) } applyCtrConfigs(container, containerConfigs) return container diff --git a/infra/feast-operator/internal/controller/services/services_types.go b/infra/feast-operator/internal/controller/services/services_types.go index 075b3cc382e..ee5cfafab03 100644 --- a/infra/feast-operator/internal/controller/services/services_types.go +++ b/infra/feast-operator/internal/controller/services/services_types.go @@ -25,7 +25,9 @@ import ( ) const ( - TmpFeatureStoreYamlEnvVar = "TMP_FEATURE_STORE_YAML_BASE64" + TmpFeatureStoreYamlEnvVar = "TMP_FEATURE_STORE_YAML_BASE64" + IntraCommunicationBase64EnvVar = "INTRA_COMMUNICATION_BASE64" + intraCommunicationTokenKey = "token" feastServerImageVar = "RELATED_IMAGE_FEATURE_SERVER" cronJobImageVar = "RELATED_IMAGE_CRON_JOB" FeatureStoreYamlCmKey = "feature_store.yaml" From 6c5b1035c8c49b6b3f24df8dccb28dc6615fcca0 Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:39:44 +0530 Subject: [PATCH 13/37] First validate infra token Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- .../internal/controller/access/rbac.go | 10 ++- .../internal/controller/registry/client.go | 12 +++- .../auth/kubernetes_token_parser.py | 62 +++++++++++-------- 3 files changed, 55 insertions(+), 29 deletions(-) diff --git a/infra/feast-operator/internal/controller/access/rbac.go b/infra/feast-operator/internal/controller/access/rbac.go index ae23afeff9e..1e90e3a0268 100644 --- a/infra/feast-operator/internal/controller/access/rbac.go +++ b/infra/feast-operator/internal/controller/access/rbac.go @@ -150,8 +150,14 @@ func reconcileClusterRoleBinding(ctx context.Context, c client.Client, scheme *r Name: FeastDiscoverClusterRoleName, } crb.Subjects = subjects - if owner != nil && scheme != nil { - return controllerutil.SetControllerReference(owner, crb, scheme) + // Cannot set owner reference: ClusterRoleBinding is cluster-scoped while + // FeatureStore is namespace-scoped. Cleanup is handled by CleanupAutoAccessRBAC. + if owner != nil { + if crb.Labels == nil { + crb.Labels = make(map[string]string) + } + crb.Labels["feast.dev/owner-name"] = owner.GetName() + crb.Labels["feast.dev/owner-namespace"] = owner.GetNamespace() } return nil }) diff --git a/infra/feast-operator/internal/controller/registry/client.go b/infra/feast-operator/internal/controller/registry/client.go index 961b0d5766b..d8fbe51653b 100644 --- a/infra/feast-operator/internal/controller/registry/client.go +++ b/infra/feast-operator/internal/controller/registry/client.go @@ -24,10 +24,13 @@ import ( "encoding/base64" "encoding/json" "fmt" + "io" "net/http" "net/url" "strings" "time" + + "sigs.k8s.io/controller-runtime/pkg/log" ) const ( @@ -83,6 +86,12 @@ func ListPermissions(ctx context.Context, registryRestURL, project, intraCommTok if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("registry returned status %d", resp.StatusCode) } + logger := log.FromContext(ctx) + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read permissions response body: %w", err) + } + logger.V(1).Info("Registry permissions response", "body", string(body)) var result struct { Permissions []struct { Spec *struct { @@ -90,7 +99,7 @@ func ListPermissions(ctx context.Context, registryRestURL, project, intraCommTok } `json:"spec,omitempty"` } `json:"permissions,omitempty"` } - if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { + if err := json.Unmarshal(body, &result); err != nil { return nil, fmt.Errorf("failed to decode permissions response: %w", err) } var policies []PermissionPolicy @@ -103,6 +112,7 @@ func ListPermissions(ctx context.Context, registryRestURL, project, intraCommTok policies = append(policies, *pol) } } + logger.V(1).Info("Extracted permission policies", "permissionsCount", len(result.Permissions), "policiesCount", len(policies)) return policies, nil } diff --git a/sdk/python/feast/permissions/auth/kubernetes_token_parser.py b/sdk/python/feast/permissions/auth/kubernetes_token_parser.py index c126a90cfcc..bba92790410 100644 --- a/sdk/python/feast/permissions/auth/kubernetes_token_parser.py +++ b/sdk/python/feast/permissions/auth/kubernetes_token_parser.py @@ -41,57 +41,53 @@ async def user_details_from_access_token(self, access_token: str) -> User: Raises: AuthenticationError if any error happens. """ - # First, try to extract user information using Token Access Review + # Check for intra-communication token before hitting the K8s TokenReview API + intra_user = self._check_intra_communication_token(access_token) + if intra_user is not None: + return intra_user + + # Extract groups/namespaces via Token Access Review groups, namespaces = self._extract_groups_and_namespaces_from_token( access_token ) # Try to determine if this is a service account or regular user try: - # Attempt to decode as JWT (for service accounts) sa_namespace, sa_name = _decode_token(access_token) current_user = f"{sa_namespace}:{sa_name}" logger.info( f"Request received from ServiceAccount: {sa_name} in namespace: {sa_namespace}" ) - intra_communication_base64 = os.getenv("INTRA_COMMUNICATION_BASE64") - if sa_name is not None and sa_name == intra_communication_base64: - return User(username=sa_name, roles=[], groups=[], namespaces=[]) - else: - current_namespace = self._read_namespace_from_file() - logger.info( - f"Looking for ServiceAccount roles of {sa_namespace}:{sa_name} in {current_namespace}" - ) + current_namespace = self._read_namespace_from_file() + logger.info( + f"Looking for ServiceAccount roles of {sa_namespace}:{sa_name} in {current_namespace}" + ) - # Get roles using existing method - roles = self.get_roles( - current_namespace=current_namespace, - service_account_namespace=sa_namespace, - service_account_name=sa_name, - ) - logger.info(f"Roles: {roles}") + roles = self.get_roles( + current_namespace=current_namespace, + service_account_namespace=sa_namespace, + service_account_name=sa_name, + ) + logger.info(f"Roles: {roles}") - return User( - username=current_user, - roles=roles, - groups=groups, - namespaces=namespaces, - ) + return User( + username=current_user, + roles=roles, + groups=groups, + namespaces=namespaces, + ) except AuthenticationError as e: # If JWT decoding fails, this is likely a user token - # Use Token Access Review to get user information logger.info(f"Token is not a JWT (likely a user token): {e}") - # Get username from Token Access Review username = self._get_username_from_token_review(access_token) if not username: raise AuthenticationError("Could not extract username from token") logger.info(f"Request received from User: {username}") - # Extract roles for the user from RoleBindings and ClusterRoleBindings logger.info(f"Extracting roles for user {username} with groups: {groups}") roles = self.get_user_roles(username, groups) @@ -99,6 +95,20 @@ async def user_details_from_access_token(self, access_token: str) -> User: username=username, roles=roles, groups=groups, namespaces=namespaces ) + def _check_intra_communication_token(self, access_token: str) -> User | None: + """Short-circuits authentication for operator intra-communication tokens.""" + intra_communication_base64 = os.getenv("INTRA_COMMUNICATION_BASE64") + if not intra_communication_base64: + return None + try: + _, sa_name = _decode_token(access_token) + if sa_name == intra_communication_base64: + logger.info("Authenticated intra-communication request") + return User(username=sa_name, roles=[], groups=[], namespaces=[]) + except AuthenticationError: + pass + return None + def _read_namespace_from_file(self): try: with open(_namespace_file_path, "r") as file: From ce37cc351681cd128450c8252a0f93d9fd6732c3 Mon Sep 17 00:00:00 2001 From: Ugo Giordano Date: Wed, 25 Mar 2026 17:26:46 +0100 Subject: [PATCH 14/37] fix: Harden informer cache with label selectors and memory optimizations - Add label-filtered informer cache (app.kubernetes.io/managed-by=feast-operator) for ConfigMaps to prevent cluster-wide cache flooding OOM - Add GOMEMLIMIT=230MiB (90% of 256Mi limit) as GC safety net - Add JSON Patch test ops to validate env indices before replace - Strip managedFields from cached objects via DefaultTransform - Use shared constants for label keys across operator and tests --- infra/feast-operator/cmd/main.go | 31 +++++++++++++++++++ .../default/related_image_fs_patch.tmpl | 10 ++++-- .../default/related_image_fs_patch.yaml | 10 ++++-- .../config/manager/manager.yaml | 2 ++ infra/feast-operator/dist/install.yaml | 2 ++ .../notebook_configmap_controller.go | 2 +- .../notebook_configmap_controller_test.go | 2 +- .../internal/controller/services/services.go | 27 +++++++++++----- .../controller/services/services_types.go | 5 +++ 9 files changed, 78 insertions(+), 13 deletions(-) diff --git a/infra/feast-operator/cmd/main.go b/infra/feast-operator/cmd/main.go index d4f5fe64f85..ce4dd7d257f 100644 --- a/infra/feast-operator/cmd/main.go +++ b/infra/feast-operator/cmd/main.go @@ -29,16 +29,23 @@ import ( // to ensure that exec-entrypoint and run can make use of them. _ "k8s.io/client-go/plugin/pkg/client/auth" + appsv1 "k8s.io/api/apps/v1" + autoscalingv2 "k8s.io/api/autoscaling/v2" + batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" + policyv1 "k8s.io/api/policy/v1" + rbacv1 "k8s.io/api/rbac/v1" apiextensionsclient "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" utilruntime "k8s.io/apimachinery/pkg/util/runtime" clientgoscheme "k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/rest" ctrl "sigs.k8s.io/controller-runtime" + "sigs.k8s.io/controller-runtime/pkg/cache" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/healthz" "sigs.k8s.io/controller-runtime/pkg/log/zap" @@ -69,6 +76,29 @@ func init() { // +kubebuilder:scaffold:scheme } +func newCacheOptions() cache.Options { + managedBySelector := labels.SelectorFromSet(labels.Set{ + services.ManagedByLabelKey: services.ManagedByLabelValue, + }) + managedByFilter := cache.ByObject{Label: managedBySelector} + + return cache.Options{ + DefaultTransform: cache.TransformStripManagedFields(), + ByObject: map[client.Object]cache.ByObject{ + &corev1.ConfigMap{}: managedByFilter, + &appsv1.Deployment{}: managedByFilter, + &corev1.Service{}: managedByFilter, + &corev1.ServiceAccount{}: managedByFilter, + &corev1.PersistentVolumeClaim{}: managedByFilter, + &rbacv1.RoleBinding{}: managedByFilter, + &rbacv1.Role{}: managedByFilter, + &batchv1.CronJob{}: managedByFilter, + &autoscalingv2.HorizontalPodAutoscaler{}: managedByFilter, + &policyv1.PodDisruptionBudget{}: managedByFilter, + }, + } +} + func main() { var metricsAddr string var enableLeaderElection bool @@ -155,6 +185,7 @@ func main() { // if you are doing or is intended to do any operation such as perform cleanups // after the manager stops then its usage might be unsafe. // LeaderElectionReleaseOnCancel: true, + Cache: newCacheOptions(), Client: client.Options{ Cache: &client.CacheOptions{ DisableFor: []client.Object{ diff --git a/infra/feast-operator/config/default/related_image_fs_patch.tmpl b/infra/feast-operator/config/default/related_image_fs_patch.tmpl index 23bf80c98ba..1a56d98af3b 100644 --- a/infra/feast-operator/config/default/related_image_fs_patch.tmpl +++ b/infra/feast-operator/config/default/related_image_fs_patch.tmpl @@ -1,10 +1,16 @@ +- op: test + path: "/spec/template/spec/containers/0/env/1/name" + value: RELATED_IMAGE_FEATURE_SERVER - op: replace - path: "/spec/template/spec/containers/0/env/0" + path: "/spec/template/spec/containers/0/env/1" value: name: RELATED_IMAGE_FEATURE_SERVER value: ${FS_IMG} +- op: test + path: "/spec/template/spec/containers/0/env/2/name" + value: RELATED_IMAGE_CRON_JOB - op: replace - path: "/spec/template/spec/containers/0/env/1" + path: "/spec/template/spec/containers/0/env/2" value: name: RELATED_IMAGE_CRON_JOB value: ${CJ_IMG} diff --git a/infra/feast-operator/config/default/related_image_fs_patch.yaml b/infra/feast-operator/config/default/related_image_fs_patch.yaml index afc1c3d7c63..9dc2120a040 100644 --- a/infra/feast-operator/config/default/related_image_fs_patch.yaml +++ b/infra/feast-operator/config/default/related_image_fs_patch.yaml @@ -1,10 +1,16 @@ +- op: test + path: "/spec/template/spec/containers/0/env/1/name" + value: RELATED_IMAGE_FEATURE_SERVER - op: replace - path: "/spec/template/spec/containers/0/env/0" + path: "/spec/template/spec/containers/0/env/1" value: name: RELATED_IMAGE_FEATURE_SERVER value: quay.io/feastdev/feature-server:0.61.0 +- op: test + path: "/spec/template/spec/containers/0/env/2/name" + value: RELATED_IMAGE_CRON_JOB - op: replace - path: "/spec/template/spec/containers/0/env/1" + path: "/spec/template/spec/containers/0/env/2" value: name: RELATED_IMAGE_CRON_JOB value: quay.io/openshift/origin-cli:4.17 diff --git a/infra/feast-operator/config/manager/manager.yaml b/infra/feast-operator/config/manager/manager.yaml index 8107749fce5..36178dd8c59 100644 --- a/infra/feast-operator/config/manager/manager.yaml +++ b/infra/feast-operator/config/manager/manager.yaml @@ -73,6 +73,8 @@ spec: drop: - "ALL" env: + - name: GOMEMLIMIT + value: "230MiB" - name: RELATED_IMAGE_FEATURE_SERVER value: feast:latest - name: RELATED_IMAGE_CRON_JOB diff --git a/infra/feast-operator/dist/install.yaml b/infra/feast-operator/dist/install.yaml index def7c27200f..6a4e295ce8f 100644 --- a/infra/feast-operator/dist/install.yaml +++ b/infra/feast-operator/dist/install.yaml @@ -20595,6 +20595,8 @@ spec: command: - /manager env: + - name: GOMEMLIMIT + value: 230MiB - name: RELATED_IMAGE_FEATURE_SERVER value: quay.io/feastdev/feature-server:0.61.0 - name: RELATED_IMAGE_CRON_JOB diff --git a/infra/feast-operator/internal/controller/notebook_configmap_controller.go b/infra/feast-operator/internal/controller/notebook_configmap_controller.go index 6fa52f78a92..eae295e3b90 100644 --- a/infra/feast-operator/internal/controller/notebook_configmap_controller.go +++ b/infra/feast-operator/internal/controller/notebook_configmap_controller.go @@ -214,7 +214,7 @@ func (r *NotebookConfigMapReconciler) setNotebookConfigMapData( if cm.Labels == nil { cm.Labels = make(map[string]string) } - cm.Labels["managed-by"] = "feast-operator" + cm.Labels[services.ManagedByLabelKey] = services.ManagedByLabelValue cm.Labels["source-resource"] = notebook.GetName() cm.Labels["source-kind"] = notebook.GetObjectKind().GroupVersionKind().Kind diff --git a/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go b/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go index e912c8298c5..88f325f2f91 100644 --- a/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go +++ b/infra/feast-operator/internal/controller/notebook_configmap_controller_test.go @@ -381,7 +381,7 @@ var _ = Describe("NotebookConfigMap Controller", func() { Expect(err).NotTo(HaveOccurred()) Expect(cm.Data).To(HaveKey(projectName)) Expect(cm.Data[projectName]).To(Equal(testYAMLContent)) - Expect(cm.Labels["managed-by"]).To(Equal("feast-operator")) + Expect(cm.Labels[services.ManagedByLabelKey]).To(Equal(services.ManagedByLabelValue)) Expect(cm.Labels["source-resource"]).To(Equal(notebookName)) Expect(cm.Labels["source-kind"]).To(Equal("Notebook")) Expect(cm.OwnerReferences).To(HaveLen(1)) diff --git a/infra/feast-operator/internal/controller/services/services.go b/infra/feast-operator/internal/controller/services/services.go index 446b5ab8ae0..697c3e5a68a 100644 --- a/infra/feast-operator/internal/controller/services/services.go +++ b/infra/feast-operator/internal/controller/services/services.go @@ -405,9 +405,10 @@ func (feast *FeastServices) setDeployment(deploy *appsv1.Deployment) error { } deploy.Labels = feast.getLabels() + selectorLabels := feast.getSelectorLabels() deploy.Spec = appsv1.DeploymentSpec{ Replicas: replicas, - Selector: metav1.SetAsLabelSelector(deploy.GetLabels()), + Selector: metav1.SetAsLabelSelector(selectorLabels), Strategy: feast.getDeploymentStrategy(), Template: corev1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ @@ -814,7 +815,7 @@ func (feast *FeastServices) setService(svc *corev1.Service, feastType FeastServi } svc.Spec = corev1.ServiceSpec{ - Selector: feast.getLabels(), + Selector: feast.getSelectorLabels(), Type: corev1.ServiceTypeClusterIP, Ports: []corev1.ServicePort{ { @@ -972,7 +973,7 @@ func (feast *FeastServices) applyTopologySpread(podSpec *corev1.PodSpec) { MaxSkew: 1, TopologyKey: "topology.kubernetes.io/zone", WhenUnsatisfiable: corev1.ScheduleAnyway, - LabelSelector: metav1.SetAsLabelSelector(feast.getLabels()), + LabelSelector: metav1.SetAsLabelSelector(feast.getSelectorLabels()), }} } @@ -995,7 +996,7 @@ func (feast *FeastServices) applyAffinity(podSpec *corev1.PodSpec) { Weight: 100, PodAffinityTerm: corev1.PodAffinityTerm{ TopologyKey: "kubernetes.io/hostname", - LabelSelector: metav1.SetAsLabelSelector(feast.getLabels()), + LabelSelector: metav1.SetAsLabelSelector(feast.getSelectorLabels()), }, }}, }, @@ -1056,12 +1057,24 @@ func (feast *FeastServices) getFeastTypeLabels(feastType FeastServiceType) map[s return labels } -func (feast *FeastServices) getLabels() map[string]string { +// getSelectorLabels returns the minimal label set used for immutable selectors +// (Deployment spec.selector, Service spec.selector, TopologySpreadConstraints, PodAffinity). +// This must NOT change after initial resource creation. +func (feast *FeastServices) getSelectorLabels() map[string]string { return map[string]string{ NameLabelKey: feast.Handler.FeatureStore.Name, } } +// getLabels returns the full label set for mutable metadata (ObjectMeta.Labels). +// Includes the managed-by label used by the informer cache filter. +func (feast *FeastServices) getLabels() map[string]string { + return map[string]string{ + NameLabelKey: feast.Handler.FeatureStore.Name, + ManagedByLabelKey: ManagedByLabelValue, + } +} + func (feast *FeastServices) setServiceHostnames() error { feast.Handler.FeatureStore.Status.ServiceHostnames = feastdevv1.ServiceHostnames{} domain := svcDomain + ":" @@ -1439,10 +1452,10 @@ func IsDeploymentAvailable(conditions []appsv1.DeploymentCondition) bool { // container that is in a failing state. Returns empty string if no failure found. func (feast *FeastServices) GetPodContainerFailureMessage(deploy appsv1.Deployment) string { podList := corev1.PodList{} - labels := feast.getLabels() + selectorLabels := feast.getSelectorLabels() if err := feast.Handler.Client.List(feast.Handler.Context, &podList, client.InNamespace(deploy.Namespace), - client.MatchingLabels(labels), + client.MatchingLabels(selectorLabels), ); err != nil { return "" } diff --git a/infra/feast-operator/internal/controller/services/services_types.go b/infra/feast-operator/internal/controller/services/services_types.go index 10ac3538a99..917ff7a22f7 100644 --- a/infra/feast-operator/internal/controller/services/services_types.go +++ b/infra/feast-operator/internal/controller/services/services_types.go @@ -95,6 +95,11 @@ const ( OidcMissingSecretError string = "missing OIDC secret: %s" ) +const ( + ManagedByLabelKey = "app.kubernetes.io/managed-by" + ManagedByLabelValue = "feast-operator" +) + var ( DefaultImage = "quay.io/feastdev/feature-server:" + feastversion.FeastVersion DefaultCronJobImage = "quay.io/openshift/origin-cli:4.17" From 947575995c10f6169b8fea1289302479830ebcb8 Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:27:17 +0530 Subject: [PATCH 15/37] Feast Config Registry for backward compatibility Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- .secrets.baseline | 4 +- infra/feast-operator/docs/auto-access.md | 2 +- .../feast-operator/docs/namespace-registry.md | 58 +++ .../internal/controller/access/access_test.go | 16 +- .../internal/controller/access/rbac.go | 44 +- .../internal/controller/access/rbac_test.go | 63 ++- .../controller/featurestore_controller.go | 96 +++- .../featurestore_controller_db_store_test.go | 10 +- .../featurestore_controller_ephemeral_test.go | 8 +- ...restore_controller_kubernetes_auth_test.go | 2 +- ...eaturestore_controller_objectstore_test.go | 4 +- .../featurestore_controller_oidc_auth_test.go | 2 +- .../featurestore_controller_pvc_test.go | 8 +- .../featurestore_controller_test.go | 37 +- .../featurestore_controller_tls_test.go | 10 +- .../internal/controller/registry/client.go | 10 +- .../controller/registry/client_test.go | 30 +- .../controller/services/namespace_registry.go | 433 ++++++++++++++++++ .../internal/controller/services/services.go | 3 + .../controller/services/services_types.go | 23 +- sdk/python/feast/metrics.py | 4 +- 21 files changed, 763 insertions(+), 104 deletions(-) create mode 100644 infra/feast-operator/docs/namespace-registry.md create mode 100644 infra/feast-operator/internal/controller/services/namespace_registry.go diff --git a/.secrets.baseline b/.secrets.baseline index 9d27a7b000d..60522d04d1e 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -1156,7 +1156,7 @@ "filename": "infra/feast-operator/internal/controller/services/services.go", "hashed_secret": "36dc326eb15c7bdd8d91a6b87905bcea20b637d1", "is_verified": false, - "line_number": 176 + "line_number": 181 } ], "infra/feast-operator/internal/controller/services/tls_test.go": [ @@ -1539,5 +1539,5 @@ } ] }, - "generated_at": "2026-03-18T08:09:25Z" + "generated_at": "2026-03-19T12:21:40Z" } diff --git a/infra/feast-operator/docs/auto-access.md b/infra/feast-operator/docs/auto-access.md index 44e9007657d..be36d0f11a6 100644 --- a/infra/feast-operator/docs/auto-access.md +++ b/infra/feast-operator/docs/auto-access.md @@ -44,4 +44,4 @@ Dashboards should: - Registry REST API must be enabled (`spec.services.registry.local.server.restAPI: true`) - Permissions must be applied via `feast apply` (from `permissions.py` in the feature repo) -- The operator reconciles permissions periodically (every 5 minutes) to pick up changes +- The operator reconciles permissions periodically (every 30 seconds) to pick up changes diff --git a/infra/feast-operator/docs/namespace-registry.md b/infra/feast-operator/docs/namespace-registry.md new file mode 100644 index 00000000000..e025c62406d --- /dev/null +++ b/infra/feast-operator/docs/namespace-registry.md @@ -0,0 +1,58 @@ +# Feast Namespace Registry + +## Overview + +The Feast Namespace Registry is a feature that automatically creates and maintains a centralized ConfigMap containing information about all Feast feature store instances deployed by the operator. This enables dashboard applications and other tools to discover and connect to Feast instances across different namespaces. + +## Implementation Details + +1. **ConfigMap Creation**: The operator creates a ConfigMap in the appropriate namespace: + - **OpenShift AI**: `redhat-ods-applications` namespace (or DSCi configured namespace) + - **Kubernetes**: `feast-operator-system` namespace + +2. **Access Control**: A RoleBinding is created to allow `system:authenticated` users to read the ConfigMap + +3. **Automatic Registration & Cleanup**: When a new feature store instance is created, it automatically registers its namespace and client configuration in the ConfigMap. When deleted, it automatically removes its entry from the ConfigMap + +4. **Data Structure**: The ConfigMap contains a JSON structure with namespace names as keys and lists of client configuration names as values + +### ConfigMap Structure + +The namespace registry ConfigMap (`feast-configs-registry`) contains the following data: + +```json +{ + "namespaces": { + "namespace-1": ["client-config-1", "client-config-2"], + "namespace-2": ["client-config-3"] + } +} +``` + +### Usage + +The namespace registry is automatically deployed when any Feast feature store instance is created. No additional configuration is required. + +#### For External Applications + +External applications can discover Feast instances by: + +1. Reading the ConfigMap from the appropriate namespace: + ```bash + # For OpenShift + kubectl get configmap feast-configs-registry -n redhat-ods-applications -o jsonpath='{.data.namespaces}' + + # For Kubernetes + kubectl get configmap feast-configs-registry -n feast-operator-system -o jsonpath='{.data.namespaces}' + ``` + +### Lifecycle Management + +The namespace registry automatically manages the lifecycle of feature store instances: + +1. **Creation**: When a feature store is deployed, it registers itself in the ConfigMap +2. **Updates**: If a feature store is updated, its entry remains in the ConfigMap +3. **Deletion**: When a feature store is deleted, its entry is automatically removed from the ConfigMap +4. **Namespace Cleanup**: If all feature stores in a namespace are deleted, the namespace entry is also removed + + diff --git a/infra/feast-operator/internal/controller/access/access_test.go b/infra/feast-operator/internal/controller/access/access_test.go index 49fd394fe17..e6336fe6cf3 100644 --- a/infra/feast-operator/internal/controller/access/access_test.go +++ b/infra/feast-operator/internal/controller/access/access_test.go @@ -42,11 +42,11 @@ func newNamespace(name string, labels map[string]string) *corev1.Namespace { } } -func getNamespace(t *testing.T, c client.Client, name string) *corev1.Namespace { +func getNamespace(t *testing.T, c client.Client) *corev1.Namespace { t.Helper() ns := &corev1.Namespace{} - if err := c.Get(context.Background(), client.ObjectKey{Name: name}, ns); err != nil { - t.Fatalf("Failed to get namespace %s: %v", name, err) + if err := c.Get(context.Background(), client.ObjectKey{Name: "test-ns"}, ns); err != nil { + t.Fatalf("Failed to get namespace test-ns: %v", err) } return ns } @@ -58,7 +58,7 @@ func TestEnsureNamespaceLabel_AddsLabel(t *testing.T) { if err := EnsureNamespaceLabel(context.Background(), c, "test-ns"); err != nil { t.Fatalf("unexpected error: %v", err) } - updated := getNamespace(t, c, "test-ns") + updated := getNamespace(t, c) if updated.Labels[FeastNamespaceLabelKey] != FeastNamespaceLabelValue { t.Fatalf("expected label %s=%s, got %v", FeastNamespaceLabelKey, FeastNamespaceLabelValue, updated.Labels) } @@ -71,7 +71,7 @@ func TestEnsureNamespaceLabel_AlreadyLabeled(t *testing.T) { if err := EnsureNamespaceLabel(context.Background(), c, "test-ns"); err != nil { t.Fatalf("unexpected error: %v", err) } - updated := getNamespace(t, c, "test-ns") + updated := getNamespace(t, c) if updated.Labels[FeastNamespaceLabelKey] != FeastNamespaceLabelValue { t.Fatalf("label should still be present") } @@ -92,7 +92,7 @@ func TestEnsureNamespaceLabel_PreservesExistingLabels(t *testing.T) { if err := EnsureNamespaceLabel(context.Background(), c, "test-ns"); err != nil { t.Fatalf("unexpected error: %v", err) } - updated := getNamespace(t, c, "test-ns") + updated := getNamespace(t, c) if updated.Labels["existing"] != "label" { t.Fatal("existing label was removed") } @@ -108,7 +108,7 @@ func TestRemoveNamespaceLabelIfLast_RemovesWhenZero(t *testing.T) { if err := RemoveNamespaceLabelIfLast(context.Background(), c, "test-ns", 0); err != nil { t.Fatalf("unexpected error: %v", err) } - updated := getNamespace(t, c, "test-ns") + updated := getNamespace(t, c) if _, ok := updated.Labels[FeastNamespaceLabelKey]; ok { t.Fatal("label should have been removed") } @@ -121,7 +121,7 @@ func TestRemoveNamespaceLabelIfLast_KeepsWhenOthersExist(t *testing.T) { if err := RemoveNamespaceLabelIfLast(context.Background(), c, "test-ns", 1); err != nil { t.Fatalf("unexpected error: %v", err) } - updated := getNamespace(t, c, "test-ns") + updated := getNamespace(t, c) if updated.Labels[FeastNamespaceLabelKey] != FeastNamespaceLabelValue { t.Fatal("label should not have been removed when other FeatureStores exist") } diff --git a/infra/feast-operator/internal/controller/access/rbac.go b/infra/feast-operator/internal/controller/access/rbac.go index 1e90e3a0268..ce83e2e51b8 100644 --- a/infra/feast-operator/internal/controller/access/rbac.go +++ b/infra/feast-operator/internal/controller/access/rbac.go @@ -19,6 +19,7 @@ package access import ( "context" "fmt" + "strings" rbacv1 "k8s.io/api/rbac/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" @@ -40,16 +41,16 @@ const ( func ReconcileAutoAccessRBAC(ctx context.Context, c client.Client, scheme *runtime.Scheme, owner client.Object, namespace, name, clientConfigMapName string, policies []registry.PermissionPolicy) error { subjects := buildSubjects(ctx, c, policies) if len(subjects) == 0 { - return nil + return CleanupAutoAccessRBAC(ctx, c, namespace, name) } if err := ensureFeastDiscoverClusterRole(ctx, c); err != nil { return err } - clusterBindingName := "feast-" + namespace + "-" + name + "-discover" + clusterBindingName := "feast-" + namespace + "--" + name + "-discover" if err := reconcileClusterRoleBinding(ctx, c, scheme, owner, clusterBindingName, subjects); err != nil { return err } - roleName := "feast-" + name + "-viewer" + roleName := "feast-" + namespace + "--" + name + "-viewer" if err := reconcileViewerRole(ctx, c, scheme, owner, namespace, roleName, clientConfigMapName); err != nil { return err } @@ -76,6 +77,11 @@ func buildSubjects(ctx context.Context, c client.Client, policies []registry.Per }) } for _, ns := range p.Namespaces { + ns = strings.TrimSpace(ns) + if ns == "" { + log.FromContext(ctx).V(1).Info("Skipping empty namespace in NamespaceBasedPolicy for auto-access RBAC") + continue + } subs, err := listSubjectsInNamespace(ctx, c, ns) if err != nil { log.FromContext(ctx).V(1).Info("Failed to list RoleBindings in namespace for NamespaceBasedPolicy", "namespace", ns, "error", err) @@ -111,6 +117,12 @@ func listSubjectsInNamespace(ctx context.Context, c client.Client, namespace str seen := make(map[string]struct{}) for i := range list.Items { for _, s := range list.Items[i].Subjects { + if s.Kind != "User" && s.Kind != "Group" { + continue + } + if s.Name == "" { + continue + } key := subjectKey(s) if _, ok := seen[key]; ok { continue @@ -139,7 +151,7 @@ func ensureFeastDiscoverClusterRole(ctx context.Context, c client.Client) error return err } -func reconcileClusterRoleBinding(ctx context.Context, c client.Client, scheme *runtime.Scheme, owner client.Object, name string, subjects []rbacv1.Subject) error { +func reconcileClusterRoleBinding(ctx context.Context, c client.Client, _ *runtime.Scheme, owner client.Object, name string, subjects []rbacv1.Subject) error { crb := &rbacv1.ClusterRoleBinding{ ObjectMeta: metav1.ObjectMeta{Name: name}, } @@ -204,9 +216,29 @@ func reconcileViewerRoleBinding(ctx context.Context, c client.Client, scheme *ru return err } +// CleanupDiscoverClusterRoleIfLast deletes the shared feast-discover-namespaces +// ClusterRole when otherFeatureStoreCount is 0 (i.e. no other FeatureStore in +// the cluster still needs it). +func CleanupDiscoverClusterRoleIfLast(ctx context.Context, c client.Client, otherFeatureStoreCount int) error { + if otherFeatureStoreCount > 0 { + return nil + } + cr := &rbacv1.ClusterRole{} + if err := c.Get(ctx, client.ObjectKey{Name: FeastDiscoverClusterRoleName}, cr); err != nil { + if apierrors.IsNotFound(err) { + return nil + } + return err + } + if err := c.Delete(ctx, cr); err != nil && !apierrors.IsNotFound(err) { + return fmt.Errorf("failed to delete ClusterRole %s: %w", FeastDiscoverClusterRoleName, err) + } + return nil +} + // CleanupAutoAccessRBAC removes the auto-access ClusterRoleBinding, Role, and RoleBinding. func CleanupAutoAccessRBAC(ctx context.Context, c client.Client, namespace, name string) error { - clusterBindingName := "feast-" + namespace + "-" + name + "-discover" + clusterBindingName := "feast-" + namespace + "--" + name + "-discover" crb := &rbacv1.ClusterRoleBinding{} if err := c.Get(ctx, client.ObjectKey{Name: clusterBindingName}, crb); err != nil { if !apierrors.IsNotFound(err) { @@ -215,7 +247,7 @@ func CleanupAutoAccessRBAC(ctx context.Context, c client.Client, namespace, name } else if err := c.Delete(ctx, crb); err != nil && !apierrors.IsNotFound(err) { return fmt.Errorf("failed to delete ClusterRoleBinding %s: %w", clusterBindingName, err) } - roleName := "feast-" + name + "-viewer" + roleName := "feast-" + namespace + "--" + name + "-viewer" role := &rbacv1.Role{} if err := c.Get(ctx, client.ObjectKey{Namespace: namespace, Name: roleName}, role); err != nil { if !apierrors.IsNotFound(err) { diff --git a/infra/feast-operator/internal/controller/access/rbac_test.go b/infra/feast-operator/internal/controller/access/rbac_test.go index c0949fbc078..d5d9ebb2554 100644 --- a/infra/feast-operator/internal/controller/access/rbac_test.go +++ b/infra/feast-operator/internal/controller/access/rbac_test.go @@ -160,7 +160,7 @@ func TestReconcileAutoAccessRBAC_CreatesAllResources(t *testing.T) { // Verify ClusterRoleBinding crb := &rbacv1.ClusterRoleBinding{} - if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-feast-ns-my-feast-discover"}, crb); err != nil { + if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-feast-ns--my-feast-discover"}, crb); err != nil { t.Fatalf("Failed to get ClusterRoleBinding: %v", err) } if len(crb.Subjects) != 1 || crb.Subjects[0].Name != "data-scientists" { @@ -169,7 +169,7 @@ func TestReconcileAutoAccessRBAC_CreatesAllResources(t *testing.T) { // Verify Role role := &rbacv1.Role{} - if err := c.Get(context.Background(), client.ObjectKey{Namespace: "feast-ns", Name: "feast-my-feast-viewer"}, role); err != nil { + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "feast-ns", Name: "feast-feast-ns--my-feast-viewer"}, role); err != nil { t.Fatalf("Failed to get Role: %v", err) } if len(role.Rules) != 1 || role.Rules[0].ResourceNames[0] != "feast-client-config" { @@ -178,7 +178,7 @@ func TestReconcileAutoAccessRBAC_CreatesAllResources(t *testing.T) { // Verify RoleBinding rb := &rbacv1.RoleBinding{} - if err := c.Get(context.Background(), client.ObjectKey{Namespace: "feast-ns", Name: "feast-my-feast-viewer"}, rb); err != nil { + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "feast-ns", Name: "feast-feast-ns--my-feast-viewer"}, rb); err != nil { t.Fatalf("Failed to get RoleBinding: %v", err) } if len(rb.Subjects) != 1 || rb.Subjects[0].Name != "data-scientists" { @@ -219,7 +219,7 @@ func TestReconcileAutoAccessRBAC_UpdatesExistingResources(t *testing.T) { } crb := &rbacv1.ClusterRoleBinding{} - if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-feast-ns-fs-discover"}, crb); err != nil { + if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-feast-ns--fs-discover"}, crb); err != nil { t.Fatalf("Failed to get ClusterRoleBinding: %v", err) } if len(crb.Subjects) != 1 || crb.Subjects[0].Name != "group-b" { @@ -231,13 +231,13 @@ func TestCleanupAutoAccessRBAC(t *testing.T) { scheme := newRBACScheme() c := fake.NewClientBuilder().WithScheme(scheme).WithObjects( &rbacv1.ClusterRoleBinding{ - ObjectMeta: metav1.ObjectMeta{Name: "feast-ns-my-feast-discover"}, + ObjectMeta: metav1.ObjectMeta{Name: "feast-ns--my-feast-discover"}, }, &rbacv1.Role{ - ObjectMeta: metav1.ObjectMeta{Name: "feast-my-feast-viewer", Namespace: "ns"}, + ObjectMeta: metav1.ObjectMeta{Name: "feast-ns--my-feast-viewer", Namespace: "ns"}, }, &rbacv1.RoleBinding{ - ObjectMeta: metav1.ObjectMeta{Name: "feast-my-feast-viewer", Namespace: "ns"}, + ObjectMeta: metav1.ObjectMeta{Name: "feast-ns--my-feast-viewer", Namespace: "ns"}, }, ).Build() @@ -246,15 +246,15 @@ func TestCleanupAutoAccessRBAC(t *testing.T) { } crb := &rbacv1.ClusterRoleBinding{} - if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-ns-my-feast-discover"}, crb); err == nil { + if err := c.Get(context.Background(), client.ObjectKey{Name: "feast-ns--my-feast-discover"}, crb); err == nil { t.Fatal("ClusterRoleBinding should have been deleted") } role := &rbacv1.Role{} - if err := c.Get(context.Background(), client.ObjectKey{Namespace: "ns", Name: "feast-my-feast-viewer"}, role); err == nil { + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "ns", Name: "feast-ns--my-feast-viewer"}, role); err == nil { t.Fatal("Role should have been deleted") } rb := &rbacv1.RoleBinding{} - if err := c.Get(context.Background(), client.ObjectKey{Namespace: "ns", Name: "feast-my-feast-viewer"}, rb); err == nil { + if err := c.Get(context.Background(), client.ObjectKey{Namespace: "ns", Name: "feast-ns--my-feast-viewer"}, rb); err == nil { t.Fatal("RoleBinding should have been deleted") } } @@ -312,6 +312,49 @@ func TestListSubjectsInNamespace(t *testing.T) { } } +func TestCleanupDiscoverClusterRoleIfLast_DeletesWhenZero(t *testing.T) { + scheme := newRBACScheme() + cr := &rbacv1.ClusterRole{ + ObjectMeta: metav1.ObjectMeta{Name: FeastDiscoverClusterRoleName}, + } + c := fake.NewClientBuilder().WithScheme(scheme).WithObjects(cr).Build() + + if err := CleanupDiscoverClusterRoleIfLast(context.Background(), c, 0); err != nil { + t.Fatalf("unexpected error: %v", err) + } + + got := &rbacv1.ClusterRole{} + if err := c.Get(context.Background(), client.ObjectKey{Name: FeastDiscoverClusterRoleName}, got); err == nil { + t.Fatal("ClusterRole should have been deleted") + } +} + +func TestCleanupDiscoverClusterRoleIfLast_KeepsWhenOthersExist(t *testing.T) { + scheme := newRBACScheme() + cr := &rbacv1.ClusterRole{ + ObjectMeta: metav1.ObjectMeta{Name: FeastDiscoverClusterRoleName}, + } + c := fake.NewClientBuilder().WithScheme(scheme).WithObjects(cr).Build() + + if err := CleanupDiscoverClusterRoleIfLast(context.Background(), c, 1); err != nil { + t.Fatalf("unexpected error: %v", err) + } + + got := &rbacv1.ClusterRole{} + if err := c.Get(context.Background(), client.ObjectKey{Name: FeastDiscoverClusterRoleName}, got); err != nil { + t.Fatal("ClusterRole should still exist when other FeatureStores remain") + } +} + +func TestCleanupDiscoverClusterRoleIfLast_AlreadyGone(t *testing.T) { + scheme := newRBACScheme() + c := fake.NewClientBuilder().WithScheme(scheme).Build() + + if err := CleanupDiscoverClusterRoleIfLast(context.Background(), c, 0); err != nil { + t.Fatalf("expected nil error when ClusterRole already absent, got: %v", err) + } +} + func assertSubject(t *testing.T, s rbacv1.Subject, expectedKind, expectedName string) { t.Helper() if s.Kind != expectedKind || s.Name != expectedName { diff --git a/infra/feast-operator/internal/controller/featurestore_controller.go b/infra/feast-operator/internal/controller/featurestore_controller.go index f7f7c3b8d01..deaa2651f6f 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller.go +++ b/infra/feast-operator/internal/controller/featurestore_controller.go @@ -87,6 +87,7 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request if err != nil { if apierrors.IsNotFound(err) { logger.V(1).Info("FeatureStore CR not found, has been deleted") + r.cleanupOnDeletion(ctx, req.NamespacedName.Namespace, req.NamespacedName.Name) return ctrl.Result{}, nil } logger.Error(err, "Unable to get FeatureStore CR") @@ -95,13 +96,7 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request currentStatus := cr.Status.DeepCopy() if cr.DeletionTimestamp != nil { - otherCount := r.countOtherFeatureStoresInNamespace(ctx, cr.Namespace, cr.Name) - if err := access.RemoveNamespaceLabelIfLast(ctx, r.Client, cr.Namespace, otherCount); err != nil { - logger.Error(err, "Failed to remove Feast label from namespace") - } - if err := access.CleanupAutoAccessRBAC(ctx, r.Client, cr.Namespace, cr.Name); err != nil { - logger.Error(err, "Failed to cleanup auto-access RBAC") - } + r.cleanupOnDeletion(ctx, cr.Namespace, cr.Name) return ctrl.Result{}, nil } @@ -125,13 +120,20 @@ func (r *FeatureStoreReconciler) Reconcile(ctx context.Context, req ctrl.Request if err := access.EnsureNamespaceLabel(ctx, r.Client, cr.Namespace); err != nil { logger.Error(err, "Failed to add Feast label to namespace") } + r.addToNamespaceRegistry(ctx, cr) policies, err := r.fetchPermissionsFromRegistry(ctx, cr) if err != nil { logger.Error(err, "Failed to fetch permissions from registry") - } else if len(policies) == 0 { - logger.V(1).Info("No auto-access policies found in registry") - } else if cr.Status.ClientConfigMap == "" { - logger.Info("Skipping auto-access RBAC reconciliation: clientConfigMap is not set in status") + } + if err != nil || len(policies) == 0 || cr.Status.ClientConfigMap == "" { + logger.V(1).Info("Auto-access prerequisites missing or registry unreachable; cleaning up stale auto-access RBAC", + "policies", len(policies), + "clientConfigMapSet", cr.Status.ClientConfigMap != "", + "fetchError", err != nil, + ) + if err := access.CleanupAutoAccessRBAC(ctx, r.Client, cr.Namespace, cr.Name); err != nil { + logger.Error(err, "Failed to cleanup stale auto-access RBAC") + } } else { if err := access.ReconcileAutoAccessRBAC(ctx, r.Client, r.Scheme, cr, cr.Namespace, cr.Name, cr.Status.ClientConfigMap, policies); err != nil { logger.Error(err, "Failed to reconcile auto-access RBAC") @@ -164,7 +166,11 @@ func (r *FeatureStoreReconciler) fetchPermissionsFromRegistry(ctx context.Contex if err != nil { return nil, err } - return registry.ListPermissions(ctx, registryRest, project, intraCommToken) + useTLS := cr.Status.Applied.Services.Registry != nil && + cr.Status.Applied.Services.Registry.Local != nil && + cr.Status.Applied.Services.Registry.Local.Server != nil && + cr.Status.Applied.Services.Registry.Local.Server.TLS.IsTLS() + return registry.ListPermissions(ctx, registryRest, project, intraCommToken, useTLS) } func (r *FeatureStoreReconciler) readIntraCommunicationToken(ctx context.Context, cr *feastdevv1.FeatureStore) (string, error) { @@ -176,6 +182,57 @@ func (r *FeatureStoreReconciler) readIntraCommunicationToken(ctx context.Context return cm.Data["token"], nil } +func (r *FeatureStoreReconciler) addToNamespaceRegistry(ctx context.Context, cr *feastdevv1.FeatureStore) { + logger := log.FromContext(ctx) + feast := services.FeastServices{ + Handler: feasthandler.FeastHandler{ + Client: r.Client, + Context: ctx, + FeatureStore: cr, + Scheme: r.Scheme, + }, + } + if err := feast.AddToNamespaceRegistry(); err != nil { + logger.Error(err, "Failed to add feature store to namespace registry") + } +} + +func (r *FeatureStoreReconciler) cleanupOnDeletion(ctx context.Context, namespace, name string) { + logger := log.FromContext(ctx) + otherCount := r.countOtherFeatureStoresInNamespace(ctx, namespace, name) + if err := access.RemoveNamespaceLabelIfLast(ctx, r.Client, namespace, otherCount); err != nil { + logger.Error(err, "Failed to remove Feast label from namespace") + } + if err := access.CleanupAutoAccessRBAC(ctx, r.Client, namespace, name); err != nil { + logger.Error(err, "Failed to cleanup auto-access RBAC") + } + clusterCount := r.countOtherFeatureStoresInCluster(ctx, namespace, name) + if err := access.CleanupDiscoverClusterRoleIfLast(ctx, r.Client, clusterCount); err != nil { + logger.Error(err, "Failed to cleanup discover ClusterRole") + } + r.cleanupNamespaceRegistry(ctx, &feastdevv1.FeatureStore{ + ObjectMeta: metav1.ObjectMeta{ + Name: name, + Namespace: namespace, + }, + }) +} + +func (r *FeatureStoreReconciler) cleanupNamespaceRegistry(ctx context.Context, cr *feastdevv1.FeatureStore) { + logger := log.FromContext(ctx) + feast := services.FeastServices{ + Handler: feasthandler.FeastHandler{ + Client: r.Client, + Context: ctx, + FeatureStore: cr, + Scheme: r.Scheme, + }, + } + if err := feast.RemoveFromNamespaceRegistry(); err != nil { + logger.Error(err, "Failed to remove feature store from namespace registry") + } +} + func (r *FeatureStoreReconciler) countOtherFeatureStoresInNamespace(ctx context.Context, namespace, excludeName string) int { var list feastdevv1.FeatureStoreList if err := r.List(ctx, &list, client.InNamespace(namespace)); err != nil { @@ -190,6 +247,21 @@ func (r *FeatureStoreReconciler) countOtherFeatureStoresInNamespace(ctx context. return count } +func (r *FeatureStoreReconciler) countOtherFeatureStoresInCluster(ctx context.Context, namespace, excludeName string) int { + var list feastdevv1.FeatureStoreList + if err := r.List(ctx, &list); err != nil { + return -1 + } + count := 0 + for i := range list.Items { + item := &list.Items[i] + if (item.Name != excludeName || item.Namespace != namespace) && item.DeletionTimestamp == nil { + count++ + } + } + return count +} + func (r *FeatureStoreReconciler) deployFeast(ctx context.Context, cr *feastdevv1.FeatureStore) (result ctrl.Result, err error) { logger := log.FromContext(ctx) condition := metav1.Condition{ diff --git a/infra/feast-operator/internal/controller/featurestore_controller_db_store_test.go b/infra/feast-operator/internal/controller/featurestore_controller_db_store_test.go index d17bffb2377..2ead073078a 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_db_store_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_db_store_test.go @@ -538,7 +538,7 @@ var _ = Describe("FeatureStore Controller - db storage services", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ @@ -558,7 +558,7 @@ var _ = Describe("FeatureStore Controller - db storage services", func() { }, deploy) Expect(err).NotTo(HaveOccurred()) registryContainer := services.GetRegistryContainer(*deploy) - Expect(registryContainer.Env).To(HaveLen(1)) + Expect(registryContainer.Env).To(HaveLen(2)) env := getFeatureStoreYamlEnvVar(registryContainer.Env) Expect(env).NotTo(BeNil()) @@ -602,7 +602,7 @@ var _ = Describe("FeatureStore Controller - db storage services", func() { Expect(repoConfig).To(Equal(testConfig)) offlineContainer := services.GetOfflineContainer(*deploy) - Expect(offlineContainer.Env).To(HaveLen(1)) + Expect(offlineContainer.Env).To(HaveLen(2)) assertEnvFrom(*offlineContainer) env = getFeatureStoreYamlEnvVar(offlineContainer.Env) Expect(env).NotTo(BeNil()) @@ -620,7 +620,7 @@ var _ = Describe("FeatureStore Controller - db storage services", func() { onlineContainer := services.GetOnlineContainer(*deploy) Expect(onlineContainer.VolumeMounts).To(HaveLen(1)) - Expect(onlineContainer.Env).To(HaveLen(1)) + Expect(onlineContainer.Env).To(HaveLen(2)) assertEnvFrom(*onlineContainer) Expect(onlineContainer.ImagePullPolicy).To(Equal(corev1.PullAlways)) env = getFeatureStoreYamlEnvVar(onlineContainer.Env) @@ -637,7 +637,7 @@ var _ = Describe("FeatureStore Controller - db storage services", func() { Expect(err).NotTo(HaveOccurred()) Expect(repoConfigOnline).To(Equal(testConfig)) onlineContainer = services.GetOnlineContainer(*deploy) - Expect(onlineContainer.Env).To(HaveLen(1)) + Expect(onlineContainer.Env).To(HaveLen(2)) // check client config cm := &corev1.ConfigMap{} diff --git a/infra/feast-operator/internal/controller/featurestore_controller_ephemeral_test.go b/infra/feast-operator/internal/controller/featurestore_controller_ephemeral_test.go index 212fa80228b..bbaca588388 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_ephemeral_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_ephemeral_test.go @@ -253,7 +253,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ @@ -274,7 +274,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { Expect(err).NotTo(HaveOccurred()) Expect(deploy.Spec.Template.Spec.Containers).To(HaveLen(4)) registryContainer := services.GetRegistryContainer(*deploy) - Expect(registryContainer.Env).To(HaveLen(1)) + Expect(registryContainer.Env).To(HaveLen(2)) env := getFeatureStoreYamlEnvVar(registryContainer.Env) Expect(env).NotTo(BeNil()) @@ -307,7 +307,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { Expect(repoConfig).To(Equal(testConfig)) offlineContainer := services.GetOfflineContainer(*deploy) - Expect(offlineContainer.Env).To(HaveLen(1)) + Expect(offlineContainer.Env).To(HaveLen(2)) assertEnvFrom(*offlineContainer) env = getFeatureStoreYamlEnvVar(offlineContainer.Env) Expect(env).NotTo(BeNil()) @@ -327,7 +327,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { Expect(repoConfigOffline).To(Equal(testConfig)) onlineContainer := services.GetOnlineContainer(*deploy) - Expect(onlineContainer.Env).To(HaveLen(3)) + Expect(onlineContainer.Env).To(HaveLen(4)) Expect(onlineContainer.ImagePullPolicy).To(Equal(corev1.PullAlways)) env = getFeatureStoreYamlEnvVar(onlineContainer.Env) Expect(env).NotTo(BeNil()) diff --git a/infra/feast-operator/internal/controller/featurestore_controller_kubernetes_auth_test.go b/infra/feast-operator/internal/controller/featurestore_controller_kubernetes_auth_test.go index 3bfab485e85..fd82456428c 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_kubernetes_auth_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_kubernetes_auth_test.go @@ -378,7 +378,7 @@ var _ = Describe("FeatureStore Controller-Kubernetes authorization", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ diff --git a/infra/feast-operator/internal/controller/featurestore_controller_objectstore_test.go b/infra/feast-operator/internal/controller/featurestore_controller_objectstore_test.go index a326752a78f..5aabdef737a 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_objectstore_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_objectstore_test.go @@ -260,7 +260,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ @@ -287,7 +287,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { Expect(services.GetOfflineContainer(*deploy)).To(BeNil()) Expect(deploy.Spec.Template.Spec.Volumes).To(HaveLen(1)) Expect(deploy.Spec.Template.Spec.Containers[0].VolumeMounts).To(HaveLen(1)) - Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(1)) + Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(2)) env := getFeatureStoreYamlEnvVar(deploy.Spec.Template.Spec.Containers[0].Env) Expect(env).NotTo(BeNil()) diff --git a/infra/feast-operator/internal/controller/featurestore_controller_oidc_auth_test.go b/infra/feast-operator/internal/controller/featurestore_controller_oidc_auth_test.go index b8af9484acc..b480daba6f7 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_oidc_auth_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_oidc_auth_test.go @@ -319,7 +319,7 @@ var _ = Describe("FeatureStore Controller-OIDC authorization", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ diff --git a/infra/feast-operator/internal/controller/featurestore_controller_pvc_test.go b/infra/feast-operator/internal/controller/featurestore_controller_pvc_test.go index 8e7303cee34..645013526e6 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_pvc_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_pvc_test.go @@ -459,7 +459,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ @@ -481,7 +481,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { Expect(deploy.Spec.Template.Spec.Containers).To(HaveLen(3)) Expect(deploy.Spec.Template.Spec.SecurityContext).To(Equal(securityContext)) registryContainer := services.GetRegistryContainer(*deploy) - Expect(registryContainer.Env).To(HaveLen(1)) + Expect(registryContainer.Env).To(HaveLen(2)) env := getFeatureStoreYamlEnvVar(registryContainer.Env) Expect(env).NotTo(BeNil()) @@ -515,7 +515,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { Expect(repoConfig).To(Equal(testConfig)) offlineContainer := services.GetOfflineContainer(*deploy) - Expect(offlineContainer.Env).To(HaveLen(1)) + Expect(offlineContainer.Env).To(HaveLen(2)) env = getFeatureStoreYamlEnvVar(offlineContainer.Env) Expect(env).NotTo(BeNil()) @@ -533,7 +533,7 @@ var _ = Describe("FeatureStore Controller-Ephemeral services", func() { // check online config onlineContainer := services.GetOnlineContainer(*deploy) - Expect(onlineContainer.Env).To(HaveLen(3)) + Expect(onlineContainer.Env).To(HaveLen(4)) Expect(onlineContainer.ImagePullPolicy).To(Equal(corev1.PullAlways)) env = getFeatureStoreYamlEnvVar(onlineContainer.Env) Expect(env).NotTo(BeNil()) diff --git a/infra/feast-operator/internal/controller/featurestore_controller_test.go b/infra/feast-operator/internal/controller/featurestore_controller_test.go index c122abcc397..f1ba8722a72 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_test.go @@ -123,7 +123,7 @@ var _ = Describe("FeatureStore Controller", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ @@ -335,7 +335,7 @@ var _ = Describe("FeatureStore Controller", func() { Expect(deploy.Spec.Template.Spec.ServiceAccountName).To(Equal(deploy.Name)) Expect(deploy.Spec.Strategy.Type).To(Equal(appsv1.RecreateDeploymentStrategyType)) Expect(deploy.Spec.Template.Spec.Containers).To(HaveLen(1)) - Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(1)) + Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(2)) env := getFeatureStoreYamlEnvVar(deploy.Spec.Template.Spec.Containers[0].Env) Expect(env).NotTo(BeNil()) @@ -400,7 +400,7 @@ var _ = Describe("FeatureStore Controller", func() { testConfig.Project = resourceNew.Spec.FeastProject Expect(deploy.Spec.Strategy.Type).To(Equal(appsv1.RollingUpdateDeploymentStrategyType)) - Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(1)) + Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(2)) env = getFeatureStoreYamlEnvVar(deploy.Spec.Template.Spec.Containers[0].Env) Expect(env).NotTo(BeNil()) @@ -719,7 +719,7 @@ var _ = Describe("FeatureStore Controller", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ @@ -747,7 +747,7 @@ var _ = Describe("FeatureStore Controller", func() { Expect(deploy.Spec.Template.Spec.InitContainers[1].EnvFrom).NotTo(BeEmpty()) Expect(deploy.Spec.Template.Spec.Containers).To(HaveLen(4)) registryContainer := services.GetRegistryContainer(*deploy) - Expect(registryContainer.Env).To(HaveLen(1)) + Expect(registryContainer.Env).To(HaveLen(2)) env := getFeatureStoreYamlEnvVar(registryContainer.Env) Expect(env).NotTo(BeNil()) @@ -769,7 +769,7 @@ var _ = Describe("FeatureStore Controller", func() { // check offline config Expect(deploy.Spec.Template.Spec.ServiceAccountName).To(Equal(deploy.Name)) offlineContainer := services.GetOfflineContainer(*deploy) - Expect(offlineContainer.Env).To(HaveLen(1)) + Expect(offlineContainer.Env).To(HaveLen(2)) env = getFeatureStoreYamlEnvVar(offlineContainer.Env) Expect(env).NotTo(BeNil()) @@ -788,7 +788,7 @@ var _ = Describe("FeatureStore Controller", func() { // check online config onlineContainer := services.GetOnlineContainer(*deploy) - Expect(onlineContainer.Env).To(HaveLen(3)) + Expect(onlineContainer.Env).To(HaveLen(4)) Expect(onlineContainer.ImagePullPolicy).To(Equal(corev1.PullAlways)) env = getFeatureStoreYamlEnvVar(onlineContainer.Env) Expect(env).NotTo(BeNil()) @@ -865,7 +865,7 @@ var _ = Describe("FeatureStore Controller", func() { feast.Handler.FeatureStore = resource testConfig.Project = resourceNew.Spec.FeastProject - Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(1)) + Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(2)) env = getFeatureStoreYamlEnvVar(deploy.Spec.Template.Spec.Containers[0].Env) Expect(env).NotTo(BeNil()) @@ -913,7 +913,7 @@ var _ = Describe("FeatureStore Controller", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) feast := services.FeastServices{ Handler: handler.FeastHandler{ @@ -939,7 +939,7 @@ var _ = Describe("FeatureStore Controller", func() { Expect(deploy.Spec.Template.Spec.ServiceAccountName).To(Equal(deploy.Name)) Expect(deploy.Spec.Template.Spec.Containers).To(HaveLen(4)) onlineContainer := services.GetOnlineContainer(*deploy) - Expect(onlineContainer.Env).To(HaveLen(3)) + Expect(onlineContainer.Env).To(HaveLen(4)) Expect(areEnvVarArraysEqual(onlineContainer.Env, []corev1.EnvVar{{Name: testEnvVarName, Value: testEnvVarValue}, {Name: services.TmpFeatureStoreYamlEnvVar, Value: fsYamlStr}, {Name: "fieldRefName", ValueFrom: &corev1.EnvVarSource{FieldRef: &corev1.ObjectFieldSelector{APIVersion: "v1", FieldPath: "metadata.namespace"}}}})).To(BeTrue()) Expect(onlineContainer.ImagePullPolicy).To(Equal(corev1.PullAlways)) @@ -963,7 +963,7 @@ var _ = Describe("FeatureStore Controller", func() { Expect(err).NotTo(HaveOccurred()) onlineContainer = services.GetOnlineContainer(*deploy) - Expect(onlineContainer.Env).To(HaveLen(3)) + Expect(onlineContainer.Env).To(HaveLen(4)) Expect(areEnvVarArraysEqual(onlineContainer.Env, []corev1.EnvVar{{Name: testEnvVarName, Value: testEnvVarValue + "1"}, {Name: services.TmpFeatureStoreYamlEnvVar, Value: fsYamlStr}, {Name: "fieldRefName", ValueFrom: &corev1.EnvVarSource{FieldRef: &corev1.ObjectFieldSelector{APIVersion: "v1", FieldPath: "metadata.name"}}}})).To(BeTrue()) }) @@ -1588,18 +1588,23 @@ func noAuthzConfig() services.AuthzConfig { } func areEnvVarArraysEqual(arr1 []corev1.EnvVar, arr2 []corev1.EnvVar) bool { - if len(arr1) != len(arr2) { + // Filter out operator-injected env vars that aren't part of user config + var filtered []corev1.EnvVar + for _, env := range arr1 { + if env.Name != services.IntraCommunicationBase64EnvVar { + filtered = append(filtered, env) + } + } + + if len(filtered) != len(arr2) { return false } - // Create a map to count occurrences of EnvVars in the first array. envMap := make(map[string]corev1.EnvVar) - - for _, env := range arr1 { + for _, env := range filtered { envMap[env.Name] = env } - // Check the second array against the map. for _, env := range arr2 { if _, exists := envMap[env.Name]; !exists || !reflect.DeepEqual(envMap[env.Name], env) { return false diff --git a/infra/feast-operator/internal/controller/featurestore_controller_tls_test.go b/infra/feast-operator/internal/controller/featurestore_controller_tls_test.go index 0af097120ce..f3528ec58b2 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller_tls_test.go +++ b/infra/feast-operator/internal/controller/featurestore_controller_tls_test.go @@ -245,7 +245,7 @@ var _ = Describe("FeatureStore Controller - Feast service TLS", func() { cmList := corev1.ConfigMapList{} err = k8sClient.List(ctx, &cmList, listOpts) Expect(err).NotTo(HaveOccurred()) - Expect(cmList.Items).To(HaveLen(1)) + Expect(cmList.Items).To(HaveLen(2)) // check deployment deploy := &appsv1.Deployment{} @@ -257,7 +257,7 @@ var _ = Describe("FeatureStore Controller - Feast service TLS", func() { Expect(err).NotTo(HaveOccurred()) Expect(deploy.Spec.Template.Spec.Containers).To(HaveLen(4)) registryContainer := services.GetRegistryContainer(*deploy) - Expect(registryContainer.Env).To(HaveLen(1)) + Expect(registryContainer.Env).To(HaveLen(2)) env := getFeatureStoreYamlEnvVar(registryContainer.Env) Expect(env).NotTo(BeNil()) @@ -278,7 +278,7 @@ var _ = Describe("FeatureStore Controller - Feast service TLS", func() { // check offline config offlineContainer := services.GetOfflineContainer(*deploy) - Expect(offlineContainer.Env).To(HaveLen(1)) + Expect(offlineContainer.Env).To(HaveLen(2)) env = getFeatureStoreYamlEnvVar(offlineContainer.Env) Expect(env).NotTo(BeNil()) @@ -295,7 +295,7 @@ var _ = Describe("FeatureStore Controller - Feast service TLS", func() { // check online config onlineContainer := services.GetOnlineContainer(*deploy) - Expect(onlineContainer.Env).To(HaveLen(1)) + Expect(onlineContainer.Env).To(HaveLen(2)) env = getFeatureStoreYamlEnvVar(onlineContainer.Env) Expect(env).NotTo(BeNil()) @@ -309,7 +309,7 @@ var _ = Describe("FeatureStore Controller - Feast service TLS", func() { err = yaml.Unmarshal(envByte, repoConfigOnline) Expect(err).NotTo(HaveOccurred()) Expect(repoConfigOnline).To(Equal(&testConfig)) - Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(1)) + Expect(deploy.Spec.Template.Spec.Containers[0].Env).To(HaveLen(2)) // check client config cm := &corev1.ConfigMap{} diff --git a/infra/feast-operator/internal/controller/registry/client.go b/infra/feast-operator/internal/controller/registry/client.go index d8fbe51653b..878511d961b 100644 --- a/infra/feast-operator/internal/controller/registry/client.go +++ b/infra/feast-operator/internal/controller/registry/client.go @@ -46,15 +46,19 @@ type PermissionPolicy struct { // ListPermissions fetches permissions from the registry REST API for the given project. // The intraCommToken is the per-instance secret used to bypass per-user auth on the registry. -// Uses cluster-internal TLS (InsecureSkipVerify for service certs). +// When useTLS is true, uses https with InsecureSkipVerify for cluster-internal service certs. // Returns policies from GroupBasedPolicy, NamespaceBasedPolicy, and CombinedGroupNamespacePolicy only. -func ListPermissions(ctx context.Context, registryRestURL, project, intraCommToken string) ([]PermissionPolicy, error) { +func ListPermissions(ctx context.Context, registryRestURL, project, intraCommToken string, useTLS bool) ([]PermissionPolicy, error) { if registryRestURL == "" || project == "" { return nil, nil } baseURL := registryRestURL if !strings.HasPrefix(baseURL, "http://") && !strings.HasPrefix(baseURL, "https://") { - baseURL = "https://" + baseURL + scheme := "http://" + if useTLS { + scheme = "https://" + } + baseURL = scheme + baseURL } u, err := url.Parse(baseURL) if err != nil { diff --git a/infra/feast-operator/internal/controller/registry/client_test.go b/infra/feast-operator/internal/controller/registry/client_test.go index 59cfdba2493..ce2710f310a 100644 --- a/infra/feast-operator/internal/controller/registry/client_test.go +++ b/infra/feast-operator/internal/controller/registry/client_test.go @@ -92,11 +92,11 @@ func TestExtractPolicy_SnakeCaseKeys(t *testing.T) { } func TestListPermissions_EmptyInputs(t *testing.T) { - policies, err := ListPermissions(context.Background(), "", "project", "tok") + policies, err := ListPermissions(context.Background(), "", "project", "tok", false) if err != nil || policies != nil { t.Fatalf("expected nil,nil for empty URL; got %v, %v", policies, err) } - policies, err = ListPermissions(context.Background(), "http://localhost", "", "tok") + policies, err = ListPermissions(context.Background(), "http://localhost", "", "tok", false) if err != nil || policies != nil { t.Fatalf("expected nil,nil for empty project; got %v, %v", policies, err) } @@ -147,7 +147,7 @@ func TestListPermissions_Success(t *testing.T) { })) defer server.Close() - policies, err := ListPermissions(context.Background(), server.URL, "my_project", "test-token") + policies, err := ListPermissions(context.Background(), server.URL, "my_project", "test-token", false) if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -165,7 +165,7 @@ func TestListPermissions_NonOKStatus(t *testing.T) { })) defer server.Close() - _, err := ListPermissions(context.Background(), server.URL, "p", "tok") + _, err := ListPermissions(context.Background(), server.URL, "p", "tok", false) if err == nil { t.Fatal("expected error for non-200 status") } @@ -178,7 +178,7 @@ func TestListPermissions_EmptyPermissions(t *testing.T) { })) defer server.Close() - policies, err := ListPermissions(context.Background(), server.URL, "p", "tok") + policies, err := ListPermissions(context.Background(), server.URL, "p", "tok", false) if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -194,7 +194,7 @@ func TestListPermissions_NoSpecPermission(t *testing.T) { })) defer server.Close() - policies, err := ListPermissions(context.Background(), server.URL, "p", "tok") + policies, err := ListPermissions(context.Background(), server.URL, "p", "tok", false) if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -203,16 +203,22 @@ func TestListPermissions_NoSpecPermission(t *testing.T) { } } -func TestListPermissions_URLWithoutScheme(t *testing.T) { - // Verify https:// is prepended when scheme is missing - _, err := ListPermissions(context.Background(), "nonexistent-host:8080", "p", "tok") +func TestListPermissions_URLWithoutScheme_TLS(t *testing.T) { + _, err := ListPermissions(context.Background(), "127.0.0.1:8080", "p", "tok", true) + if err == nil { + t.Fatal("expected error for unreachable host") + } +} + +func TestListPermissions_URLWithoutScheme_NoTLS(t *testing.T) { + _, err := ListPermissions(context.Background(), "127.0.0.1:8080", "p", "tok", false) if err == nil { t.Fatal("expected error for unreachable host") } } func TestBuildIntraCommunicationJWT(t *testing.T) { - secretToken := "my-random-secret-value" + secretToken := "my-random-secret-value" // pragma: allowlist secret jwt := BuildIntraCommunicationJWT(secretToken) parts := strings.Split(jwt, ".") if len(parts) != 3 { @@ -244,7 +250,7 @@ func TestListPermissions_SendsIntraCommunicationJWT(t *testing.T) { })) defer server.Close() - _, err := ListPermissions(context.Background(), server.URL, "p", "my-secret") + _, err := ListPermissions(context.Background(), server.URL, "p", "my-secret", false) if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -267,7 +273,7 @@ func TestListPermissions_NoTokenNoAuthHeader(t *testing.T) { })) defer server.Close() - _, err := ListPermissions(context.Background(), server.URL, "p", "") + _, err := ListPermissions(context.Background(), server.URL, "p", "", false) if err != nil { t.Fatalf("unexpected error: %v", err) } diff --git a/infra/feast-operator/internal/controller/services/namespace_registry.go b/infra/feast-operator/internal/controller/services/namespace_registry.go new file mode 100644 index 00000000000..64cdaebd6f0 --- /dev/null +++ b/infra/feast-operator/internal/controller/services/namespace_registry.go @@ -0,0 +1,433 @@ +/* +Copyright 2024 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package services + +import ( + "encoding/json" + "fmt" + "os" + + corev1 "k8s.io/api/core/v1" + rbacv1 "k8s.io/api/rbac/v1" + apierrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" + "sigs.k8s.io/controller-runtime/pkg/log" +) + +// NamespaceRegistryData represents the structure of data stored in the namespace registry ConfigMap +type NamespaceRegistryData struct { + Namespaces map[string][]string `json:"namespaces"` +} + +// deployNamespaceRegistry creates and manages the namespace registry ConfigMap +func (feast *FeastServices) deployNamespaceRegistry() error { + // Check if we can determine the target namespace before creating any resources + targetNamespace, err := feast.getNamespaceRegistryNamespace() + if err != nil { + logger := log.FromContext(feast.Handler.Context) + logger.V(1).Info("Skipping namespace registry deployment: unable to determine target namespace", "error", err) + return nil // Return nil to avoid failing the entire deployment + } + + logger := log.FromContext(feast.Handler.Context) + logger.V(1).Info("Deploying namespace registry", "targetNamespace", targetNamespace) + + if err := feast.createNamespaceRegistryConfigMap(targetNamespace); err != nil { + return err + } + if err := feast.createNamespaceRegistryRoleBinding(targetNamespace); err != nil { + return err + } + return nil +} + +// createNamespaceRegistryConfigMap creates the namespace registry ConfigMap +func (feast *FeastServices) createNamespaceRegistryConfigMap(targetNamespace string) error { + logger := log.FromContext(feast.Handler.Context) + + cm := &corev1.ConfigMap{ + ObjectMeta: metav1.ObjectMeta{ + Name: NamespaceRegistryConfigMapName, + Namespace: targetNamespace, + }, + } + cm.SetGroupVersionKind(corev1.SchemeGroupVersion.WithKind("ConfigMap")) + + if op, err := controllerutil.CreateOrUpdate(feast.Handler.Context, feast.Handler.Client, cm, controllerutil.MutateFn(func() error { + return feast.setNamespaceRegistryConfigMap(cm) + })); err != nil { + return err + } else if op == controllerutil.OperationResultCreated || op == controllerutil.OperationResultUpdated { + logger.Info("Successfully reconciled namespace registry ConfigMap", "ConfigMap", cm.Name, "Namespace", cm.Namespace, "operation", op) + } + + return nil +} + +// setNamespaceRegistryConfigMap sets the data for the namespace registry ConfigMap +func (feast *FeastServices) setNamespaceRegistryConfigMap(cm *corev1.ConfigMap) error { + // Get existing data or initialize empty structure + existingData := &NamespaceRegistryData{ + Namespaces: make(map[string][]string), + } + + if cm.Data != nil && cm.Data[NamespaceRegistryDataKey] != "" { + if err := json.Unmarshal([]byte(cm.Data[NamespaceRegistryDataKey]), existingData); err != nil { + // If unmarshaling fails, start with empty data + existingData = &NamespaceRegistryData{ + Namespaces: make(map[string][]string), + } + } + } + + // Add current feature store instance to the registry + featureStoreNamespace := feast.Handler.FeatureStore.Namespace + clientConfigName := feast.Handler.FeatureStore.Status.ClientConfigMap + + if clientConfigName != "" { + if existingData.Namespaces[featureStoreNamespace] == nil { + existingData.Namespaces[featureStoreNamespace] = []string{} + } + + // Check if client config is already in the list + found := false + for _, config := range existingData.Namespaces[featureStoreNamespace] { + if config == clientConfigName { + found = true + break + } + } + + if !found { + existingData.Namespaces[featureStoreNamespace] = append(existingData.Namespaces[featureStoreNamespace], clientConfigName) + } + } + + // Marshal the data back to JSON + dataBytes, err := json.Marshal(existingData) + if err != nil { + return fmt.Errorf("failed to marshal namespace registry data: %w", err) + } + + // Set the ConfigMap data + if cm.Data == nil { + cm.Data = make(map[string]string) + } + cm.Data[NamespaceRegistryDataKey] = string(dataBytes) + + // Set labels + cm.Labels = feast.getLabels() + + return nil +} + +// createNamespaceRegistryRoleBinding creates a RoleBinding to allow system:authenticated to read the ConfigMap +func (feast *FeastServices) createNamespaceRegistryRoleBinding(targetNamespace string) error { + logger := log.FromContext(feast.Handler.Context) + + roleBinding := &rbacv1.RoleBinding{ + ObjectMeta: metav1.ObjectMeta{ + Name: NamespaceRegistryConfigMapName + "-reader", + Namespace: targetNamespace, + }, + } + roleBinding.SetGroupVersionKind(rbacv1.SchemeGroupVersion.WithKind("RoleBinding")) + + if op, err := controllerutil.CreateOrUpdate(feast.Handler.Context, feast.Handler.Client, roleBinding, controllerutil.MutateFn(func() error { + return feast.setNamespaceRegistryRoleBinding(roleBinding) + })); err != nil { + return err + } else if op == controllerutil.OperationResultCreated || op == controllerutil.OperationResultUpdated { + logger.Info("Successfully reconciled namespace registry RoleBinding", "RoleBinding", roleBinding.Name, "Namespace", roleBinding.Namespace, "operation", op) + } + + return nil +} + +// setNamespaceRegistryRoleBinding sets the RoleBinding for namespace registry access +func (feast *FeastServices) setNamespaceRegistryRoleBinding(rb *rbacv1.RoleBinding) error { + // Create a Role that allows reading the ConfigMap + role := &rbacv1.Role{ + ObjectMeta: metav1.ObjectMeta{ + Name: NamespaceRegistryConfigMapName + "-reader", + Namespace: rb.Namespace, + }, + Rules: []rbacv1.PolicyRule{ + { + APIGroups: []string{""}, + Resources: []string{"configmaps"}, + ResourceNames: []string{NamespaceRegistryConfigMapName}, + Verbs: []string{"get", "list"}, + }, + }, + } + + // Create or update the Role + if _, err := controllerutil.CreateOrUpdate(feast.Handler.Context, feast.Handler.Client, role, controllerutil.MutateFn(func() error { + role.Rules = []rbacv1.PolicyRule{ + { + APIGroups: []string{""}, + Resources: []string{"configmaps"}, + ResourceNames: []string{NamespaceRegistryConfigMapName}, + Verbs: []string{"get", "list"}, + }, + } + return nil + })); err != nil { + return err + } + + // Set the RoleBinding + rb.RoleRef = rbacv1.RoleRef{ + APIGroup: "rbac.authorization.k8s.io", + Kind: "Role", + Name: role.Name, + } + + rb.Subjects = []rbacv1.Subject{ + { + APIGroup: "rbac.authorization.k8s.io", + Kind: "Group", + Name: "system:authenticated", + }, + } + + return nil +} + +// getNamespaceRegistryNamespace determines the target namespace for the namespace registry ConfigMap +func (feast *FeastServices) getNamespaceRegistryNamespace() (string, error) { + // Check if we're running on OpenShift + logger := log.FromContext(feast.Handler.Context) + if isOpenShift { + // TODO: Add support for reading DSCi configuration + if data, err := os.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace"); err == nil { + if ns := string(data); len(ns) > 0 { + logger.V(1).Info("Using OpenShift namespace", "namespace", ns) + return ns, nil + } + } + // This is what notebook controller team is doing, we are following them + // They are not defaulting to redhat-ods-applications namespace + return "", fmt.Errorf("unable to determine the namespace") + } + + return DefaultKubernetesNamespace, nil +} + +// AddToNamespaceRegistry adds a feature store instance to the namespace registry +func (feast *FeastServices) AddToNamespaceRegistry() error { + logger := log.FromContext(feast.Handler.Context) + targetNamespace, err := feast.getNamespaceRegistryNamespace() + if err != nil { + logger.V(1).Info("Skipping namespace registry addition: unable to determine target namespace", "error", err) + return nil // Return nil to avoid failing the entire operation + } + + // Get the existing ConfigMap + cm := &corev1.ConfigMap{} + err = feast.Handler.Client.Get(feast.Handler.Context, types.NamespacedName{ + Name: NamespaceRegistryConfigMapName, + Namespace: targetNamespace, + }, cm) + if err != nil { + if apierrors.IsNotFound(err) { + logger.V(1).Info("Namespace registry ConfigMap not found, nothing to add to") + return nil + } + return fmt.Errorf("failed to get namespace registry ConfigMap: %w", err) + } + + // Parse existing data + var existingData NamespaceRegistryData + if cm.Data != nil && cm.Data[NamespaceRegistryDataKey] != "" { + err = json.Unmarshal([]byte(cm.Data[NamespaceRegistryDataKey]), &existingData) + if err != nil { + logger.V(1).Info("Failed to unmarshal namespace registry data, nothing to add to") + return nil + } + } + + // Add current feature store instance to the registry + featureStoreNamespace := feast.Handler.FeatureStore.Namespace + clientConfigName := feast.Handler.FeatureStore.Status.ClientConfigMap + + if clientConfigName != "" { + // Initialize namespace map if it doesn't exist + if existingData.Namespaces == nil { + existingData.Namespaces = make(map[string][]string) + } + if existingData.Namespaces[featureStoreNamespace] == nil { + existingData.Namespaces[featureStoreNamespace] = []string{} + } + + // Check if client config is already in the list + found := false + for _, config := range existingData.Namespaces[featureStoreNamespace] { + if config == clientConfigName { + found = true + break + } + } + + // Add if not already present + if !found { + existingData.Namespaces[featureStoreNamespace] = append(existingData.Namespaces[featureStoreNamespace], clientConfigName) + } + } + + // Marshal the updated data back to JSON + dataBytes, err := json.Marshal(existingData) + if err != nil { + return fmt.Errorf("failed to marshal updated namespace registry data: %w", err) + } + + // Update the ConfigMap + if cm.Data == nil { + cm.Data = make(map[string]string) + } + cm.Data[NamespaceRegistryDataKey] = string(dataBytes) + + // Update the ConfigMap + if err := feast.Handler.Client.Update(feast.Handler.Context, cm); err != nil { + return fmt.Errorf("failed to update namespace registry ConfigMap: %w", err) + } + + logger.Info("Successfully added feature store to namespace registry", + "namespace", featureStoreNamespace, + "clientConfig", clientConfigName, + "targetNamespace", targetNamespace) + + return nil +} + +// RemoveFromNamespaceRegistry removes a feature store instance from the namespace registry +func (feast *FeastServices) RemoveFromNamespaceRegistry() error { + logger := log.FromContext(feast.Handler.Context) + + // Determine the target namespace based on platform + targetNamespace, err := feast.getNamespaceRegistryNamespace() + if err != nil { + logger.V(1).Info("Skipping namespace registry removal: unable to determine target namespace", "error", err) + return nil // Return nil to avoid failing the entire operation + } + + // Get the existing ConfigMap + cm := &corev1.ConfigMap{} + err = feast.Handler.Client.Get(feast.Handler.Context, client.ObjectKey{ + Name: NamespaceRegistryConfigMapName, + Namespace: targetNamespace, + }, cm) + if err != nil { + if apierrors.IsNotFound(err) { + // ConfigMap doesn't exist, nothing to clean up + logger.V(1).Info("Namespace registry ConfigMap not found, nothing to clean up") + return nil + } + return fmt.Errorf("failed to get namespace registry ConfigMap: %w", err) + } + + // Get existing data + existingData := &NamespaceRegistryData{ + Namespaces: make(map[string][]string), + } + + if cm.Data != nil && cm.Data[NamespaceRegistryDataKey] != "" { + if err := json.Unmarshal([]byte(cm.Data[NamespaceRegistryDataKey]), existingData); err != nil { + // If unmarshaling fails, there's nothing to clean up + logger.V(1).Info("Failed to unmarshal namespace registry data, nothing to clean up") + return nil + } + } + + // Remove current feature store instance from the registry + featureStoreNamespace := feast.Handler.FeatureStore.Namespace + clientConfigName := feast.Handler.FeatureStore.Status.ClientConfigMap + featureStoreName := feast.Handler.FeatureStore.Name + + // Generate expected client config name using the same logic as creation + expectedClientConfigName := "feast-" + featureStoreName + "-client" + + logger.Info("Removing feature store from registry", + "featureStoreName", featureStoreName, + "featureStoreNamespace", featureStoreNamespace, + "clientConfigName", clientConfigName, + "expectedClientConfigName", expectedClientConfigName) + + if existingData.Namespaces[featureStoreNamespace] != nil { + var updatedConfigs []string + removed := false + + for _, config := range existingData.Namespaces[featureStoreNamespace] { + // Remove if it matches the client config name or the expected pattern + if config == clientConfigName || config == expectedClientConfigName { + logger.Info("Removing config from registry", "config", config) + removed = true + } else { + updatedConfigs = append(updatedConfigs, config) + } + } + + existingData.Namespaces[featureStoreNamespace] = updatedConfigs + + // If no configs left for this namespace, remove the namespace entry + if len(existingData.Namespaces[featureStoreNamespace]) == 0 { + delete(existingData.Namespaces, featureStoreNamespace) + logger.Info("Removed empty namespace entry from registry", "namespace", featureStoreNamespace) + } + + if !removed { + logger.V(1).Info("No matching config found to remove from registry", + "existingConfigs", existingData.Namespaces[featureStoreNamespace]) + } + } else { + logger.V(1).Info("Namespace not found in registry", "namespace", featureStoreNamespace) + } + + // Marshal the updated data back to JSON + dataBytes, err := json.Marshal(existingData) + if err != nil { + return fmt.Errorf("failed to marshal updated namespace registry data: %w", err) + } + + // Update the ConfigMap + if cm.Data == nil { + cm.Data = make(map[string]string) + } + cm.Data[NamespaceRegistryDataKey] = string(dataBytes) + + // Update the ConfigMap + if err := feast.Handler.Client.Update(feast.Handler.Context, cm); err != nil { + return fmt.Errorf("failed to update namespace registry ConfigMap: %w", err) + } + + logger.Info("Updated namespace registry ConfigMap", + "namespace", featureStoreNamespace, + "clientConfig", clientConfigName, + "remainingConfigs", existingData.Namespaces[featureStoreNamespace], + "targetNamespace", targetNamespace) + + logger.Info("Successfully removed feature store from namespace registry", + "namespace", featureStoreNamespace, + "clientConfig", clientConfigName, + "targetNamespace", targetNamespace) + + return nil +} diff --git a/infra/feast-operator/internal/controller/services/services.go b/infra/feast-operator/internal/controller/services/services.go index 19c31cb5ef4..57587a50572 100644 --- a/infra/feast-operator/internal/controller/services/services.go +++ b/infra/feast-operator/internal/controller/services/services.go @@ -95,6 +95,9 @@ func (feast *FeastServices) Deploy() error { if err := feast.deployClient(); err != nil { return err } + if err := feast.deployNamespaceRegistry(); err != nil { + return err + } if err := feast.deployCronJob(); err != nil { return err } diff --git a/infra/feast-operator/internal/controller/services/services_types.go b/infra/feast-operator/internal/controller/services/services_types.go index ee5cfafab03..888e0bd482d 100644 --- a/infra/feast-operator/internal/controller/services/services_types.go +++ b/infra/feast-operator/internal/controller/services/services_types.go @@ -28,16 +28,19 @@ const ( TmpFeatureStoreYamlEnvVar = "TMP_FEATURE_STORE_YAML_BASE64" IntraCommunicationBase64EnvVar = "INTRA_COMMUNICATION_BASE64" intraCommunicationTokenKey = "token" - feastServerImageVar = "RELATED_IMAGE_FEATURE_SERVER" - cronJobImageVar = "RELATED_IMAGE_CRON_JOB" - FeatureStoreYamlCmKey = "feature_store.yaml" - EphemeralPath = "/feast-data" - FeatureRepoDir = "feature_repo" - DefaultRegistryPath = "registry.db" - DefaultOnlineStorePath = "online_store.db" - svcDomain = ".svc.cluster.local" - - DefaultKubernetesNamespace = "feast-operator-system" + feastServerImageVar = "RELATED_IMAGE_FEATURE_SERVER" + cronJobImageVar = "RELATED_IMAGE_CRON_JOB" + FeatureStoreYamlCmKey = "feature_store.yaml" + EphemeralPath = "/feast-data" + FeatureRepoDir = "feature_repo" + DefaultRegistryPath = "registry.db" + DefaultOnlineStorePath = "online_store.db" + svcDomain = ".svc.cluster.local" + + // Namespace registry ConfigMap constants + NamespaceRegistryConfigMapName = "feast-configs-registry" + NamespaceRegistryDataKey = "namespaces" + DefaultKubernetesNamespace = "feast-operator-system" HttpPort = 80 HttpsPort = 443 diff --git a/sdk/python/feast/metrics.py b/sdk/python/feast/metrics.py index be2b068d32c..173325eafbd 100644 --- a/sdk/python/feast/metrics.py +++ b/sdk/python/feast/metrics.py @@ -53,8 +53,6 @@ from datetime import datetime, timezone from typing import TYPE_CHECKING, Optional -import psutil - if TYPE_CHECKING: from feast.feature_store import FeatureStore @@ -346,6 +344,8 @@ def update_feature_freshness( def monitor_resources(interval: int = 5): """Background thread target that updates CPU and memory usage gauges.""" + import psutil + logger.debug("Starting resource monitoring with interval %d seconds", interval) p = psutil.Process() logger.debug("PID is %d", p.pid) From bec792080f012a315a75c280da363aa674e9528e Mon Sep 17 00:00:00 2001 From: Anix Lynch Date: Tue, 10 Mar 2026 01:29:03 -0700 Subject: [PATCH 16/37] docs(dynamodb): add missing dynamodb:TagResource permission for feast apply Signed-off-by: Ani Lynch --- docs/reference/online-stores/dynamodb.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference/online-stores/dynamodb.md b/docs/reference/online-stores/dynamodb.md index ec0104172fb..68d3d29ca3b 100644 --- a/docs/reference/online-stores/dynamodb.md +++ b/docs/reference/online-stores/dynamodb.md @@ -69,7 +69,7 @@ Feast requires the following permissions in order to execute commands for Dynamo | **Command** | Permissions | Resources | | ----------------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------- | -| **Apply** |

dynamodb:CreateTable

dynamodb:DescribeTable

dynamodb:DeleteTable

| arn:aws:dynamodb:\:\:table/\* | +| **Apply** |

dynamodb:CreateTable

dynamodb:DescribeTable

dynamodb:DeleteTable

dynamodb:TagResource

| arn:aws:dynamodb:\:\:table/\* | | **Materialize** | dynamodb.BatchWriteItem | arn:aws:dynamodb:\:\:table/\* | | **Get Online Features** | dynamodb.BatchGetItem | arn:aws:dynamodb:\:\:table/\* | @@ -83,6 +83,7 @@ The following inline policy can be used to grant Feast the necessary permissions "dynamodb:CreateTable", "dynamodb:DescribeTable", "dynamodb:DeleteTable", + "dynamodb:TagResource", "dynamodb:BatchWriteItem", "dynamodb:BatchGetItem" ], From a57758c44ebf9d48d167946985cc6e9777d418c6 Mon Sep 17 00:00:00 2001 From: Vanshika Vanshika Date: Wed, 25 Mar 2026 12:19:51 +0530 Subject: [PATCH 17/37] added utility function Signed-off-by: Vanshika Vanshika rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED --- .../clickhouse_offline_store/clickhouse.py | 13 +++--- .../contrib/oracle_offline_store/oracle.py | 36 ++------------- .../postgres_offline_store/postgres.py | 38 ++++----------- .../contrib/ray_offline_store/ray.py | 46 +++++-------------- .../contrib/spark_offline_store/spark.py | 34 +++----------- sdk/python/feast/infra/offline_stores/dask.py | 37 ++++----------- sdk/python/feast/utils.py | 34 +++++++++++++- .../offline_stores/test_dask_non_entity.py | 2 +- 8 files changed, 80 insertions(+), 160 deletions(-) diff --git a/sdk/python/feast/infra/offline_stores/contrib/clickhouse_offline_store/clickhouse.py b/sdk/python/feast/infra/offline_stores/contrib/clickhouse_offline_store/clickhouse.py index 723869c6bd1..79958960c85 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/clickhouse_offline_store/clickhouse.py +++ b/sdk/python/feast/infra/offline_stores/contrib/clickhouse_offline_store/clickhouse.py @@ -31,7 +31,7 @@ from feast.infra.utils.clickhouse.clickhouse_config import ClickhouseConfig from feast.infra.utils.clickhouse.connection_utils import get_client from feast.saved_dataset import SavedDatasetStorage -from feast.utils import _utc_now, make_tzaware +from feast.utils import compute_non_entity_date_range class ClickhouseOfflineStoreConfig(ClickhouseConfig): @@ -56,12 +56,11 @@ def get_historical_features( # Handle non-entity retrieval mode if entity_df is None: - end_date = kwargs.get("end_date", None) - if end_date is None: - end_date = _utc_now() - else: - end_date = make_tzaware(end_date) - + start_date, end_date = compute_non_entity_date_range( + feature_views, + start_date=kwargs.get("start_date"), + end_date=kwargs.get("end_date"), + ) entity_df = pd.DataFrame({"event_timestamp": [end_date]}) entity_schema = _get_entity_schema(entity_df, config) diff --git a/sdk/python/feast/infra/offline_stores/contrib/oracle_offline_store/oracle.py b/sdk/python/feast/infra/offline_stores/contrib/oracle_offline_store/oracle.py index d76335a62a1..ecabab517b0 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/oracle_offline_store/oracle.py +++ b/sdk/python/feast/infra/offline_stores/contrib/oracle_offline_store/oracle.py @@ -1,4 +1,4 @@ -from datetime import datetime, timedelta, timezone +from datetime import datetime from pathlib import Path from typing import Any, Callable, List, Literal, Optional, Union @@ -24,6 +24,7 @@ from feast.infra.offline_stores.offline_store import OfflineStore, RetrievalJob from feast.infra.registry.base_registry import BaseRegistry from feast.repo_config import FeastConfigBaseModel, RepoConfig +from feast.utils import compute_non_entity_date_range def get_ibis_connection(config: RepoConfig): @@ -153,35 +154,6 @@ def _validate_connection_params(self): return self -def _resolve_date_range( - start_date: Optional[datetime], - end_date: Optional[datetime], - feature_views: List[FeatureView], -) -> tuple: - """Resolve start/end dates to a UTC-aware range, using TTL as a fallback window.""" - if end_date is None: - end_date = datetime.now(tz=timezone.utc) - elif end_date.tzinfo is None: - end_date = end_date.replace(tzinfo=timezone.utc) - - if start_date is None: - max_ttl_seconds = max( - ( - int(fv.ttl.total_seconds()) - for fv in feature_views - if fv.ttl and isinstance(fv.ttl, timedelta) - ), - default=0, - ) - start_date = end_date - timedelta( - seconds=max_ttl_seconds if max_ttl_seconds > 0 else 30 * 86400 - ) - elif start_date.tzinfo is None: - start_date = start_date.replace(tzinfo=timezone.utc) - - return start_date, end_date - - def _build_entity_df_from_feature_sources( con, feature_views: List[FeatureView], @@ -254,10 +226,10 @@ def get_historical_features( # Handle non-entity retrieval mode (start_date/end_date only) if entity_df is None: - start_date, end_date = _resolve_date_range( + start_date, end_date = compute_non_entity_date_range( + feature_views, start_date=kwargs.get("start_date"), end_date=kwargs.get("end_date"), - feature_views=feature_views, ) entity_df = _build_entity_df_from_feature_sources( con, feature_views, start_date, end_date diff --git a/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py b/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py index 57db2c471d7..50e48208647 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py +++ b/sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py @@ -1,6 +1,6 @@ import contextlib from dataclasses import asdict -from datetime import datetime, timedelta, timezone +from datetime import datetime, timezone from enum import Enum from typing import ( Any, @@ -46,7 +46,7 @@ from feast.repo_config import RepoConfig from feast.saved_dataset import SavedDatasetStorage from feast.type_map import pg_type_code_to_arrow -from feast.utils import _utc_now, make_tzaware +from feast.utils import compute_non_entity_date_range from .postgres_source import PostgreSQLSource @@ -129,36 +129,16 @@ def get_historical_features( assert isinstance(config.offline_store, PostgreSQLOfflineStoreConfig) for fv in feature_views: assert isinstance(fv.batch_source, PostgreSQLSource) - start_date: Optional[datetime] = kwargs.get("start_date", None) - end_date: Optional[datetime] = kwargs.get("end_date", None) + start_date: Optional[datetime] = kwargs.get("start_date") + end_date: Optional[datetime] = kwargs.get("end_date") # Handle non-entity retrieval mode if entity_df is None: - # Default to current time if end_date not provided - if end_date is None: - end_date = _utc_now() - else: - end_date = make_tzaware(end_date) - - # Calculate start_date from TTL if not provided - - if start_date is None: - # Find the maximum TTL across all feature views to ensure we capture enough data - max_ttl_seconds = 0 - for fv in feature_views: - if fv.ttl and isinstance(fv.ttl, timedelta): - ttl_seconds = int(fv.ttl.total_seconds()) - max_ttl_seconds = max(max_ttl_seconds, ttl_seconds) - - if max_ttl_seconds > 0: - # Start from (end_date - max_ttl) to ensure we capture all relevant features - start_date = end_date - timedelta(seconds=max_ttl_seconds) - else: - # If no TTL is set, default to 30 days before end_date - start_date = end_date - timedelta(days=30) - else: - start_date = make_tzaware(start_date) - + start_date, end_date = compute_non_entity_date_range( + feature_views, + start_date=start_date, + end_date=end_date, + ) entity_df = pd.DataFrame({"event_timestamp": [end_date]}) entity_schema = _get_entity_schema(entity_df, config) diff --git a/sdk/python/feast/infra/offline_stores/contrib/ray_offline_store/ray.py b/sdk/python/feast/infra/offline_stores/contrib/ray_offline_store/ray.py index e4dbd67666d..47785ccea29 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/ray_offline_store/ray.py +++ b/sdk/python/feast/infra/offline_stores/contrib/ray_offline_store/ray.py @@ -1,7 +1,7 @@ import logging import os import uuid -from datetime import datetime, timedelta +from datetime import datetime from pathlib import Path from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Union @@ -59,7 +59,12 @@ feast_value_type_to_pandas_type, pa_to_feast_value_type, ) -from feast.utils import _get_column_names, make_df_tzaware, make_tzaware +from feast.utils import ( + _get_column_names, + compute_non_entity_date_range, + make_df_tzaware, + make_tzaware, +) logger = logging.getLogger(__name__) # Remote storage URI schemes supported by the Ray offline store @@ -1203,37 +1208,6 @@ def schema(self) -> pa.Schema: return pa.Table.from_pandas(df).schema -def _compute_non_entity_dates_ray( - feature_views: List[FeatureView], - start_date_opt: Optional[datetime], - end_date_opt: Optional[datetime], -) -> Tuple[datetime, datetime]: - # Why: derive bounded time window when no entity_df is provided using explicit dates or max TTL fallback - end_date = ( - make_tzaware(end_date_opt) if end_date_opt else make_tzaware(datetime.utcnow()) - ) - if start_date_opt is None: - max_ttl_seconds = 0 - for fv in feature_views: - if getattr(fv, "ttl", None): - try: - ttl_val = fv.ttl - if isinstance(ttl_val, timedelta): - max_ttl_seconds = max( - max_ttl_seconds, int(ttl_val.total_seconds()) - ) - except Exception: - pass - start_date = ( - end_date - timedelta(seconds=max_ttl_seconds) - if max_ttl_seconds > 0 - else end_date - timedelta(days=30) - ) - else: - start_date = make_tzaware(start_date_opt) - return start_date, end_date - - def _make_filter_range(timestamp_field: str, start_date: datetime, end_date: datetime): # Why: factory function for time-range filtering in Ray map_batches def _filter_range(batch: pd.DataFrame) -> pd.Series: @@ -2067,8 +2041,10 @@ def get_historical_features( # Non-entity mode: derive entity set from feature sources within a bounded time window # Preserves distinct (entity_keys, event_timestamp) combinations for proper PIT joins # This handles cases where multiple transactions per entity ID exist - start_date, end_date = _compute_non_entity_dates_ray( - feature_views, kwargs.get("start_date"), kwargs.get("end_date") + start_date, end_date = compute_non_entity_date_range( + feature_views, + start_date=kwargs.get("start_date"), + end_date=kwargs.get("end_date"), ) per_view_entity_ds: List[Dataset] = [] all_join_keys: List[str] = [] diff --git a/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py b/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py index af83d303504..c7ed40ccc02 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py +++ b/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py @@ -3,7 +3,7 @@ import uuid import warnings from dataclasses import asdict, dataclass -from datetime import datetime, timedelta, timezone +from datetime import datetime, timezone from typing import ( TYPE_CHECKING, Any, @@ -52,7 +52,7 @@ from feast.repo_config import FeastConfigBaseModel, RepoConfig from feast.saved_dataset import SavedDatasetStorage from feast.type_map import spark_schema_to_np_dtypes -from feast.utils import _get_fields_with_aliases +from feast.utils import _get_fields_with_aliases, compute_non_entity_date_range # Make sure spark warning doesn't raise more than once. warnings.simplefilter("once", RuntimeWarning) @@ -183,8 +183,11 @@ def get_historical_features( # This makes date-range retrievals possible without enumerating entities upfront; sources remain bounded by time. non_entity_mode = entity_df is None if non_entity_mode: - # Why: derive bounded time window without requiring entities; uses max TTL fallback to constrain scans. - start_date, end_date = _compute_non_entity_dates(feature_views, kwargs) + start_date, end_date = compute_non_entity_date_range( + feature_views, + start_date=kwargs.get("start_date"), + end_date=kwargs.get("end_date"), + ) entity_df_event_timestamp_range = (start_date, end_date) # Build query contexts so we can reuse entity names and per-view table info consistently. @@ -619,29 +622,6 @@ def get_spark_session_or_start_new_with_repoconfig( return spark_session -def _compute_non_entity_dates( - feature_views: List[FeatureView], kwargs: Dict[str, Any] -) -> Tuple[datetime, datetime]: - # Why: bounds the scan window when no entity_df is provided using explicit dates or max TTL fallback. - start_date_opt = cast(Optional[datetime], kwargs.get("start_date")) - end_date_opt = cast(Optional[datetime], kwargs.get("end_date")) - end_date: datetime = end_date_opt or datetime.now(timezone.utc) - - if start_date_opt is None: - max_ttl_seconds = 0 - for fv in feature_views: - if fv.ttl and isinstance(fv.ttl, timedelta): - max_ttl_seconds = max(max_ttl_seconds, int(fv.ttl.total_seconds())) - start_date: datetime = ( - end_date - timedelta(seconds=max_ttl_seconds) - if max_ttl_seconds > 0 - else end_date - timedelta(days=30) - ) - else: - start_date = start_date_opt - return (start_date, end_date) - - def _gather_all_entities( fv_query_contexts: List[offline_utils.FeatureViewQueryContext], ) -> List[str]: diff --git a/sdk/python/feast/infra/offline_stores/dask.py b/sdk/python/feast/infra/offline_stores/dask.py index ddb1efa9262..be430f87c90 100644 --- a/sdk/python/feast/infra/offline_stores/dask.py +++ b/sdk/python/feast/infra/offline_stores/dask.py @@ -1,6 +1,6 @@ import os import uuid -from datetime import datetime, timedelta, timezone +from datetime import datetime, timezone from pathlib import Path from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Union @@ -37,7 +37,10 @@ from feast.on_demand_feature_view import OnDemandFeatureView from feast.repo_config import FeastConfigBaseModel, RepoConfig from feast.saved_dataset import SavedDatasetStorage -from feast.utils import _get_requested_feature_views_to_features_dict, make_tzaware +from feast.utils import ( + _get_requested_feature_views_to_features_dict, + compute_non_entity_date_range, +) # DaskRetrievalJob will cast string objects to string[pyarrow] from dask version 2023.7.1 # This is not the desired behavior for our use case, so we set the convert-string option to False @@ -143,36 +146,14 @@ def get_historical_features( for fv in feature_views: assert isinstance(fv.batch_source, FileSource) - # Allow non-entity mode using start/end timestamps to enable bounded retrievals without an input entity_df. - # This synthesizes a minimal entity_df solely to drive the existing join and metadata plumbing without - # incurring source scans here; actual pushdowns can be layered in follow-ups if needed. - start_date: Optional[datetime] = kwargs.get("start_date", None) - end_date: Optional[datetime] = kwargs.get("end_date", None) non_entity_mode = entity_df is None if non_entity_mode: - # Default end_date to current time (UTC) to keep behavior predictable without extra parameters. - end_date = ( - make_tzaware(end_date) if end_date else datetime.now(timezone.utc) + start_date, end_date = compute_non_entity_date_range( + feature_views, + start_date=kwargs.get("start_date"), + end_date=kwargs.get("end_date"), ) - - # When start_date is not provided, choose a conservative lower bound using max TTL, otherwise fall back. - if start_date is None: - max_ttl_seconds = 0 - for fv in feature_views: - if fv.ttl and isinstance(fv.ttl, timedelta): - max_ttl_seconds = max( - max_ttl_seconds, int(fv.ttl.total_seconds()) - ) - if max_ttl_seconds > 0: - start_date = end_date - timedelta(seconds=max_ttl_seconds) - else: - # Keep default window bounded to avoid unbounded scans by default. - start_date = end_date - timedelta(days=30) - start_date = make_tzaware(start_date) - - # Minimal synthetic entity_df: one timestamp row; join keys are not materialized here on purpose to avoid - # accidental dependence on specific feature view schemas at this layer. entity_df = pd.DataFrame( {DEFAULT_ENTITY_DF_EVENT_TIMESTAMP_COL: [end_date]} ) diff --git a/sdk/python/feast/utils.py b/sdk/python/feast/utils.py index 24d9d2f89a4..898cda45967 100644 --- a/sdk/python/feast/utils.py +++ b/sdk/python/feast/utils.py @@ -4,7 +4,7 @@ import typing import warnings from collections import Counter, defaultdict -from datetime import datetime, timezone +from datetime import datetime, timedelta, timezone from pathlib import Path from typing import ( Any, @@ -72,6 +72,38 @@ def make_tzaware(t: datetime) -> datetime: return t +def compute_non_entity_date_range( + feature_views: List["FeatureView"], + start_date: Optional[datetime] = None, + end_date: Optional[datetime] = None, + default_window_days: int = 30, +) -> Tuple[datetime, datetime]: + + if end_date is None: + end_date = datetime.now(tz=timezone.utc) + else: + end_date = make_tzaware(end_date) + + if start_date is None: + max_ttl_seconds = max( + ( + int(fv.ttl.total_seconds()) + for fv in feature_views + if fv.ttl and isinstance(fv.ttl, timedelta) + ), + default=0, + ) + start_date = end_date - timedelta( + seconds=max_ttl_seconds + if max_ttl_seconds > 0 + else default_window_days * 86400 + ) + else: + start_date = make_tzaware(start_date) + + return start_date, end_date + + def make_df_tzaware(t: pd.DataFrame) -> pd.DataFrame: """Make all datetime type columns tzaware; leave everything else intact.""" df = t.copy() # don't modify incoming dataframe inplace diff --git a/sdk/python/tests/unit/infra/offline_stores/test_dask_non_entity.py b/sdk/python/tests/unit/infra/offline_stores/test_dask_non_entity.py index f3d78ff5a9b..4f8ad322eee 100644 --- a/sdk/python/tests/unit/infra/offline_stores/test_dask_non_entity.py +++ b/sdk/python/tests/unit/infra/offline_stores/test_dask_non_entity.py @@ -311,7 +311,7 @@ def test_non_entity_mode_with_end_date_only_calculates_start_from_ttl( # Latest value should be 0.3 (from 2023-01-07) assert 0.3 in driver1_data["conv_rate"].values - @patch("feast.infra.offline_stores.dask.datetime") + @patch("feast.utils.datetime") def test_no_dates_provided_defaults_to_current_time_and_filters_data( self, mock_datetime, monkeypatch ): From 898278aab218066ec616321dd7c0045afd948a4c Mon Sep 17 00:00:00 2001 From: Nikhil Kathole Date: Wed, 25 Mar 2026 19:44:38 +0530 Subject: [PATCH 18/37] feat: Add ServiceMonitor auto-generation for Prometheus discovery (#6126) * feat: Add ServiceMonitor auto-generation for Prometheus discovery Signed-off-by: ntkathole * fix: Server-side apply Signed-off-by: ntkathole --------- Signed-off-by: ntkathole --- infra/feast-operator/config/rbac/role.yaml | 10 ++ infra/feast-operator/dist/install.yaml | 10 ++ infra/feast-operator/go.mod | 53 +++--- infra/feast-operator/go.sum | 131 ++++++-------- .../controller/featurestore_controller.go | 12 ++ .../controller/services/service_monitor.go | 117 ++++++++++++ .../services/service_monitor_test.go | 168 ++++++++++++++++++ .../internal/controller/services/services.go | 3 + .../controller/services/suite_test.go | 4 + .../internal/controller/services/util.go | 11 +- 10 files changed, 420 insertions(+), 99 deletions(-) create mode 100644 infra/feast-operator/internal/controller/services/service_monitor.go create mode 100644 infra/feast-operator/internal/controller/services/service_monitor_test.go diff --git a/infra/feast-operator/config/rbac/role.yaml b/infra/feast-operator/config/rbac/role.yaml index 70322460f0f..6b8fd7d60c5 100644 --- a/infra/feast-operator/config/rbac/role.yaml +++ b/infra/feast-operator/config/rbac/role.yaml @@ -136,6 +136,16 @@ rules: verbs: - get - list +- apiGroups: + - monitoring.coreos.com + resources: + - servicemonitors + verbs: + - create + - delete + - get + - list + - patch - watch - apiGroups: - policy diff --git a/infra/feast-operator/dist/install.yaml b/infra/feast-operator/dist/install.yaml index ef551fef345..57a023b4b95 100644 --- a/infra/feast-operator/dist/install.yaml +++ b/infra/feast-operator/dist/install.yaml @@ -20431,6 +20431,16 @@ rules: verbs: - get - list +- apiGroups: + - monitoring.coreos.com + resources: + - servicemonitors + verbs: + - create + - delete + - get + - list + - patch - watch - apiGroups: - policy diff --git a/infra/feast-operator/go.mod b/infra/feast-operator/go.mod index 3e41f468d68..7c60279b27b 100644 --- a/infra/feast-operator/go.mod +++ b/infra/feast-operator/go.mod @@ -3,35 +3,39 @@ module github.com/feast-dev/feast/infra/feast-operator go 1.22.9 require ( - github.com/onsi/ginkgo/v2 v2.17.1 - github.com/onsi/gomega v1.32.0 + github.com/onsi/ginkgo/v2 v2.17.2 + github.com/onsi/gomega v1.33.1 github.com/openshift/api v0.0.0-20240912201240-0a8800162826 // release-4.17 gopkg.in/yaml.v3 v3.0.1 - k8s.io/api v0.30.1 - k8s.io/apimachinery v0.30.1 - k8s.io/client-go v0.30.1 + k8s.io/api v0.30.2 + k8s.io/apimachinery v0.30.2 + k8s.io/client-go v0.30.2 sigs.k8s.io/controller-runtime v0.18.4 ) +require ( + github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0 + k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 +) + require ( github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/cenkalti/backoff/v4 v4.2.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/emicklei/go-restful/v3 v3.11.0 // indirect - github.com/evanphx/json-patch v4.12.0+incompatible // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/emicklei/go-restful/v3 v3.12.1 // indirect github.com/evanphx/json-patch/v5 v5.9.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/go-logr/logr v1.4.1 // indirect + github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-logr/zapr v1.3.0 // indirect - github.com/go-openapi/jsonpointer v0.19.6 // indirect - github.com/go-openapi/jsonreference v0.20.2 // indirect - github.com/go-openapi/swag v0.22.3 // indirect - github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect + github.com/go-openapi/jsonreference v0.21.0 // indirect + github.com/go-openapi/swag v0.23.0 // indirect + github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect @@ -39,8 +43,8 @@ require ( github.com/google/gnostic-models v0.6.8 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/gofuzz v1.2.0 // indirect - github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect - github.com/google/uuid v1.3.0 // indirect + github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect github.com/imdario/mergo v0.3.6 // indirect github.com/josharian/intern v1.0.0 // indirect @@ -51,6 +55,7 @@ require ( github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/pkg/errors v0.9.1 // indirect + github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.75.0 // indirect github.com/prometheus/client_golang v1.18.0 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.45.0 // indirect @@ -69,27 +74,25 @@ require ( go.uber.org/zap v1.26.0 // indirect golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect golang.org/x/net v0.33.0 // indirect - golang.org/x/oauth2 v0.12.0 // indirect + golang.org/x/oauth2 v0.21.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect golang.org/x/text v0.21.0 // indirect - golang.org/x/time v0.3.0 // indirect + golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect - google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect google.golang.org/grpc v1.58.3 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - k8s.io/apiextensions-apiserver v0.30.1 // indirect - k8s.io/apiserver v0.30.1 // indirect - k8s.io/component-base v0.30.1 // indirect - k8s.io/klog/v2 v2.120.1 // indirect - k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect - k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect + k8s.io/apiextensions-apiserver v0.30.2 // indirect + k8s.io/apiserver v0.30.2 // indirect + k8s.io/component-base v0.30.2 // indirect + k8s.io/klog/v2 v2.130.1 // indirect + k8s.io/kube-openapi v0.0.0-20240620174524-b456828f718b // indirect sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect diff --git a/infra/feast-operator/go.sum b/infra/feast-operator/go.sum index ef5d6204916..a95f53739b5 100644 --- a/infra/feast-operator/go.sum +++ b/infra/feast-operator/go.sum @@ -8,17 +8,14 @@ github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqy github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= -github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= -github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU= +github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls= +github.com/evanphx/json-patch v5.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0/FOJfg= github.com/evanphx/json-patch/v5 v5.9.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= @@ -26,27 +23,26 @@ github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg= -github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= -github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= -github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= -github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= -github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= -github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= +github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ= +github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/cel-go v0.17.8 h1:j9m730pMZt1Fc4oKhCLUHfjj6527LuhYcYw0Rl8gqto= @@ -59,13 +55,12 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 h1:k7nVchz72niMH6YLQNvHSdIE7iqsQxK1P41mySCvssg= +github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0/go.mod h1:YN5jB8ie0yfIUg6VvR9Kz84aCaG7AsGZnLjhHbUqwPg= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.6 h1:xTNEAn+kxVO7dTZGu0CegyqKZmoWFI0rF8UxjlB2d28= github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= @@ -74,11 +69,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -92,16 +84,21 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/onsi/ginkgo/v2 v2.17.1 h1:V++EzdbhI4ZV4ev0UTIj0PzhzOcReJFyJaLjtSF55M8= -github.com/onsi/ginkgo/v2 v2.17.1/go.mod h1:llBI3WDLL9Z6taip6f33H76YcWtJv+7R3HigUjbIBOs= -github.com/onsi/gomega v1.32.0 h1:JRYU78fJ1LPxlckP6Txi/EYqJvjtMrDC04/MM5XRHPk= -github.com/onsi/gomega v1.32.0/go.mod h1:a4x4gW6Pz2yK1MAmvluYme5lvYTn61afQ2ETw/8n4Lg= +github.com/onsi/ginkgo/v2 v2.17.2 h1:7eMhcy3GimbsA3hEnVKdw/PQM9XN9krpKVXsZdph0/g= +github.com/onsi/ginkgo/v2 v2.17.2/go.mod h1:nP2DPOQoNsQmsVyv5rDA8JkXQoCs6goXIvr/PRJ1eCc= +github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk= +github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0= github.com/openshift/api v0.0.0-20240912201240-0a8800162826 h1:A8D9SN/hJUwAbdO0rPCVTqmuBOctdgurr53gK701SYo= github.com/openshift/api v0.0.0-20240912201240-0a8800162826/go.mod h1:OOh6Qopf21pSzqNVCB5gomomBXb8o5sGKZxG2KNpaXM= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.75.0 h1:62MgqpTrtjNd8cc0RJSFJ1OHqgSrThgHehGVuQaF/fc= +github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.75.0/go.mod h1:XYrdZw5dW12Cjkt4ndbeNZZTBp4UCHtW0ccR9+sTtPU= +github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0 h1:QcchdrYyQ9qRY0KZlEjx6gYUjPOvkZDbzOlHMp4ix88= +github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0/go.mod h1:ptPuQIiTdOvagifFhojZSJ/8VinU3/l7gOQ+Y6M0aqI= github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk= github.com/prometheus/client_golang v1.18.0/go.mod h1:T+GXkCk5wSJyOqMIzVgvvjFDlkOQntgjkJWKrN5txjA= github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= @@ -110,23 +107,17 @@ github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lne github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stoewer/go-strcase v1.2.0 h1:Z2iHWqGXH00XYgqDmNgQbIBxf3wrNq0F3feEy0ainaU= github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.44.0 h1:KfYpVmrjI7JuToy5k8XV3nkapjWx48k4E4JOtVstzQI= @@ -159,14 +150,13 @@ golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e/go.mod h1:Kr81I6Kryrl9sr8s2F golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= -golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= -golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= +golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= +golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -174,19 +164,17 @@ golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= -golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= @@ -199,8 +187,6 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 h1:L6iMMGrtzgHsWofoFcihmDEMYeDR9KN/ThbPWGrh++g= google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8= google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e h1:z3vDksarJxsAKM5dmEGv0GHwE2hKJ096wZra71Vs4sw= @@ -209,8 +195,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= google.golang.org/grpc v1.58.3 h1:BjnpXut1btbtgN/6sp+brB2Kbm2LjNXnidYujAVbSoQ= google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -220,27 +206,26 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.30.1 h1:kCm/6mADMdbAxmIh0LBjS54nQBE+U4KmbCfIkF5CpJY= -k8s.io/api v0.30.1/go.mod h1:ddbN2C0+0DIiPntan/bye3SW3PdwLa11/0yqwvuRrJM= -k8s.io/apiextensions-apiserver v0.30.1 h1:4fAJZ9985BmpJG6PkoxVRpXv9vmPUOVzl614xarePws= -k8s.io/apiextensions-apiserver v0.30.1/go.mod h1:R4GuSrlhgq43oRY9sF2IToFh7PVlF1JjfWdoG3pixk4= -k8s.io/apimachinery v0.30.1 h1:ZQStsEfo4n65yAdlGTfP/uSHMQSoYzU/oeEbkmF7P2U= -k8s.io/apimachinery v0.30.1/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc= -k8s.io/apiserver v0.30.1 h1:BEWEe8bzS12nMtDKXzCF5Q5ovp6LjjYkSp8qOPk8LZ8= -k8s.io/apiserver v0.30.1/go.mod h1:i87ZnQ+/PGAmSbD/iEKM68bm1D5reX8fO4Ito4B01mo= -k8s.io/client-go v0.30.1 h1:uC/Ir6A3R46wdkgCV3vbLyNOYyCJ8oZnjtJGKfytl/Q= -k8s.io/client-go v0.30.1/go.mod h1:wrAqLNs2trwiCH/wxxmT/x3hKVH9PuV0GGW0oDoHVqc= -k8s.io/component-base v0.30.1 h1:bvAtlPh1UrdaZL20D9+sWxsJljMi0QZ3Lmw+kmZAaxQ= -k8s.io/component-base v0.30.1/go.mod h1:e/X9kDiOebwlI41AvBHuWdqFriSRrX50CdwA9TFaHLI= -k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= -k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98= -k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI= -k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/api v0.30.2 h1:+ZhRj+28QT4UOH+BKznu4CBgPWgkXO7XAvMcMl0qKvI= +k8s.io/api v0.30.2/go.mod h1:ULg5g9JvOev2dG0u2hig4Z7tQ2hHIuS+m8MNZ+X6EmI= +k8s.io/apiextensions-apiserver v0.30.2 h1:l7Eue2t6QiLHErfn2vwK4KgF4NeDgjQkCXtEbOocKIE= +k8s.io/apiextensions-apiserver v0.30.2/go.mod h1:lsJFLYyK40iguuinsb3nt+Sj6CmodSI4ACDLep1rgjw= +k8s.io/apimachinery v0.30.2 h1:fEMcnBj6qkzzPGSVsAZtQThU62SmQ4ZymlXRC5yFSCg= +k8s.io/apimachinery v0.30.2/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc= +k8s.io/apiserver v0.30.2 h1:ACouHiYl1yFI2VFI3YGM+lvxgy6ir4yK2oLOsLI1/tw= +k8s.io/apiserver v0.30.2/go.mod h1:BOTdFBIch9Sv0ypSEcUR6ew/NUFGocRFNl72Ra7wTm8= +k8s.io/client-go v0.30.2 h1:sBIVJdojUNPDU/jObC+18tXWcTJVcwyqS9diGdWHk50= +k8s.io/client-go v0.30.2/go.mod h1:JglKSWULm9xlJLx4KCkfLLQ7XwtlbflV6uFFSHTMgVs= +k8s.io/component-base v0.30.2 h1:pqGBczYoW1sno8q9ObExUqrYSKhtE5rW3y6gX88GZII= +k8s.io/component-base v0.30.2/go.mod h1:yQLkQDrkK8J6NtP+MGJOws+/PPeEXNpwFixsUI7h/OE= +k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= +k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= +k8s.io/kube-openapi v0.0.0-20240620174524-b456828f718b h1:Q9xmGWBvOGd8UJyccgpYlLosk/JlfP3xQLNkQlHJeXw= +k8s.io/kube-openapi v0.0.0-20240620174524-b456828f718b/go.mod h1:UxDHUPsUwTOOxSU+oXURfFBcAS6JwiRXTYqYwfuGowc= +k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 h1:jgGTlFYnhF1PM1Ax/lAlxUPE+KfCIXHaathvJg1C3ak= +k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 h1:/U5vjBbQn3RChhv7P11uhYvCSm5G2GaIi5AIGBS6r4c= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0/go.mod h1:z7+wmGM2dfIiLRfrC6jb5kV2Mq/sK1ZP303cxzkV5Y4= sigs.k8s.io/controller-runtime v0.18.4 h1:87+guW1zhvuPLh1PHybKdYFLU0YJp4FhJRmiHvm5BZw= diff --git a/infra/feast-operator/internal/controller/featurestore_controller.go b/infra/feast-operator/internal/controller/featurestore_controller.go index deaa2651f6f..54a7211b9e8 100644 --- a/infra/feast-operator/internal/controller/featurestore_controller.go +++ b/infra/feast-operator/internal/controller/featurestore_controller.go @@ -30,7 +30,9 @@ import ( apierrors "k8s.io/apimachinery/pkg/api/errors" apimeta "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/types" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" @@ -73,6 +75,7 @@ type FeatureStoreReconciler struct { // +kubebuilder:rbac:groups=batch,resources=cronjobs,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=policy,resources=poddisruptionbudgets,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=monitoring.coreos.com,resources=servicemonitors,verbs=get;list;watch;create;patch;delete // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state. @@ -360,6 +363,15 @@ func (r *FeatureStoreReconciler) SetupWithManager(mgr ctrl.Manager) error { if services.IsOpenShift() { bldr = bldr.Owns(&routev1.Route{}) } + if services.HasServiceMonitorCRD() { + sm := &unstructured.Unstructured{} + sm.SetGroupVersionKind(schema.GroupVersionKind{ + Group: "monitoring.coreos.com", + Version: "v1", + Kind: "ServiceMonitor", + }) + bldr = bldr.Owns(sm) + } return bldr.Complete(r) diff --git a/infra/feast-operator/internal/controller/services/service_monitor.go b/infra/feast-operator/internal/controller/services/service_monitor.go new file mode 100644 index 00000000000..8de4d131289 --- /dev/null +++ b/infra/feast-operator/internal/controller/services/service_monitor.go @@ -0,0 +1,117 @@ +/* +Copyright 2026 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package services + +import ( + "encoding/json" + + feastdevv1 "github.com/feast-dev/feast/infra/feast-operator/api/v1" + monitoringv1apply "github.com/prometheus-operator/prometheus-operator/pkg/client/applyconfiguration/monitoring/v1" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "k8s.io/apimachinery/pkg/runtime/schema" + "k8s.io/apimachinery/pkg/types" + metav1apply "k8s.io/client-go/applyconfigurations/meta/v1" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/log" +) + +var serviceMonitorGVK = schema.GroupVersionKind{ + Group: "monitoring.coreos.com", + Version: "v1", + Kind: "ServiceMonitor", +} + +// createOrDeleteServiceMonitor reconciles the ServiceMonitor for the +// FeatureStore's online store metrics endpoint using Server-Side Apply. +// When the Prometheus Operator CRD is not present in the cluster, this is +// a no-op. When metrics are enabled on the online store, a ServiceMonitor +// is applied; otherwise any existing ServiceMonitor is deleted. +func (feast *FeastServices) createOrDeleteServiceMonitor() error { + if !hasServiceMonitorCRD { + return nil + } + + if feast.isOnlineStore() && feast.isMetricsEnabled(OnlineFeastType) { + return feast.applyServiceMonitor() + } + + return feast.deleteServiceMonitor() +} + +func (feast *FeastServices) applyServiceMonitor() error { + smApply := feast.buildServiceMonitorApplyConfig() + data, err := json.Marshal(smApply) + if err != nil { + return err + } + + sm := feast.initServiceMonitor() + logger := log.FromContext(feast.Handler.Context) + if err := feast.Handler.Client.Patch(feast.Handler.Context, sm, + client.RawPatch(types.ApplyPatchType, data), + client.FieldOwner(fieldManager), client.ForceOwnership); err != nil { + return err + } + logger.Info("Successfully applied", "ServiceMonitor", sm.GetName()) + + return nil +} + +func (feast *FeastServices) deleteServiceMonitor() error { + sm := feast.initServiceMonitor() + return feast.Handler.DeleteOwnedFeastObj(sm) +} + +func (feast *FeastServices) initServiceMonitor() *unstructured.Unstructured { + sm := &unstructured.Unstructured{} + sm.SetGroupVersionKind(serviceMonitorGVK) + sm.SetName(feast.GetFeastServiceName(OnlineFeastType)) + sm.SetNamespace(feast.Handler.FeatureStore.Namespace) + return sm +} + +// buildServiceMonitorApplyConfig constructs the fully desired ServiceMonitor +// state for Server-Side Apply. +func (feast *FeastServices) buildServiceMonitorApplyConfig() *monitoringv1apply.ServiceMonitorApplyConfiguration { + cr := feast.Handler.FeatureStore + objMeta := feast.GetObjectMetaType(OnlineFeastType) + + return monitoringv1apply.ServiceMonitor(objMeta.Name, objMeta.Namespace). + WithLabels(feast.getFeastTypeLabels(OnlineFeastType)). + WithOwnerReferences( + metav1apply.OwnerReference(). + WithAPIVersion(feastdevv1.GroupVersion.String()). + WithKind("FeatureStore"). + WithName(cr.Name). + WithUID(cr.UID). + WithController(true). + WithBlockOwnerDeletion(true), + ). + WithSpec(monitoringv1apply.ServiceMonitorSpec(). + WithEndpoints( + monitoringv1apply.Endpoint(). + WithPort("metrics"). + WithPath("/metrics"), + ). + WithSelector(metav1apply.LabelSelector(). + WithMatchLabels(map[string]string{ + NameLabelKey: cr.Name, + ServiceTypeLabelKey: string(OnlineFeastType), + }), + ), + ) +} diff --git a/infra/feast-operator/internal/controller/services/service_monitor_test.go b/infra/feast-operator/internal/controller/services/service_monitor_test.go new file mode 100644 index 00000000000..f6e7f87ebf9 --- /dev/null +++ b/infra/feast-operator/internal/controller/services/service_monitor_test.go @@ -0,0 +1,168 @@ +/* +Copyright 2026 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package services + +import ( + "context" + + feastdevv1 "github.com/feast-dev/feast/infra/feast-operator/api/v1" + "github.com/feast-dev/feast/infra/feast-operator/internal/controller/handler" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/types" + "k8s.io/utils/ptr" +) + +var _ = Describe("ServiceMonitor", func() { + var ( + featureStore *feastdevv1.FeatureStore + feast *FeastServices + typeNamespacedName types.NamespacedName + ctx context.Context + ) + + BeforeEach(func() { + ctx = context.Background() + typeNamespacedName = types.NamespacedName{ + Name: "sm-test-fs", + Namespace: "default", + } + + featureStore = &feastdevv1.FeatureStore{ + ObjectMeta: metav1.ObjectMeta{ + Name: typeNamespacedName.Name, + Namespace: typeNamespacedName.Namespace, + }, + Spec: feastdevv1.FeatureStoreSpec{ + FeastProject: "smtestproject", + Services: &feastdevv1.FeatureStoreServices{ + OnlineStore: &feastdevv1.OnlineStore{ + Server: &feastdevv1.ServerConfigs{ + ContainerConfigs: feastdevv1.ContainerConfigs{ + DefaultCtrConfigs: feastdevv1.DefaultCtrConfigs{ + Image: ptr.To("test-image"), + }, + }, + }, + }, + Registry: &feastdevv1.Registry{ + Local: &feastdevv1.LocalRegistryConfig{ + Server: &feastdevv1.RegistryServerConfigs{ + ServerConfigs: feastdevv1.ServerConfigs{ + ContainerConfigs: feastdevv1.ContainerConfigs{ + DefaultCtrConfigs: feastdevv1.DefaultCtrConfigs{ + Image: ptr.To("test-image"), + }, + }, + }, + GRPC: ptr.To(true), + }, + }, + }, + }, + }, + } + + Expect(k8sClient.Create(ctx, featureStore)).To(Succeed()) + + feast = &FeastServices{ + Handler: handler.FeastHandler{ + Client: k8sClient, + Context: ctx, + Scheme: k8sClient.Scheme(), + FeatureStore: featureStore, + }, + } + + Expect(feast.ApplyDefaults()).To(Succeed()) + applySpecToStatus(featureStore) + feast.refreshFeatureStore(ctx, typeNamespacedName) + }) + + AfterEach(func() { + testSetHasServiceMonitorCRD(false) + Expect(k8sClient.Delete(ctx, featureStore)).To(Succeed()) + }) + + Describe("initServiceMonitor", func() { + It("should create an unstructured ServiceMonitor with correct GVK and name", func() { + sm := feast.initServiceMonitor() + Expect(sm).NotTo(BeNil()) + Expect(sm.GetKind()).To(Equal("ServiceMonitor")) + Expect(sm.GetAPIVersion()).To(Equal("monitoring.coreos.com/v1")) + Expect(sm.GetName()).To(Equal(feast.GetFeastServiceName(OnlineFeastType))) + Expect(sm.GetNamespace()).To(Equal(featureStore.Namespace)) + }) + }) + + Describe("buildServiceMonitorApplyConfig", func() { + It("should build the correct SSA payload with labels, endpoints, selector, and owner reference", func() { + sm := feast.buildServiceMonitorApplyConfig() + + Expect(*sm.APIVersion).To(Equal("monitoring.coreos.com/v1")) + Expect(*sm.Kind).To(Equal("ServiceMonitor")) + Expect(*sm.Name).To(Equal(feast.GetFeastServiceName(OnlineFeastType))) + Expect(*sm.Namespace).To(Equal(featureStore.Namespace)) + + Expect(sm.Labels).To(HaveKeyWithValue(NameLabelKey, featureStore.Name)) + Expect(sm.Labels).To(HaveKeyWithValue(ServiceTypeLabelKey, string(OnlineFeastType))) + + Expect(sm.OwnerReferences).To(HaveLen(1)) + ownerRef := sm.OwnerReferences[0] + Expect(*ownerRef.APIVersion).To(Equal(feastdevv1.GroupVersion.String())) + Expect(*ownerRef.Kind).To(Equal("FeatureStore")) + Expect(*ownerRef.Name).To(Equal(featureStore.Name)) + Expect(*ownerRef.Controller).To(BeTrue()) + Expect(*ownerRef.BlockOwnerDeletion).To(BeTrue()) + + Expect(sm.Spec).NotTo(BeNil()) + Expect(sm.Spec.Endpoints).To(HaveLen(1)) + Expect(*sm.Spec.Endpoints[0].Port).To(Equal("metrics")) + Expect(*sm.Spec.Endpoints[0].Path).To(Equal("/metrics")) + + Expect(sm.Spec.Selector).NotTo(BeNil()) + Expect(sm.Spec.Selector.MatchLabels).To(HaveKeyWithValue(NameLabelKey, featureStore.Name)) + Expect(sm.Spec.Selector.MatchLabels).To(HaveKeyWithValue(ServiceTypeLabelKey, string(OnlineFeastType))) + }) + }) + + Describe("createOrDeleteServiceMonitor", func() { + It("should be a no-op when ServiceMonitor CRD is not available", func() { + testSetHasServiceMonitorCRD(false) + Expect(feast.createOrDeleteServiceMonitor()).To(Succeed()) + }) + + It("should not error when metrics is not enabled and CRD is unavailable", func() { + testSetHasServiceMonitorCRD(false) + featureStore.Status.Applied.Services.OnlineStore.Server.Metrics = ptr.To(false) + Expect(feast.createOrDeleteServiceMonitor()).To(Succeed()) + }) + }) + + Describe("HasServiceMonitorCRD", func() { + It("should return false by default", func() { + testSetHasServiceMonitorCRD(false) + Expect(HasServiceMonitorCRD()).To(BeFalse()) + }) + + It("should return true when set", func() { + testSetHasServiceMonitorCRD(true) + Expect(HasServiceMonitorCRD()).To(BeTrue()) + }) + }) +}) diff --git a/infra/feast-operator/internal/controller/services/services.go b/infra/feast-operator/internal/controller/services/services.go index 57587a50572..01491835dc1 100644 --- a/infra/feast-operator/internal/controller/services/services.go +++ b/infra/feast-operator/internal/controller/services/services.go @@ -101,6 +101,9 @@ func (feast *FeastServices) Deploy() error { if err := feast.deployCronJob(); err != nil { return err } + if err := feast.createOrDeleteServiceMonitor(); err != nil { + return err + } return nil } diff --git a/infra/feast-operator/internal/controller/services/suite_test.go b/infra/feast-operator/internal/controller/services/suite_test.go index a3d5bb3dae8..de1b75817ef 100644 --- a/infra/feast-operator/internal/controller/services/suite_test.go +++ b/infra/feast-operator/internal/controller/services/suite_test.go @@ -88,3 +88,7 @@ var _ = AfterSuite(func() { func testSetIsOpenShift() { isOpenShift = true } + +func testSetHasServiceMonitorCRD(val bool) { + hasServiceMonitorCRD = val +} diff --git a/infra/feast-operator/internal/controller/services/util.go b/infra/feast-operator/internal/controller/services/util.go index 04fcb9830a4..3c9fedbe49d 100644 --- a/infra/feast-operator/internal/controller/services/util.go +++ b/infra/feast-operator/internal/controller/services/util.go @@ -21,6 +21,7 @@ import ( ) var isOpenShift = false +var hasServiceMonitorCRD = false func IsRegistryServer(featureStore *feastdevv1.FeatureStore) bool { return IsLocalRegistry(featureStore) && featureStore.Status.Applied.Services.Registry.Local.Server != nil @@ -374,6 +375,12 @@ func IsOpenShift() bool { return isOpenShift } +// HasServiceMonitorCRD returns whether the monitoring.coreos.com API group +// (Prometheus Operator) is available in the cluster. +func HasServiceMonitorCRD() bool { + return hasServiceMonitorCRD +} + // SetIsOpenShift sets the global flag isOpenShift by the controller manager. // We don't need to keep fetching the API every reconciliation cycle that we need to know about the platform. func SetIsOpenShift(cfg *rest.Config) { @@ -393,7 +400,9 @@ func SetIsOpenShift(cfg *rest.Config) { for _, v := range apiList.Groups { if v.Name == "route.openshift.io" { isOpenShift = true - break + } + if v.Name == "monitoring.coreos.com" { + hasServiceMonitorCRD = true } } } From 66d0424ecd7eb2431f3090b74e0e1109afbb07ca Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Thu, 26 Mar 2026 20:26:56 +0530 Subject: [PATCH 19/37] Resolving checks issues while merging upstream in downstream Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- .secrets.baseline | 4 ++-- infra/feast-operator/config/rbac/role.yaml | 1 + infra/feast-operator/dist/install.yaml | 1 + infra/feast-operator/go.mod | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index 60522d04d1e..22e9b816e62 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -1156,7 +1156,7 @@ "filename": "infra/feast-operator/internal/controller/services/services.go", "hashed_secret": "36dc326eb15c7bdd8d91a6b87905bcea20b637d1", "is_verified": false, - "line_number": 181 + "line_number": 184 } ], "infra/feast-operator/internal/controller/services/tls_test.go": [ @@ -1539,5 +1539,5 @@ } ] }, - "generated_at": "2026-03-19T12:21:40Z" + "generated_at": "2026-03-26T14:12:54Z" } diff --git a/infra/feast-operator/config/rbac/role.yaml b/infra/feast-operator/config/rbac/role.yaml index 6b8fd7d60c5..ff969bda783 100644 --- a/infra/feast-operator/config/rbac/role.yaml +++ b/infra/feast-operator/config/rbac/role.yaml @@ -136,6 +136,7 @@ rules: verbs: - get - list + - watch - apiGroups: - monitoring.coreos.com resources: diff --git a/infra/feast-operator/dist/install.yaml b/infra/feast-operator/dist/install.yaml index 57a023b4b95..5223ad9f665 100644 --- a/infra/feast-operator/dist/install.yaml +++ b/infra/feast-operator/dist/install.yaml @@ -20431,6 +20431,7 @@ rules: verbs: - get - list + - watch - apiGroups: - monitoring.coreos.com resources: diff --git a/infra/feast-operator/go.mod b/infra/feast-operator/go.mod index 7c60279b27b..e259f5e7958 100644 --- a/infra/feast-operator/go.mod +++ b/infra/feast-operator/go.mod @@ -15,6 +15,7 @@ require ( require ( github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0 + k8s.io/apiextensions-apiserver v0.30.2 k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 ) @@ -26,6 +27,7 @@ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emicklei/go-restful/v3 v3.12.1 // indirect + github.com/evanphx/json-patch v5.9.0+incompatible // indirect github.com/evanphx/json-patch/v5 v5.9.0 // indirect github.com/felixge/httpsnoop v1.0.3 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -88,7 +90,6 @@ require ( google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - k8s.io/apiextensions-apiserver v0.30.2 // indirect k8s.io/apiserver v0.30.2 // indirect k8s.io/component-base v0.30.2 // indirect k8s.io/klog/v2 v2.130.1 // indirect From a6aeb6b9184d79c826fdae73d35a2f6b2ea4ff15 Mon Sep 17 00:00:00 2001 From: Srihari Date: Thu, 26 Mar 2026 13:38:54 +0530 Subject: [PATCH 20/37] Refactor Feast E2E rhoai Upgrade tests Signed-off-by: Srihari --- .../test/e2e_rhoai/feast_postupgrade_test.go | 14 +- .../test/e2e_rhoai/feast_preupgrade_test.go | 28 +--- .../test/e2e_rhoai/resources/feast_s3.yaml | 43 +++++ .../test/e2e_rhoai/utils/util.go | 147 ++++++++++++++++-- 4 files changed, 192 insertions(+), 40 deletions(-) create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/feast_s3.yaml diff --git a/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go b/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go index 9ec89d43e09..ad8c14295c4 100644 --- a/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go +++ b/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go @@ -28,8 +28,8 @@ var _ = Describe("Feast PostUpgrade scenario Testing", Ordered, func() { const ( namespace = "test-ns-feast-upgrade" testDir = "/test/e2e_rhoai" - feastDeploymentName = FeastPrefix + "credit-scoring" - feastCRName = "credit-scoring" + feastDeploymentName = FeastPrefix + "test-s3" + feastCRName = "test-s3" ) AfterAll(func() { @@ -41,16 +41,16 @@ var _ = Describe("Feast PostUpgrade scenario Testing", Ordered, func() { By("Verify Feature Store CR is in Ready state") ValidateFeatureStoreCRStatus(namespace, feastCRName) - By("Running `feast apply` and `feast materialize-incremental` to validate registry definitions") - VerifyApplyFeatureStoreDefinitions(namespace, feastCRName, feastDeploymentName) + By("Running `feast apply` and `feast materialize-incremental` to validate registry definitions (S3 / driver_ranking)") + VerifyApplyFeatureStoreDefinitionsS3(namespace, feastCRName, feastDeploymentName) - By("Validating Feast entity, feature, and feature view presence") - VerifyFeastMethods(namespace, feastDeploymentName, testDir) + By("Validating Feast project list for driver_ranking") + VerifyFeastMethodsForDriverRanking(namespace, feastDeploymentName, testDir) } // This context verifies that a pre-created Feast FeatureStore CR continues to function as expected // after an upgrade. It validates `feast apply`, registry sync, feature retrieval, and model execution. Context("Feast post Upgrade Test", func() { - It("Should create and run a feastPostUpgrade test scenario feast apply and materialize functionality successfully", runPostUpgradeTest) + It("Should run a feastPostUpgrade test scenario for S3 test-s3 FeatureStore apply and materialize successfully", runPostUpgradeTest) }) }) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go b/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go index 5ae44468a81..16e9796c820 100644 --- a/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go +++ b/infra/feast-operator/test/e2e_rhoai/feast_preupgrade_test.go @@ -26,32 +26,17 @@ import ( var _ = Describe("Feast PreUpgrade scenario Testing", Ordered, func() { const ( - namespace = "test-ns-feast-upgrade" - replaceNamespace = "test-ns-feast" - testDir = "/test/e2e_rhoai" - feastDeploymentName = FeastPrefix + "credit-scoring" - feastCRName = "credit-scoring" + namespace = "test-ns-feast-upgrade" + testDir = "/test/e2e_rhoai" ) - filesToUpdateNamespace := []string{ - "test/testdata/feast_integration_test_crs/postgres.yaml", - "test/testdata/feast_integration_test_crs/redis.yaml", - "test/testdata/feast_integration_test_crs/feast.yaml", - } - BeforeAll(func() { By(fmt.Sprintf("Creating test namespace: %s", namespace)) Expect(CreateNamespace(namespace, testDir)).To(Succeed()) fmt.Printf("Namespace %s created successfully\n", namespace) - - By("Replacing placeholder namespace in CR YAMLs for test setup") - Expect(ReplaceNamespaceInYamlFilesInPlace(filesToUpdateNamespace, replaceNamespace, namespace)).To(Succeed()) }) AfterAll(func() { - By("Restoring original namespace in CR YAMLs") - Expect(ReplaceNamespaceInYamlFilesInPlace(filesToUpdateNamespace, namespace, replaceNamespace)).To(Succeed()) - // Only delete namespace on failure; successful runs preserve resources for post-upgrade verification if CurrentSpecReport().Failed() { By(fmt.Sprintf("Deleting test namespace: %s", namespace)) @@ -61,15 +46,12 @@ var _ = Describe("Feast PreUpgrade scenario Testing", Ordered, func() { }) runPreUpgradeTest := func() { - By("Applying Feast infra manifests and verifying setup") - ApplyFeastInfraManifestsAndVerify(namespace, testDir) - - By("Applying and validating the credit-scoring FeatureStore CR") - ApplyFeastYamlAndVerify(namespace, testDir, feastDeploymentName, feastCRName, "test/testdata/feast_integration_test_crs/feast.yaml") + By("Applying Feast S3 manifest (no postgres/redis) and verifying setup") + ApplyFeastS3YamlAndVerify(namespace, testDir, "test/e2e_rhoai/resources/feast_s3.yaml", "test-s3") } // This context ensures the Feast CR setup is functional prior to any upgrade Context("Feast Pre Upgrade Test", func() { - It("Should create and run a feastPreUpgrade test scenario feast credit-scoring CR setup successfully", runPreUpgradeTest) + It("Should create and run a feastPreUpgrade test scenario feast S3 (test-s3) FeatureStore setup successfully", runPreUpgradeTest) }) }) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast_s3.yaml b/infra/feast-operator/test/e2e_rhoai/resources/feast_s3.yaml new file mode 100644 index 00000000000..9855c590ffc --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast_s3.yaml @@ -0,0 +1,43 @@ +kind: Secret +apiVersion: v1 +metadata: + name: s3-credentials-secret + namespace: test-ns-feast-upgrade +stringData: + AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} + AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} + AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION} + dynamodb: | + type: dynamodb + region: ${AWS_DEFAULT_REGION} +--- +apiVersion: feast.dev/v1 +kind: FeatureStore +metadata: + name: test-s3 + namespace: test-ns-feast-upgrade + labels: + feature-store-ui: enabled +spec: + feastProject: driver_ranking + services: + onlineStore: + persistence: + store: + type: dynamodb + secretRef: + name: s3-credentials-secret + server: + envFrom: + - secretRef: + name: s3-credentials-secret + registry: + local: + persistence: + file: + path: s3://${AWS_S3_BUCKET}/feast-test/driver_ranking/registry.pb + server: + envFrom: + - secretRef: + name: s3-credentials-secret + restAPI: true diff --git a/infra/feast-operator/test/e2e_rhoai/utils/util.go b/infra/feast-operator/test/e2e_rhoai/utils/util.go index db56ff8c9ac..15606a70cc8 100644 --- a/infra/feast-operator/test/e2e_rhoai/utils/util.go +++ b/infra/feast-operator/test/e2e_rhoai/utils/util.go @@ -17,6 +17,11 @@ const ( FeastPrefix = "feast-" ) +// logCronJobCommands prints CronJob command list read from FeatureStore CR status. +func logCronJobCommands(commands string) { + fmt.Printf("CronJob commands from CR status:\n %s\n\n", strings.TrimSpace(commands)) +} + func ListConfigMaps(namespace string) ([]string, error) { cmd := exec.Command("kubectl", "get", "cm", "-n", namespace, "-o", "jsonpath={range .items[*]}{.metadata.name}{\"\\n\"}{end}") var out bytes.Buffer @@ -223,6 +228,75 @@ func ApplyFeastInfraManifestsAndVerify(namespace string, testDir string) { CheckDeployment(namespace, "redis") } +// substituteFeastS3Credentials replaces ${AWS_ACCESS_KEY_ID}, ${AWS_S3_BUCKET}, etc. from process environment variables. +// Returns an error if any required variable is unset or whitespace-only so the test fails before kubectl apply. +func substituteFeastS3Credentials(content string) (string, error) { + required := []struct { + env, placeholder string + }{ + {"AWS_ACCESS_KEY_ID", "${AWS_ACCESS_KEY_ID}"}, + {"AWS_SECRET_ACCESS_KEY", "${AWS_SECRET_ACCESS_KEY}"}, + {"AWS_DEFAULT_REGION", "${AWS_DEFAULT_REGION}"}, + {"AWS_S3_BUCKET", "${AWS_S3_BUCKET}"}, + } + repl := make(map[string]string, len(required)) + var missing []string + for _, r := range required { + v := strings.TrimSpace(os.Getenv(r.env)) + if v == "" { + missing = append(missing, r.env) + continue + } + repl[r.placeholder] = v + } + if len(missing) > 0 { + return "", fmt.Errorf( + "feast S3 e2e requires non-empty environment variables: %s", + strings.Join(missing, ", "), + ) + } + out := content + for ph, v := range repl { + out = strings.ReplaceAll(out, ph, v) + } + return out, nil +} + +// ApplyFeastS3YamlAndVerify applies the S3-based FeatureStore manifest (no postgres/redis), +// waits for deployment FeastPrefix+feastCRName, validates CR Ready and feature_store.yaml for S3 driver_ranking. +// feastCRName must match FeatureStore metadata.name in the manifest (e.g. "test-s3"). +func ApplyFeastS3YamlAndVerify(namespace string, testDir string, feastS3YamlPath string, feastCRName string) { + By("Applying Feast S3 manifest (secrets + FeatureStore CR)") + data, err := os.ReadFile(feastS3YamlPath) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + rendered, err := substituteFeastS3Credentials(string(data)) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + tmp, err := os.CreateTemp("", "feast-s3-rendered-*.yaml") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + tmpPath := tmp.Name() + defer func() { + if rmErr := os.Remove(tmpPath); rmErr != nil { + fmt.Fprintf(os.Stderr, "warning: could not remove temp file %s: %v\n", tmpPath, rmErr) + } + }() + _, err = tmp.WriteString(rendered) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + ExpectWithOffset(1, tmp.Close()).To(Succeed()) + + cmd := exec.Command("kubectl", "apply", "-n", namespace, "-f", tmpPath) + _, err = testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + fmt.Printf("Applied rendered Feast S3 manifest to namespace %q\n", namespace) + + feastDeploymentName := FeastPrefix + feastCRName + CheckDeployment(namespace, feastDeploymentName) + ValidateFeatureStoreCRStatus(namespace, feastCRName) + + By("Verifying client feature_store.yaml for S3-backed registry and driver_ranking project") + validateFeatureStoreYamlS3(namespace, feastDeploymentName) +} + // CheckDeployment verifies the specified deployment exists and is in the "Available" state. func CheckDeployment(namespace, name string) { By(fmt.Sprintf("Waiting for %s deployment to become available", name)) @@ -235,30 +309,45 @@ func CheckDeployment(namespace, name string) { // validate that the status of the FeatureStore CR is "Ready". func ValidateFeatureStoreCRStatus(namespace, crName string) { + lastObservation := "no observation captured yet" Eventually(func() string { cmd := exec.Command("kubectl", "get", "feast", crName, "-n", namespace, "-o", "jsonpath={.status.phase}") - output, err := cmd.Output() + output, err := cmd.CombinedOutput() if err != nil { + lastObservation = fmt.Sprintf("kubectl get failed: %v; output: %s", err, strings.TrimSpace(string(output))) return "" } - return string(output) - }, "2m", "5s").Should(Equal("Ready"), "Feature Store CR did not reach 'Ready' state in time") + phase := strings.TrimSpace(string(output)) + lastObservation = fmt.Sprintf("status.phase=%q", phase) + return phase + }, "5m", "5s").Should( + Equal("Ready"), + fmt.Sprintf( + "Feature Store CR %s/%s did not reach 'Ready' state in time; last observation: %s", + namespace, crName, lastObservation, + ), + ) - fmt.Printf("✅ Feature Store CR %s/%s is in Ready state\n", namespace, crName) + fmt.Printf("Feature Store CR is Ready: %s/%s\n", namespace, crName) } -// validates the `feast apply` and `feast materialize-incremental commands were configured in the FeatureStore CR's CronJob config. -func VerifyApplyFeatureStoreDefinitions(namespace string, feastCRName string, feastDeploymentName string) { +// verifyApplyFeatureStoreCronJob checks CronJob commands on the FeatureStore CR and runs a one-off apply job with expected log substrings. +func verifyApplyFeatureStoreCronJob(namespace, feastCRName, feastDeploymentName, testDir string, expectedJobLogs []string) { By("Verify CronJob commands in FeatureStore CR") cmd := exec.Command("kubectl", "get", "-n", namespace, "feast/"+feastCRName, "-o", "jsonpath={.status.applied.cronJob.containerConfigs.commands}") output, err := cmd.CombinedOutput() Expect(err).NotTo(HaveOccurred(), fmt.Sprintf("Failed to fetch CronJob commands:\n%s", output)) commands := string(output) - fmt.Println("CronJob commands:", commands) + logCronJobCommands(commands) Expect(commands).To(ContainSubstring(`feast apply`)) Expect(commands).To(ContainSubstring(`feast materialize-incremental $(date -u +'%Y-%m-%dT%H:%M:%S')`)) - CreateAndVerifyJobFromCron(namespace, feastDeploymentName, "feast-test-apply", "", []string{ + CreateAndVerifyJobFromCron(namespace, feastDeploymentName, "feast-test-apply", testDir, expectedJobLogs) +} + +// validates the `feast apply` and `feast materialize-incremental commands were configured in the FeatureStore CR's CronJob config. +func VerifyApplyFeatureStoreDefinitions(namespace string, feastCRName string, feastDeploymentName string) { + verifyApplyFeatureStoreCronJob(namespace, feastCRName, feastDeploymentName, "", []string{ "No project found in the repository", "Applying changes for project credit_scoring_local", "Deploying infrastructure for credit_history", @@ -270,17 +359,27 @@ func VerifyApplyFeatureStoreDefinitions(namespace string, feastCRName string, fe }) } +// VerifyApplyFeatureStoreDefinitionsS3 validates the apply/materialize CronJob for the S3 + driver_ranking FeatureStore. +func VerifyApplyFeatureStoreDefinitionsS3(namespace string, feastCRName string, feastDeploymentName string) { + verifyApplyFeatureStoreCronJob(namespace, feastCRName, feastDeploymentName, "", []string{ + "Applying changes for project driver_ranking", + "Materializing", + }) +} + // Create a Job and verifies its logs contain expected substrings func CreateAndVerifyJobFromCron(namespace, cronName, jobName, testDir string, expectedLogSubstrings []string) { By(fmt.Sprintf("Creating Job %s from CronJob %s", jobName, cronName)) cmd := exec.Command("kubectl", "create", "job", "--from=cronjob/"+cronName, jobName, "-n", namespace) _, err := testutils.Run(cmd, testDir) ExpectWithOffset(1, err).NotTo(HaveOccurred()) + fmt.Printf("Created one-off job %q from CronJob %q\n", jobName, cronName) By("Waiting for Job completion") cmd = exec.Command("kubectl", "wait", "--for=condition=complete", "--timeout=5m", "job/"+jobName, "-n", namespace) _, err = testutils.Run(cmd, testDir) ExpectWithOffset(1, err).NotTo(HaveOccurred()) + fmt.Printf("Job %q completed successfully\n", jobName) By("Checking logs of completed job") cmd = exec.Command("kubectl", "logs", "job/"+jobName, "-n", namespace, "--all-containers=true") @@ -290,10 +389,15 @@ func CreateAndVerifyJobFromCron(namespace, cronName, jobName, testDir string, ex outputStr := string(output) ansi := regexp.MustCompile(`\x1b\[[0-9;]*m`) outputStr = ansi.ReplaceAllString(outputStr, "") + fmt.Printf("----- begin logs: job/%s namespace/%s -----\n%s\n----- end logs: job/%s -----\n", + jobName, namespace, strings.TrimRight(outputStr, "\n"), jobName) + for _, expected := range expectedLogSubstrings { - Expect(outputStr).To(ContainSubstring(expected)) + ExpectWithOffset(1, outputStr).To(ContainSubstring(expected), + fmt.Sprintf("job %q logs should contain substring %q", jobName, expected)) } - fmt.Printf("created Job %s and Verified expected Logs ", jobName) + fmt.Printf("Job %q: all %d expected log substring(s) found: %v\n\n", + jobName, len(expectedLogSubstrings), expectedLogSubstrings) } // validate the feature store yaml @@ -308,6 +412,17 @@ func validateFeatureStoreYaml(namespace, deployment string) { Expect(content).To(ContainSubstring("registry_type: sql")) } +func validateFeatureStoreYamlS3(namespace, deployment string) { + cmd := exec.Command("kubectl", "exec", "deploy/"+deployment, "-n", namespace, "-c", "online", "--", "cat", "feature_store.yaml") + output, err := cmd.CombinedOutput() + Expect(err).NotTo(HaveOccurred(), "Failed to read feature_store.yaml") + + content := string(output) + Expect(content).To(ContainSubstring("project: driver_ranking")) + Expect(content).To(ContainSubstring("s3://")) + fmt.Printf("feature_store.yaml in online pod: contains project driver_ranking and s3:// registry path\n") +} + // apply and verifies the Feast deployment becomes available, the CR status is "Ready func ApplyFeastYamlAndVerify(namespace string, testDir string, feastDeploymentName string, feastCRName string, feastYAMLFilePath string) { By("Applying Feast yaml for secrets and Feature store CR") @@ -400,6 +515,18 @@ func VerifyFeastMethods(namespace string, feastDeploymentName string, testDir st } } +// VerifyFeastMethodsForDriverRanking checks CLI output for the driver_ranking project (S3 registry). +func VerifyFeastMethodsForDriverRanking(namespace string, feastDeploymentName string, testDir string) { + cmd := exec.Command("kubectl", "exec", "deploy/"+feastDeploymentName, "-n", namespace, "-c", "online", "--", + "feast", "projects", "list") + output, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + fmt.Printf("Command: feast projects list\nOutput:\n%s\n", string(output)) + VerifyOutputContains(output, []string{"driver_ranking"}) + fmt.Printf("Assertion OK: output contains expected substring driver_ranking\n") +} + // ReplaceNamespaceInYaml reads a YAML file, replaces all existingNamespace with the actual namespace func ReplaceNamespaceInYamlFilesInPlace(filePaths []string, existingNamespace string, actualNamespace string) error { for _, filePath := range filePaths { From af11e8e27ec1b7ae3d6dd40439896b5274f92ec1 Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Tue, 31 Mar 2026 18:02:55 +0530 Subject: [PATCH 21/37] GHA for Auto Sync Master PRs to stable Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- .github/workflows/sync_stable_branch.yml | 106 +++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 .github/workflows/sync_stable_branch.yml diff --git a/.github/workflows/sync_stable_branch.yml b/.github/workflows/sync_stable_branch.yml new file mode 100644 index 00000000000..47cb5f40f55 --- /dev/null +++ b/.github/workflows/sync_stable_branch.yml @@ -0,0 +1,106 @@ +name: Sync to Stable Branch + +on: + pull_request: + types: + - closed + branches: + - master + +jobs: + cherry-pick-to-stable: + permissions: + contents: write + pull-requests: write + if: >- + github.event.pull_request.merged == true && + contains(github.event.pull_request.labels.*.name, 'sync-to-stable') + runs-on: ubuntu-latest + + env: + GH_TOKEN: ${{ secrets.SYNC_STABLE_PAT }} + PR_NUMBER: ${{ github.event.pull_request.number }} + MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }} + + steps: + - name: Checkout repository + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + fetch-depth: 0 + token: ${{ secrets.SYNC_STABLE_PAT }} + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Create cherry-pick branch + id: cherry-pick + run: | + BRANCH="auto-sync/stable/${PR_NUMBER}" + echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT" + + git checkout -b "$BRANCH" origin/stable + + # -m 1 handles merge commits by picking the first parent + if git cherry-pick -m 1 "$MERGE_SHA"; then + echo "conflict=false" >> "$GITHUB_OUTPUT" + else + git cherry-pick --abort || true + git commit --allow-empty -m "cherry-pick of #${PR_NUMBER} failed — manual resolution needed" + echo "conflict=true" >> "$GITHUB_OUTPUT" + fi + + git push origin "$BRANCH" --force + + - name: Create Pull Request + id: create-pr + env: + PR_TITLE: ${{ github.event.pull_request.title }} + SOURCE_PR_URL: ${{ github.event.pull_request.html_url }} + run: | + BRANCH="${{ steps.cherry-pick.outputs.branch }}" + CONFLICT="${{ steps.cherry-pick.outputs.conflict }}" + + if [ "$CONFLICT" = "true" ]; then + PR_URL=$(gh pr create \ + --base stable \ + --head "$BRANCH" \ + --title "sync(stable): ${PR_TITLE} (#${PR_NUMBER}) [CONFLICT]" \ + --body "## Auto-sync from master (PR #${PR_NUMBER}) + + Cherry-pick of ${SOURCE_PR_URL} **failed due to merge conflicts**. + + ### Manual resolution required + \`\`\`bash + git fetch origin + git checkout -B auto-sync/stable/${PR_NUMBER} origin/stable + git cherry-pick -m 1 ${MERGE_SHA} + # resolve conflicts, then: + git add . + git cherry-pick --continue + git push origin auto-sync/stable/${PR_NUMBER} --force + \`\`\`" \ + --label "sync-to-stable" \ + --label "needs-manual-resolution") + else + PR_URL=$(gh pr create \ + --base stable \ + --head "$BRANCH" \ + --title "sync(stable): ${PR_TITLE} (#${PR_NUMBER})" \ + --body "## Auto-sync from master (PR #${PR_NUMBER}) + + Cherry-pick of ${SOURCE_PR_URL} to \`stable\` branch. + + This PR was automatically created and will auto-merge after CI passes." \ + --label "sync-to-stable") + fi + + echo "pr_url=${PR_URL}" >> "$GITHUB_OUTPUT" + echo "Created PR: ${PR_URL}" + + - name: Enable auto-merge + if: steps.cherry-pick.outputs.conflict == 'false' + run: | + PR_URL="${{ steps.create-pr.outputs.pr_url }}" + gh pr merge "$PR_URL" --auto --squash From 89b5f18016e91b16cdffd024e086336823a966d3 Mon Sep 17 00:00:00 2001 From: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:43:50 +0530 Subject: [PATCH 22/37] fix: Related image pathch converted from index-based JSON to strategic merge Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> --- .../feast-operator.clusterserviceversion.yaml | 2 ++ .../default/related_image_fs_patch.tmpl | 30 +++++++++---------- .../default/related_image_fs_patch.yaml | 30 +++++++++---------- infra/feast-operator/dist/install.yaml | 4 +-- 4 files changed, 32 insertions(+), 34 deletions(-) diff --git a/infra/feast-operator/bundle/manifests/feast-operator.clusterserviceversion.yaml b/infra/feast-operator/bundle/manifests/feast-operator.clusterserviceversion.yaml index 11b7ceaf425..a4f0938c029 100644 --- a/infra/feast-operator/bundle/manifests/feast-operator.clusterserviceversion.yaml +++ b/infra/feast-operator/bundle/manifests/feast-operator.clusterserviceversion.yaml @@ -266,6 +266,8 @@ spec: command: - /manager env: + - name: GOMEMLIMIT + value: "230MiB" - name: RELATED_IMAGE_FEATURE_SERVER value: quay.io/feastdev/feature-server:0.61.0 - name: RELATED_IMAGE_CRON_JOB diff --git a/infra/feast-operator/config/default/related_image_fs_patch.tmpl b/infra/feast-operator/config/default/related_image_fs_patch.tmpl index 1a56d98af3b..11e127dab39 100644 --- a/infra/feast-operator/config/default/related_image_fs_patch.tmpl +++ b/infra/feast-operator/config/default/related_image_fs_patch.tmpl @@ -1,16 +1,14 @@ -- op: test - path: "/spec/template/spec/containers/0/env/1/name" - value: RELATED_IMAGE_FEATURE_SERVER -- op: replace - path: "/spec/template/spec/containers/0/env/1" - value: - name: RELATED_IMAGE_FEATURE_SERVER - value: ${FS_IMG} -- op: test - path: "/spec/template/spec/containers/0/env/2/name" - value: RELATED_IMAGE_CRON_JOB -- op: replace - path: "/spec/template/spec/containers/0/env/2" - value: - name: RELATED_IMAGE_CRON_JOB - value: ${CJ_IMG} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager +spec: + template: + spec: + containers: + - name: manager + env: + - name: RELATED_IMAGE_FEATURE_SERVER + value: ${FS_IMG} + - name: RELATED_IMAGE_CRON_JOB + value: ${CJ_IMG} diff --git a/infra/feast-operator/config/default/related_image_fs_patch.yaml b/infra/feast-operator/config/default/related_image_fs_patch.yaml index 9dc2120a040..acd2a595c05 100644 --- a/infra/feast-operator/config/default/related_image_fs_patch.yaml +++ b/infra/feast-operator/config/default/related_image_fs_patch.yaml @@ -1,16 +1,14 @@ -- op: test - path: "/spec/template/spec/containers/0/env/1/name" - value: RELATED_IMAGE_FEATURE_SERVER -- op: replace - path: "/spec/template/spec/containers/0/env/1" - value: - name: RELATED_IMAGE_FEATURE_SERVER - value: quay.io/feastdev/feature-server:0.61.0 -- op: test - path: "/spec/template/spec/containers/0/env/2/name" - value: RELATED_IMAGE_CRON_JOB -- op: replace - path: "/spec/template/spec/containers/0/env/2" - value: - name: RELATED_IMAGE_CRON_JOB - value: quay.io/openshift/origin-cli:4.17 +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager +spec: + template: + spec: + containers: + - name: manager + env: + - name: RELATED_IMAGE_FEATURE_SERVER + value: quay.io/feastdev/feature-server:0.61.0 + - name: RELATED_IMAGE_CRON_JOB + value: quay.io/openshift/origin-cli:4.17 diff --git a/infra/feast-operator/dist/install.yaml b/infra/feast-operator/dist/install.yaml index fa615d3ef14..7410578a547 100644 --- a/infra/feast-operator/dist/install.yaml +++ b/infra/feast-operator/dist/install.yaml @@ -20686,12 +20686,12 @@ spec: command: - /manager env: - - name: GOMEMLIMIT - value: 230MiB - name: RELATED_IMAGE_FEATURE_SERVER value: quay.io/feastdev/feature-server:0.61.0 - name: RELATED_IMAGE_CRON_JOB value: quay.io/openshift/origin-cli:4.17 + - name: GOMEMLIMIT + value: 230MiB - name: OIDC_ISSUER_URL value: "" image: quay.io/feastdev/feast-operator:0.61.0 From 615afabe797323cb354794335d75521ddd1056d5 Mon Sep 17 00:00:00 2001 From: Srihari Date: Wed, 22 Apr 2026 13:00:13 +0530 Subject: [PATCH 23/37] Fix E2E RHOAI tests Signed-off-by: Srihari --- .../e2e_rhoai/resources/feast_kube_auth.yaml | 2 +- .../test/e2e_rhoai/utils/util.go | 29 +++++++++++++++---- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml b/infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml index fae126b528a..ce66b22e926 100644 --- a/infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast_kube_auth.yaml @@ -7,7 +7,7 @@ stringData: redis: | connection_string: redis.test-ns-feast.svc.cluster.local:6379 sql: | - path: postgresql+psycopg://${POSTGRESQL_USER}:${POSTGRESQL_PASSWORD}@postgres.test-ns-feast.svc.cluster.local:5432/${POSTGRESQL_DATABASE} + path: postgresql+psycopg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres.test-ns-feast.svc.cluster.local:5432/${POSTGRES_DB} cache_ttl_seconds: 60 sqlalchemy_config_kwargs: echo: false diff --git a/infra/feast-operator/test/e2e_rhoai/utils/util.go b/infra/feast-operator/test/e2e_rhoai/utils/util.go index 15606a70cc8..c60d093d2ab 100644 --- a/infra/feast-operator/test/e2e_rhoai/utils/util.go +++ b/infra/feast-operator/test/e2e_rhoai/utils/util.go @@ -153,15 +153,32 @@ func ApplyFeastPermissions(fileName string, registryFilePath string, namespace s podName := pod.Name fmt.Printf("Found pod: %s\n", podName) + ExpectWithOffset(1, registryFilePath).To(And( + Not(BeEmpty()), + HavePrefix("/"), + Not(ContainSubstring("\x00")), + ), "registryFilePath must be a non-empty absolute container path") + cmd := exec.Command( - "oc", "cp", - fileName, // local source file - fmt.Sprintf("%s/%s:%s", namespace, podName, registryFilePath), // remote destination + "oc", "exec", "-i", podName, + "-n", namespace, "-c", "registry", + "--", + "sh", "-c", `cat > "$1"`, "sh", registryFilePath, ) - _, err = testutils.Run(cmd, "/test/e2e_rhoai") - ExpectWithOffset(1, err).NotTo(HaveOccurred()) + file, err := os.Open(fileName) + ExpectWithOffset(1, err).NotTo(HaveOccurred(), "Failed to open permissions file") + defer func() { + if cerr := file.Close(); cerr != nil { + fmt.Printf("Warning: failed to close file: %v\n", cerr) + } + }() + cmd.Stdin = file + + output, err := cmd.CombinedOutput() + ExpectWithOffset(1, err).NotTo(HaveOccurred(), + fmt.Sprintf("Failed to copy file to pod: %s", string(output))) fmt.Printf("Successfully copied file to pod: %s\n", podName) @@ -189,7 +206,7 @@ func ApplyFeastPermissions(fileName string, registryFilePath string, namespace s "feast", "permissions", "list", ) - output, err := testutils.Run(cmd, "/test/e2e_rhoai") + output, err = testutils.Run(cmd, "/test/e2e_rhoai") ExpectWithOffset(1, err).NotTo(HaveOccurred()) // Change "feast-auth" if your permission name is different From b550e64b3c9ffeb08929310aeaeaf6c86c51840f Mon Sep 17 00:00:00 2001 From: Aniket Paluskar <64416568+aniketpalu@users.noreply.github.com> Date: Fri, 24 Apr 2026 14:16:54 +0530 Subject: [PATCH 24/37] Fixed conflicts (#110) Signed-off-by: Aniket Paluskar --- .secrets.baseline | 4 +- docs/reference/beta-on-demand-feature-view.md | 36 ++++ sdk/python/feast/feature_view.py | 40 ++-- .../infra/compute_engines/feature_builder.py | 8 +- .../contrib/spark_offline_store/spark.py | 16 +- sdk/python/feast/infra/registry/snowflake.py | 12 +- .../registry/snowflake_table_deletion.sql | 6 +- sdk/python/feast/on_demand_feature_view.py | 151 ++++++++++++--- sdk/python/feast/registry_server.py | 25 ++- sdk/python/feast/stream_feature_view.py | 4 +- .../online_store/test_universal_online.py | 68 ++++++- .../compute_engines/test_feature_builder.py | 146 ++++++++++++++- .../test_spark_offline_store_pull_all.py | 172 ++++++++++++++++++ .../utils/snowflake/test_snowflake_utils.py | 41 ++++- ...est_on_demand_feature_view_input_schema.py | 167 +++++++++++++++++ 15 files changed, 824 insertions(+), 72 deletions(-) create mode 100644 sdk/python/tests/unit/infra/offline_stores/contrib/spark_offline_store/test_spark_offline_store_pull_all.py create mode 100644 sdk/python/tests/unit/test_on_demand_feature_view_input_schema.py diff --git a/.secrets.baseline b/.secrets.baseline index 14e6e8d9313..4f8f6cfcb30 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -1426,7 +1426,7 @@ "filename": "sdk/python/tests/unit/infra/utils/snowflake/test_snowflake_utils.py", "hashed_secret": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3", "is_verified": false, - "line_number": 10 + "line_number": 14 } ], "sdk/python/tests/unit/local_feast_tests/test_init.py": [ @@ -1539,5 +1539,5 @@ } ] }, - "generated_at": "2026-04-08T10:11:21Z" + "generated_at": "2026-04-24T06:24:05Z" } diff --git a/docs/reference/beta-on-demand-feature-view.md b/docs/reference/beta-on-demand-feature-view.md index efb7023d567..684bc0ac4b2 100644 --- a/docs/reference/beta-on-demand-feature-view.md +++ b/docs/reference/beta-on-demand-feature-view.md @@ -69,6 +69,42 @@ def driver_aggregated_stats(inputs): Aggregated columns are automatically named using the pattern `{function}_{column}` (e.g., `sum_trips`, `mean_rating`). +### Using `input_schema` with Aggregations + +When the input data is not already stored as a feature view, use `input_schema` instead of `sources` to describe the fields that will be passed at request time. Feast will create an internal `RequestSource` automatically. + +```python +from datetime import timedelta +from feast import Field, on_demand_feature_view +from feast.aggregation import Aggregation +from feast.types import Float64, Int64 + +@on_demand_feature_view( + input_schema=[ + Field(name="txn_amount", dtype=Float64), + ], + schema=[ + Field(name="txn_count", dtype=Int64), + Field(name="total_txn_amount", dtype=Float64), + Field(name="avg_txn_amount", dtype=Float64), + ], + aggregations=[ + Aggregation(column="txn_amount", function="count", name="txn_count", + time_window=timedelta(days=30)), + Aggregation(column="txn_amount", function="sum", name="total_txn_amount", + time_window=timedelta(days=30)), + Aggregation(column="txn_amount", function="mean", name="avg_txn_amount", + time_window=timedelta(days=30)), + ], + entities=[user], +) +def user_transaction_stats(inputs): + # Aggregations replace the transformation function — no body needed. + pass +``` + +`input_schema` also accepts fields that are not aggregation columns — for example, thresholds, currency codes, or other contextual values passed at request time that your UDF needs but that are not stored as features. + ## Example See [https://github.com/feast-dev/on-demand-feature-views-demo](https://github.com/feast-dev/on-demand-feature-views-demo) for an example on how to use on demand feature views. diff --git a/sdk/python/feast/feature_view.py b/sdk/python/feast/feature_view.py index 3863634ac80..68d4e96212e 100644 --- a/sdk/python/feast/feature_view.py +++ b/sdk/python/feast/feature_view.py @@ -520,14 +520,17 @@ def get_ttl_duration(self): return ttl_duration @classmethod - def from_proto(cls, feature_view_proto: FeatureViewProto) -> "FeatureView": - return cls._from_proto_internal(feature_view_proto, seen={}) + def from_proto( + cls, feature_view_proto: FeatureViewProto, skip_udf: bool = False + ) -> "FeatureView": + return cls._from_proto_internal(feature_view_proto, seen={}, skip_udf=skip_udf) @classmethod def _from_proto_internal( cls, feature_view_proto: FeatureViewProto, seen: Dict[str, Union[None, "FeatureView"]], + skip_udf: bool = False, ) -> "FeatureView": """ Creates a feature view from a protobuf representation of a feature view. @@ -561,7 +564,7 @@ def _from_proto_internal( ) source_views = [ FeatureView._from_proto_internal( - FeatureViewProto(spec=view_spec, meta=None), seen + FeatureViewProto(spec=view_spec, meta=None), seen, skip_udf=skip_udf ) for view_spec in feature_view_proto.spec.source_views ] @@ -581,22 +584,23 @@ def _from_proto_internal( ) transformation = None - if feature_transformation_proto.HasField("user_defined_function"): - udf_proto = feature_transformation_proto.user_defined_function - if udf_proto.mode: - try: - transformation_class = get_transformation_class_from_type( - udf_proto.mode - ) - transformation = transformation_class.from_proto(udf_proto) - except (ValueError, KeyError): + if not skip_udf: + if feature_transformation_proto.HasField("user_defined_function"): + udf_proto = feature_transformation_proto.user_defined_function + if udf_proto.mode: + try: + transformation_class = get_transformation_class_from_type( + udf_proto.mode + ) + transformation = transformation_class.from_proto(udf_proto) + except (ValueError, KeyError): + transformation = PythonTransformation.from_proto(udf_proto) + else: transformation = PythonTransformation.from_proto(udf_proto) - else: - transformation = PythonTransformation.from_proto(udf_proto) - elif feature_transformation_proto.HasField("substrait_transformation"): - transformation = SubstraitTransformation.from_proto( - feature_transformation_proto.substrait_transformation - ) + elif feature_transformation_proto.HasField("substrait_transformation"): + transformation = SubstraitTransformation.from_proto( + feature_transformation_proto.substrait_transformation + ) mode: Union[TransformationMode, str] if feature_view_proto.spec.mode: diff --git a/sdk/python/feast/infra/compute_engines/feature_builder.py b/sdk/python/feast/infra/compute_engines/feature_builder.py index 2b7cccbb7af..43f17ee2986 100644 --- a/sdk/python/feast/infra/compute_engines/feature_builder.py +++ b/sdk/python/feast/infra/compute_engines/feature_builder.py @@ -158,12 +158,14 @@ def get_column_info( # we need to read ALL source columns, not just the output feature columns. # This is specifically for transformations that create new columns or need raw data. mode = getattr(getattr(view, "feature_transformation", None), "mode", None) - if mode in ("ray", "pandas") or getattr(mode, "value", None) in ( + if mode in ("ray", "pandas", "python") or getattr(mode, "value", None) in ( "ray", "pandas", + "python", ): - # Signal to read all columns by passing empty list for feature_cols - # The transformation will produce the output columns defined in the schema + # Signal to read all columns by passing empty list for feature_cols. + # "python" (BatchFeatureView) transformations need all raw source columns — the + # UDF computes output features from raw input, not from pre-existing feature cols. feature_cols = [] return ColumnInfo( diff --git a/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py b/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py index c7ed40ccc02..bede2a6f44c 100644 --- a/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py +++ b/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py @@ -387,12 +387,18 @@ def pull_all_from_table_or_query( timestamp_fields = [timestamp_field] if created_timestamp_column: timestamp_fields.append(created_timestamp_column) - (fields_with_aliases, aliases) = _get_fields_with_aliases( - fields=join_key_columns + feature_name_columns + timestamp_fields, - field_mappings=data_source.field_mapping, - ) - fields_with_alias_string = ", ".join(fields_with_aliases) + if feature_name_columns: + (fields_with_aliases, _) = _get_fields_with_aliases( + fields=join_key_columns + feature_name_columns + timestamp_fields, + field_mappings=data_source.field_mapping, + ) + fields_with_alias_string = ", ".join(fields_with_aliases) + else: + # Empty feature_name_columns signals "read all source columns". + # Used by BatchFeatureView with TransformationMode.PYTHON/ray/pandas where + # the UDF computes output features from raw input — don't project upfront. + fields_with_alias_string = "*" from_expression = data_source.get_table_query_string() timestamp_filter = get_timestamp_filter_sql( diff --git a/sdk/python/feast/infra/registry/snowflake.py b/sdk/python/feast/infra/registry/snowflake.py index 36f2df093c0..1a48e2962ef 100644 --- a/sdk/python/feast/infra/registry/snowflake.py +++ b/sdk/python/feast/infra/registry/snowflake.py @@ -139,8 +139,9 @@ def __init__( with GetSnowflakeConnection(self.registry_config) as conn: sql_function_file = f"{os.path.dirname(feast.__file__)}/infra/utils/snowflake/registry/snowflake_table_creation.sql" with open(sql_function_file, "r") as file: - sql_file = file.read() - sql_cmds = sql_file.split(";") + sql_cmds = [ + cmd.strip() for cmd in file.read().split(";") if cmd.strip() + ] for command in sql_cmds: query = command.replace("REGISTRY_PATH", f"{self.registry_path}") execute_snowflake_statement(conn, query) @@ -224,9 +225,10 @@ def teardown(self): with GetSnowflakeConnection(self.registry_config) as conn: sql_function_file = f"{os.path.dirname(feast.__file__)}/infra/utils/snowflake/registry/snowflake_table_deletion.sql" with open(sql_function_file, "r") as file: - sqlFile = file.read() - sqlCommands = sqlFile.split(";") - for command in sqlCommands: + sql_cmds = [ + cmd.strip() for cmd in file.read().split(";") if cmd.strip() + ] + for command in sql_cmds: query = command.replace("REGISTRY_PATH", f"{self.registry_path}") execute_snowflake_statement(conn, query) diff --git a/sdk/python/feast/infra/utils/snowflake/registry/snowflake_table_deletion.sql b/sdk/python/feast/infra/utils/snowflake/registry/snowflake_table_deletion.sql index 780424abd17..dde984c3823 100644 --- a/sdk/python/feast/infra/utils/snowflake/registry/snowflake_table_deletion.sql +++ b/sdk/python/feast/infra/utils/snowflake/registry/snowflake_table_deletion.sql @@ -1,3 +1,5 @@ +DROP TABLE IF EXISTS REGISTRY_PATH."PROJECTS"; + DROP TABLE IF EXISTS REGISTRY_PATH."DATA_SOURCES"; DROP TABLE IF EXISTS REGISTRY_PATH."ENTITIES"; @@ -16,6 +18,6 @@ DROP TABLE IF EXISTS REGISTRY_PATH."SAVED_DATASETS"; DROP TABLE IF EXISTS REGISTRY_PATH."STREAM_FEATURE_VIEWS"; -DROP TABLE IF EXISTS REGISTRY_PATH."VALIDATION_REFERENCES" +DROP TABLE IF EXISTS REGISTRY_PATH."VALIDATION_REFERENCES"; -DROP TABLE IF EXISTS REGISTRY_PATH."PERMISSIONS" +DROP TABLE IF EXISTS REGISTRY_PATH."PERMISSIONS"; diff --git a/sdk/python/feast/on_demand_feature_view.py b/sdk/python/feast/on_demand_feature_view.py index 530a96065a8..198c33675fa 100644 --- a/sdk/python/feast/on_demand_feature_view.py +++ b/sdk/python/feast/on_demand_feature_view.py @@ -134,13 +134,14 @@ class OnDemandFeatureView(BaseFeatureView): """ _TRACK_METRICS_TAG = "feast:track_metrics" + _INPUT_SCHEMA_SOURCE_PREFIX = "__input_schema__" name: str entities: Optional[List[str]] features: List[Field] source_feature_view_projections: dict[str, FeatureViewProjection] source_request_sources: dict[str, RequestSource] - feature_transformation: Transformation + feature_transformation: Optional[Transformation] mode: str description: str tags: dict[str, str] @@ -158,7 +159,8 @@ def __init__( # noqa: C901 name: str, entities: Optional[List[Entity]] = None, schema: Optional[List[Field]] = None, - sources: List[OnDemandSourceType], + sources: Optional[List[OnDemandSourceType]] = None, + input_schema: Optional[List[Field]] = None, udf: Optional[FunctionType] = None, udf_string: Optional[str] = "", feature_transformation: Optional[Transformation] = None, @@ -183,6 +185,11 @@ def __init__( # noqa: C901 sources: A map from input source names to the actual input sources, which may be feature views, or request data sources. These sources serve as inputs to the udf, which will refer to them by name. + input_schema (optional): A list of Fields describing data that is accepted as input + but not stored directly as features — e.g. aggregation columns, normalization + parameters, thresholds, or other contextual values passed at request time. + When provided, sources is not required — an internal RequestSource will be + created automatically. udf: The user defined transformation function, which must take pandas dataframes as inputs. udf_string: The source code version of the udf (for diffing and displaying in Web UI) @@ -214,15 +221,44 @@ def __init__( # noqa: C901 self.version = version schema = schema or [] self.entities = [e.name for e in entities] if entities else [DUMMY_ENTITY_NAME] - self.sources = sources + self.input_schema = input_schema self.mode = mode.lower() self.udf = udf self.udf_string = udf_string self.source_feature_view_projections: dict[str, FeatureViewProjection] = {} self.source_request_sources: dict[str, RequestSource] = {} + self._input_schema_sentinel: Optional[RequestSource] = None + + # Strip any existing sentinel from sources (handles __copy__ round-trip) + effective_sources: List[OnDemandSourceType] = [ + s + for s in (sources or []) + if not ( + isinstance(s, RequestSource) + and s.name.startswith(self._INPUT_SCHEMA_SOURCE_PREFIX) + ) + ] + + if input_schema is not None: + # Automatically create an internal RequestSource from input_schema. + # Stored privately so it does not appear in source_request_sources for + # external consumers (e.g. the feature server, apply(), utils.py). + self._input_schema_sentinel = RequestSource( + name=f"{self._INPUT_SCHEMA_SOURCE_PREFIX}{name}", + schema=input_schema, + ) + self.source_request_sources[self._input_schema_sentinel.name] = ( + self._input_schema_sentinel + ) + elif not effective_sources: + raise ValueError( + "Either 'sources' or 'input_schema' must be provided for OnDemandFeatureView." + ) + + self.sources = effective_sources # Process each source with explicit type handling - for odfv_source in sources: + for odfv_source in effective_sources: self._add_source_to_collections(odfv_source) features: List[Field] = [] @@ -259,9 +295,12 @@ def __init__( # noqa: C901 features.append(field) self.features = features - self.feature_transformation = ( - feature_transformation or self.get_feature_transformation() - ) + if feature_transformation is not None: + self.feature_transformation = feature_transformation + elif self.udf is not None: + self.feature_transformation = self.get_feature_transformation() + else: + self.feature_transformation = None self.write_to_online_store = write_to_online_store self.singleton = singleton if self.singleton and self.mode != "python": @@ -271,6 +310,20 @@ def __init__( # noqa: C901 self.track_metrics = track_metrics self.aggregations = aggregations or [] + if input_schema is not None and self.aggregations: + input_field_names = {f.name for f in input_schema} + unknown = [ + agg.column + for agg in self.aggregations + if agg.column and agg.column not in input_field_names + ] + if unknown: + raise ValueError( + f"Aggregation column(s) {unknown} not found in input_schema " + f"for OnDemandFeatureView '{name}'. " + f"Available fields: {sorted(input_field_names)}" + ) + def _add_source_to_collections(self, odfv_source: OnDemandSourceType) -> None: """ Add a source to the appropriate collection with explicit type checking. @@ -325,6 +378,7 @@ def __copy__(self): schema=self.features, sources=list(self.source_feature_view_projections.values()) + list(self.source_request_sources.values()), + input_schema=self.input_schema, feature_transformation=self.feature_transformation, mode=self.mode, description=self.description, @@ -334,6 +388,7 @@ def __copy__(self): singleton=self.singleton, version=self.version, track_metrics=self.track_metrics, + aggregations=self.aggregations, ) fv.entities = self.entities fv.features = self.features @@ -533,6 +588,14 @@ def to_proto(self) -> OnDemandFeatureViewProto: request_data_source=request_sources.to_proto() ) + # Serialize the input_schema sentinel so that from_proto() can reconstruct + # input_schema correctly; it is excluded from source_request_sources so that + # external consumers never see it as a real data source. + if self._input_schema_sentinel is not None: + sources[self._input_schema_sentinel.name] = OnDemandSource( + request_data_source=self._input_schema_sentinel.to_proto() + ) + feature_transformation = transformation_to_proto(self.feature_transformation) tags = dict(self.tags) if self.tags else {} @@ -556,7 +619,7 @@ def to_proto(self) -> OnDemandFeatureViewProto: owner=self.owner, write_to_online_store=self.write_to_online_store, singleton=self.singleton or False, - aggregations=self.aggregations, + aggregations=[agg.to_proto() for agg in self.aggregations], version=self.version, ) return OnDemandFeatureViewProto(spec=spec, meta=meta) @@ -578,11 +641,25 @@ def from_proto( A OnDemandFeatureView object based on the on-demand feature view protobuf. """ # Parse sources from proto - sources = cls._parse_sources_from_proto(on_demand_feature_view_proto) + sources = cls._parse_sources_from_proto( + on_demand_feature_view_proto, skip_udf=skip_udf + ) + + # Detect and strip input_schema sentinel from sources + input_schema: Optional[List[Field]] = None + sources_without_sentinel: List[OnDemandSourceType] = [] + for source in sources: + if isinstance(source, RequestSource) and source.name.startswith( + cls._INPUT_SCHEMA_SOURCE_PREFIX + ): + input_schema = source.schema + else: + sources_without_sentinel.append(source) + sources = sources_without_sentinel - # Parse transformation from proto + # Parse transformation from proto (skip UDF deserialization if requested) transformation = cls._parse_transformation_from_proto( - on_demand_feature_view_proto + on_demand_feature_view_proto, skip_udf=skip_udf ) # Parse optional fields with defaults @@ -602,6 +679,7 @@ def from_proto( name=on_demand_feature_view_proto.spec.name, schema=cls._parse_features_from_proto(on_demand_feature_view_proto), sources=cast(List[OnDemandSourceType], sources), + input_schema=input_schema, feature_transformation=transformation, mode=on_demand_feature_view_proto.spec.mode or "pandas", description=on_demand_feature_view_proto.spec.description, @@ -643,7 +721,7 @@ def from_proto( @classmethod def _parse_sources_from_proto( - cls, proto: OnDemandFeatureViewProto + cls, proto: OnDemandFeatureViewProto, skip_udf: bool = False ) -> List[OnDemandSourceType]: """Parse and convert sources from the protobuf representation.""" sources: List[OnDemandSourceType] = [] @@ -652,7 +730,9 @@ def _parse_sources_from_proto( if source_type == "feature_view": sources.append( - FeatureView.from_proto(on_demand_source.feature_view).projection + FeatureView.from_proto( + on_demand_source.feature_view, skip_udf=skip_udf + ).projection ) elif source_type == "feature_view_projection": sources.append( @@ -673,9 +753,12 @@ def _parse_sources_from_proto( @classmethod def _parse_transformation_from_proto( - cls, proto: OnDemandFeatureViewProto - ) -> Transformation: + cls, proto: OnDemandFeatureViewProto, skip_udf: bool = False + ) -> Optional[Transformation]: """Parse and convert the transformation from the protobuf representation.""" + if skip_udf: + return None + feature_transformation = proto.spec.feature_transformation transformation_type = feature_transformation.WhichOneof("transformation") mode = proto.spec.mode @@ -807,6 +890,10 @@ def get_request_data_schema(self) -> dict[str, ValueType]: raise TypeError( f"Request source schema is not correct type: ${str(type(request_source.schema))}" ) + # Include fields from the input_schema sentinel (stored privately) + if self._input_schema_sentinel is not None: + for field in self._input_schema_sentinel.schema: + schema[field.name] = field.dtype.to_value_type() return schema def _get_projected_feature_name(self, feature: str) -> str: @@ -898,6 +985,7 @@ def transform_arrow( pa_table, columns_to_cleanup = self._preprocess_arrow_table(pa_table) # Apply the transformation + assert self.feature_transformation is not None transformed_table = self.feature_transformation.transform_arrow( pa_table, self.features ) @@ -983,6 +1071,7 @@ def transform_dict( ) # Apply the appropriate transformation based on mode + assert self.feature_transformation is not None if self.singleton and self.mode == "python": output_dict = self.feature_transformation.transform_singleton( preprocessed_dict @@ -1024,6 +1113,7 @@ def _preprocess_feature_dict( return preprocessed_dict, columns_to_cleanup def infer_features(self) -> None: + assert self.feature_transformation is not None random_input = self._construct_random_input(singleton=self.singleton) inferred_features = self.feature_transformation.infer_features( random_input=random_input, singleton=self.singleton @@ -1079,7 +1169,7 @@ def _is_array_type(self, dtype) -> bool: """Check if the dtype represents an array type.""" # Use proper type checking instead of string comparison dtype_str = str(dtype) - return "Array" in dtype_str or "List" in dtype_str + return "Array" in dtype_str or "List" in dtype_str or "Set" in dtype_str def _construct_random_input( self, singleton: bool = False @@ -1124,6 +1214,13 @@ def _construct_random_input( sample_value = sample_values.get(value_type, default_value) feature_dict[field.name] = sample_value + # Add input_schema fields (stored privately outside source_request_sources) + if self._input_schema_sentinel is not None: + for field in self._input_schema_sentinel.schema: + value_type = field.dtype.to_value_type() + sample_value = sample_values.get(value_type, default_value) + feature_dict[field.name] = sample_value + return feature_dict def _get_sample_values_by_type(self) -> dict[ValueType, list[Any]]: @@ -1211,13 +1308,17 @@ def on_demand_feature_view( name: Optional[str] = None, entities: Optional[List[Entity]] = None, schema: list[Field], - sources: list[ - Union[ - FeatureView, - RequestSource, - FeatureViewProjection, + sources: Optional[ + list[ + Union[ + FeatureView, + RequestSource, + FeatureViewProjection, + ] ] - ], + ] = None, + input_schema: Optional[list[Field]] = None, + aggregations: Optional[List[Aggregation]] = None, mode: str = "pandas", description: str = "", tags: Optional[dict[str, str]] = None, @@ -1239,6 +1340,10 @@ def on_demand_feature_view( sources: A map from input source names to the actual input sources, which may be feature views, or request data sources. These sources serve as inputs to the udf, which will refer to them by name. + input_schema (optional): A list of Fields describing data that is accepted as input + but not stored directly as features — e.g. aggregation columns, normalization + parameters, thresholds, or other contextual values passed at request time. + When provided, sources is not required. mode: The mode of execution (e.g,. Pandas or Python Native) description (optional): A human-readable description. tags (optional): A dictionary of key-value pairs to store arbitrary metadata. @@ -1266,6 +1371,7 @@ def decorator(user_function): on_demand_feature_view_obj = OnDemandFeatureView( name=name if name is not None else user_function.__name__, sources=sources, + input_schema=input_schema, schema=schema, mode=mode, description=description, @@ -1275,6 +1381,7 @@ def decorator(user_function): entities=entities, singleton=singleton, track_metrics=track_metrics, + aggregations=aggregations, udf=user_function, udf_string=udf_string, version=version, diff --git a/sdk/python/feast/registry_server.py b/sdk/python/feast/registry_server.py index f033c5201ec..344453ad61e 100644 --- a/sdk/python/feast/registry_server.py +++ b/sdk/python/feast/registry_server.py @@ -342,22 +342,35 @@ def ApplyFeatureView( self, request: RegistryServer_pb2.ApplyFeatureViewRequest, context ): feature_view_type = request.WhichOneof("base_feature_view") + if feature_view_type == "feature_view": - feature_view = FeatureView.from_proto(request.feature_view) + feature_view_meta = FeatureView.from_proto( + request.feature_view, skip_udf=True + ) elif feature_view_type == "on_demand_feature_view": - feature_view = OnDemandFeatureView.from_proto( - request.on_demand_feature_view + feature_view_meta = OnDemandFeatureView.from_proto( + request.on_demand_feature_view, skip_udf=True ) elif feature_view_type == "stream_feature_view": - feature_view = StreamFeatureView.from_proto(request.stream_feature_view) + feature_view_meta = StreamFeatureView.from_proto( + request.stream_feature_view, skip_udf=True + ) assert_permissions_to_update( - resource=feature_view, - # Will replace with the new get_any_feature_view method later + resource=feature_view_meta, getter=self.proxied_registry.get_feature_view, project=request.project, ) + if feature_view_type == "feature_view": + feature_view = FeatureView.from_proto(request.feature_view) + elif feature_view_type == "on_demand_feature_view": + feature_view = OnDemandFeatureView.from_proto( + request.on_demand_feature_view + ) + elif feature_view_type == "stream_feature_view": + feature_view = StreamFeatureView.from_proto(request.stream_feature_view) + ( self.proxied_registry.apply_feature_view( feature_view=feature_view, diff --git a/sdk/python/feast/stream_feature_view.py b/sdk/python/feast/stream_feature_view.py index 2773484ecbb..9c766c61cd1 100644 --- a/sdk/python/feast/stream_feature_view.py +++ b/sdk/python/feast/stream_feature_view.py @@ -320,7 +320,7 @@ def to_proto(self): return StreamFeatureViewProto(spec=spec, meta=meta) @classmethod - def from_proto(cls, sfv_proto): + def from_proto(cls, sfv_proto, skip_udf: bool = False): batch_source = ( DataSource.from_proto(sfv_proto.spec.batch_source) if sfv_proto.spec.HasField("batch_source") @@ -333,7 +333,7 @@ def from_proto(cls, sfv_proto): ) udf = ( dill.loads(sfv_proto.spec.user_defined_function.body) - if sfv_proto.spec.HasField("user_defined_function") + if sfv_proto.spec.HasField("user_defined_function") and not skip_udf else None ) udf_string = ( diff --git a/sdk/python/tests/integration/online_store/test_universal_online.py b/sdk/python/tests/integration/online_store/test_universal_online.py index 0c27585139e..f72ac64586c 100644 --- a/sdk/python/tests/integration/online_store/test_universal_online.py +++ b/sdk/python/tests/integration/online_store/test_universal_online.py @@ -921,13 +921,27 @@ def test_retrieve_online_milvus_documents(environment, fake_document_data): df, data_source = fake_document_data item_embeddings_feature_view = create_item_embeddings_feature_view(data_source) fs.apply([item_embeddings_feature_view, item()]) + + features = [ + "item_embeddings:embedding_float", + "item_embeddings:item_id", + "item_embeddings:string_feature", + ] + + # Empty-store query: collection exists but has no rows yet. + empty = fs.retrieve_online_documents_v2( + features=features, + query=[1.0, 2.0], + top_k=2, + distance_metric="L2", + ).to_dict() + assert len(empty["embedding_float"]) == 0 + assert len(empty["item_id"]) == 0 + fs.write_to_online_store("item_embeddings", df) + documents = fs.retrieve_online_documents_v2( - features=[ - "item_embeddings:embedding_float", - "item_embeddings:item_id", - "item_embeddings:string_feature", - ], + features=features, query=[1.0, 2.0], top_k=2, distance_metric="L2", @@ -948,6 +962,50 @@ def test_retrieve_online_milvus_documents(environment, fake_document_data): f"Integration test: embedding {i} has {len(embedding)} dimensions, expected {query_dim}" ) + # Oversized top_k: dataset has 3 rows, request 5 -> expect 3 back. + all_docs = fs.retrieve_online_documents_v2( + features=features, + query=[1.0, 2.0], + top_k=5, + distance_metric="L2", + ).to_dict() + assert len(all_docs["embedding_float"]) == 3 + assert sorted(all_docs["item_id"]) == [1, 2, 3] + + # Cosine-metric variant: separate FV so the Milvus collection is created + # with COSINE as its index metric. + cosine_fv = FeatureView( + name="item_embeddings_cosine", + entities=[item()], + schema=[ + Field( + name="embedding_float", + dtype=Array(Float32), + vector_index=True, + vector_search_metric="COSINE", + ), + Field(name="string_feature", dtype=String), + Field(name="float_feature", dtype=Float32), + ], + source=data_source, + ttl=timedelta(hours=2), + ) + fs.apply([cosine_fv]) + fs.write_to_online_store("item_embeddings_cosine", df) + + cosine_docs = fs.retrieve_online_documents_v2( + features=[ + "item_embeddings_cosine:embedding_float", + "item_embeddings_cosine:item_id", + "item_embeddings_cosine:string_feature", + ], + query=[1.0, 2.0], + top_k=2, + distance_metric="COSINE", + ).to_dict() + assert len(cosine_docs["embedding_float"]) == 2 + assert len(cosine_docs["item_id"]) == 2 + @pytest.mark.integration @pytest.mark.universal_online_stores(only=["milvus"]) diff --git a/sdk/python/tests/unit/infra/compute_engines/test_feature_builder.py b/sdk/python/tests/unit/infra/compute_engines/test_feature_builder.py index b78ef15299c..8ad19d02290 100644 --- a/sdk/python/tests/unit/infra/compute_engines/test_feature_builder.py +++ b/sdk/python/tests/unit/infra/compute_engines/test_feature_builder.py @@ -1,4 +1,6 @@ -from unittest.mock import MagicMock +from unittest.mock import MagicMock, patch + +import pytest from feast.data_source import DataSource from feast.infra.compute_engines.dag.context import ExecutionContext @@ -7,6 +9,7 @@ from feast.infra.compute_engines.dag.plan import ExecutionPlan from feast.infra.compute_engines.dag.value import DAGValue from feast.infra.compute_engines.feature_builder import FeatureBuilder +from feast.transformation.mode import TransformationMode # --------------------------- # Minimal Mock DAGNode for testing @@ -143,3 +146,144 @@ def test_recursive_featureview_build(): - Source(hourly_driver_stats)""" assert execution_plan.to_dag() == expected_output + + +# --------------------------------------------------------------------------- +# Helpers for get_column_info tests +# --------------------------------------------------------------------------- + +# Stable return value for _get_column_names: (join_keys, feature_cols, ts_col, created_ts_col) +_MOCK_COLUMN_NAMES = ( + ["user_id"], + ["user_avg_rating", "user_review_count"], + "event_timestamp", + None, +) + + +def _make_transformation(mode): + """Return a minimal transformation stub with the given mode.""" + t = MagicMock() + t.mode = mode + return t + + +def _make_builder_for_column_info(transformation): + """ + Build a MockFeatureBuilder whose task.feature_view carries the given + transformation. registry.get_entity is stubbed out per entity name. + """ + view = MagicMock() + view.entities = ["user"] + view.feature_transformation = transformation + view.batch_source = MagicMock() + view.batch_source.field_mapping = {} + view.stream_source = None + + task = MagicMock() + task.project = "test_project" + task.feature_view = view + task.only_latest = False + + registry = MagicMock() + registry.get_entity.return_value = MagicMock(join_key="user_id") + + builder = MockFeatureBuilder.__new__(MockFeatureBuilder) + builder.registry = registry + builder.task = task + builder.nodes = [] + return builder, view + + +# --------------------------------------------------------------------------- +# Bug fix: TransformationMode.PYTHON must set feature_cols=[] +# +# Previously only "ray" and "pandas" were handled. "python" (the default mode +# for @batch_feature_view) was missing, causing get_column_info to forward +# the BFV *output* feature names (e.g. user_avg_rating) to the offline store +# read step — columns that don't exist in raw source data — resulting in +# UNRESOLVED_COLUMN errors at Spark analysis time. +# --------------------------------------------------------------------------- + + +@pytest.mark.parametrize( + "mode", + [ + TransformationMode.PYTHON, + TransformationMode.PANDAS, + TransformationMode.RAY, + # String forms (getattr(mode, "value", None) path) + "python", + "pandas", + "ray", + ], +) +def test_get_column_info_clears_feature_cols_for_udf_modes(mode): + """ + For transformation modes that compute output features from raw input + (python, pandas, ray), get_column_info must set feature_cols=[] so the + offline store read step issues SELECT * instead of projecting the output + feature names that don't exist in the raw source schema. + """ + builder, view = _make_builder_for_column_info(_make_transformation(mode)) + + with patch( + "feast.infra.compute_engines.feature_builder._get_column_names", + return_value=_MOCK_COLUMN_NAMES, + ): + col_info = builder.get_column_info(view) + + assert col_info.feature_cols == [], ( + f"Expected feature_cols=[] for TransformationMode {mode!r}, " + f"got {col_info.feature_cols!r}. " + "The offline store read step must not project output feature names " + "that don't exist in the raw source schema." + ) + assert col_info.join_keys == ["user_id"] + assert col_info.ts_col == "event_timestamp" + + +@pytest.mark.parametrize( + "mode", + [ + TransformationMode.SPARK_SQL, + TransformationMode.SQL, + TransformationMode.SPARK, + "spark_sql", + "sql", + ], +) +def test_get_column_info_preserves_feature_cols_for_non_udf_modes(mode): + """ + SQL/Spark-SQL transformations operate on already-projected columns and + should NOT get feature_cols cleared — the source read must still select + the named feature columns explicitly. + """ + builder, view = _make_builder_for_column_info(_make_transformation(mode)) + + with patch( + "feast.infra.compute_engines.feature_builder._get_column_names", + return_value=_MOCK_COLUMN_NAMES, + ): + col_info = builder.get_column_info(view) + + assert col_info.feature_cols == ["user_avg_rating", "user_review_count"], ( + f"Expected feature_cols to be preserved for mode {mode!r}, " + f"got {col_info.feature_cols!r}." + ) + + +def test_get_column_info_preserves_feature_cols_with_no_transformation(): + """ + A plain FeatureView (no transformation) must retain its feature column + names so the offline store read step selects only the required columns. + """ + builder, view = _make_builder_for_column_info(None) + + with patch( + "feast.infra.compute_engines.feature_builder._get_column_names", + return_value=_MOCK_COLUMN_NAMES, + ): + col_info = builder.get_column_info(view) + + assert col_info.feature_cols == ["user_avg_rating", "user_review_count"] diff --git a/sdk/python/tests/unit/infra/offline_stores/contrib/spark_offline_store/test_spark_offline_store_pull_all.py b/sdk/python/tests/unit/infra/offline_stores/contrib/spark_offline_store/test_spark_offline_store_pull_all.py new file mode 100644 index 00000000000..c29b89db001 --- /dev/null +++ b/sdk/python/tests/unit/infra/offline_stores/contrib/spark_offline_store/test_spark_offline_store_pull_all.py @@ -0,0 +1,172 @@ +""" +Unit tests for SparkOfflineStore.pull_all_from_table_or_query SQL generation. + +Covers the bug where feature_name_columns=[] (signalling "read all source +columns" for BatchFeatureView UDF transformations) caused a bare + SELECT user_id, event_timestamp FROM source +instead of SELECT *, silently dropping all columns the UDF needs. +""" + +from datetime import datetime, timezone +from unittest.mock import MagicMock, patch + +import pytest + +from feast.infra.offline_stores.contrib.spark_offline_store.spark import ( # noqa: E402 + SparkOfflineStore, + SparkOfflineStoreConfig, +) +from feast.infra.offline_stores.contrib.spark_offline_store.spark_source import ( # noqa: E402 + SparkSource, +) +from feast.infra.online_stores.sqlite import SqliteOnlineStoreConfig # noqa: E402 +from feast.repo_config import RepoConfig # noqa: E402 + +# --------------------------------------------------------------------------- +# Shared fixtures +# --------------------------------------------------------------------------- + +START = datetime(2023, 1, 1, tzinfo=timezone.utc) +END = datetime(2024, 1, 1, tzinfo=timezone.utc) + +# Fixed table name returned by the mocked get_table_query_string +_TABLE_EXPR = "`raw_reviews`" + + +@pytest.fixture() +def repo_config(): + return RepoConfig( + registry="file:///tmp/registry.db", + project="test", + provider="local", + online_store=SqliteOnlineStoreConfig(type="sqlite"), + offline_store=SparkOfflineStoreConfig(type="spark"), + ) + + +@pytest.fixture() +def spark_source(): + return SparkSource( + name="raw_reviews", + path="s3a://bucket/processed/reviews/", + file_format="parquet", + timestamp_field="event_timestamp", + ) + + +def _run_pull_all(repo_config, spark_source, feature_name_columns): + """ + Call pull_all_from_table_or_query with a mocked SparkSession and mocked + data-source table resolution, then return the SQL query string. + + Two things are patched so no real Spark/S3 access occurs: + 1. get_spark_session_or_start_new_with_repoconfig → MagicMock session + 2. spark_source.get_table_query_string → fixed table expression + (avoids SparkSource.validate / _load_dataframe_from_path hitting S3) + """ + mock_spark = MagicMock() + + with ( + patch( + "feast.infra.offline_stores.contrib.spark_offline_store.spark" + ".get_spark_session_or_start_new_with_repoconfig", + return_value=mock_spark, + ), + patch.object( + spark_source, + "get_table_query_string", + return_value=_TABLE_EXPR, + ), + ): + job = SparkOfflineStore.pull_all_from_table_or_query( + config=repo_config, + data_source=spark_source, + join_key_columns=["user_id"], + feature_name_columns=feature_name_columns, + timestamp_field="event_timestamp", + created_timestamp_column=None, + start_date=START, + end_date=END, + ) + + return job.query.strip() + + +def test_pull_all_with_empty_feature_cols_generates_select_star( + repo_config, spark_source +): + """ + feature_name_columns=[] must produce SELECT * so UDF-based + BatchFeatureViews receive all raw source columns for aggregation. + """ + sql = _run_pull_all(repo_config, spark_source, feature_name_columns=[]) + + assert sql.startswith("SELECT *"), ( + "Expected 'SELECT *' when feature_name_columns=[], " + f"got: {sql[:120]!r}\n\n" + "BatchFeatureView UDFs need all raw source columns to compute " + "aggregations — projecting only join key + timestamp silently " + "drops rating, text, helpful_vote, etc." + ) + assert "user_id" not in sql.split("FROM")[0], ( + "SELECT * must not also explicitly list join key columns" + ) + + +def test_pull_all_with_feature_cols_generates_explicit_projection( + repo_config, spark_source +): + """ + When feature_name_columns is non-empty (normal FeatureView path), + the query must project only the requested columns — not SELECT *. + """ + sql = _run_pull_all( + repo_config, + spark_source, + feature_name_columns=["avg_rating", "review_count"], + ) + + assert "SELECT *" not in sql, ( + "Non-empty feature_name_columns must produce explicit SELECT projection, not SELECT *" + ) + assert "avg_rating" in sql + assert "review_count" in sql + assert "user_id" in sql + assert "event_timestamp" in sql + + +def test_pull_all_empty_feature_cols_upstream_regression(repo_config, spark_source): + """ + Regression guard: the upstream (unfixed) behaviour with feature_name_columns=[] + produced a query that only selected join key + timestamp, dropping all columns + the UDF needs. Verify the fixed code does NOT produce that broken query. + + Broken upstream SQL looked like: + SELECT user_id, event_timestamp FROM ... WHERE ... + """ + sql = _run_pull_all(repo_config, spark_source, feature_name_columns=[]) + + projection = sql.split("FROM")[0] + assert "user_id" not in projection, ( + "Upstream bug: query projected only 'user_id, event_timestamp', " + "silently dropping all columns needed by the BFV UDF. " + "Fixed query should use SELECT *." + ) + + +@pytest.mark.parametrize( + "feature_cols,expect_star", + [ + ([], True), + (["f1"], False), + (["f1", "f2", "f3"], False), + ], +) +def test_pull_all_select_star_only_when_feature_cols_empty( + repo_config, spark_source, feature_cols, expect_star +): + sql = _run_pull_all(repo_config, spark_source, feature_name_columns=feature_cols) + has_star = sql.strip().upper().startswith("SELECT *") + assert has_star == expect_star, ( + f"feature_cols={feature_cols!r}: expected SELECT *={expect_star}, got SQL: {sql[:100]!r}" + ) diff --git a/sdk/python/tests/unit/infra/utils/snowflake/test_snowflake_utils.py b/sdk/python/tests/unit/infra/utils/snowflake/test_snowflake_utils.py index 8ae6ec63ba5..14b42c9783b 100644 --- a/sdk/python/tests/unit/infra/utils/snowflake/test_snowflake_utils.py +++ b/sdk/python/tests/unit/infra/utils/snowflake/test_snowflake_utils.py @@ -1,11 +1,15 @@ import tempfile from typing import Optional +from unittest.mock import MagicMock import pytest from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa -from feast.infra.utils.snowflake.snowflake_utils import parse_private_key_path +from feast.infra.utils.snowflake.snowflake_utils import ( + execute_snowflake_statement, + parse_private_key_path, +) PRIVATE_KEY_PASSPHRASE = "test" @@ -69,3 +73,38 @@ def test_parse_private_key_path_key_path_encrypted(encrypted_private_key): f.name, None, ) + + +class TestExecuteSnowflakeStatement: + def test_empty_query_is_passed_through_to_execute(self): + mock_conn = MagicMock() + mock_cursor = MagicMock() + mock_executed_cursor = MagicMock() + mock_conn.cursor.return_value = mock_cursor + mock_cursor.execute.return_value = mock_executed_cursor + + result = execute_snowflake_statement(mock_conn, "") + + assert result is mock_executed_cursor + mock_cursor.execute.assert_called_once_with("") + + def test_valid_query_executes_and_returns_cursor(self): + mock_conn = MagicMock() + mock_cursor = MagicMock() + mock_executed_cursor = MagicMock() + mock_conn.cursor.return_value = mock_cursor + mock_cursor.execute.return_value = mock_executed_cursor + + result = execute_snowflake_statement(mock_conn, "SELECT 1") + + assert result is mock_executed_cursor + mock_cursor.execute.assert_called_once_with("SELECT 1") + + def test_valid_query_raises_on_none_cursor(self): + mock_conn = MagicMock() + mock_cursor = MagicMock() + mock_conn.cursor.return_value = mock_cursor + mock_cursor.execute.return_value = None + + with pytest.raises(Exception, match="Snowflake query failed"): + execute_snowflake_statement(mock_conn, "SELECT 1") diff --git a/sdk/python/tests/unit/test_on_demand_feature_view_input_schema.py b/sdk/python/tests/unit/test_on_demand_feature_view_input_schema.py new file mode 100644 index 00000000000..fd69762ef08 --- /dev/null +++ b/sdk/python/tests/unit/test_on_demand_feature_view_input_schema.py @@ -0,0 +1,167 @@ +# Copyright 2025 The Feast Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Tests for OnDemandFeatureView input_schema support.""" + +import copy +from datetime import timedelta + +import pandas as pd +import pytest + +from feast import Entity, Field +from feast.aggregation import Aggregation +from feast.on_demand_feature_view import OnDemandFeatureView, on_demand_feature_view +from feast.types import Float64, Int64 +from feast.value_type import ValueType + +user = Entity(name="user", join_keys=["user_id"], value_type=ValueType.INT64) + + +def test_decorator_with_input_schema(): + """The @on_demand_feature_view decorator supports input_schema without sources.""" + + @on_demand_feature_view( + input_schema=[ + Field(name="txn_amount", dtype=Float64), + ], + schema=[ + Field(name="txn_count", dtype=Int64), + Field(name="total_txn_amount", dtype=Float64), + Field(name="avg_txn_amount", dtype=Float64), + ], + aggregations=[ + Aggregation( + column="txn_amount", + function="count", + name="txn_count", + time_window=timedelta(days=30), + ), + Aggregation( + column="txn_amount", + function="sum", + name="total_txn_amount", + time_window=timedelta(days=30), + ), + Aggregation( + column="txn_amount", + function="mean", + name="avg_txn_amount", + time_window=timedelta(days=30), + ), + ], + entities=[user], + ) + def compute_txn_stats(df: pd.DataFrame) -> pd.DataFrame: + return df + + assert isinstance(compute_txn_stats, OnDemandFeatureView) + assert compute_txn_stats.name == "compute_txn_stats" + assert compute_txn_stats.input_schema == [Field(name="txn_amount", dtype=Float64)] + assert len(compute_txn_stats.aggregations) == 3 + assert len(compute_txn_stats.features) == 3 + + # The internal sentinel RequestSource should be present + sentinel_name = ( + f"{OnDemandFeatureView._INPUT_SCHEMA_SOURCE_PREFIX}compute_txn_stats" + ) + assert sentinel_name in compute_txn_stats.source_request_sources + + # sources (user-visible) should be empty + assert compute_txn_stats.sources == [] + + +def test_aggregation_aliases(): + """Aggregation name and time_window params work correctly.""" + agg = Aggregation( + column="txn_amount", + function="sum", + name="total_txn_amount", + time_window=timedelta(days=30), + ) + assert agg.name == "total_txn_amount" + assert agg.time_window == timedelta(days=30) + + +def test_input_schema_proto_roundtrip(): + """An ODFV with input_schema survives a to_proto / from_proto round-trip.""" + + @on_demand_feature_view( + input_schema=[ + Field(name="txn_amount", dtype=Float64), + ], + schema=[ + Field(name="total_txn_amount", dtype=Float64), + ], + aggregations=[ + Aggregation( + column="txn_amount", + function="sum", + name="total_txn_amount", + time_window=timedelta(days=30), + ), + ], + entities=[user], + ) + def txn_view(df: pd.DataFrame) -> pd.DataFrame: + return df + + proto = txn_view.to_proto() + restored = OnDemandFeatureView.from_proto(proto) + + assert restored.input_schema == txn_view.input_schema + assert restored.aggregations == txn_view.aggregations + sentinel_name = f"{OnDemandFeatureView._INPUT_SCHEMA_SOURCE_PREFIX}txn_view" + assert sentinel_name in restored.source_request_sources + + +def test_input_schema_copy(): + """__copy__ preserves input_schema and aggregations.""" + + @on_demand_feature_view( + input_schema=[ + Field(name="txn_amount", dtype=Float64), + ], + schema=[ + Field(name="total_txn_amount", dtype=Float64), + ], + aggregations=[ + Aggregation(column="txn_amount", function="sum", name="total_txn_amount"), + ], + entities=[user], + ) + def copy_view(df: pd.DataFrame) -> pd.DataFrame: + return df + + cloned = copy.copy(copy_view) + assert cloned.input_schema == copy_view.input_schema + assert cloned.aggregations == copy_view.aggregations + sentinel_name = f"{OnDemandFeatureView._INPUT_SCHEMA_SOURCE_PREFIX}copy_view" + assert sentinel_name in cloned.source_request_sources + + +def test_sources_required_without_input_schema(): + """Constructor raises if neither sources nor input_schema is provided.""" + with pytest.raises( + (ValueError), + ): + + def dummy(df): + return df + + OnDemandFeatureView( + name="bad_view", + schema=[Field(name="out", dtype=Float64)], + udf=dummy, + ) From ccdbda9e04613317c54f45e0b5d5d48066f4ad8c Mon Sep 17 00:00:00 2001 From: Srihari Date: Mon, 30 Mar 2026 17:32:53 +0530 Subject: [PATCH 25/37] test: Add Konflux ITS nightly run check Signed-off-by: Srihari add Konflux build pipelines and nightly integration test workflow Signed-off-by: Srihari --- .../workflows/trigger-konflux-nightly.yaml | 96 ++++++++ .tekton/README.md | 220 ++++++++++++++++++ .tekton/feast-group-test.yaml | 67 ++++++ .tekton/feast-nightly-test.yaml | 62 +++++ .tekton/feast-pr-test.yaml | 59 +++++ .tekton/odh-feast-operator-pull-request.yaml | 55 +++++ .tekton/odh-feast-operator-push.yaml | 46 ++++ .tekton/odh-feature-server-pull-request.yaml | 55 +++++ .tekton/odh-feature-server-push.yaml | 46 ++++ 9 files changed, 706 insertions(+) create mode 100644 .github/workflows/trigger-konflux-nightly.yaml create mode 100644 .tekton/README.md create mode 100644 .tekton/feast-group-test.yaml create mode 100644 .tekton/feast-nightly-test.yaml create mode 100644 .tekton/feast-pr-test.yaml create mode 100644 .tekton/odh-feast-operator-pull-request.yaml create mode 100644 .tekton/odh-feast-operator-push.yaml create mode 100644 .tekton/odh-feature-server-pull-request.yaml create mode 100644 .tekton/odh-feature-server-push.yaml diff --git a/.github/workflows/trigger-konflux-nightly.yaml b/.github/workflows/trigger-konflux-nightly.yaml new file mode 100644 index 00000000000..d577097976e --- /dev/null +++ b/.github/workflows/trigger-konflux-nightly.yaml @@ -0,0 +1,96 @@ +name: Nightly Test Status Monitor + +# The Feast nightly integration test is scheduled and executed entirely within +# Konflux via the PaC cron trigger in .tekton/feast-nightly-test.yaml (daily +# at 8 AM UTC). The Konflux pipeline posts the result back to GitHub as a +# commit status (context: konflux/nightly-feast) on the master HEAD. +# +# This workflow runs after the Konflux pipeline should have completed and +# reports the nightly status in the GitHub Actions summary. +# +# No Konflux API secrets are required. + +on: + schedule: + - cron: '0 11 * * *' # 11 AM UTC — Konflux nightly starts 8 AM, runs ~2h + workflow_dispatch: + inputs: + branch: + description: 'Branch to check nightly status for' + required: false + default: 'master' + type: string + +env: + STATUS_CONTEXT: 'konflux/nightly-feast' + +jobs: + check-nightly-status: + runs-on: ubuntu-latest + permissions: + statuses: read + steps: + - name: Get branch HEAD SHA + id: sha + env: + GH_TOKEN: ${{ github.token }} + BRANCH: ${{ inputs.branch || 'master' }} + run: | + SHA=$(gh api "repos/${{ github.repository }}/git/refs/heads/${BRANCH}" \ + --jq '.object.sha') + echo "sha=${SHA}" >> "$GITHUB_OUTPUT" + echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT" + echo "Branch: ${BRANCH} SHA: ${SHA}" + + - name: Read Konflux nightly commit status + id: nightly + env: + GH_TOKEN: ${{ github.token }} + run: | + # The Konflux nightly pipeline posts commit status via report-nightly-status task. + # Statuses are ordered newest-first; pick the first matching context. + PAYLOAD=$(gh api \ + "repos/${{ github.repository }}/commits/${{ steps.sha.outputs.sha }}/statuses" \ + --jq "[.[] | select(.context == \"${STATUS_CONTEXT}\")] | first // {}") + + STATE=$(echo "$PAYLOAD" | jq -r '.state // "not_found"') + DESCRIPTION=$(echo "$PAYLOAD" | jq -r '.description // ""') + TARGET_URL=$(echo "$PAYLOAD" | jq -r '.target_url // ""') + + echo "state=${STATE}" >> "$GITHUB_OUTPUT" + echo "description=${DESCRIPTION}" >> "$GITHUB_OUTPUT" + echo "target_url=${TARGET_URL}" >> "$GITHUB_OUTPUT" + + echo "Konflux nightly status: ${STATE}" + echo "Description: ${DESCRIPTION}" + echo "Details URL: ${TARGET_URL}" + + if [ "${STATE}" = "pending" ]; then + echo "::warning::Konflux nightly pipeline is still pending — results not available yet." + elif [ "${STATE}" = "not_found" ]; then + echo "::warning::No commit status found for context '${STATUS_CONTEXT}' on ${BRANCH} HEAD." + echo "::warning::The Konflux pipeline may not have run yet or status was not posted." + elif [ "${STATE}" = "failure" ]; then + echo "::error::Konflux nightly test failed — see Details URL for pipeline run logs." + fi + + - name: Summary + if: always() + env: + STATE: ${{ steps.nightly.outputs.state }} + DESCRIPTION: ${{ steps.nightly.outputs.description }} + TARGET_URL: ${{ steps.nightly.outputs.target_url }} + run: | + { + echo "## Feast Nightly Test Status" + echo "" + echo "| | |" + echo "|---|---|" + echo "| **Branch** | \`${{ steps.sha.outputs.branch }}\` |" + echo "| **Commit** | \`${{ steps.sha.outputs.sha }}\` |" + echo "| **Konflux status** | \`${STATE}\` |" + echo "| **Description** | ${DESCRIPTION} |" + if [ -n "${TARGET_URL}" ]; then + echo "| **Details** | [View pipeline run](${TARGET_URL}) |" + fi + } >> "$GITHUB_STEP_SUMMARY" diff --git a/.tekton/README.md b/.tekton/README.md new file mode 100644 index 00000000000..181cdd55be7 --- /dev/null +++ b/.tekton/README.md @@ -0,0 +1,220 @@ +# Tekton Pipelines (Pipelines-as-Code) + +This directory contains Tekton `PipelineRun` definitions used for building and +testing the Open Data Hub (ODH) Feast components on the Konflux ITS OpenShift +environment. Pipelines are triggered by +[Pipelines-as-Code](https://pipelinesascode.com/) based on repository events +and comments. + +For Tekton concepts (Tasks, Pipelines, PipelineRuns), see the +[Tekton Getting Started](http://tekton.dev/docs/getting-started/) documentation. + +--- + +## Overview + +``` +PR opened / updated + ├─ odh-feast-operator-pull-request → quay.io/opendatahub/feast-operator:odh-pr- + └─ odh-feature-server-pull-request → quay.io/opendatahub/feature-server:odh-pr- + │ + ├─ /group-test or group-test event → feast-group-test (tests PR images) + └─ /pr-e2etest comment → feast-pr-test (tests PR images) + +Merge to master + ├─ odh-feast-operator-push → quay.io/opendatahub/feast-operator:odh-master + └─ odh-feature-server-push → quay.io/opendatahub/feature-server:odh-master + │ + └─ Daily 8 AM UTC cron / → feast-nightly-test (tests odh-master images) +``` + +All integration test pipelines provision an ephemeral HyperShift cluster +(m5.2xlarge, latest OCP 4.x via EaaS), deploy the Feast operator and feature +server, run the full test suite, collect must-gather artifacts, and post +results back to GitHub. + +--- + +## Build pipelines + +### `odh-feast-operator-pull-request.yaml` — Operator image build (PR) + +Builds the Feast operator image from a pull request and pushes it to quay.io. +Required before running `/group-test` or `/pr-e2etest` on a PR. + +| | | +|---|---| +| **Trigger** | Pull request opened or updated targeting `master` | +| **Source** | PR head branch at `{{revision}}` | +| **Build context** | `infra/feast-operator` | +| **Dockerfile** | `infra/feast-operator/Dockerfile` | +| **Output image** | `quay.io/opendatahub/feast-operator:odh-pr-` and `odh-pr-` | +| **Service account** | `build-pipeline-odh-feast-operator` | + +--- + +### `odh-feature-server-pull-request.yaml` — Feature server image build (PR) + +Builds the feature server image from a pull request and pushes it to quay.io. +Required before running `/group-test` or `/pr-e2etest` on a PR. + +| | | +|---|---| +| **Trigger** | Pull request opened or updated targeting `master` | +| **Source** | PR head branch at `{{revision}}` | +| **Build context** | `sdk/python/feast/infra/feature_servers/multicloud` | +| **Dockerfile** | `sdk/python/feast/infra/feature_servers/multicloud/Dockerfile` | +| **Output image** | `quay.io/opendatahub/feature-server:odh-pr-` and `odh-pr-` | +| **Service account** | `build-pipeline-odh-feature-server` | + +--- + +### `odh-feast-operator-push.yaml` — Operator image build (merge to master) + +Builds and pushes the Feast operator image on every merge to `master`. This is +the image the nightly test pipeline resolves via the `odh-master` tag. + +| | | +|---|---| +| **Trigger** | Push to `master` | +| **Source** | `master` branch | +| **Build context** | `infra/feast-operator` | +| **Dockerfile** | `infra/feast-operator/Dockerfile` | +| **Output image** | `quay.io/opendatahub/feast-operator:odh-master` | +| **Service account** | `build-pipeline-odh-feast-operator` | +| **Pipeline** | [`multi-arch-container-build.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/pipeline/multi-arch-container-build.yaml) | + +--- + +### `odh-feature-server-push.yaml` — Feature server image build (merge to master) + +Builds and pushes the feature server image on every merge to `master`. This is +the image the nightly test pipeline resolves via the `odh-master` tag. + +| | | +|---|---| +| **Trigger** | Push to `master` | +| **Source** | `master` branch | +| **Build context** | `sdk/python/feast/infra/feature_servers/multicloud` | +| **Dockerfile** | `sdk/python/feast/infra/feature_servers/multicloud/Dockerfile` | +| **Output image** | `quay.io/opendatahub/feature-server:odh-master` | +| **Service account** | `build-pipeline-odh-feature-server` | +| **Pipeline** | [`multi-arch-container-build.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/pipeline/multi-arch-container-build.yaml) | + +--- + +## Integration test pipelines + +All three test pipelines run the same test suite on an ephemeral HyperShift +cluster. They differ only in what images they test and how they are triggered. + +**Tests that run:** + +| Test | Command | Description | +|------|---------|-------------| +| Feature Store Operator E2E | `make install && make deploy && make test-e2e` | Full operator + feature server e2e after deployment | +| Registry REST API | `uv run pytest ...test_registry_rest_api.py --integration` | Integration tests for the registry REST API | +| Previous-version compatibility | `make test-previous-version` | Validates compatibility with the previous operator version | +| Upgrade test | `make test-upgrade` | Validates upgrading the operator to the tested version | + +After the test step, the pipeline runs must-gather (Feast + OpenShift), +pushes artifacts to the CI artifacts repo and OCI storage, and posts +results back to GitHub. + +The test runner image is defined in +[`Dockerfile.go-its`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/integration-tests/feast/Dockerfile.go-its) +and includes Go, Python, `oc`/kubectl, `uv`, `skopeo`, and other tools. + +--- + +### `feast-nightly-test.yaml` — Nightly integration test + +Runs the full integration test suite against the latest `odh-master` images +built by the push pipelines. Tests master branch quality on a daily cadence. + +| | | +|---|---| +| **Trigger** | Daily cron at **8 AM UTC** on `master` | +| **Images tested** | `quay.io/opendatahub/feast-operator:odh-master` and `quay.io/opendatahub/feature-server:odh-master` — resolved by digest at run time | +| **Source cloned** | `opendatahub-io/feast` at the commit embedded in the `odh-master` image label | +| **Pipeline** | [`nightly-testing-pipeline.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/integration-tests/feast/nightly-testing-pipeline.yaml) | +| **Result reporting** | Commit status `konflux/nightly-feast` posted to master HEAD; GitHub Actions monitors and opens issues on failure | + +**How images are resolved** + +The nightly pipeline does **not** build images inline. A `resolve-images` task +runs `skopeo inspect` on the `odh-master` tags and reads the +`io.openshift.build.commit.id` label to determine the exact source commit. +This ensures tests always run against properly Konflux-built images (feast +installed from PyPI, all assets present). + +--- + +### `feast-group-test.yaml` — Group integration test + +Runs integration tests using images built from the **current pull request**. +Use this when changes may affect both the Feast operator and the feature server +(e.g. API changes, shared library updates). + +| | | +|---|---| +| **Trigger** | `group-test` event (from Konflux App Studio group-test workflow) | +| **Trigger (manual)** | Comment `/group-test` on a pull request | +| **Images tested** | PR-built images resolved by the `generate-snapshot` task (`odh-pr-`) | +| **Source cloned** | `opendatahub-io/feast` at the PR commit | +| **Pipeline** | [`pr-group-testing-pipeline.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/integration-tests/feast/pr-group-testing-pipeline.yaml) | +| **Result reporting** | GitHub check run `Red Hat Konflux / feast-group-test` posted to the PR by Pipelines-as-Code; PR comment with artifact browser link posted on completion | + +**How images get into the group test** + +1. When a PR is opened or updated, `odh-feast-operator-pull-request` and + `odh-feature-server-pull-request` build and push images tagged + `odh-pr-` and `odh-pr-`. +2. When `/group-test` is triggered, the `generate-snapshot` task finds those + PR images by component name, assembles a snapshot JSON with their digests + and git metadata, and passes it to `deploy-and-test`. + +Both the images and the source checkout use the same PR commit, so the code +under test is always consistent. + +--- + +### `feast-pr-test.yaml` — PR integration test (manual) + +Identical test flow to `feast-group-test` but triggered manually by a PR +comment. Use this to run a full integration test on demand without waiting for +the group-test event. + +| | | +|---|---| +| **Trigger (manual)** | Comment `/pr-e2etest` on a pull request | +| **Images tested** | PR-built images resolved by the `generate-snapshot` task (`odh-pr-`) | +| **Source cloned** | `opendatahub-io/feast` at the PR commit | +| **Pipeline** | [`pr-group-testing-pipeline.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/integration-tests/feast/pr-group-testing-pipeline.yaml) | +| **Max keep runs** | 5 (higher than group-test to retain more history for manual runs) | + +--- + +## Trigger reference + +| Comment / event | Pipeline | Images tested | When to use | +|-----------------|----------|---------------|-------------| +| PR opened/updated | `odh-feast-operator-pull-request` + `odh-feature-server-pull-request` | — (build only) | Automatic on every PR | +| `group-test` event or `/group-test` | `feast-group-test` | PR images | Multi-component changes | +| `/pr-e2etest` | `feast-pr-test` | PR images | On-demand full e2e on a PR | +| Daily 8 AM UTC `feast-nightly-test` | `odh-master` images | Master branch quality gate | +| Merge to master | `odh-feast-operator-push` + `odh-feature-server-push` | — (build only) | Automatic on every merge | + +--- + +## Pipeline definitions + +All integration test pipeline definitions live in +[`opendatahub-io/odh-konflux-central`](https://github.com/opendatahub-io/odh-konflux-central/tree/main/integration-tests/feast): + +| File | Used by | +|------|---------| +| [`nightly-testing-pipeline.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/integration-tests/feast/nightly-testing-pipeline.yaml) | `feast-nightly-test` | +| [`pr-group-testing-pipeline.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/integration-tests/feast/pr-group-testing-pipeline.yaml) | `feast-group-test`, `feast-pr-test` | +| [`Dockerfile.go-its`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/integration-tests/feast/Dockerfile.go-its) | Test runner image for all test pipelines | +| [`multi-arch-container-build.yaml`](https://github.com/opendatahub-io/odh-konflux-central/blob/main/pipeline/multi-arch-container-build.yaml) | All build pipelines | diff --git a/.tekton/feast-group-test.yaml b/.tekton/feast-group-test.yaml new file mode 100644 index 00000000000..67c8ad45639 --- /dev/null +++ b/.tekton/feast-group-test.yaml @@ -0,0 +1,67 @@ +--- +# Feast Group Test Pipeline (Pipelines-as-Code) +# +# This PipelineRun triggers integration tests across multiple Feast components +# (feast-operator and feature-server) in a single run. It is used for +# group testing when changes may affect more than one component. +# +# Triggers: +# - Event: group-test (e.g. from Konflux/App Studio group-test workflow) +# - Comment: /group-test on a pull request +# +# Pipeline definition: odh-konflux-central/integration-tests/feast/pr-group-testing-pipeline.yaml +# Components tested: odh-feast-operator-ci, odh-feature-server-ci +# +# Images used in the test are built from the PR by the per-component PR pipelines +# (odh-feast-operator-pull-request, odh-feature-server-pull-request). generate-snapshot +# assembles a snapshot of those PR-built image refs; deploy-and-test uses them and the +# PR commit for e2e and REST API tests. See .tekton/README.md for details. +# +# Required template variables (supplied by Pipelines-as-Code): +# - revision, target_branch, pull_request_number, git_auth_secret +# +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/feast?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' + pipelinesascode.tekton.dev/cancel-in-progress: "false" + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-cel-expression: event == "group-test" + pipelinesascode.tekton.dev/on-comment: "^/group-test" + name: feast-group-test + namespace: open-data-hub-tenant + labels: + appstudio.openshift.io/application: group-testing + appstudio.openshift.io/component: feast-group + pipelines.appstudio.openshift.io/type: test +spec: + params: + - name: group-components + value: '{ "odh-feast-operator-ci": "opendatahub/feast-operator", "odh-feature-server-ci": "opendatahub/feature-server" }' + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: main + - name: pathInRepo + value: integration-tests/feast/pr-group-testing-pipeline.yaml + taskRunTemplate: + podTemplate: + nodeSelector: + konflux-ci.dev/workload: konflux-tenants + tolerations: + - effect: NoSchedule + key: konflux-ci.dev/workload + operator: Equal + value: konflux-tenants + serviceAccountName: konflux-integration-runner + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' diff --git a/.tekton/feast-nightly-test.yaml b/.tekton/feast-nightly-test.yaml new file mode 100644 index 00000000000..591a0cb057e --- /dev/null +++ b/.tekton/feast-nightly-test.yaml @@ -0,0 +1,62 @@ +--- +# Feast Nightly Test Pipeline (Pipelines-as-Code) +# +# Triggers the nightly integration test pipeline which resolves the latest +# Konflux-built odh-master images (pushed on every merge to master by the +# odh-feast-operator-push and odh-feature-server-push pipelines), provisions +# an ephemeral HyperShift cluster, deploys the operator and feature-server, +# and runs the full e2e + REST API + previous-version + upgrade test suite. +# +# Triggers: +# - Cron: daily at 8 AM UTC +# - Comment: /nightly-test on a pull request +# +# Pipeline definition: odh-konflux-central/integration-tests/feast/nightly-testing-pipeline.yaml +# +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/feast?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + pipelinesascode.tekton.dev/cancel-in-progress: "false" + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-cron: "0 8 * * *" + pipelinesascode.tekton.dev/on-target-branch: "[master]" + pipelinesascode.tekton.dev/on-comment: "^/nightly-test" + name: feast-nightly-test + namespace: open-data-hub-tenant + labels: + appstudio.openshift.io/application: group-testing + appstudio.openshift.io/component: feast-nightly + pipelines.appstudio.openshift.io/type: test +spec: + params: + - name: git-repo + value: opendatahub-io/feast + - name: git-branch + value: master + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: main + - name: pathInRepo + value: integration-tests/feast/nightly-testing-pipeline.yaml + taskRunTemplate: + podTemplate: + nodeSelector: + konflux-ci.dev/workload: konflux-tenants + tolerations: + - effect: NoSchedule + key: konflux-ci.dev/workload + operator: Equal + value: konflux-tenants + serviceAccountName: konflux-integration-runner + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' diff --git a/.tekton/feast-pr-test.yaml b/.tekton/feast-pr-test.yaml new file mode 100644 index 00000000000..47ed5407d48 --- /dev/null +++ b/.tekton/feast-pr-test.yaml @@ -0,0 +1,59 @@ +--- +# Feast PR integration test (Pipelines-as-Code) +# +# Runs the same Hypershift + deploy + e2e flow as /group-test: uses Konflux +# snapshot images built from the pull request (odh-feast-operator-ci, +# odh-feature-server-ci), not freshly built nightly images. +# +# Triggers: +# - Comment: /pr-e2etest on a pull request (manual trigger) +# +# Pipeline definition: opendatahub-io/odh-konflux-central +# integration-tests/feast/pr-group-testing-pipeline.yaml +# +# Components tested: odh-feast-operator-ci, odh-feature-server-ci +# +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/feast?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' + pipelinesascode.tekton.dev/cancel-in-progress: "false" + pipelinesascode.tekton.dev/max-keep-runs: "5" + pipelinesascode.tekton.dev/on-comment: "^/pr-e2etest" + name: feast-pr-test + namespace: open-data-hub-tenant + labels: + appstudio.openshift.io/application: group-testing + appstudio.openshift.io/component: feast-group + pipelines.appstudio.openshift.io/type: test +spec: + params: + - name: group-components + value: '{ "odh-feast-operator-ci": "opendatahub/feast-operator", "odh-feature-server-ci": "opendatahub/feature-server" }' + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: main + - name: pathInRepo + value: integration-tests/feast/pr-group-testing-pipeline.yaml + taskRunTemplate: + podTemplate: + nodeSelector: + konflux-ci.dev/workload: konflux-tenants + tolerations: + - effect: NoSchedule + key: konflux-ci.dev/workload + operator: Equal + value: konflux-tenants + serviceAccountName: konflux-integration-runner + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' diff --git a/.tekton/odh-feast-operator-pull-request.yaml b/.tekton/odh-feast-operator-pull-request.yaml new file mode 100644 index 00000000000..02381d0b920 --- /dev/null +++ b/.tekton/odh-feast-operator-pull-request.yaml @@ -0,0 +1,55 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/feast?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' + pipelinesascode.tekton.dev/cancel-in-progress: "false" + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch + == "master" + creationTimestamp: null + labels: + appstudio.openshift.io/application: opendatahub-builds + appstudio.openshift.io/component: odh-feast-operator-ci + pipelines.appstudio.openshift.io/type: build + name: odh-feast-operator-on-pull-request + namespace: open-data-hub-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + - name: output-image + value: quay.io/opendatahub/feast-operator:odh-pr + - name: dockerfile + value: Dockerfile + - name: path-context + value: infra/feast-operator + - name: additional-tags + value: + - 'odh-pr-{{revision}}' + - 'odh-pr-{{pull_request_number}}' + - name: pipeline-type + value: pull-request + - name: enable-group-testing + value: "true" + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: main + - name: pathInRepo + value: pipeline/multi-arch-container-build.yaml + taskRunTemplate: + serviceAccountName: build-pipeline-odh-feast-operator + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {} diff --git a/.tekton/odh-feast-operator-push.yaml b/.tekton/odh-feast-operator-push.yaml new file mode 100644 index 00000000000..e1759e31479 --- /dev/null +++ b/.tekton/odh-feast-operator-push.yaml @@ -0,0 +1,46 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/feast?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + pipelinesascode.tekton.dev/cancel-in-progress: "false" + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch + == "master" + creationTimestamp: null + labels: + appstudio.openshift.io/application: opendatahub-builds + appstudio.openshift.io/component: odh-feast-operator-ci + pipelines.appstudio.openshift.io/type: build + name: odh-feast-operator-on-push + namespace: open-data-hub-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + - name: output-image + value: quay.io/opendatahub/feast-operator:odh-master + - name: dockerfile + value: Dockerfile + - name: path-context + value: infra/feast-operator + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: main + - name: pathInRepo + value: pipeline/multi-arch-container-build.yaml + taskRunTemplate: + serviceAccountName: build-pipeline-odh-feast-operator + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {} diff --git a/.tekton/odh-feature-server-pull-request.yaml b/.tekton/odh-feature-server-pull-request.yaml new file mode 100644 index 00000000000..1aa1edd97bc --- /dev/null +++ b/.tekton/odh-feature-server-pull-request.yaml @@ -0,0 +1,55 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/feast?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' + pipelinesascode.tekton.dev/cancel-in-progress: "false" + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch + == "master" + creationTimestamp: null + labels: + appstudio.openshift.io/application: opendatahub-builds + appstudio.openshift.io/component: odh-feature-server-ci + pipelines.appstudio.openshift.io/type: build + name: odh-feature-server-on-pull-request + namespace: open-data-hub-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + - name: output-image + value: quay.io/opendatahub/feature-server:odh-pr + - name: dockerfile + value: Dockerfile + - name: path-context + value: sdk/python/feast/infra/feature_servers/multicloud + - name: additional-tags + value: + - 'odh-pr-{{revision}}' + - 'odh-pr-{{pull_request_number}}' + - name: pipeline-type + value: pull-request + - name: enable-group-testing + value: "true" + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: main + - name: pathInRepo + value: pipeline/multi-arch-container-build.yaml + taskRunTemplate: + serviceAccountName: build-pipeline-odh-feature-server + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {} diff --git a/.tekton/odh-feature-server-push.yaml b/.tekton/odh-feature-server-push.yaml new file mode 100644 index 00000000000..7e9ee947fc5 --- /dev/null +++ b/.tekton/odh-feature-server-push.yaml @@ -0,0 +1,46 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/feast?rev={{revision}} + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + pipelinesascode.tekton.dev/cancel-in-progress: "false" + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch + == "master" + creationTimestamp: null + labels: + appstudio.openshift.io/application: opendatahub-builds + appstudio.openshift.io/component: odh-feature-server-ci + pipelines.appstudio.openshift.io/type: build + name: odh-feature-server-on-push + namespace: open-data-hub-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + - name: output-image + value: quay.io/opendatahub/feature-server:odh-master + - name: dockerfile + value: Dockerfile + - name: path-context + value: sdk/python/feast/infra/feature_servers/multicloud + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: main + - name: pathInRepo + value: pipeline/multi-arch-container-build.yaml + taskRunTemplate: + serviceAccountName: build-pipeline-odh-feature-server + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {} From 8564a933d2e510a8d4db06d31d5a178fb69dd2a2 Mon Sep 17 00:00:00 2001 From: Nikhil Kathole Date: Fri, 8 May 2026 13:31:34 +0530 Subject: [PATCH 26/37] Merge remote-tracking branch 'upstream/master' (#117) * fix: Update go-feature-server base image to Go 1.25 and fix operator Dockerfile COPY permissions Signed-off-by: ntkathole * fix: Allow to publish from reference branch Signed-off-by: ntkathole * docs: Blog Post for MongoDB integration (#6375) * fix: Fix mongodb blog title Signed-off-by: ntkathole * fix: Fixed formatting and image for mongo blog (#6377) Signed-off-by: ntkathole * [WIP] Add hero image for social preview in blog posts (#6379) * Initial plan * fix: use blog hero image for social preview metadata Agent-Logs-Url: https://github.com/feast-dev/feast/sessions/8c33bcc6-0cd4-4222-95a1-bfa02f136b5b Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com> * fix: harden hero image extraction for blog social tags Agent-Logs-Url: https://github.com/feast-dev/feast/sessions/8c33bcc6-0cd4-4222-95a1-bfa02f136b5b Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com> * feat: Support non-string map key types (#6382) (#6383) --------- Signed-off-by: ntkathole Co-authored-by: bisht2050 <108942387+bisht2050@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: franciscojavierarceo <4163062+franciscojavierarceo@users.noreply.github.com> Co-authored-by: nquinn408 <57655411+nquinn408@users.noreply.github.com> --- .github/workflows/publish_images.yml | 5 + docs/getting-started/concepts/feast-types.md | 6 +- docs/reference/type-system.md | 54 +- go/infra/docker/feature-server/Dockerfile | 3 +- infra/feast-operator/Dockerfile | 10 +- infra/feast-operator/Makefile | 2 +- infra/feast-operator/go.mod | 48 +- infra/feast-operator/go.sum | 103 +- .../docs/blog/mongodb-feast-integration.md | 210 ++ .../images/blog/mongodb-feature-stores.png | Bin 0 -> 326110 bytes infra/website/src/layouts/BaseLayout.astro | 18 +- infra/website/src/pages/blog/[slug].astro | 27 +- protos/feast/types/Value.proto | 29 + pyproject.toml | 2 +- .../protos/feast/core/Aggregation_pb2.pyi | 65 +- .../protos/feast/core/DataFormat_pb2.pyi | 354 ++- .../protos/feast/core/DataSource_pb2.pyi | 711 +++-- .../protos/feast/core/DatastoreTable_pb2.pyi | 70 +- .../feast/protos/feast/core/Entity_pb2.pyi | 181 +- .../protos/feast/core/FeatureService_pb2.pyi | 444 +-- .../protos/feast/core/FeatureTable_pb2.pyi | 213 +- .../feast/core/FeatureViewProjection_pb2.pyi | 135 +- .../feast/core/FeatureViewVersion_pb2.pyi | 103 +- .../protos/feast/core/FeatureView_pb2.pyi | 359 ++- .../feast/protos/feast/core/Feature_pb2.pyi | 99 +- .../protos/feast/core/InfraObject_pb2.pyi | 104 +- .../feast/core/OnDemandFeatureView_pb2.pyi | 404 +-- .../protos/feast/core/Permission_pb2.pyi | 225 +- .../feast/protos/feast/core/Policy_pb2.pyi | 172 +- .../feast/protos/feast/core/Project_pb2.pyi | 143 +- .../feast/protos/feast/core/Registry_pb2.pyi | 224 +- .../protos/feast/core/SavedDataset_pb2.pyi | 299 +- .../protos/feast/core/SqliteTable_pb2.pyi | 38 +- .../feast/protos/feast/core/Store_pb2.pyi | 223 +- .../feast/core/StreamFeatureView_pb2.pyi | 288 +- .../protos/feast/core/Transformation_pb2.pyi | 105 +- .../feast/core/ValidationProfile_pb2.pyi | 170 +- .../feast/registry/RegistryServer_pb2.pyi | 2812 +++++++++-------- .../protos/feast/serving/Connector_pb2.pyi | 133 +- .../protos/feast/serving/GrpcServer_pb2.pyi | 238 +- .../feast/serving/ServingService_pb2.pyi | 448 +-- .../serving/TransformationService_pb2.pyi | 145 +- .../feast/protos/feast/storage/Redis_pb2.pyi | 60 +- .../protos/feast/types/EntityKey_pb2.pyi | 48 +- .../feast/protos/feast/types/Field_pb2.pyi | 81 +- .../feast/protos/feast/types/Value_pb2.py | 92 +- .../feast/protos/feast/types/Value_pb2.pyi | 816 +++-- sdk/python/feast/type_map.py | 103 + sdk/python/feast/types.py | 5 + sdk/python/feast/value_type.py | 1 + sdk/python/tests/unit/test_type_map.py | 112 + 51 files changed, 6112 insertions(+), 4628 deletions(-) create mode 100644 infra/website/docs/blog/mongodb-feast-integration.md create mode 100644 infra/website/public/images/blog/mongodb-feature-stores.png diff --git a/.github/workflows/publish_images.yml b/.github/workflows/publish_images.yml index 9a626b434dd..8b9abddcb0e 100644 --- a/.github/workflows/publish_images.yml +++ b/.github/workflows/publish_images.yml @@ -11,6 +11,10 @@ on: required: true default: "" type: string + ref: + description: 'Git ref to checkout (branch, tag, or SHA). Defaults to the triggering ref. Use to rebuild images from a different branch (e.g., master) when the release tag has a broken Dockerfile.' + required: false + type: string workflow_call: # Allows trigger of the workflow from another workflow inputs: custom_version: # Optional input for a custom version @@ -36,6 +40,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + ref: ${{ github.event.inputs.ref || github.ref }} submodules: 'true' - id: get-version uses: ./.github/actions/get-semantic-release-version diff --git a/docs/getting-started/concepts/feast-types.md b/docs/getting-started/concepts/feast-types.md index df95ea3bc2a..7d864b6a18f 100644 --- a/docs/getting-started/concepts/feast-types.md +++ b/docs/getting-started/concepts/feast-types.md @@ -12,7 +12,7 @@ Feast supports the following categories of data types: - **UUID types**: `Uuid` and `TimeUuid` for universally unique identifiers. Stored as strings at the proto level but deserialized to `uuid.UUID` objects in Python. - **Array types**: ordered lists of any primitive type, e.g. `Array(Int64)`, `Array(String)`, `Array(Uuid)`. - **Set types**: unordered collections of unique values for any primitive type, e.g. `Set(String)`, `Set(Int64)`. Set types are not inferred by any backend and must be explicitly declared. They are best suited for online serving use cases. -- **Map types**: dictionary-like structures with string keys and values that can be any supported Feast type (including nested maps), e.g. `Map`, `Array(Map)`. +- **Map types**: dictionary-like structures. `Map` has string keys and values that can be any supported Feast type (including nested maps), e.g. `Map`, `Array(Map)`. `ScalarMap` has non-string scalar keys (int, float, bool, UUID, Decimal, bytes, datetime) — Feast infers `ScalarMap` automatically when the first key is not a string. `ScalarMap` must be explicitly declared in schema and is not inferred by any backend. - **JSON type**: opaque JSON data stored as a string at the proto level but semantically distinct from `String` — backends use native JSON types (`jsonb`, `VARIANT`, etc.), e.g. `Json`, `Array(Json)`. - **Struct type**: schema-aware structured type with named, typed fields. Unlike `Map` (which is schema-free), a `Struct` declares its field names and their types, enabling schema validation, e.g. `Struct({"name": String, "age": Int32})`. @@ -41,8 +41,8 @@ Map, JSON, and Struct types are supported across all major Feast backends: | Spark | `struct<...>` | `Struct` | | Spark | `array>` | `Array(Struct(...))` | | MSSQL | `nvarchar(max)` | `Map`, `Json`, `Struct` | -| DynamoDB | Proto bytes | `Map`, `Json`, `Struct` | -| Redis | Proto bytes | `Map`, `Json`, `Struct` | +| DynamoDB | Proto bytes | `Map`, `Json`, `Struct`, `ScalarMap` | +| Redis | Proto bytes | `Map`, `Json`, `Struct`, `ScalarMap` | | Milvus | `VARCHAR` (serialized) | `Map`, `Json`, `Struct` | **Note**: When the backend native type is ambiguous (e.g., `jsonb` could be `Map`, `Json`, or `Struct`), the **schema-declared Feast type takes precedence**. The backend-to-Feast type mappings above are only used for schema inference when no explicit type is provided. diff --git a/docs/reference/type-system.md b/docs/reference/type-system.md index 6353d41d90c..eb483c6e769 100644 --- a/docs/reference/type-system.md +++ b/docs/reference/type-system.md @@ -116,8 +116,13 @@ Map types allow storing dictionary-like data structures: |------------|-------------|-------------| | `Map` | `Dict[str, Any]` | Dictionary with string keys and values of any supported Feast type (including nested maps) | | `Array(Map)` | `List[Dict[str, Any]]` | List of dictionaries | +| `ScalarMap` | `Dict[Any, Any]` | Dictionary with non-string scalar keys (int, float, bool, UUID, Decimal, bytes, datetime) and values of any supported Feast type | -**Note:** Map keys must always be strings. Map values can be any supported Feast type, including primitives, arrays, or nested maps at the proto level. However, the PyArrow representation is `map`, which means backends that rely on PyArrow schemas (e.g., during materialization) treat Map as string-to-string. +**Note:** `Map` keys must always be strings. `ScalarMap` supports non-string scalar keys — Feast infers `ScalarMap` automatically when the first key of a dict is not a string. Map values can be any supported Feast type, including primitives, arrays, or nested maps at the proto level. However, the PyArrow representation is `map`, which means backends that rely on PyArrow schemas (e.g., during materialization) treat Map as string-to-string. + +{% hint style="warning" %} +`ScalarMap` is **not** inferred from any backend schema. You must declare it explicitly in your feature view schema. It is best suited for online serving use cases where the online store serializes proto bytes directly (e.g., Redis, DynamoDB, SQLite). +{% endhint %} **Backend support for Map:** @@ -129,7 +134,7 @@ Map types allow storing dictionary-like data structures: | Spark | `map` | `map<>` → `Map`, `array>` → `Array(Map)` | | Athena | `map` | Inferred as `Map` | | MSSQL | `nvarchar(max)` | Serialized as string | -| DynamoDB / Redis | Proto bytes | Full proto Map support | +| DynamoDB / Redis | Proto bytes | Full proto Map and ScalarMap support | ### JSON Type @@ -197,7 +202,7 @@ from datetime import timedelta from feast import Entity, FeatureView, Field, FileSource from feast.types import ( Int32, Int64, Float32, Float64, String, Bytes, Bool, UnixTimestamp, - Uuid, TimeUuid, Decimal, Array, Set, Map, Json, Struct + Uuid, TimeUuid, Decimal, Array, Set, Map, ScalarMap, Json, Struct ) # Define a data source @@ -257,6 +262,7 @@ user_features = FeatureView( Field(name="user_preferences", dtype=Map), Field(name="metadata", dtype=Map), Field(name="activity_log", dtype=Array(Map)), + Field(name="event_counts", dtype=ScalarMap), # non-string keys, e.g. {1001: 5, 1002: 12} # Nested collection types Field(name="weekly_scores", dtype=Array(Array(Float64))), @@ -383,7 +389,7 @@ Field(name="grouped_tags", dtype=Array(Set(Array(String)))) Maps can store complex nested data structures: ```python -# Simple map +# Simple map (string keys) user_preferences = { "theme": "dark", "language": "en", @@ -411,6 +417,44 @@ activity_log = [ ] ``` +### ScalarMap Type Usage Examples + +`ScalarMap` supports non-string keys. Feast infers it automatically when the first dict key is not a string: + +```python +import uuid +import decimal + +# Integer keys — e.g., category ID → item count +event_counts = {1001: 5, 1002: 12, 1003: 0} + +# UUID keys — e.g., session ID → score +import uuid +session_scores = { + uuid.UUID("6ba7b810-9dad-11d1-80b4-00c04fd430c8"): 0.95, + uuid.UUID("a8098c1a-f86e-11da-bd1a-00112444be1e"): 0.87, +} + +# Decimal keys — e.g., price bucket → product name +price_tier = { + decimal.Decimal("9.99"): "budget", + decimal.Decimal("49.99"): "standard", + decimal.Decimal("99.99"): "premium", +} + +# Type inference: Feast automatically picks SCALAR_MAP when the key is non-string +from feast.type_map import python_type_to_feast_value_type +from feast.value_type import ValueType + +python_type_to_feast_value_type({1: "a"}) # → ValueType.SCALAR_MAP +python_type_to_feast_value_type({"a": 1}) # → ValueType.MAP +python_type_to_feast_value_type({}) # → ValueType.MAP (empty dict defaults to MAP) +``` + +{% hint style="warning" %} +`ScalarMap` must be **explicitly declared** in your feature view schema — it is never inferred from backend type schemas. It is best suited for online serving via stores that use proto byte serialization (e.g., Redis, DynamoDB, SQLite). Materialization paths that use PyArrow (e.g., BigQuery, Snowflake, Redshift, Spark) do not have native `ScalarMap` support. +{% endhint %} + ### JSON Type Usage Examples Feast's `Json` type stores values as JSON strings at the proto level. You can pass either a @@ -461,7 +505,7 @@ Each of these columns must be associated with a Feast type, which requires conve * `source_datatype_to_feast_value_type` calls the appropriate method in `type_map.py`. For example, if a `SnowflakeSource` is being examined, `snowflake_python_type_to_feast_value_type` from `type_map.py` will be called. {% hint style="info" %} -**Types that cannot be inferred:** `Set`, `Json`, `Struct`, `Decimal`, `PdfBytes`, and `ImageBytes` types are never inferred from backend schemas. If you use these types, you must declare them explicitly in your feature view schema. +**Types that cannot be inferred:** `Set`, `Json`, `Struct`, `Decimal`, `ScalarMap`, `PdfBytes`, and `ImageBytes` types are never inferred from backend schemas. If you use these types, you must declare them explicitly in your feature view schema. {% endhint %} ### Materialization diff --git a/go/infra/docker/feature-server/Dockerfile b/go/infra/docker/feature-server/Dockerfile index b1fcda18c9b..3f7a2ab7b94 100644 --- a/go/infra/docker/feature-server/Dockerfile +++ b/go/infra/docker/feature-server/Dockerfile @@ -1,4 +1,5 @@ -FROM golang:1.24.12 +FROM golang:1.25 +ENV GOTOOLCHAIN=auto # Update the package list and install the ca-certificates package RUN apt-get update && apt-get install -y ca-certificates diff --git a/infra/feast-operator/Dockerfile b/infra/feast-operator/Dockerfile index e3a4ebbed28..9d27bbcaf3f 100644 --- a/infra/feast-operator/Dockerfile +++ b/infra/feast-operator/Dockerfile @@ -5,16 +5,16 @@ ARG TARGETARCH ENV GOTOOLCHAIN=auto # Copy the Go Modules manifests -COPY go.mod go.mod -COPY go.sum go.sum +COPY --chown=1001:0 go.mod go.mod +COPY --chown=1001:0 go.sum go.sum # cache deps before building and copying source so that we don't need to re-download as much # and so that source changes don't invalidate our downloaded layer RUN go mod download # Copy the go source -COPY cmd/main.go cmd/main.go -COPY api/ api/ -COPY internal/controller/ internal/controller/ +COPY --chown=1001:0 cmd/main.go cmd/main.go +COPY --chown=1001:0 api/ api/ +COPY --chown=1001:0 internal/controller/ internal/controller/ # Build # the GOARCH has not a default value to allow the binary be built according to the host where the command diff --git a/infra/feast-operator/Makefile b/infra/feast-operator/Makefile index b9515682e06..14fc6fe7824 100644 --- a/infra/feast-operator/Makefile +++ b/infra/feast-operator/Makefile @@ -241,7 +241,7 @@ ENVSUBST = $(LOCALBIN)/envsubst ## Tool Versions KUSTOMIZE_VERSION ?= v5.4.3 CONTROLLER_TOOLS_VERSION ?= v0.18.0 -CRD_REF_DOCS_VERSION ?= v0.3.0 +CRD_REF_DOCS_VERSION ?= v0.2.0 ENVTEST_VERSION ?= release-0.21 GOLANGCI_LINT_VERSION ?= v2.1.0 ENVSUBST_VERSION ?= v1.4.2 diff --git a/infra/feast-operator/go.mod b/infra/feast-operator/go.mod index 5b44e00cc79..72bdf42b6a2 100644 --- a/infra/feast-operator/go.mod +++ b/infra/feast-operator/go.mod @@ -7,16 +7,15 @@ require ( github.com/onsi/gomega v1.36.2 github.com/openshift/api v0.0.0-20240912201240-0a8800162826 // release-4.17 gopkg.in/yaml.v3 v3.0.1 - k8s.io/api v0.33.0 - k8s.io/apimachinery v0.33.0 - k8s.io/client-go v0.33.0 + k8s.io/api v0.33.1 + k8s.io/apimachinery v0.33.1 + k8s.io/client-go v0.33.1 sigs.k8s.io/controller-runtime v0.21.0 ) require ( - github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0 - k8s.io/apiextensions-apiserver v0.33.0 - k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 + github.com/prometheus-operator/prometheus-operator/pkg/client v0.83.0 + k8s.io/utils v0.0.0-20250502105355-0f33e8f1c979 ) require ( @@ -27,17 +26,17 @@ require ( github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/emicklei/go-restful/v3 v3.12.1 // indirect + github.com/emicklei/go-restful/v3 v3.12.2 // indirect github.com/evanphx/json-patch/v5 v5.9.11 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/fxamacker/cbor/v2 v2.7.0 // indirect + github.com/fxamacker/cbor/v2 v2.8.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-logr/zapr v1.3.0 // indirect - github.com/go-openapi/jsonpointer v0.21.0 // indirect + github.com/go-openapi/jsonpointer v0.21.1 // indirect github.com/go-openapi/jsonreference v0.21.0 // indirect - github.com/go-openapi/swag v0.23.0 // indirect + github.com/go-openapi/swag v0.23.1 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/google/btree v1.1.3 // indirect @@ -50,12 +49,12 @@ require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/mailru/easyjson v0.7.7 // indirect + github.com/mailru/easyjson v0.9.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.75.0 // indirect + github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.83.0 // indirect github.com/prometheus/client_golang v1.22.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.62.0 // indirect @@ -76,28 +75,29 @@ require ( go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect - golang.org/x/net v0.38.0 // indirect - golang.org/x/oauth2 v0.27.0 // indirect - golang.org/x/sync v0.12.0 // indirect - golang.org/x/sys v0.31.0 // indirect - golang.org/x/term v0.30.0 // indirect - golang.org/x/text v0.23.0 // indirect - golang.org/x/time v0.9.0 // indirect + golang.org/x/net v0.40.0 // indirect + golang.org/x/oauth2 v0.30.0 // indirect + golang.org/x/sync v0.14.0 // indirect + golang.org/x/sys v0.33.0 // indirect + golang.org/x/term v0.32.0 // indirect + golang.org/x/text v0.25.0 // indirect + golang.org/x/time v0.11.0 // indirect golang.org/x/tools v0.28.0 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect google.golang.org/grpc v1.68.1 // indirect - google.golang.org/protobuf v1.36.5 // indirect + google.golang.org/protobuf v1.36.6 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect - k8s.io/apiserver v0.33.0 // indirect - k8s.io/component-base v0.33.0 // indirect + k8s.io/apiextensions-apiserver v0.33.1 // indirect + k8s.io/apiserver v0.33.1 // indirect + k8s.io/component-base v0.33.1 // indirect k8s.io/klog/v2 v2.130.1 // indirect k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect - sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect + sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect sigs.k8s.io/randfill v1.0.0 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/infra/feast-operator/go.sum b/infra/feast-operator/go.sum index 47e16adc5e2..e2454886924 100644 --- a/infra/feast-operator/go.sum +++ b/infra/feast-operator/go.sum @@ -15,18 +15,18 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU= -github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls= -github.com/evanphx/json-patch v5.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/emicklei/go-restful/v3 v3.12.2 h1:DhwDP0vY3k8ZzE0RunuJy8GhNpPL6zqLkDf9B/a0/xU= +github.com/emicklei/go-restful/v3 v3.12.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/evanphx/json-patch v0.5.2 h1:xVCHIVMUu1wtM/VkR9jVZ45N3FhZfYMMYGorLCR8P3k= +github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= github.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU= github.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= -github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= +github.com/fxamacker/cbor/v2 v2.8.0 h1:fFtUGXUzXPHTIUdne5+zzMPTfffl3RD5qYnkY40vtxU= +github.com/fxamacker/cbor/v2 v2.8.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -34,12 +34,12 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-logr/zapr v1.3.0 h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ= github.com/go-logr/zapr v1.3.0/go.mod h1:YKepepNBd1u/oyhd/yQmtjVXmm9uML4IXUgMOwR8/Gg= -github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= -github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= +github.com/go-openapi/jsonpointer v0.21.1 h1:whnzv/pNXtK2FbX/W9yJfRmE2gsmkfahjMKB0fZvcic= +github.com/go-openapi/jsonpointer v0.21.1/go.mod h1:50I1STOfbY1ycR8jGz8DaMeLCdXiI6aDteEdRNNzpdk= github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ= github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4= -github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= -github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-openapi/swag v0.23.1 h1:lpsStH0n2ittzTnbaSloVZLuB5+fvSY/+hnagBjSNZU= +github.com/go-openapi/swag v0.23.1/go.mod h1:STZs8TbRvEQQKUA+JZNAm3EWlgaOBGpyFDqQnDHMef0= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= @@ -80,8 +80,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4= +github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -97,13 +97,12 @@ github.com/openshift/api v0.0.0-20240912201240-0a8800162826 h1:A8D9SN/hJUwAbdO0r github.com/openshift/api v0.0.0-20240912201240-0a8800162826/go.mod h1:OOh6Qopf21pSzqNVCB5gomomBXb8o5sGKZxG2KNpaXM= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.75.0 h1:62MgqpTrtjNd8cc0RJSFJ1OHqgSrThgHehGVuQaF/fc= -github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.75.0/go.mod h1:XYrdZw5dW12Cjkt4ndbeNZZTBp4UCHtW0ccR9+sTtPU= -github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0 h1:QcchdrYyQ9qRY0KZlEjx6gYUjPOvkZDbzOlHMp4ix88= -github.com/prometheus-operator/prometheus-operator/pkg/client v0.75.0/go.mod h1:ptPuQIiTdOvagifFhojZSJ/8VinU3/l7gOQ+Y6M0aqI= +github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.83.0 h1:j9Ce3W6X6Tzi0QnSap+YzGwpqJLJGP/7xV6P9f86jjM= +github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.83.0/go.mod h1:sSxwdmprUfmRfTknPc4KIjUd2ZIc/kirw4UdXNhOauM= +github.com/prometheus-operator/prometheus-operator/pkg/client v0.83.0 h1:odshP0+Jo6iUNGpK8MOFA6p5Yj0QOV4yLgiqFU5MVuI= +github.com/prometheus-operator/prometheus-operator/pkg/client v0.83.0/go.mod h1:6Ndhfow0psSp7dV1qp9zK5h++CDKz4eSFWPbrHd5Iic= github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= @@ -171,28 +170,28 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= -golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= -golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M= -golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= +golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY= +golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds= +golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= +golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= -golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.14.0 h1:woo0S4Yywslg6hp4eUFjTVOyKt0RookbpAHG4c1HmhQ= +golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= -golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= +golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= +golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.32.0 h1:DR4lr0TjUs3epypdhTOkMmuF5CDFJ/8pOnbzMZPQ7bg= +golang.org/x/term v0.32.0/go.mod h1:uZG1FhGx848Sqfsq4/DlJr3xGGsYMu/L5GW4abiaEPQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= -golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= -golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= -golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4= +golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA= +golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0= +golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= @@ -211,8 +210,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU= google.golang.org/grpc v1.68.1 h1:oI5oTa11+ng8r8XMMN7jAOmWfPZWbYpCFaMUTACxkM0= google.golang.org/grpc v1.68.1/go.mod h1:+q1XYFJjShcqn0QZHvCyeR4CXPA+llXIeUIfIe00waw= -google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= -google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= +google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -223,34 +222,34 @@ gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.33.0 h1:yTgZVn1XEe6opVpP1FylmNrIFWuDqe2H0V8CT5gxfIU= -k8s.io/api v0.33.0/go.mod h1:CTO61ECK/KU7haa3qq8sarQ0biLq2ju405IZAd9zsiM= -k8s.io/apiextensions-apiserver v0.33.0 h1:d2qpYL7Mngbsc1taA4IjJPRJ9ilnsXIrndH+r9IimOs= -k8s.io/apiextensions-apiserver v0.33.0/go.mod h1:VeJ8u9dEEN+tbETo+lFkwaaZPg6uFKLGj5vyNEwwSzc= -k8s.io/apimachinery v0.33.0 h1:1a6kHrJxb2hs4t8EE5wuR/WxKDwGN1FKH3JvDtA0CIQ= -k8s.io/apimachinery v0.33.0/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= -k8s.io/apiserver v0.33.0 h1:QqcM6c+qEEjkOODHppFXRiw/cE2zP85704YrQ9YaBbc= -k8s.io/apiserver v0.33.0/go.mod h1:EixYOit0YTxt8zrO2kBU7ixAtxFce9gKGq367nFmqI8= -k8s.io/client-go v0.33.0 h1:UASR0sAYVUzs2kYuKn/ZakZlcs2bEHaizrrHUZg0G98= -k8s.io/client-go v0.33.0/go.mod h1:kGkd+l/gNGg8GYWAPr0xF1rRKvVWvzh9vmZAMXtaKOg= -k8s.io/component-base v0.33.0 h1:Ot4PyJI+0JAD9covDhwLp9UNkUja209OzsJ4FzScBNk= -k8s.io/component-base v0.33.0/go.mod h1:aXYZLbw3kihdkOPMDhWbjGCO6sg+luw554KP51t8qCU= +k8s.io/api v0.33.1 h1:tA6Cf3bHnLIrUK4IqEgb2v++/GYUtqiu9sRVk3iBXyw= +k8s.io/api v0.33.1/go.mod h1:87esjTn9DRSRTD4fWMXamiXxJhpOIREjWOSjsW1kEHw= +k8s.io/apiextensions-apiserver v0.33.1 h1:N7ccbSlRN6I2QBcXevB73PixX2dQNIW0ZRuguEE91zI= +k8s.io/apiextensions-apiserver v0.33.1/go.mod h1:uNQ52z1A1Gu75QSa+pFK5bcXc4hq7lpOXbweZgi4dqA= +k8s.io/apimachinery v0.33.1 h1:mzqXWV8tW9Rw4VeW9rEkqvnxj59k1ezDUl20tFK/oM4= +k8s.io/apimachinery v0.33.1/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= +k8s.io/apiserver v0.33.1 h1:yLgLUPDVC6tHbNcw5uE9mo1T6ELhJj7B0geifra3Qdo= +k8s.io/apiserver v0.33.1/go.mod h1:VMbE4ArWYLO01omz+k8hFjAdYfc3GVAYPrhP2tTKccs= +k8s.io/client-go v0.33.1 h1:ZZV/Ks2g92cyxWkRRnfUDsnhNn28eFpt26aGc8KbXF4= +k8s.io/client-go v0.33.1/go.mod h1:JAsUrl1ArO7uRVFWfcj6kOomSlCv+JpvIsp6usAGefA= +k8s.io/component-base v0.33.1 h1:EoJ0xA+wr77T+G8p6T3l4efT2oNwbqBVKR71E0tBIaI= +k8s.io/component-base v0.33.1/go.mod h1:guT/w/6piyPfTgq7gfvgetyXMIh10zuXA6cRRm3rDuY= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4= k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= -k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= -k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/utils v0.0.0-20250502105355-0f33e8f1c979 h1:jgJW5IePPXLGB8e/1wvd0Ich9QE97RvvF3a8J3fP/Lg= +k8s.io/utils v0.0.0-20250502105355-0f33e8f1c979/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 h1:jpcvIRr3GLoUoEKRkHKSmGjxb6lWwrBlJsXc+eUYQHM= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= sigs.k8s.io/controller-runtime v0.21.0 h1:CYfjpEuicjUecRk+KAeyYh+ouUBn4llGyDYytIGcJS8= sigs.k8s.io/controller-runtime v0.21.0/go.mod h1:OSg14+F65eWqIu4DceX7k/+QRAbTTvxeQSNSOQpukWM= -sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= -sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= +sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE= +sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= sigs.k8s.io/randfill v0.0.0-20250304075658-069ef1bbf016/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= -sigs.k8s.io/structured-merge-diff/v4 v4.6.0 h1:IUA9nvMmnKWcj5jl84xn+T5MnlZKThmUW1TdblaLVAc= -sigs.k8s.io/structured-merge-diff/v4 v4.6.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= +sigs.k8s.io/structured-merge-diff/v4 v4.7.0 h1:qPeWmscJcXP0snki5IYF79Z8xrl8ETFxgMd7wez1XkI= +sigs.k8s.io/structured-merge-diff/v4 v4.7.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/infra/website/docs/blog/mongodb-feast-integration.md b/infra/website/docs/blog/mongodb-feast-integration.md new file mode 100644 index 00000000000..8a9ea4c255b --- /dev/null +++ b/infra/website/docs/blog/mongodb-feast-integration.md @@ -0,0 +1,210 @@ +--- +title: "Native MongoDB Support in Feast: One Database for Operational Data, Features, and Vectors" +description: Feast now ships first-class support for MongoDB as both an online and an offline store, plus native Vector Search for embedding-based retrieval. Machine Learning teams running on MongoDB can serve features at low latency, generate point-in-time-correct training datasets, and power RAG or recommender workloads, all from a single MongoDB Atlas cluster, with no separate cache, no separate warehouse, and no parallel vector database to keep in sync. +date: 2026-05-07 +authors: ["Rishabh Bisht"] +--- + + +
+MongoDB Feast Stores +
+ + +## The three-database problem in production ML + +A typical Feast deployment runs three different databases: + +1. The **application's primary database** where the operational data that features are derived from actually lives. +2. A dedicated **online store** used to serve features at low latency to live models. +3. A **separate warehouse** used as the offline store for training-set generation and historical retrieval. + +That's three sets of credentials, three security postures, three monitoring stacks, and a constant feedback loop of "the feature is in the warehouse but stale in the online store" or "we materialized last night but the model is reading yesterday's values." + +For teams whose operational data already lives in MongoDB, this was especially painful. Until now, Feast had no native MongoDB option so teams either stood up parallel infrastructure they didn't want, or settled for community plugins of varying maturity. + +With this release, both types of the feature store run on MongoDB - same connection string, same auth, same backups, same observability. The features sit next to the operational data they were derived from. + +## What's in the integration + +Three components ship together as generally available: + +### 1. MongoDBOnlineStore - low-latency feature serving + +Available in Feast `v0.61.0` and above. Built on the official PyMongo driver, with both sync and native async paths (the async implementation uses PyMongo's `AsyncMongoClient`). It supports `online_write_batch`, `online_read`, and their async equivalents. + +Features from multiple feature views for the same entity are colocated in a single MongoDB collection keyed by the serialized entity key, so a read for an entity is a single primary-key lookup, not a fan-out across collections. + +### 2. MongoDBOfflineStore - historical retrieval and training-set generation + +Available in `v0.63.0` and above. Uses the MongoDB aggregation framework for retrieval, with `pandas.merge_asof` for the point-in-time join when entities repeat across timestamps. Ships with `MongoDBSource` (the `DataSource` class), `offline_write_batch` for ingest, and `persist` to write joined results to Parquet for downstream training pipelines. + +### 3. MongoDB Vector Search - embeddings as first-class features + +When you set `vector_enabled: true` on the online store, Feast automatically creates and manages MongoDB vector search indexes on any `FeatureView` field marked with `vector_index=True`. The `retrieve_online_documents_v2()` method runs a `$vectorSearch` aggregation under the hood and returns nearest-neighbor results as `(event_ts, entity_key, feature_dict)` tuples with a similarity score - with `top_k` limiting and configurable distance metrics (`cosine`, `dot product`, `euclidean`). + +The result: a team running RAG, recommenders, or agent workloads can store, serve, and similarity-search feature embeddings in the same Atlas cluster as their other features — with no separate vector database to bolt on. + +## **Quick start** + +### Install + +```shell +pip install 'feast[mongodb]' +``` + +### Configure your `feature_store.yaml` + +Point both the online and offline store at the same Atlas cluster. No separate Atlas feature flag or opt-in required. + +```yaml +project: my_feature_repo +registry: data/registry.db +provider: local + +online_store: + type: mongodb + connection_string: "mongodb+srv://:@.mongodb.net" + database: "feast_online" + +offline_store: + type: mongodb + connection_string: "mongodb+srv://:@.mongodb.net" + database: "feast_offline" + +entity_key_serialization_version: 3 +``` + +### Define a feature view backed by `MongoDBSource` + +```py +from datetime import timedelta +from feast import Entity, FeatureView, Field +from feast.types import Float32, Int64 +from feast.infra.offline_stores.contrib.mongodb_offline_store.mongodb_source import ( + MongoDBSource, +) + +driver = Entity(name="driver", join_keys=["driver_id"]) + +driver_stats_source = MongoDBSource( + name="driver_stats_source", + database="feast_offline", + collection="driver_stats", + timestamp_field="event_timestamp", + created_timestamp_column="created", +) + +driver_stats_fv = FeatureView( + name="driver_hourly_stats", + entities=[driver], + ttl=timedelta(days=7), + schema=[ + Field(name="conv_rate", dtype=Float32), + Field(name="acc_rate", dtype=Float32), + Field(name="avg_daily_trips", dtype=Int64), + ], + online=True, + source=driver_stats_source, +) +``` + +### Apply, materialize, and serve + +```shell +feast apply +feast materialize-incremental $(date -u +"%Y-%m-%dT%H:%M:%S") +``` + +```py +from feast import FeatureStore + +store = FeatureStore(repo_path=".") + +features = store.get_online_features( + features=[ + "driver_hourly_stats:conv_rate", + "driver_hourly_stats:acc_rate", + "driver_hourly_stats:avg_daily_trips", + ], + entity_rows=[{"driver_id": 1001}, {"driver_id": 1002}], +).to_dict() +``` + +That's it. Same connection string, same auth model, same cluster - features in, features out. + +## RAG and embeddings: vector search in the same cluster + +If you're building a RAG pipeline, a recommender, or an agent that needs nearest-neighbor lookup over feature embeddings, the online store doubles as a vector store when `vector_enabled` is set: + +```yaml +online_store: + type: mongodb + connection_string: "mongodb+srv://:@.mongodb.net" + database: "feast_online" + vector_enabled: true + vector_index_wait_timeout: 60 + vector_index_wait_poll_interval: 2 +``` + +Mark the embedding field on your `FeatureView`: + +```py +from feast import FeatureView, Field +from feast.types import Array, Float32, Int64, String, UnixTimestamp + +document_embeddings = FeatureView( + name="embedded_documents", + entities=[item], + schema=[ + Field( + name="vector", + dtype=Array(Float32), + vector_index=True, # ← enable vector index + vector_search_metric="COSINE", # cosine | dot product | euclidean + ), + Field(name="item_id", dtype=Int64), + Field(name="sentence_chunks", dtype=String), + Field(name="event_timestamp", dtype=UnixTimestamp), + ], + source=rag_documents_source, +) +``` + +When you run `feast apply`, Feast creates the corresponding Atlas vector search index. When the feature view is removed, the index is dropped. The `vector_index_wait_timeout` and `vector_index_wait_poll_interval` settings control how long Feast waits for newly created Atlas Search indexes to become queryable before returning. + +Querying nearest neighbors is then one call: + +```py +results = store.retrieve_online_documents_v2( + features=[ + "embedded_documents:vector", + "embedded_documents:item_id", + "embedded_documents:sentence_chunks", + ], + query=query_embedding, # list[float] of the same dim + top_k=5, + distance_metric="COSINE", +).to_df() +``` + +Under the hood, this becomes a `$vectorSearch` aggregation against your Atlas cluster - no second system to provision, no vector data to keep in sync with the rest of your features. + +## Why this matters + +A few reasons we think this lands in the right place for ML teams already on MongoDB: + +* **One database for training and inference.** The same Atlas cluster powers historical retrieval, materialization, and online serving. No ETL pipelines pushing features from a warehouse. Update a feature once, see it everywhere. +* **One security and compliance posture.** Atlas networking, IAM, encryption, and audit logging cover both halves of the feature store. Architects don't have to add a new database vendor and a new threat model to say yes to ML. +* **Vector and operational data colocated.** For RAG, recommenders, and agents, the embeddings live next to the entity data they describe. Filter your vector search on operational fields with the same query language you already use. +* **Flexible schema where it helps.** Feature engineering is iterative. MongoDB's document model means adding a field to a feature view doesn't require a schema migration on day one. +* **Async serving when you need it.** The online store ships a native async path on `AsyncMongoClient`, so feature lookups don't block the rest of your serving stack. + +## Where to next + +* **Online store reference:** [Feast docs - MongoDB online store](https://docs.feast.dev/master/reference/online-stores/mongodb) +* **Offline store reference:** [Feast docs - MongoDB offline store](https://docs.feast.dev/master/reference/offline-stores/mongodb) +* **Vector search:** [Feast docs - Vector Search](https://docs.feast.dev/master/reference/data-sources/mongodb#vector-search) +* **Tutorial:** [Integrate MongoDB with Feast](https://www.mongodb.com/docs/atlas/ai-integrations/feast/) + +If you're already on MongoDB and want to standardize your ML stack on a single backend, this is the time to try it. Spin up a feature repo, point both stores at your cluster, and let us know how it goes - issues and PRs welcome on GitHub. \ No newline at end of file diff --git a/infra/website/public/images/blog/mongodb-feature-stores.png b/infra/website/public/images/blog/mongodb-feature-stores.png new file mode 100644 index 0000000000000000000000000000000000000000..c0705834dc9895107f60a26551163720465cf861 GIT binary patch literal 326110 zcmeFZcUV)|-ZqRKM^O<)Km-*l2n>W?twd2klwO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Oe`NAmiY>fJAEg$Z8~Y%kK_Ir7(QEbHtST|+e=f>@PprIO@-+Qt8B^E43A`rNJ; zs>=h^CAR9l4)}|m!l?T{-*OMw@;du4mVfRqc2Kl9e8JT&r93ZWZ_!8o2`j5B#zkn#&YRyMXOgxv4svkW0H%9XVu9kVAKj3Ofm-%BC zf56oeu(|l7Uw**V@`Be7i2B31mj2-fME!s$aH$Ka-9W}fDM&cb@G&>Wk;!~D;Q;U7lyclh$di2jU5 q{~1MoAkkkC^?z^E|Hnq;w<0or?2^N;#sr9NOh+|z)ic!2`TrmE!QsjP literal 0 HcmV?d00001 diff --git a/infra/website/src/layouts/BaseLayout.astro b/infra/website/src/layouts/BaseLayout.astro index d73c7b0ebde..05d940005ba 100644 --- a/infra/website/src/layouts/BaseLayout.astro +++ b/infra/website/src/layouts/BaseLayout.astro @@ -4,9 +4,17 @@ import '../styles/global.css'; interface Props { title: string; description?: string; + socialImage?: string; + ogUrl?: string; } -const { title, description = "Feast is an end-to-end open source feature store for machine learning. It allows teams to define, manage, discover, and serve features." } = Astro.props; +const defaultSocialImage = "https://feast.dev/wp-content/uploads/2023/01/feast-og@2x.png"; +const { + title, + description = "Feast is an end-to-end open source feature store for machine learning. It allows teams to define, manage, discover, and serve features.", + socialImage = defaultSocialImage, + ogUrl = "https://feast.dev/", +} = Astro.props; --- @@ -25,16 +33,16 @@ const { title, description = "Feast is an end-to-end open source feature store f - + - + - + @@ -51,4 +59,4 @@ const { title, description = "Feast is an end-to-end open source feature store f - \ No newline at end of file + diff --git a/infra/website/src/pages/blog/[slug].astro b/infra/website/src/pages/blog/[slug].astro index 7d6a780a14c..90e8572d0b2 100644 --- a/infra/website/src/pages/blog/[slug].astro +++ b/infra/website/src/pages/blog/[slug].astro @@ -1,6 +1,25 @@ --- import BaseLayout from '../../layouts/BaseLayout.astro'; import Navigation from '../../components/Navigation.astro'; +import { readFileSync } from 'node:fs'; + +const SITE_URL = 'https://feast.dev'; + +function toAbsoluteUrl(path: string): string { + if (/^https?:\/\//i.test(path)) { + return path; + } + return new URL(path, SITE_URL).toString(); +} + +function extractHeroImage(markdown: string): string | undefined { + const heroContainerMatch = markdown.match(/]*class=["'][^"']*\bhero-image\b[^"']*["'][^>]*>([\s\S]*?)<\/div>/i); + if (!heroContainerMatch?.[1]) { + return undefined; + } + const imageMatch = heroContainerMatch[1].match(/]*\bsrc=["']([^"']+)["'][^>]*>/i); + return imageMatch?.[1]; +} export async function getStaticPaths() { const posts = await Astro.glob('../../../docs/blog/*.md'); @@ -17,9 +36,13 @@ export async function getStaticPaths() { const { post } = Astro.props; const { title, description, date, authors = [] } = post.frontmatter; +const blogUrl = `${SITE_URL}/blog/${Astro.params.slug}/`; +const frontmatterImage = post.frontmatter.hero_image || post.frontmatter.heroImage || post.frontmatter.image; +const heroImage = frontmatterImage || extractHeroImage(readFileSync(post.file, 'utf-8')); +const socialImage = heroImage ? toAbsoluteUrl(heroImage) : undefined; --- - +

@@ -316,4 +339,4 @@ const { title, description, date, authors = [] } = post.frontmatter; font-size: 18px; } } - \ No newline at end of file + diff --git a/protos/feast/types/Value.proto b/protos/feast/types/Value.proto index 6c8082a43b9..086617ea66e 100644 --- a/protos/feast/types/Value.proto +++ b/protos/feast/types/Value.proto @@ -68,6 +68,7 @@ message ValueType { DECIMAL = 44; DECIMAL_LIST = 45; DECIMAL_SET = 46; + SCALAR_MAP = 47; } } @@ -118,6 +119,7 @@ message Value { string decimal_val = 44; StringList decimal_list_val = 45; StringSet decimal_set_val = 46; + ScalarMap scalar_map_val = 47; } } @@ -194,3 +196,30 @@ message MapList { message RepeatedValue { repeated Value val = 1; } + +// Map key for maps with non-string keys. +// Excludes string (handled by Map) and all collection types (not valid as keys). +message MapKey { + oneof key { + int32 int32_key = 1; + int64 int64_key = 2; + float float_key = 3; + double double_key = 4; + bool bool_key = 5; + int64 unix_timestamp_key = 6; + bytes bytes_key = 7; + string uuid_key = 8; + string time_uuid_key = 9; + string decimal_key = 10; + } +} + +message ScalarMapEntry { + MapKey key = 1; + Value value = 2; +} + +// Map with non-string keys. For string-keyed maps use Map. +message ScalarMap { + repeated ScalarMapEntry val = 1; +} diff --git a/pyproject.toml b/pyproject.toml index a7b6b79ae33..a2b63ca2882 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ "uvicorn-worker", "gunicorn; platform_system != 'Windows'", "dask[dataframe]>=2024.2.1", - "prometheus_client", + "prometheus_client>=0.20.0,<0.25.0", "psutil", "bigtree>=0.19.2", "pyjwt", diff --git a/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi b/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi index 4c6bd7c089c..4b5c1cac9a9 100644 --- a/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi @@ -2,44 +2,49 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Aggregation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Aggregation(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - COLUMN_FIELD_NUMBER: builtins.int - FUNCTION_FIELD_NUMBER: builtins.int - TIME_WINDOW_FIELD_NUMBER: builtins.int - SLIDE_INTERVAL_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - column: builtins.str - function: builtins.str - @property - def time_window(self) -> google.protobuf.duration_pb2.Duration: ... - @property - def slide_interval(self) -> google.protobuf.duration_pb2.Duration: ... - name: builtins.str + COLUMN_FIELD_NUMBER: _builtins.int + FUNCTION_FIELD_NUMBER: _builtins.int + TIME_WINDOW_FIELD_NUMBER: _builtins.int + SLIDE_INTERVAL_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + column: _builtins.str + function: _builtins.str + name: _builtins.str + @_builtins.property + def time_window(self) -> _duration_pb2.Duration: ... + @_builtins.property + def slide_interval(self) -> _duration_pb2.Duration: ... def __init__( self, *, - column: builtins.str = ..., - function: builtins.str = ..., - time_window: google.protobuf.duration_pb2.Duration | None = ..., - slide_interval: google.protobuf.duration_pb2.Duration | None = ..., - name: builtins.str = ..., + column: _builtins.str = ..., + function: _builtins.str = ..., + time_window: _duration_pb2.Duration | None = ..., + slide_interval: _duration_pb2.Duration | None = ..., + name: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["column", b"column", "function", b"function", "name", b"name", "slide_interval", b"slide_interval", "time_window", b"time_window"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["column", b"column", "function", b"function", "name", b"name", "slide_interval", b"slide_interval", "time_window", b"time_window"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Aggregation = Aggregation +Global___Aggregation: _TypeAlias = Aggregation # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi b/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi index 193fb82a776..fa5291fac26 100644 --- a/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi @@ -16,272 +16,318 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FileFormat(google.protobuf.message.Message): +@_typing.final +class FileFormat(_message.Message): """Defines the file format encoding the features/entity data in files""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class ParquetFormat(google.protobuf.message.Message): + @_typing.final + class ParquetFormat(_message.Message): """Defines options for the Parquet data format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - PARQUET_FORMAT_FIELD_NUMBER: builtins.int - DELTA_FORMAT_FIELD_NUMBER: builtins.int - @property - def parquet_format(self) -> global___FileFormat.ParquetFormat: ... - @property - def delta_format(self) -> global___TableFormat.DeltaFormat: + PARQUET_FORMAT_FIELD_NUMBER: _builtins.int + DELTA_FORMAT_FIELD_NUMBER: _builtins.int + @_builtins.property + def parquet_format(self) -> Global___FileFormat.ParquetFormat: ... + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def delta_format(self) -> Global___TableFormat.DeltaFormat: """Deprecated: Delta Lake is a table format, not a file format. Use TableFormat.DeltaFormat instead for Delta Lake support. """ + def __init__( self, *, - parquet_format: global___FileFormat.ParquetFormat | None = ..., - delta_format: global___TableFormat.DeltaFormat | None = ..., + parquet_format: Global___FileFormat.ParquetFormat | None = ..., + delta_format: Global___TableFormat.DeltaFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["parquet_format", "delta_format"] | None: ... - -global___FileFormat = FileFormat - -class TableFormat(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class IcebergFormat(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_format: _TypeAlias = _typing.Literal["parquet_format", "delta_format"] # noqa: Y015 + _WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ... + +Global___FileFormat: _TypeAlias = FileFormat # noqa: Y015 + +@_typing.final +class TableFormat(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class IcebergFormat(_message.Message): """Defines options for Apache Iceberg table format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class PropertiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - CATALOG_FIELD_NUMBER: builtins.int - NAMESPACE_FIELD_NUMBER: builtins.int - PROPERTIES_FIELD_NUMBER: builtins.int - catalog: builtins.str + CATALOG_FIELD_NUMBER: _builtins.int + NAMESPACE_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + catalog: _builtins.str """Optional catalog name for the Iceberg table""" - namespace: builtins.str + namespace: _builtins.str """Optional namespace (schema/database) within the catalog""" - @property - def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Additional properties for Iceberg configuration Examples: warehouse location, snapshot-id, as-of-timestamp, etc. """ + def __init__( self, *, - catalog: builtins.str = ..., - namespace: builtins.str = ..., - properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + catalog: _builtins.str = ..., + namespace: _builtins.str = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class DeltaFormat(google.protobuf.message.Message): + @_typing.final + class DeltaFormat(_message.Message): """Defines options for Delta Lake table format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class PropertiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - CHECKPOINT_LOCATION_FIELD_NUMBER: builtins.int - PROPERTIES_FIELD_NUMBER: builtins.int - checkpoint_location: builtins.str + CHECKPOINT_LOCATION_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + checkpoint_location: _builtins.str """Optional checkpoint location for Delta transaction logs""" - @property - def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Additional properties for Delta configuration Examples: auto-optimize settings, vacuum settings, etc. """ + def __init__( self, *, - checkpoint_location: builtins.str = ..., - properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + checkpoint_location: _builtins.str = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class HudiFormat(google.protobuf.message.Message): + @_typing.final + class HudiFormat(_message.Message): """Defines options for Apache Hudi table format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class PropertiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class PropertiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - TABLE_TYPE_FIELD_NUMBER: builtins.int - RECORD_KEY_FIELD_NUMBER: builtins.int - PRECOMBINE_FIELD_FIELD_NUMBER: builtins.int - PROPERTIES_FIELD_NUMBER: builtins.int - table_type: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + TABLE_TYPE_FIELD_NUMBER: _builtins.int + RECORD_KEY_FIELD_NUMBER: _builtins.int + PRECOMBINE_FIELD_FIELD_NUMBER: _builtins.int + PROPERTIES_FIELD_NUMBER: _builtins.int + table_type: _builtins.str """Type of Hudi table (COPY_ON_WRITE or MERGE_ON_READ)""" - record_key: builtins.str + record_key: _builtins.str """Field(s) that uniquely identify a record""" - precombine_field: builtins.str + precombine_field: _builtins.str """Field used to determine the latest version of a record""" - @property - def properties(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def properties(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Additional properties for Hudi configuration Examples: compaction strategy, indexing options, etc. """ + def __init__( self, *, - table_type: builtins.str = ..., - record_key: builtins.str = ..., - precombine_field: builtins.str = ..., - properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + table_type: _builtins.str = ..., + record_key: _builtins.str = ..., + precombine_field: _builtins.str = ..., + properties: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["precombine_field", b"precombine_field", "properties", b"properties", "record_key", b"record_key", "table_type", b"table_type"]) -> None: ... - - ICEBERG_FORMAT_FIELD_NUMBER: builtins.int - DELTA_FORMAT_FIELD_NUMBER: builtins.int - HUDI_FORMAT_FIELD_NUMBER: builtins.int - @property - def iceberg_format(self) -> global___TableFormat.IcebergFormat: ... - @property - def delta_format(self) -> global___TableFormat.DeltaFormat: ... - @property - def hudi_format(self) -> global___TableFormat.HudiFormat: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["precombine_field", b"precombine_field", "properties", b"properties", "record_key", b"record_key", "table_type", b"table_type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + ICEBERG_FORMAT_FIELD_NUMBER: _builtins.int + DELTA_FORMAT_FIELD_NUMBER: _builtins.int + HUDI_FORMAT_FIELD_NUMBER: _builtins.int + @_builtins.property + def iceberg_format(self) -> Global___TableFormat.IcebergFormat: ... + @_builtins.property + def delta_format(self) -> Global___TableFormat.DeltaFormat: ... + @_builtins.property + def hudi_format(self) -> Global___TableFormat.HudiFormat: ... def __init__( self, *, - iceberg_format: global___TableFormat.IcebergFormat | None = ..., - delta_format: global___TableFormat.DeltaFormat | None = ..., - hudi_format: global___TableFormat.HudiFormat | None = ..., + iceberg_format: Global___TableFormat.IcebergFormat | None = ..., + delta_format: Global___TableFormat.DeltaFormat | None = ..., + hudi_format: Global___TableFormat.HudiFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["iceberg_format", "delta_format", "hudi_format"] | None: ... - -global___TableFormat = TableFormat - -class StreamFormat(google.protobuf.message.Message): + _HasFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_format: _TypeAlias = _typing.Literal["iceberg_format", "delta_format", "hudi_format"] # noqa: Y015 + _WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ... + +Global___TableFormat: _TypeAlias = TableFormat # noqa: Y015 + +@_typing.final +class StreamFormat(_message.Message): """Defines the data format encoding features/entity data in data streams""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class ProtoFormat(google.protobuf.message.Message): + @_typing.final + class ProtoFormat(_message.Message): """Defines options for the protobuf data format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - CLASS_PATH_FIELD_NUMBER: builtins.int - class_path: builtins.str + CLASS_PATH_FIELD_NUMBER: _builtins.int + class_path: _builtins.str """Classpath to the generated Java Protobuf class that can be used to decode Feature data from the obtained stream message """ def __init__( self, *, - class_path: builtins.str = ..., + class_path: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["class_path", b"class_path"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["class_path", b"class_path"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class AvroFormat(google.protobuf.message.Message): + @_typing.final + class AvroFormat(_message.Message): """Defines options for the avro data format""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SCHEMA_JSON_FIELD_NUMBER: builtins.int - schema_json: builtins.str + SCHEMA_JSON_FIELD_NUMBER: _builtins.int + schema_json: _builtins.str """Optional if used in a File DataSource as schema is embedded in avro file. Specifies the schema of the Avro message as JSON string. """ def __init__( self, *, - schema_json: builtins.str = ..., + schema_json: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["schema_json", b"schema_json"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["schema_json", b"schema_json"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class JsonFormat(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class JsonFormat(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SCHEMA_JSON_FIELD_NUMBER: builtins.int - schema_json: builtins.str + SCHEMA_JSON_FIELD_NUMBER: _builtins.int + schema_json: _builtins.str def __init__( self, *, - schema_json: builtins.str = ..., + schema_json: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["schema_json", b"schema_json"]) -> None: ... - - AVRO_FORMAT_FIELD_NUMBER: builtins.int - PROTO_FORMAT_FIELD_NUMBER: builtins.int - JSON_FORMAT_FIELD_NUMBER: builtins.int - @property - def avro_format(self) -> global___StreamFormat.AvroFormat: ... - @property - def proto_format(self) -> global___StreamFormat.ProtoFormat: ... - @property - def json_format(self) -> global___StreamFormat.JsonFormat: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["schema_json", b"schema_json"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + AVRO_FORMAT_FIELD_NUMBER: _builtins.int + PROTO_FORMAT_FIELD_NUMBER: _builtins.int + JSON_FORMAT_FIELD_NUMBER: _builtins.int + @_builtins.property + def avro_format(self) -> Global___StreamFormat.AvroFormat: ... + @_builtins.property + def proto_format(self) -> Global___StreamFormat.ProtoFormat: ... + @_builtins.property + def json_format(self) -> Global___StreamFormat.JsonFormat: ... def __init__( self, *, - avro_format: global___StreamFormat.AvroFormat | None = ..., - proto_format: global___StreamFormat.ProtoFormat | None = ..., - json_format: global___StreamFormat.JsonFormat | None = ..., + avro_format: Global___StreamFormat.AvroFormat | None = ..., + proto_format: Global___StreamFormat.ProtoFormat | None = ..., + json_format: Global___StreamFormat.JsonFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["avro_format", "proto_format", "json_format"] | None: ... - -global___StreamFormat = StreamFormat + _HasFieldArgType: _TypeAlias = _typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_format: _TypeAlias = _typing.Literal["avro_format", "proto_format", "json_format"] # noqa: Y015 + _WhichOneofArgType_format: _TypeAlias = _typing.Literal["format", b"format"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_format) -> _WhichOneofReturnType_format | None: ... + +Global___StreamFormat: _TypeAlias = StreamFormat # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi b/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi index 7876e1adc98..308141fb6f2 100644 --- a/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DataSource_pb2.pyi @@ -16,40 +16,42 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataFormat_pb2 -import feast.core.Feature_pb2 -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataFormat_pb2 as _DataFormat_pb2 # type: ignore[attr-defined] +from feast.core import Feature_pb2 as _Feature_pb2 # type: ignore[attr-defined] +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class DataSource(google.protobuf.message.Message): +@_typing.final +class DataSource(_message.Message): """Defines a Data Source that can be used source Feature data Next available id: 28 """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor class _SourceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _SourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataSource._SourceType.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _SourceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[DataSource._SourceType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor INVALID: DataSource._SourceType.ValueType # 0 BATCH_FILE: DataSource._SourceType.ValueType # 1 BATCH_SNOWFLAKE: DataSource._SourceType.ValueType # 8 @@ -83,510 +85,559 @@ class DataSource(google.protobuf.message.Message): BATCH_SPARK: DataSource.SourceType.ValueType # 11 BATCH_ATHENA: DataSource.SourceType.ValueType # 12 - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class FieldMappingEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FieldMappingEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class SourceMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EARLIESTEVENTTIMESTAMP_FIELD_NUMBER: builtins.int - LATESTEVENTTIMESTAMP_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def earliestEventTimestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def latestEventTimestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class SourceMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + EARLIESTEVENTTIMESTAMP_FIELD_NUMBER: _builtins.int + LATESTEVENTTIMESTAMP_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def earliestEventTimestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def latestEventTimestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - earliestEventTimestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - latestEventTimestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + earliestEventTimestamp: _timestamp_pb2.Timestamp | None = ..., + latestEventTimestamp: _timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "earliestEventTimestamp", b"earliestEventTimestamp", "last_updated_timestamp", b"last_updated_timestamp", "latestEventTimestamp", b"latestEventTimestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class FileOptions(google.protobuf.message.Message): + @_typing.final + class FileOptions(_message.Message): """Defines options for DataSource that sources features from a file""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FILE_FORMAT_FIELD_NUMBER: builtins.int - URI_FIELD_NUMBER: builtins.int - S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: builtins.int - @property - def file_format(self) -> feast.core.DataFormat_pb2.FileFormat: ... - uri: builtins.str + FILE_FORMAT_FIELD_NUMBER: _builtins.int + URI_FIELD_NUMBER: _builtins.int + S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: _builtins.int + uri: _builtins.str """Target URL of file to retrieve and source features from. s3://path/to/file for AWS S3 storage gs://path/to/file for GCP GCS storage file:///path/to/file for local storage """ - s3_endpoint_override: builtins.str + s3_endpoint_override: _builtins.str """override AWS S3 storage endpoint with custom S3 endpoint""" + @_builtins.property + def file_format(self) -> _DataFormat_pb2.FileFormat: ... def __init__( self, *, - file_format: feast.core.DataFormat_pb2.FileFormat | None = ..., - uri: builtins.str = ..., - s3_endpoint_override: builtins.str = ..., + file_format: _DataFormat_pb2.FileFormat | None = ..., + uri: _builtins.str = ..., + s3_endpoint_override: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["file_format", b"file_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["file_format", b"file_format", "s3_endpoint_override", b"s3_endpoint_override", "uri", b"uri"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["file_format", b"file_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["file_format", b"file_format", "s3_endpoint_override", b"s3_endpoint_override", "uri", b"uri"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class BigQueryOptions(google.protobuf.message.Message): + @_typing.final + class BigQueryOptions(_message.Message): """Defines options for DataSource that sources features from a BigQuery Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + table: _builtins.str """Full table reference in the form of [project:dataset.table]""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["query", b"query", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["query", b"query", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class TrinoOptions(google.protobuf.message.Message): + @_typing.final + class TrinoOptions(_message.Message): """Defines options for DataSource that sources features from a Trino Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + table: _builtins.str """Full table reference in the form of [project:dataset.table]""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["query", b"query", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["query", b"query", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class KafkaOptions(google.protobuf.message.Message): + @_typing.final + class KafkaOptions(_message.Message): """Defines options for DataSource that sources features from Kafka messages. Each message should be a Protobuf that can be decoded with the generated Java Protobuf class at the given class path """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - KAFKA_BOOTSTRAP_SERVERS_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - MESSAGE_FORMAT_FIELD_NUMBER: builtins.int - WATERMARK_DELAY_THRESHOLD_FIELD_NUMBER: builtins.int - kafka_bootstrap_servers: builtins.str + KAFKA_BOOTSTRAP_SERVERS_FIELD_NUMBER: _builtins.int + TOPIC_FIELD_NUMBER: _builtins.int + MESSAGE_FORMAT_FIELD_NUMBER: _builtins.int + WATERMARK_DELAY_THRESHOLD_FIELD_NUMBER: _builtins.int + kafka_bootstrap_servers: _builtins.str """Comma separated list of Kafka bootstrap servers. Used for feature tables without a defined source host[:port]]""" - topic: builtins.str + topic: _builtins.str """Kafka topic to collect feature data from.""" - @property - def message_format(self) -> feast.core.DataFormat_pb2.StreamFormat: + @_builtins.property + def message_format(self) -> _DataFormat_pb2.StreamFormat: """Defines the stream data format encoding feature/entity data in Kafka messages.""" - @property - def watermark_delay_threshold(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def watermark_delay_threshold(self) -> _duration_pb2.Duration: """Watermark delay threshold for stream data""" + def __init__( self, *, - kafka_bootstrap_servers: builtins.str = ..., - topic: builtins.str = ..., - message_format: feast.core.DataFormat_pb2.StreamFormat | None = ..., - watermark_delay_threshold: google.protobuf.duration_pb2.Duration | None = ..., + kafka_bootstrap_servers: _builtins.str = ..., + topic: _builtins.str = ..., + message_format: _DataFormat_pb2.StreamFormat | None = ..., + watermark_delay_threshold: _duration_pb2.Duration | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["message_format", b"message_format", "watermark_delay_threshold", b"watermark_delay_threshold"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["kafka_bootstrap_servers", b"kafka_bootstrap_servers", "message_format", b"message_format", "topic", b"topic", "watermark_delay_threshold", b"watermark_delay_threshold"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["message_format", b"message_format", "watermark_delay_threshold", b"watermark_delay_threshold"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["kafka_bootstrap_servers", b"kafka_bootstrap_servers", "message_format", b"message_format", "topic", b"topic", "watermark_delay_threshold", b"watermark_delay_threshold"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class KinesisOptions(google.protobuf.message.Message): + @_typing.final + class KinesisOptions(_message.Message): """Defines options for DataSource that sources features from Kinesis records. Each record should be a Protobuf that can be decoded with the generated Java Protobuf class at the given class path """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - REGION_FIELD_NUMBER: builtins.int - STREAM_NAME_FIELD_NUMBER: builtins.int - RECORD_FORMAT_FIELD_NUMBER: builtins.int - region: builtins.str + REGION_FIELD_NUMBER: _builtins.int + STREAM_NAME_FIELD_NUMBER: _builtins.int + RECORD_FORMAT_FIELD_NUMBER: _builtins.int + region: _builtins.str """AWS region of the Kinesis stream""" - stream_name: builtins.str + stream_name: _builtins.str """Name of the Kinesis stream to obtain feature data from.""" - @property - def record_format(self) -> feast.core.DataFormat_pb2.StreamFormat: + @_builtins.property + def record_format(self) -> _DataFormat_pb2.StreamFormat: """Defines the data format encoding the feature/entity data in Kinesis records. Kinesis Data Sources support Avro and Proto as data formats. """ + def __init__( self, *, - region: builtins.str = ..., - stream_name: builtins.str = ..., - record_format: feast.core.DataFormat_pb2.StreamFormat | None = ..., + region: _builtins.str = ..., + stream_name: _builtins.str = ..., + record_format: _DataFormat_pb2.StreamFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["record_format", b"record_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["record_format", b"record_format", "region", b"region", "stream_name", b"stream_name"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["record_format", b"record_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["record_format", b"record_format", "region", b"region", "stream_name", b"stream_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RedshiftOptions(google.protobuf.message.Message): + @_typing.final + class RedshiftOptions(_message.Message): """Defines options for DataSource that sources features from a Redshift Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + SCHEMA_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + table: _builtins.str """Redshift table name""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ - schema: builtins.str + schema: _builtins.str """Redshift schema name""" - database: builtins.str + database: _builtins.str """Redshift database name""" def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - schema: builtins.str = ..., - database: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + schema: _builtins.str = ..., + database: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class AthenaOptions(google.protobuf.message.Message): + @_typing.final + class AthenaOptions(_message.Message): """Defines options for DataSource that sources features from a Athena Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - DATA_SOURCE_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + DATA_SOURCE_FIELD_NUMBER: _builtins.int + table: _builtins.str """Athena table name""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ - database: builtins.str + database: _builtins.str """Athena database name""" - data_source: builtins.str + data_source: _builtins.str """Athena schema name""" def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - database: builtins.str = ..., - data_source: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + database: _builtins.str = ..., + data_source: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["data_source", b"data_source", "database", b"database", "query", b"query", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_source", b"data_source", "database", b"database", "query", b"query", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class SnowflakeOptions(google.protobuf.message.Message): + @_typing.final + class SnowflakeOptions(_message.Message): """Defines options for DataSource that sources features from a Snowflake Query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + SCHEMA_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + table: _builtins.str """Snowflake table name""" - query: builtins.str + query: _builtins.str """SQL query that returns a table containing feature data. Must contain an event_timestamp column, and respective entity columns """ - schema: builtins.str + schema: _builtins.str """Snowflake schema name""" - database: builtins.str + database: _builtins.str """Snowflake schema name""" def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - schema: builtins.str = ..., - database: builtins.str = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + schema: _builtins.str = ..., + database: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "query", b"query", "schema", b"schema", "table", b"table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class SparkOptions(google.protobuf.message.Message): + @_typing.final + class SparkOptions(_message.Message): """Defines options for DataSource that sources features from a spark table/query""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TABLE_FIELD_NUMBER: builtins.int - QUERY_FIELD_NUMBER: builtins.int - PATH_FIELD_NUMBER: builtins.int - FILE_FORMAT_FIELD_NUMBER: builtins.int - DATE_PARTITION_COLUMN_FORMAT_FIELD_NUMBER: builtins.int - TABLE_FORMAT_FIELD_NUMBER: builtins.int - table: builtins.str + TABLE_FIELD_NUMBER: _builtins.int + QUERY_FIELD_NUMBER: _builtins.int + PATH_FIELD_NUMBER: _builtins.int + FILE_FORMAT_FIELD_NUMBER: _builtins.int + DATE_PARTITION_COLUMN_FORMAT_FIELD_NUMBER: _builtins.int + TABLE_FORMAT_FIELD_NUMBER: _builtins.int + table: _builtins.str """Table name""" - query: builtins.str + query: _builtins.str """Spark SQl query that returns the table, this is an alternative to `table`""" - path: builtins.str + path: _builtins.str """Path from which spark can read the table, this is an alternative to `table`""" - file_format: builtins.str + file_format: _builtins.str """Format of files at `path` (e.g. parquet, avro, etc)""" - date_partition_column_format: builtins.str + date_partition_column_format: _builtins.str """Date Format of date partition column (e.g. %Y-%m-%d)""" - @property - def table_format(self) -> feast.core.DataFormat_pb2.TableFormat: + @_builtins.property + def table_format(self) -> _DataFormat_pb2.TableFormat: """Table Format (e.g. iceberg, delta, hudi)""" + def __init__( self, *, - table: builtins.str = ..., - query: builtins.str = ..., - path: builtins.str = ..., - file_format: builtins.str = ..., - date_partition_column_format: builtins.str = ..., - table_format: feast.core.DataFormat_pb2.TableFormat | None = ..., + table: _builtins.str = ..., + query: _builtins.str = ..., + path: _builtins.str = ..., + file_format: _builtins.str = ..., + date_partition_column_format: _builtins.str = ..., + table_format: _DataFormat_pb2.TableFormat | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["table_format", b"table_format"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["date_partition_column_format", b"date_partition_column_format", "file_format", b"file_format", "path", b"path", "query", b"query", "table", b"table", "table_format", b"table_format"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["table_format", b"table_format"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["date_partition_column_format", b"date_partition_column_format", "file_format", b"file_format", "path", b"path", "query", b"query", "table", b"table", "table_format", b"table_format"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class CustomSourceOptions(google.protobuf.message.Message): + @_typing.final + class CustomSourceOptions(_message.Message): """Defines configuration for custom third-party data sources.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - CONFIGURATION_FIELD_NUMBER: builtins.int - configuration: builtins.bytes + CONFIGURATION_FIELD_NUMBER: _builtins.int + configuration: _builtins.bytes """Serialized configuration information for the data source. The implementer of the custom data source is responsible for serializing and deserializing data from bytes """ def __init__( self, *, - configuration: builtins.bytes = ..., + configuration: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["configuration", b"configuration"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["configuration", b"configuration"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RequestDataOptions(google.protobuf.message.Message): + @_typing.final + class RequestDataOptions(_message.Message): """Defines options for DataSource that sources features from request data""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class DeprecatedSchemaEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class DeprecatedSchemaEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: feast.types.Value_pb2.ValueType.Enum.ValueType + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _Value_pb2.ValueType.Enum.ValueType def __init__( self, *, - key: builtins.str = ..., - value: feast.types.Value_pb2.ValueType.Enum.ValueType = ..., + key: _builtins.str = ..., + value: _Value_pb2.ValueType.Enum.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - DEPRECATED_SCHEMA_FIELD_NUMBER: builtins.int - SCHEMA_FIELD_NUMBER: builtins.int - @property - def deprecated_schema(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, feast.types.Value_pb2.ValueType.Enum.ValueType]: + DEPRECATED_SCHEMA_FIELD_NUMBER: _builtins.int + SCHEMA_FIELD_NUMBER: _builtins.int + @_builtins.property + def deprecated_schema(self) -> _containers.ScalarMap[_builtins.str, _Value_pb2.ValueType.Enum.ValueType]: """Mapping of feature name to type""" - @property - def schema(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: ... + + @_builtins.property + def schema(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: ... def __init__( self, *, - deprecated_schema: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.ValueType.Enum.ValueType] | None = ..., - schema: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., + deprecated_schema: _abc.Mapping[_builtins.str, _Value_pb2.ValueType.Enum.ValueType] | None = ..., + schema: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["deprecated_schema", b"deprecated_schema", "schema", b"schema"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["deprecated_schema", b"deprecated_schema", "schema", b"schema"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class PushOptions(google.protobuf.message.Message): + @_typing.final + class PushOptions(_message.Message): """Defines options for DataSource that supports pushing data to it. This allows data to be pushed to the online store on-demand, such as by stream consumers. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - FIELD_MAPPING_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_FIELD_NUMBER: builtins.int - DATE_PARTITION_COLUMN_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: builtins.int - DATA_SOURCE_CLASS_TYPE_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - FILE_OPTIONS_FIELD_NUMBER: builtins.int - BIGQUERY_OPTIONS_FIELD_NUMBER: builtins.int - KAFKA_OPTIONS_FIELD_NUMBER: builtins.int - KINESIS_OPTIONS_FIELD_NUMBER: builtins.int - REDSHIFT_OPTIONS_FIELD_NUMBER: builtins.int - REQUEST_DATA_OPTIONS_FIELD_NUMBER: builtins.int - CUSTOM_OPTIONS_FIELD_NUMBER: builtins.int - SNOWFLAKE_OPTIONS_FIELD_NUMBER: builtins.int - PUSH_OPTIONS_FIELD_NUMBER: builtins.int - SPARK_OPTIONS_FIELD_NUMBER: builtins.int - TRINO_OPTIONS_FIELD_NUMBER: builtins.int - ATHENA_OPTIONS_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + FIELD_MAPPING_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_FIELD_NUMBER: _builtins.int + DATE_PARTITION_COLUMN_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: _builtins.int + DATA_SOURCE_CLASS_TYPE_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + FILE_OPTIONS_FIELD_NUMBER: _builtins.int + BIGQUERY_OPTIONS_FIELD_NUMBER: _builtins.int + KAFKA_OPTIONS_FIELD_NUMBER: _builtins.int + KINESIS_OPTIONS_FIELD_NUMBER: _builtins.int + REDSHIFT_OPTIONS_FIELD_NUMBER: _builtins.int + REQUEST_DATA_OPTIONS_FIELD_NUMBER: _builtins.int + CUSTOM_OPTIONS_FIELD_NUMBER: _builtins.int + SNOWFLAKE_OPTIONS_FIELD_NUMBER: _builtins.int + PUSH_OPTIONS_FIELD_NUMBER: _builtins.int + SPARK_OPTIONS_FIELD_NUMBER: _builtins.int + TRINO_OPTIONS_FIELD_NUMBER: _builtins.int + ATHENA_OPTIONS_FIELD_NUMBER: _builtins.int + name: _builtins.str """Unique name of data source within the project""" - project: builtins.str + project: _builtins.str """Name of Feast project that this data source belongs to.""" - description: builtins.str - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - owner: builtins.str - type: global___DataSource.SourceType.ValueType - @property - def field_mapping(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Defines mapping between fields in the sourced data - and fields in parent FeatureTable. - """ - timestamp_field: builtins.str + description: _builtins.str + owner: _builtins.str + type: Global___DataSource.SourceType.ValueType + timestamp_field: _builtins.str """Must specify event timestamp column name""" - date_partition_column: builtins.str + date_partition_column: _builtins.str """(Optional) Specify partition column useful for file sources """ - created_timestamp_column: builtins.str + created_timestamp_column: _builtins.str """Must specify creation timestamp column name""" - data_source_class_type: builtins.str + data_source_class_type: _builtins.str """This is an internal field that is represents the python class for the data source object a proto object represents. This should be set by feast, and not by users. The field is used primarily by custom data sources and is mandatory for them to set. Feast may set it for first party sources as well. """ - @property - def batch_source(self) -> global___DataSource: + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def field_mapping(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Defines mapping between fields in the sourced data + and fields in parent FeatureTable. + """ + + @_builtins.property + def batch_source(self) -> Global___DataSource: """Optional batch source for streaming sources for historical features and materialization.""" - @property - def meta(self) -> global___DataSource.SourceMeta: ... - @property - def file_options(self) -> global___DataSource.FileOptions: ... - @property - def bigquery_options(self) -> global___DataSource.BigQueryOptions: ... - @property - def kafka_options(self) -> global___DataSource.KafkaOptions: ... - @property - def kinesis_options(self) -> global___DataSource.KinesisOptions: ... - @property - def redshift_options(self) -> global___DataSource.RedshiftOptions: ... - @property - def request_data_options(self) -> global___DataSource.RequestDataOptions: ... - @property - def custom_options(self) -> global___DataSource.CustomSourceOptions: ... - @property - def snowflake_options(self) -> global___DataSource.SnowflakeOptions: ... - @property - def push_options(self) -> global___DataSource.PushOptions: ... - @property - def spark_options(self) -> global___DataSource.SparkOptions: ... - @property - def trino_options(self) -> global___DataSource.TrinoOptions: ... - @property - def athena_options(self) -> global___DataSource.AthenaOptions: ... + + @_builtins.property + def meta(self) -> Global___DataSource.SourceMeta: ... + @_builtins.property + def file_options(self) -> Global___DataSource.FileOptions: ... + @_builtins.property + def bigquery_options(self) -> Global___DataSource.BigQueryOptions: ... + @_builtins.property + def kafka_options(self) -> Global___DataSource.KafkaOptions: ... + @_builtins.property + def kinesis_options(self) -> Global___DataSource.KinesisOptions: ... + @_builtins.property + def redshift_options(self) -> Global___DataSource.RedshiftOptions: ... + @_builtins.property + def request_data_options(self) -> Global___DataSource.RequestDataOptions: ... + @_builtins.property + def custom_options(self) -> Global___DataSource.CustomSourceOptions: ... + @_builtins.property + def snowflake_options(self) -> Global___DataSource.SnowflakeOptions: ... + @_builtins.property + def push_options(self) -> Global___DataSource.PushOptions: ... + @_builtins.property + def spark_options(self) -> Global___DataSource.SparkOptions: ... + @_builtins.property + def trino_options(self) -> Global___DataSource.TrinoOptions: ... + @_builtins.property + def athena_options(self) -> Global___DataSource.AthenaOptions: ... def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., - type: global___DataSource.SourceType.ValueType = ..., - field_mapping: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - timestamp_field: builtins.str = ..., - date_partition_column: builtins.str = ..., - created_timestamp_column: builtins.str = ..., - data_source_class_type: builtins.str = ..., - batch_source: global___DataSource | None = ..., - meta: global___DataSource.SourceMeta | None = ..., - file_options: global___DataSource.FileOptions | None = ..., - bigquery_options: global___DataSource.BigQueryOptions | None = ..., - kafka_options: global___DataSource.KafkaOptions | None = ..., - kinesis_options: global___DataSource.KinesisOptions | None = ..., - redshift_options: global___DataSource.RedshiftOptions | None = ..., - request_data_options: global___DataSource.RequestDataOptions | None = ..., - custom_options: global___DataSource.CustomSourceOptions | None = ..., - snowflake_options: global___DataSource.SnowflakeOptions | None = ..., - push_options: global___DataSource.PushOptions | None = ..., - spark_options: global___DataSource.SparkOptions | None = ..., - trino_options: global___DataSource.TrinoOptions | None = ..., - athena_options: global___DataSource.AthenaOptions | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., + type: Global___DataSource.SourceType.ValueType = ..., + field_mapping: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + timestamp_field: _builtins.str = ..., + date_partition_column: _builtins.str = ..., + created_timestamp_column: _builtins.str = ..., + data_source_class_type: _builtins.str = ..., + batch_source: Global___DataSource | None = ..., + meta: Global___DataSource.SourceMeta | None = ..., + file_options: Global___DataSource.FileOptions | None = ..., + bigquery_options: Global___DataSource.BigQueryOptions | None = ..., + kafka_options: Global___DataSource.KafkaOptions | None = ..., + kinesis_options: Global___DataSource.KinesisOptions | None = ..., + redshift_options: Global___DataSource.RedshiftOptions | None = ..., + request_data_options: Global___DataSource.RequestDataOptions | None = ..., + custom_options: Global___DataSource.CustomSourceOptions | None = ..., + snowflake_options: Global___DataSource.SnowflakeOptions | None = ..., + push_options: Global___DataSource.PushOptions | None = ..., + spark_options: Global___DataSource.SparkOptions | None = ..., + trino_options: Global___DataSource.TrinoOptions | None = ..., + athena_options: Global___DataSource.AthenaOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "custom_options", b"custom_options", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "options", b"options", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "trino_options", b"trino_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "created_timestamp_column", b"created_timestamp_column", "custom_options", b"custom_options", "data_source_class_type", b"data_source_class_type", "date_partition_column", b"date_partition_column", "description", b"description", "field_mapping", b"field_mapping", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "name", b"name", "options", b"options", "owner", b"owner", "project", b"project", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "tags", b"tags", "timestamp_field", b"timestamp_field", "trino_options", b"trino_options", "type", b"type"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["file_options", "bigquery_options", "kafka_options", "kinesis_options", "redshift_options", "request_data_options", "custom_options", "snowflake_options", "push_options", "spark_options", "trino_options", "athena_options"] | None: ... - -global___DataSource = DataSource - -class DataSourceList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATASOURCES_FIELD_NUMBER: builtins.int - @property - def datasources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DataSource]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "custom_options", b"custom_options", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "options", b"options", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "trino_options", b"trino_options"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["athena_options", b"athena_options", "batch_source", b"batch_source", "bigquery_options", b"bigquery_options", "created_timestamp_column", b"created_timestamp_column", "custom_options", b"custom_options", "data_source_class_type", b"data_source_class_type", "date_partition_column", b"date_partition_column", "description", b"description", "field_mapping", b"field_mapping", "file_options", b"file_options", "kafka_options", b"kafka_options", "kinesis_options", b"kinesis_options", "meta", b"meta", "name", b"name", "options", b"options", "owner", b"owner", "project", b"project", "push_options", b"push_options", "redshift_options", b"redshift_options", "request_data_options", b"request_data_options", "snowflake_options", b"snowflake_options", "spark_options", b"spark_options", "tags", b"tags", "timestamp_field", b"timestamp_field", "trino_options", b"trino_options", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_options: _TypeAlias = _typing.Literal["file_options", "bigquery_options", "kafka_options", "kinesis_options", "redshift_options", "request_data_options", "custom_options", "snowflake_options", "push_options", "spark_options", "trino_options", "athena_options"] # noqa: Y015 + _WhichOneofArgType_options: _TypeAlias = _typing.Literal["options", b"options"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_options) -> _WhichOneofReturnType_options | None: ... + +Global___DataSource: _TypeAlias = DataSource # noqa: Y015 + +@_typing.final +class DataSourceList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + DATASOURCES_FIELD_NUMBER: _builtins.int + @_builtins.property + def datasources(self) -> _containers.RepeatedCompositeFieldContainer[Global___DataSource]: ... def __init__( self, *, - datasources: collections.abc.Iterable[global___DataSource] | None = ..., + datasources: _abc.Iterable[Global___DataSource] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["datasources", b"datasources"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["datasources", b"datasources"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DataSourceList = DataSourceList +Global___DataSourceList: _TypeAlias = DataSourceList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi b/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi index 6339a97536e..f9a451e8560 100644 --- a/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/DatastoreTable_pb2.pyi @@ -16,52 +16,60 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import google.protobuf.wrappers_pb2 + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class DatastoreTable(google.protobuf.message.Message): +@_typing.final +class DatastoreTable(_message.Message): """Represents a Datastore table""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - PROJECT_ID_FIELD_NUMBER: builtins.int - NAMESPACE_FIELD_NUMBER: builtins.int - DATABASE_FIELD_NUMBER: builtins.int - project: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + PROJECT_ID_FIELD_NUMBER: _builtins.int + NAMESPACE_FIELD_NUMBER: _builtins.int + DATABASE_FIELD_NUMBER: _builtins.int + project: _builtins.str """Feast project of the table""" - name: builtins.str + name: _builtins.str """Name of the table""" - @property - def project_id(self) -> google.protobuf.wrappers_pb2.StringValue: + @_builtins.property + def project_id(self) -> _wrappers_pb2.StringValue: """GCP project id""" - @property - def namespace(self) -> google.protobuf.wrappers_pb2.StringValue: + + @_builtins.property + def namespace(self) -> _wrappers_pb2.StringValue: """Datastore namespace""" - @property - def database(self) -> google.protobuf.wrappers_pb2.StringValue: + + @_builtins.property + def database(self) -> _wrappers_pb2.StringValue: """Firestore database""" + def __init__( self, *, - project: builtins.str = ..., - name: builtins.str = ..., - project_id: google.protobuf.wrappers_pb2.StringValue | None = ..., - namespace: google.protobuf.wrappers_pb2.StringValue | None = ..., - database: google.protobuf.wrappers_pb2.StringValue | None = ..., + project: _builtins.str = ..., + name: _builtins.str = ..., + project_id: _wrappers_pb2.StringValue | None = ..., + namespace: _wrappers_pb2.StringValue | None = ..., + database: _wrappers_pb2.StringValue | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["database", b"database", "namespace", b"namespace", "project_id", b"project_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["database", b"database", "name", b"name", "namespace", b"namespace", "project", b"project", "project_id", b"project_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "namespace", b"namespace", "project_id", b"project_id"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["database", b"database", "name", b"name", "namespace", b"namespace", "project", b"project", "project_id", b"project_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DatastoreTable = DatastoreTable +Global___DatastoreTable: _TypeAlias = DatastoreTable # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Entity_pb2.pyi b/sdk/python/feast/protos/feast/core/Entity_pb2.pyi index 025817edfee..b88884b41c3 100644 --- a/sdk/python/feast/protos/feast/core/Entity_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Entity_pb2.pyi @@ -16,130 +16,147 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Entity(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Entity(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___EntitySpecV2: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___EntitySpecV2: """User-specified specifications of this entity.""" - @property - def meta(self) -> global___EntityMeta: + + @_builtins.property + def meta(self) -> Global___EntityMeta: """System-populated metadata for this entity.""" + def __init__( self, *, - spec: global___EntitySpecV2 | None = ..., - meta: global___EntityMeta | None = ..., + spec: Global___EntitySpecV2 | None = ..., + meta: Global___EntityMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Entity = Entity +Global___Entity: _TypeAlias = Entity # noqa: Y015 -class EntitySpecV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntitySpecV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - VALUE_TYPE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - JOIN_KEY_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + VALUE_TYPE_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + JOIN_KEY_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the entity.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature table belongs to.""" - value_type: feast.types.Value_pb2.ValueType.Enum.ValueType + value_type: _Value_pb2.ValueType.Enum.ValueType """Type of the entity.""" - description: builtins.str + description: _builtins.str """Description of the entity.""" - join_key: builtins.str + join_key: _builtins.str """Join key for the entity (i.e. name of the column the entity maps to).""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """User defined metadata""" - owner: builtins.str + owner: _builtins.str """Owner of the entity.""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - value_type: feast.types.Value_pb2.ValueType.Enum.ValueType = ..., - description: builtins.str = ..., - join_key: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + value_type: _Value_pb2.ValueType.Enum.ValueType = ..., + description: _builtins.str = ..., + join_key: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "join_key", b"join_key", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags", "value_type", b"value_type"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "join_key", b"join_key", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags", "value_type", b"value_type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntitySpecV2 = EntitySpecV2 +Global___EntitySpecV2: _TypeAlias = EntitySpecV2 # noqa: Y015 -class EntityMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntityMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntityMeta = EntityMeta +Global___EntityMeta: _TypeAlias = EntityMeta # noqa: Y015 -class EntityList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntityList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITIES_FIELD_NUMBER: builtins.int - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Entity]: ... + ENTITIES_FIELD_NUMBER: _builtins.int + @_builtins.property + def entities(self) -> _containers.RepeatedCompositeFieldContainer[Global___Entity]: ... def __init__( self, *, - entities: collections.abc.Iterable[global___Entity] | None = ..., + entities: _abc.Iterable[Global___Entity] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entities", b"entities"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entities", b"entities"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntityList = EntityList +Global___EntityList: _TypeAlias = EntityList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi index 6d5879e52cb..125c198db48 100644 --- a/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi @@ -2,305 +2,349 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.FeatureViewProjection_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import FeatureViewProjection_pb2 as _FeatureViewProjection_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureService(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureService(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___FeatureServiceSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___FeatureServiceSpec: """User-specified specifications of this feature service.""" - @property - def meta(self) -> global___FeatureServiceMeta: + + @_builtins.property + def meta(self) -> Global___FeatureServiceMeta: """System-populated metadata for this feature service.""" + def __init__( self, *, - spec: global___FeatureServiceSpec | None = ..., - meta: global___FeatureServiceMeta | None = ..., + spec: Global___FeatureServiceSpec | None = ..., + meta: Global___FeatureServiceMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureService = FeatureService +Global___FeatureService: _TypeAlias = FeatureService # noqa: Y015 -class FeatureServiceSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureServiceSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - LOGGING_CONFIG_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + LOGGING_CONFIG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the Feature Service. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this Feature Service belongs to.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureViewProjection_pb2.FeatureViewProjection]: + description: _builtins.str + """Description of the feature service.""" + owner: _builtins.str + """Owner of the feature service.""" + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureViewProjection_pb2.FeatureViewProjection]: """Represents a projection that's to be applied on top of the FeatureView. Contains data such as the features to use from a FeatureView. """ - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - description: builtins.str - """Description of the feature service.""" - owner: builtins.str - """Owner of the feature service.""" - @property - def logging_config(self) -> global___LoggingConfig: + + @_builtins.property + def logging_config(self) -> Global___LoggingConfig: """(optional) if provided logging will be enabled for this feature service.""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - features: collections.abc.Iterable[feast.core.FeatureViewProjection_pb2.FeatureViewProjection] | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - description: builtins.str = ..., - owner: builtins.str = ..., - logging_config: global___LoggingConfig | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + features: _abc.Iterable[_FeatureViewProjection_pb2.FeatureViewProjection] | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + description: _builtins.str = ..., + owner: _builtins.str = ..., + logging_config: Global___LoggingConfig | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["logging_config", b"logging_config"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "features", b"features", "logging_config", b"logging_config", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["logging_config", b"logging_config"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "features", b"features", "logging_config", b"logging_config", "name", b"name", "owner", b"owner", "project", b"project", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureServiceSpec = FeatureServiceSpec +Global___FeatureServiceSpec: _TypeAlias = FeatureServiceSpec # noqa: Y015 -class FeatureServiceMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureServiceMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature Service is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature Service is last updated""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... - -global___FeatureServiceMeta = FeatureServiceMeta - -class LoggingConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class FileDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PATH_FIELD_NUMBER: builtins.int - S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: builtins.int - PARTITION_BY_FIELD_NUMBER: builtins.int - path: builtins.str - s3_endpoint_override: builtins.str - @property - def partition_by(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___FeatureServiceMeta: _TypeAlias = FeatureServiceMeta # noqa: Y015 + +@_typing.final +class LoggingConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class FileDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PATH_FIELD_NUMBER: _builtins.int + S3_ENDPOINT_OVERRIDE_FIELD_NUMBER: _builtins.int + PARTITION_BY_FIELD_NUMBER: _builtins.int + path: _builtins.str + s3_endpoint_override: _builtins.str + @_builtins.property + def partition_by(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """column names to use for partitioning""" + def __init__( self, *, - path: builtins.str = ..., - s3_endpoint_override: builtins.str = ..., - partition_by: collections.abc.Iterable[builtins.str] | None = ..., + path: _builtins.str = ..., + s3_endpoint_override: _builtins.str = ..., + partition_by: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partition_by", b"partition_by", "path", b"path", "s3_endpoint_override", b"s3_endpoint_override"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["partition_by", b"partition_by", "path", b"path", "s3_endpoint_override", b"s3_endpoint_override"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class BigQueryDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class BigQueryDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_REF_FIELD_NUMBER: builtins.int - table_ref: builtins.str + TABLE_REF_FIELD_NUMBER: _builtins.int + table_ref: _builtins.str """Full table reference in the form of [project:dataset.table]""" def __init__( self, *, - table_ref: builtins.str = ..., + table_ref: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_ref", b"table_ref"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_ref", b"table_ref"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RedshiftDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class RedshiftDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_NAME_FIELD_NUMBER: builtins.int - table_name: builtins.str + TABLE_NAME_FIELD_NUMBER: _builtins.int + table_name: _builtins.str """Destination table name. ClusterId and database will be taken from an offline store config""" def __init__( self, *, - table_name: builtins.str = ..., + table_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class AthenaDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class AthenaDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_NAME_FIELD_NUMBER: builtins.int - table_name: builtins.str + TABLE_NAME_FIELD_NUMBER: _builtins.int + table_name: _builtins.str """Destination table name. data_source and database will be taken from an offline store config""" def __init__( self, *, - table_name: builtins.str = ..., + table_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class SnowflakeDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class SnowflakeDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TABLE_NAME_FIELD_NUMBER: builtins.int - table_name: builtins.str + TABLE_NAME_FIELD_NUMBER: _builtins.int + table_name: _builtins.str """Destination table name. Schema and database will be taken from an offline store config""" def __init__( self, *, - table_name: builtins.str = ..., + table_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["table_name", b"table_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["table_name", b"table_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class CustomDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class CustomDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class ConfigEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class ConfigEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - KIND_FIELD_NUMBER: builtins.int - CONFIG_FIELD_NUMBER: builtins.int - kind: builtins.str - @property - def config(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + KIND_FIELD_NUMBER: _builtins.int + CONFIG_FIELD_NUMBER: _builtins.int + kind: _builtins.str + @_builtins.property + def config(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... def __init__( self, *, - kind: builtins.str = ..., - config: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + kind: _builtins.str = ..., + config: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["config", b"config", "kind", b"kind"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["config", b"config", "kind", b"kind"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class CouchbaseColumnarDestination(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class CouchbaseColumnarDestination(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - DATABASE_FIELD_NUMBER: builtins.int - SCOPE_FIELD_NUMBER: builtins.int - COLLECTION_FIELD_NUMBER: builtins.int - database: builtins.str + DATABASE_FIELD_NUMBER: _builtins.int + SCOPE_FIELD_NUMBER: _builtins.int + COLLECTION_FIELD_NUMBER: _builtins.int + database: _builtins.str """Destination database name""" - scope: builtins.str + scope: _builtins.str """Destination scope name""" - collection: builtins.str + collection: _builtins.str """Destination collection name""" def __init__( self, *, - database: builtins.str = ..., - scope: builtins.str = ..., - collection: builtins.str = ..., + database: _builtins.str = ..., + scope: _builtins.str = ..., + collection: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["collection", b"collection", "database", b"database", "scope", b"scope"]) -> None: ... - - SAMPLE_RATE_FIELD_NUMBER: builtins.int - FILE_DESTINATION_FIELD_NUMBER: builtins.int - BIGQUERY_DESTINATION_FIELD_NUMBER: builtins.int - REDSHIFT_DESTINATION_FIELD_NUMBER: builtins.int - SNOWFLAKE_DESTINATION_FIELD_NUMBER: builtins.int - CUSTOM_DESTINATION_FIELD_NUMBER: builtins.int - ATHENA_DESTINATION_FIELD_NUMBER: builtins.int - COUCHBASE_COLUMNAR_DESTINATION_FIELD_NUMBER: builtins.int - sample_rate: builtins.float - @property - def file_destination(self) -> global___LoggingConfig.FileDestination: ... - @property - def bigquery_destination(self) -> global___LoggingConfig.BigQueryDestination: ... - @property - def redshift_destination(self) -> global___LoggingConfig.RedshiftDestination: ... - @property - def snowflake_destination(self) -> global___LoggingConfig.SnowflakeDestination: ... - @property - def custom_destination(self) -> global___LoggingConfig.CustomDestination: ... - @property - def athena_destination(self) -> global___LoggingConfig.AthenaDestination: ... - @property - def couchbase_columnar_destination(self) -> global___LoggingConfig.CouchbaseColumnarDestination: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["collection", b"collection", "database", b"database", "scope", b"scope"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + SAMPLE_RATE_FIELD_NUMBER: _builtins.int + FILE_DESTINATION_FIELD_NUMBER: _builtins.int + BIGQUERY_DESTINATION_FIELD_NUMBER: _builtins.int + REDSHIFT_DESTINATION_FIELD_NUMBER: _builtins.int + SNOWFLAKE_DESTINATION_FIELD_NUMBER: _builtins.int + CUSTOM_DESTINATION_FIELD_NUMBER: _builtins.int + ATHENA_DESTINATION_FIELD_NUMBER: _builtins.int + COUCHBASE_COLUMNAR_DESTINATION_FIELD_NUMBER: _builtins.int + sample_rate: _builtins.float + @_builtins.property + def file_destination(self) -> Global___LoggingConfig.FileDestination: ... + @_builtins.property + def bigquery_destination(self) -> Global___LoggingConfig.BigQueryDestination: ... + @_builtins.property + def redshift_destination(self) -> Global___LoggingConfig.RedshiftDestination: ... + @_builtins.property + def snowflake_destination(self) -> Global___LoggingConfig.SnowflakeDestination: ... + @_builtins.property + def custom_destination(self) -> Global___LoggingConfig.CustomDestination: ... + @_builtins.property + def athena_destination(self) -> Global___LoggingConfig.AthenaDestination: ... + @_builtins.property + def couchbase_columnar_destination(self) -> Global___LoggingConfig.CouchbaseColumnarDestination: ... def __init__( self, *, - sample_rate: builtins.float = ..., - file_destination: global___LoggingConfig.FileDestination | None = ..., - bigquery_destination: global___LoggingConfig.BigQueryDestination | None = ..., - redshift_destination: global___LoggingConfig.RedshiftDestination | None = ..., - snowflake_destination: global___LoggingConfig.SnowflakeDestination | None = ..., - custom_destination: global___LoggingConfig.CustomDestination | None = ..., - athena_destination: global___LoggingConfig.AthenaDestination | None = ..., - couchbase_columnar_destination: global___LoggingConfig.CouchbaseColumnarDestination | None = ..., + sample_rate: _builtins.float = ..., + file_destination: Global___LoggingConfig.FileDestination | None = ..., + bigquery_destination: Global___LoggingConfig.BigQueryDestination | None = ..., + redshift_destination: Global___LoggingConfig.RedshiftDestination | None = ..., + snowflake_destination: Global___LoggingConfig.SnowflakeDestination | None = ..., + custom_destination: Global___LoggingConfig.CustomDestination | None = ..., + athena_destination: Global___LoggingConfig.AthenaDestination | None = ..., + couchbase_columnar_destination: Global___LoggingConfig.CouchbaseColumnarDestination | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "snowflake_destination", b"snowflake_destination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "sample_rate", b"sample_rate", "snowflake_destination", b"snowflake_destination"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["destination", b"destination"]) -> typing_extensions.Literal["file_destination", "bigquery_destination", "redshift_destination", "snowflake_destination", "custom_destination", "athena_destination", "couchbase_columnar_destination"] | None: ... - -global___LoggingConfig = LoggingConfig - -class FeatureServiceList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURESERVICES_FIELD_NUMBER: builtins.int - @property - def featureservices(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureService]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "snowflake_destination", b"snowflake_destination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["athena_destination", b"athena_destination", "bigquery_destination", b"bigquery_destination", "couchbase_columnar_destination", b"couchbase_columnar_destination", "custom_destination", b"custom_destination", "destination", b"destination", "file_destination", b"file_destination", "redshift_destination", b"redshift_destination", "sample_rate", b"sample_rate", "snowflake_destination", b"snowflake_destination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_destination: _TypeAlias = _typing.Literal["file_destination", "bigquery_destination", "redshift_destination", "snowflake_destination", "custom_destination", "athena_destination", "couchbase_columnar_destination"] # noqa: Y015 + _WhichOneofArgType_destination: _TypeAlias = _typing.Literal["destination", b"destination"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_destination) -> _WhichOneofReturnType_destination | None: ... + +Global___LoggingConfig: _TypeAlias = LoggingConfig # noqa: Y015 + +@_typing.final +class FeatureServiceList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURESERVICES_FIELD_NUMBER: _builtins.int + @_builtins.property + def featureservices(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureService]: ... def __init__( self, *, - featureservices: collections.abc.Iterable[global___FeatureService] | None = ..., + featureservices: _abc.Iterable[Global___FeatureService] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["featureservices", b"featureservices"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["featureservices", b"featureservices"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureServiceList = FeatureServiceList +Global___FeatureServiceList: _TypeAlias = FeatureServiceList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi index dd41c2d214a..c6ff726e507 100644 --- a/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureTable_pb2.pyi @@ -16,151 +16,174 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Feature_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureTable(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureTable(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___FeatureTableSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___FeatureTableSpec: """User-specified specifications of this feature table.""" - @property - def meta(self) -> global___FeatureTableMeta: + + @_builtins.property + def meta(self) -> Global___FeatureTableMeta: """System-populated metadata for this feature table.""" + def __init__( self, *, - spec: global___FeatureTableSpec | None = ..., - meta: global___FeatureTableMeta | None = ..., + spec: Global___FeatureTableSpec | None = ..., + meta: Global___FeatureTableMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureTable = FeatureTable +Global___FeatureTable: _TypeAlias = FeatureTable # noqa: Y015 -class FeatureTableSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureTableSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class LabelsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class LabelsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - LABELS_FIELD_NUMBER: builtins.int - MAX_AGE_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + LABELS_FIELD_NUMBER: _builtins.int + MAX_AGE_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature table. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature table belongs to.""" - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List names of entities to associate with the Features defined in this Feature Table. Not updatable. """ - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of features specifications for each feature defined with this feature table.""" - @property - def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def labels(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - @property - def max_age(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def max_age(self) -> _duration_pb2.Duration: """Features in this feature table can only be retrieved from online serving younger than max age. Age is measured as the duration of time between the feature's event timestamp and when the feature is retrieved Feature values outside max age will be returned as unset values and indicated to end user """ - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource to source batch/offline feature data. Only batch DataSource can be specified (ie source type should start with 'BATCH_') """ - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Stream/Online DataSource to source stream/online feature data. Only stream DataSource can be specified (ie source type should start with 'STREAM_') """ + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - max_age: google.protobuf.duration_pb2.Duration | None = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + labels: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + max_age: _duration_pb2.Duration | None = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "max_age", b"max_age", "stream_source", b"stream_source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "entities", b"entities", "features", b"features", "labels", b"labels", "max_age", b"max_age", "name", b"name", "project", b"project", "stream_source", b"stream_source"]) -> None: ... - -global___FeatureTableSpec = FeatureTableSpec - -class FeatureTableMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - REVISION_FIELD_NUMBER: builtins.int - HASH_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature Table is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature Table is last updated""" - revision: builtins.int + _HasFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "max_age", b"max_age", "stream_source", b"stream_source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "entities", b"entities", "features", b"features", "labels", b"labels", "max_age", b"max_age", "name", b"name", "project", b"project", "stream_source", b"stream_source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___FeatureTableSpec: _TypeAlias = FeatureTableSpec # noqa: Y015 + +@_typing.final +class FeatureTableMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + REVISION_FIELD_NUMBER: _builtins.int + HASH_FIELD_NUMBER: _builtins.int + revision: _builtins.int """Auto incrementing revision no. of this Feature Table""" - hash: builtins.str + hash: _builtins.str """Hash entities, features, batch_source and stream_source to inform JobService if jobs should be restarted should hash change """ + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature Table is created""" + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature Table is last updated""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - revision: builtins.int = ..., - hash: builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + revision: _builtins.int = ..., + hash: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "hash", b"hash", "last_updated_timestamp", b"last_updated_timestamp", "revision", b"revision"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "hash", b"hash", "last_updated_timestamp", b"last_updated_timestamp", "revision", b"revision"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureTableMeta = FeatureTableMeta +Global___FeatureTableMeta: _TypeAlias = FeatureTableMeta # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi index 6fd1010f2e4..b5b8c976400 100644 --- a/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureViewProjection_pb2.pyi @@ -2,91 +2,104 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Feature_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureViewProjection(google.protobuf.message.Message): +@_typing.final +class FeatureViewProjection(_message.Message): """A projection to be applied on top of a FeatureView. Contains the modifications to a FeatureView such as the features subset to use. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class JoinKeyMapEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class JoinKeyMapEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - FEATURE_VIEW_NAME_ALIAS_FIELD_NUMBER: builtins.int - FEATURE_COLUMNS_FIELD_NUMBER: builtins.int - JOIN_KEY_MAP_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_FIELD_NUMBER: builtins.int - DATE_PARTITION_COLUMN_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - VERSION_TAG_FIELD_NUMBER: builtins.int - feature_view_name: builtins.str + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_NAME_ALIAS_FIELD_NUMBER: _builtins.int + FEATURE_COLUMNS_FIELD_NUMBER: _builtins.int + JOIN_KEY_MAP_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_FIELD_NUMBER: _builtins.int + DATE_PARTITION_COLUMN_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_COLUMN_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + VERSION_TAG_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str """The feature view name""" - feature_view_name_alias: builtins.str + feature_view_name_alias: _builtins.str """Alias for feature view name""" - @property - def feature_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + timestamp_field: _builtins.str + date_partition_column: _builtins.str + created_timestamp_column: _builtins.str + version_tag: _builtins.int + """Optional version tag for version-qualified feature references (e.g., @v2).""" + @_builtins.property + def feature_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """The features of the feature view that are a part of the feature reference.""" - @property - def join_key_map(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def join_key_map(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """Map for entity join_key overrides of feature data entity join_key to entity data join_key""" - timestamp_field: builtins.str - date_partition_column: builtins.str - created_timestamp_column: builtins.str - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data.""" - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Streaming DataSource from where this view can consume "online" feature data.""" - version_tag: builtins.int - """Optional version tag for version-qualified feature references (e.g., @v2).""" + def __init__( self, *, - feature_view_name: builtins.str = ..., - feature_view_name_alias: builtins.str = ..., - feature_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - join_key_map: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - timestamp_field: builtins.str = ..., - date_partition_column: builtins.str = ..., - created_timestamp_column: builtins.str = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., - version_tag: builtins.int | None = ..., + feature_view_name: _builtins.str = ..., + feature_view_name_alias: _builtins.str = ..., + feature_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + join_key_map: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + timestamp_field: _builtins.str = ..., + date_partition_column: _builtins.str = ..., + created_timestamp_column: _builtins.str = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., + version_tag: _builtins.int | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "stream_source", b"stream_source", "version_tag", b"version_tag"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "created_timestamp_column", b"created_timestamp_column", "date_partition_column", b"date_partition_column", "feature_columns", b"feature_columns", "feature_view_name", b"feature_view_name", "feature_view_name_alias", b"feature_view_name_alias", "join_key_map", b"join_key_map", "stream_source", b"stream_source", "timestamp_field", b"timestamp_field", "version_tag", b"version_tag"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_version_tag", b"_version_tag"]) -> typing_extensions.Literal["version_tag"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "stream_source", b"stream_source", "version_tag", b"version_tag"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["_version_tag", b"_version_tag", "batch_source", b"batch_source", "created_timestamp_column", b"created_timestamp_column", "date_partition_column", b"date_partition_column", "feature_columns", b"feature_columns", "feature_view_name", b"feature_view_name", "feature_view_name_alias", b"feature_view_name_alias", "join_key_map", b"join_key_map", "stream_source", b"stream_source", "timestamp_field", b"timestamp_field", "version_tag", b"version_tag"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__version_tag: _TypeAlias = _typing.Literal["version_tag"] # noqa: Y015 + _WhichOneofArgType__version_tag: _TypeAlias = _typing.Literal["_version_tag", b"_version_tag"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType__version_tag) -> _WhichOneofReturnType__version_tag | None: ... -global___FeatureViewProjection = FeatureViewProjection +Global___FeatureViewProjection: _TypeAlias = FeatureViewProjection # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi index a6dba9d53d4..fae1911f435 100644 --- a/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureViewVersion_pb2.pyi @@ -16,72 +16,79 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureViewVersionRecord(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewVersionRecord(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - PROJECT_ID_FIELD_NUMBER: builtins.int - VERSION_NUMBER_FIELD_NUMBER: builtins.int - FEATURE_VIEW_TYPE_FIELD_NUMBER: builtins.int - FEATURE_VIEW_PROTO_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - feature_view_name: builtins.str - project_id: builtins.str - version_number: builtins.int - feature_view_type: builtins.str + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + PROJECT_ID_FIELD_NUMBER: _builtins.int + VERSION_NUMBER_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_TYPE_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_PROTO_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str + project_id: _builtins.str + version_number: _builtins.int + feature_view_type: _builtins.str """"feature_view" | "stream_feature_view" | "on_demand_feature_view" """ - feature_view_proto: builtins.bytes + feature_view_proto: _builtins.bytes """serialized FV proto snapshot""" - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - description: builtins.str - version_id: builtins.str + description: _builtins.str + version_id: _builtins.str """auto-generated UUID for unique identification""" + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - feature_view_name: builtins.str = ..., - project_id: builtins.str = ..., - version_number: builtins.int = ..., - feature_view_type: builtins.str = ..., - feature_view_proto: builtins.bytes = ..., - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - description: builtins.str = ..., - version_id: builtins.str = ..., + feature_view_name: _builtins.str = ..., + project_id: _builtins.str = ..., + version_number: _builtins.int = ..., + feature_view_type: _builtins.str = ..., + feature_view_proto: _builtins.bytes = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + description: _builtins.str = ..., + version_id: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view_name", b"feature_view_name", "feature_view_proto", b"feature_view_proto", "feature_view_type", b"feature_view_type", "project_id", b"project_id", "version_id", b"version_id", "version_number", b"version_number"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view_name", b"feature_view_name", "feature_view_proto", b"feature_view_proto", "feature_view_type", b"feature_view_type", "project_id", b"project_id", "version_id", b"version_id", "version_number", b"version_number"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewVersionRecord = FeatureViewVersionRecord +Global___FeatureViewVersionRecord: _TypeAlias = FeatureViewVersionRecord # noqa: Y015 -class FeatureViewVersionHistory(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewVersionHistory(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RECORDS_FIELD_NUMBER: builtins.int - @property - def records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewVersionRecord]: ... + RECORDS_FIELD_NUMBER: _builtins.int + @_builtins.property + def records(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewVersionRecord]: ... def __init__( self, *, - records: collections.abc.Iterable[global___FeatureViewVersionRecord] | None = ..., + records: _abc.Iterable[Global___FeatureViewVersionRecord] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["records", b"records"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["records", b"records"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewVersionHistory = FeatureViewVersionHistory +Global___FeatureViewVersionHistory: _TypeAlias = FeatureViewVersionHistory # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi b/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi index 4e22ad1b12b..575b4dfedb1 100644 --- a/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/FeatureView_pb2.pyi @@ -16,238 +16,269 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Feature_pb2 -import feast.core.Transformation_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from feast.core import Transformation_pb2 as _Transformation_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___FeatureViewSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___FeatureViewSpec: """User-specified specifications of this feature view.""" - @property - def meta(self) -> global___FeatureViewMeta: + + @_builtins.property + def meta(self) -> Global___FeatureViewMeta: """System-populated metadata for this feature view.""" + def __init__( self, *, - spec: global___FeatureViewSpec | None = ..., - meta: global___FeatureViewMeta | None = ..., + spec: Global___FeatureViewSpec | None = ..., + meta: Global___FeatureViewMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureView = FeatureView +Global___FeatureView: _TypeAlias = FeatureView # noqa: Y015 -class FeatureViewSpec(google.protobuf.message.Message): +@_typing.final +class FeatureViewSpec(_message.Message): """Next available id: 20 TODO(adchia): refactor common fields from this and ODFV into separate metadata proto """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - TTL_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - ONLINE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - ENTITY_COLUMNS_FIELD_NUMBER: builtins.int - OFFLINE_FIELD_NUMBER: builtins.int - SOURCE_VIEWS_FIELD_NUMBER: builtins.int - FEATURE_TRANSFORMATION_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - ENABLE_VALIDATION_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - ORG_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + TTL_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + ONLINE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + ENTITY_COLUMNS_FIELD_NUMBER: _builtins.int + OFFLINE_FIELD_NUMBER: _builtins.int + SOURCE_VIEWS_FIELD_NUMBER: _builtins.int + FEATURE_TRANSFORMATION_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + ENABLE_VALIDATION_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + ORG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature view. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature view belongs to.""" - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + online: _builtins.bool + """Whether these features should be served online or not + This is also used to determine whether the features should be written to the online store + """ + description: _builtins.str + """Description of the feature view.""" + owner: _builtins.str + """Owner of the feature view.""" + offline: _builtins.bool + """Whether these features should be written to the offline store""" + mode: _builtins.str + """The transformation mode (e.g., "python", "pandas", "spark", "sql", "ray")""" + enable_validation: _builtins.bool + """Whether schema validation is enabled during materialization""" + version: _builtins.str + """User-specified version pin (e.g. "latest", "v2", "version2")""" + org: _builtins.str + """Organizational unit that owns this feature view (e.g. "ads", "search").""" + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of names of entities associated with this feature view.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each feature defined as part of this feature view.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - @property - def ttl(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def ttl(self) -> _duration_pb2.Duration: """Features in this feature view can only be retrieved from online serving younger than ttl. Ttl is measured as the duration of time between the feature's event timestamp and when the feature is retrieved Feature values outside ttl will be returned as unset values and indicated to end user """ - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data. Optional: if not set, the feature view has no associated batch data source (e.g. purely derived views). """ - online: builtins.bool - """Whether these features should be served online or not - This is also used to determine whether the features should be written to the online store - """ - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Streaming DataSource from where this view can consume "online" feature data. Optional: only required for streaming feature views. """ - description: builtins.str - """Description of the feature view.""" - owner: builtins.str - """Owner of the feature view.""" - @property - def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - offline: builtins.bool - """Whether these features should be written to the offline store""" - @property - def source_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewSpec]: ... - @property - def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: + + @_builtins.property + def source_views(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewSpec]: ... + @_builtins.property + def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: """Feature transformation for batch feature views""" - mode: builtins.str - """The transformation mode (e.g., "python", "pandas", "spark", "sql", "ray")""" - enable_validation: builtins.bool - """Whether schema validation is enabled during materialization""" - version: builtins.str - """User-specified version pin (e.g. "latest", "v2", "version2")""" - org: builtins.str - """Organizational unit that owns this feature view (e.g. "ads", "search").""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ttl: google.protobuf.duration_pb2.Duration | None = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - online: builtins.bool = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., - description: builtins.str = ..., - owner: builtins.str = ..., - entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - offline: builtins.bool = ..., - source_views: collections.abc.Iterable[global___FeatureViewSpec] | None = ..., - feature_transformation: feast.core.Transformation_pb2.FeatureTransformationV2 | None = ..., - mode: builtins.str = ..., - enable_validation: builtins.bool = ..., - version: builtins.str = ..., - org: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ttl: _duration_pb2.Duration | None = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + online: _builtins.bool = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., + description: _builtins.str = ..., + owner: _builtins.str = ..., + entity_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + offline: _builtins.bool = ..., + source_views: _abc.Iterable[Global___FeatureViewSpec] | None = ..., + feature_transformation: _Transformation_pb2.FeatureTransformationV2 | None = ..., + mode: _builtins.str = ..., + enable_validation: _builtins.bool = ..., + version: _builtins.str = ..., + org: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "ttl", b"ttl"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "description", b"description", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "offline", b"offline", "online", b"online", "org", b"org", "owner", b"owner", "project", b"project", "source_views", b"source_views", "stream_source", b"stream_source", "tags", b"tags", "ttl", b"ttl", "version", b"version"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "ttl", b"ttl"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "description", b"description", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "offline", b"offline", "online", b"online", "org", b"org", "owner", b"owner", "project", b"project", "source_views", b"source_views", "stream_source", b"stream_source", "tags", b"tags", "ttl", b"ttl", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewSpec = FeatureViewSpec +Global___FeatureViewSpec: _TypeAlias = FeatureViewSpec # noqa: Y015 -class FeatureViewMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - MATERIALIZATION_INTERVALS_FIELD_NUMBER: builtins.int - CURRENT_VERSION_NUMBER_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + MATERIALIZATION_INTERVALS_FIELD_NUMBER: _builtins.int + CURRENT_VERSION_NUMBER_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + current_version_number: _builtins.int + """The current version number of this feature view in the version history.""" + version_id: _builtins.str + """Auto-generated UUID identifying this specific version.""" + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature View is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time where this Feature View is last updated""" - @property - def materialization_intervals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MaterializationInterval]: + + @_builtins.property + def materialization_intervals(self) -> _containers.RepeatedCompositeFieldContainer[Global___MaterializationInterval]: """List of pairs (start_time, end_time) for which this feature view has been materialized.""" - current_version_number: builtins.int - """The current version number of this feature view in the version history.""" - version_id: builtins.str - """Auto-generated UUID identifying this specific version.""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - materialization_intervals: collections.abc.Iterable[global___MaterializationInterval] | None = ..., - current_version_number: builtins.int = ..., - version_id: builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + materialization_intervals: _abc.Iterable[Global___MaterializationInterval] | None = ..., + current_version_number: _builtins.int = ..., + version_id: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "materialization_intervals", b"materialization_intervals", "version_id", b"version_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "materialization_intervals", b"materialization_intervals", "version_id", b"version_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewMeta = FeatureViewMeta +Global___FeatureViewMeta: _TypeAlias = FeatureViewMeta # noqa: Y015 -class MaterializationInterval(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class MaterializationInterval(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - START_TIME_FIELD_NUMBER: builtins.int - END_TIME_FIELD_NUMBER: builtins.int - @property - def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + START_TIME_FIELD_NUMBER: _builtins.int + END_TIME_FIELD_NUMBER: _builtins.int + @_builtins.property + def start_time(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def end_time(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., - end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + start_time: _timestamp_pb2.Timestamp | None = ..., + end_time: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "start_time", b"start_time"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["end_time", b"end_time", "start_time", b"start_time"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___MaterializationInterval = MaterializationInterval +Global___MaterializationInterval: _TypeAlias = MaterializationInterval # noqa: Y015 -class FeatureViewList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATUREVIEWS_FIELD_NUMBER: builtins.int - @property - def featureviews(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureView]: ... + FEATUREVIEWS_FIELD_NUMBER: _builtins.int + @_builtins.property + def featureviews(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureView]: ... def __init__( self, *, - featureviews: collections.abc.Iterable[global___FeatureView] | None = ..., + featureviews: _abc.Iterable[Global___FeatureView] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["featureviews", b"featureviews"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["featureviews", b"featureviews"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewList = FeatureViewList +Global___FeatureViewList: _TypeAlias = FeatureViewList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Feature_pb2.pyi b/sdk/python/feast/protos/feast/core/Feature_pb2.pyi index aa56630424f..2355c4c10d4 100644 --- a/sdk/python/feast/protos/feast/core/Feature_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Feature_pb2.pyi @@ -16,72 +16,79 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class FeatureSpecV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureSpecV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - NAME_FIELD_NUMBER: builtins.int - VALUE_TYPE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - VECTOR_INDEX_FIELD_NUMBER: builtins.int - VECTOR_SEARCH_METRIC_FIELD_NUMBER: builtins.int - VECTOR_LENGTH_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + VALUE_TYPE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + VECTOR_INDEX_FIELD_NUMBER: _builtins.int + VECTOR_SEARCH_METRIC_FIELD_NUMBER: _builtins.int + VECTOR_LENGTH_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature. Not updatable.""" - value_type: feast.types.Value_pb2.ValueType.Enum.ValueType + value_type: _Value_pb2.ValueType.Enum.ValueType """Value type of the feature. Not updatable.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Tags for user defined metadata on a feature""" - description: builtins.str + description: _builtins.str """Description of the feature.""" - vector_index: builtins.bool + vector_index: _builtins.bool """Field indicating the vector will be indexed for vector similarity search""" - vector_search_metric: builtins.str + vector_search_metric: _builtins.str """Metric used for vector similarity search.""" - vector_length: builtins.int + vector_length: _builtins.int """Field indicating the vector length""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Tags for user defined metadata on a feature""" + def __init__( self, *, - name: builtins.str = ..., - value_type: feast.types.Value_pb2.ValueType.Enum.ValueType = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - description: builtins.str = ..., - vector_index: builtins.bool = ..., - vector_search_metric: builtins.str = ..., - vector_length: builtins.int = ..., + name: _builtins.str = ..., + value_type: _Value_pb2.ValueType.Enum.ValueType = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + description: _builtins.str = ..., + vector_index: _builtins.bool = ..., + vector_search_metric: _builtins.str = ..., + vector_length: _builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "tags", b"tags", "value_type", b"value_type", "vector_index", b"vector_index", "vector_length", b"vector_length", "vector_search_metric", b"vector_search_metric"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "name", b"name", "tags", b"tags", "value_type", b"value_type", "vector_index", b"vector_index", "vector_length", b"vector_length", "vector_search_metric", b"vector_search_metric"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureSpecV2 = FeatureSpecV2 +Global___FeatureSpecV2: _TypeAlias = FeatureSpecV2 # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi b/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi index f0a704c604a..cc9a4193181 100644 --- a/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/InfraObject_pb2.pyi @@ -16,81 +16,93 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import feast.core.DatastoreTable_pb2 -import feast.core.SqliteTable_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.core import DatastoreTable_pb2 as _DatastoreTable_pb2 +from feast.core import SqliteTable_pb2 as _SqliteTable_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Infra(google.protobuf.message.Message): +@_typing.final +class Infra(_message.Message): """Represents a set of infrastructure objects managed by Feast""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - INFRA_OBJECTS_FIELD_NUMBER: builtins.int - @property - def infra_objects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InfraObject]: + INFRA_OBJECTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def infra_objects(self) -> _containers.RepeatedCompositeFieldContainer[Global___InfraObject]: """List of infrastructure objects managed by Feast""" + def __init__( self, *, - infra_objects: collections.abc.Iterable[global___InfraObject] | None = ..., + infra_objects: _abc.Iterable[Global___InfraObject] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["infra_objects", b"infra_objects"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["infra_objects", b"infra_objects"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Infra = Infra +Global___Infra: _TypeAlias = Infra # noqa: Y015 -class InfraObject(google.protobuf.message.Message): +@_typing.final +class InfraObject(_message.Message): """Represents a single infrastructure object managed by Feast""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class CustomInfra(google.protobuf.message.Message): + @_typing.final + class CustomInfra(_message.Message): """Allows for custom infra objects to be added""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FIELD_FIELD_NUMBER: builtins.int - field: builtins.bytes + FIELD_FIELD_NUMBER: _builtins.int + field: _builtins.bytes def __init__( self, *, - field: builtins.bytes = ..., + field: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["field", b"field"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["field", b"field"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - INFRA_OBJECT_CLASS_TYPE_FIELD_NUMBER: builtins.int - DATASTORE_TABLE_FIELD_NUMBER: builtins.int - SQLITE_TABLE_FIELD_NUMBER: builtins.int - CUSTOM_INFRA_FIELD_NUMBER: builtins.int - infra_object_class_type: builtins.str + INFRA_OBJECT_CLASS_TYPE_FIELD_NUMBER: _builtins.int + DATASTORE_TABLE_FIELD_NUMBER: _builtins.int + SQLITE_TABLE_FIELD_NUMBER: _builtins.int + CUSTOM_INFRA_FIELD_NUMBER: _builtins.int + infra_object_class_type: _builtins.str """Represents the Python class for the infrastructure object""" - @property - def datastore_table(self) -> feast.core.DatastoreTable_pb2.DatastoreTable: ... - @property - def sqlite_table(self) -> feast.core.SqliteTable_pb2.SqliteTable: ... - @property - def custom_infra(self) -> global___InfraObject.CustomInfra: ... + @_builtins.property + def datastore_table(self) -> _DatastoreTable_pb2.DatastoreTable: ... + @_builtins.property + def sqlite_table(self) -> _SqliteTable_pb2.SqliteTable: ... + @_builtins.property + def custom_infra(self) -> Global___InfraObject.CustomInfra: ... def __init__( self, *, - infra_object_class_type: builtins.str = ..., - datastore_table: feast.core.DatastoreTable_pb2.DatastoreTable | None = ..., - sqlite_table: feast.core.SqliteTable_pb2.SqliteTable | None = ..., - custom_infra: global___InfraObject.CustomInfra | None = ..., + infra_object_class_type: _builtins.str = ..., + datastore_table: _DatastoreTable_pb2.DatastoreTable | None = ..., + sqlite_table: _SqliteTable_pb2.SqliteTable | None = ..., + custom_infra: Global___InfraObject.CustomInfra | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "sqlite_table", b"sqlite_table"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "infra_object_class_type", b"infra_object_class_type", "sqlite_table", b"sqlite_table"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["infra_object", b"infra_object"]) -> typing_extensions.Literal["datastore_table", "sqlite_table", "custom_infra"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "sqlite_table", b"sqlite_table"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["custom_infra", b"custom_infra", "datastore_table", b"datastore_table", "infra_object", b"infra_object", "infra_object_class_type", b"infra_object_class_type", "sqlite_table", b"sqlite_table"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_infra_object: _TypeAlias = _typing.Literal["datastore_table", "sqlite_table", "custom_infra"] # noqa: Y015 + _WhichOneofArgType_infra_object: _TypeAlias = _typing.Literal["infra_object", b"infra_object"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_infra_object) -> _WhichOneofReturnType_infra_object | None: ... -global___InfraObject = InfraObject +Global___InfraObject: _TypeAlias = InfraObject # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi index 52998281a3f..289ffd07de3 100644 --- a/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi @@ -16,257 +16,299 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.Aggregation_pb2 -import feast.core.DataSource_pb2 -import feast.core.FeatureViewProjection_pb2 -import feast.core.FeatureView_pb2 -import feast.core.Feature_pb2 -import feast.core.Transformation_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import Aggregation_pb2 as _Aggregation_pb2 +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import FeatureViewProjection_pb2 as _FeatureViewProjection_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from feast.core import Transformation_pb2 as _Transformation_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class OnDemandFeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnDemandFeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___OnDemandFeatureViewSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___OnDemandFeatureViewSpec: """User-specified specifications of this feature view.""" - @property - def meta(self) -> global___OnDemandFeatureViewMeta: ... + + @_builtins.property + def meta(self) -> Global___OnDemandFeatureViewMeta: ... def __init__( self, *, - spec: global___OnDemandFeatureViewSpec | None = ..., - meta: global___OnDemandFeatureViewMeta | None = ..., + spec: Global___OnDemandFeatureViewSpec | None = ..., + meta: Global___OnDemandFeatureViewMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnDemandFeatureView = OnDemandFeatureView +Global___OnDemandFeatureView: _TypeAlias = OnDemandFeatureView # noqa: Y015 -class OnDemandFeatureViewSpec(google.protobuf.message.Message): +@_typing.final +class OnDemandFeatureViewSpec(_message.Message): """Next available id: 19""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class SourcesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class SourcesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> global___OnDemandSource: ... + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> Global___OnDemandSource: ... def __init__( self, *, - key: builtins.str = ..., - value: global___OnDemandSource | None = ..., + key: _builtins.str = ..., + value: Global___OnDemandSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - SOURCES_FIELD_NUMBER: builtins.int - USER_DEFINED_FUNCTION_FIELD_NUMBER: builtins.int - FEATURE_TRANSFORMATION_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - WRITE_TO_ONLINE_STORE_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - ENTITY_COLUMNS_FIELD_NUMBER: builtins.int - SINGLETON_FIELD_NUMBER: builtins.int - AGGREGATIONS_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - ORG_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + SOURCES_FIELD_NUMBER: _builtins.int + USER_DEFINED_FUNCTION_FIELD_NUMBER: _builtins.int + FEATURE_TRANSFORMATION_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + WRITE_TO_ONLINE_STORE_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + ENTITY_COLUMNS_FIELD_NUMBER: _builtins.int + SINGLETON_FIELD_NUMBER: _builtins.int + AGGREGATIONS_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + ORG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature view. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature view belongs to.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + description: _builtins.str + """Description of the on demand feature view.""" + owner: _builtins.str + """Owner of the on demand feature view.""" + mode: _builtins.str + write_to_online_store: _builtins.bool + singleton: _builtins.bool + version: _builtins.str + """User-specified version pin (e.g. "latest", "v2", "version2")""" + org: _builtins.str + """Organizational unit that owns this feature view (e.g. "ads", "search").""" + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of features specifications for each feature defined with this feature view.""" - @property - def sources(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___OnDemandSource]: + + @_builtins.property + def sources(self) -> _containers.MessageMap[_builtins.str, Global___OnDemandSource]: """Map of sources for this feature view.""" - @property - def user_defined_function(self) -> global___UserDefinedFunction: ... - @property - def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: + + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def user_defined_function(self) -> Global___UserDefinedFunction: ... + @_builtins.property + def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: """Oneof with {user_defined_function, on_demand_substrait_transformation}""" - description: builtins.str - """Description of the on demand feature view.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata.""" - owner: builtins.str - """Owner of the on demand feature view.""" - mode: builtins.str - write_to_online_store: builtins.bool - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of names of entities associated with this feature view.""" - @property - def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - singleton: builtins.bool - @property - def aggregations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Aggregation_pb2.Aggregation]: + + @_builtins.property + def aggregations(self) -> _containers.RepeatedCompositeFieldContainer[_Aggregation_pb2.Aggregation]: """Aggregation definitions""" - version: builtins.str - """User-specified version pin (e.g. "latest", "v2", "version2")""" - org: builtins.str - """Organizational unit that owns this feature view (e.g. "ads", "search").""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - sources: collections.abc.Mapping[builtins.str, global___OnDemandSource] | None = ..., - user_defined_function: global___UserDefinedFunction | None = ..., - feature_transformation: feast.core.Transformation_pb2.FeatureTransformationV2 | None = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., - mode: builtins.str = ..., - write_to_online_store: builtins.bool = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - singleton: builtins.bool = ..., - aggregations: collections.abc.Iterable[feast.core.Aggregation_pb2.Aggregation] | None = ..., - version: builtins.str = ..., - org: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + sources: _abc.Mapping[_builtins.str, Global___OnDemandSource] | None = ..., + user_defined_function: Global___UserDefinedFunction | None = ..., + feature_transformation: _Transformation_pb2.FeatureTransformationV2 | None = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., + mode: _builtins.str = ..., + write_to_online_store: _builtins.bool = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + entity_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + singleton: _builtins.bool = ..., + aggregations: _abc.Iterable[_Aggregation_pb2.Aggregation] | None = ..., + version: _builtins.str = ..., + org: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_transformation", b"feature_transformation", "user_defined_function", b"user_defined_function"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aggregations", b"aggregations", "description", b"description", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "org", b"org", "owner", b"owner", "project", b"project", "singleton", b"singleton", "sources", b"sources", "tags", b"tags", "user_defined_function", b"user_defined_function", "version", b"version", "write_to_online_store", b"write_to_online_store"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_transformation", b"feature_transformation", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["aggregations", b"aggregations", "description", b"description", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "org", b"org", "owner", b"owner", "project", b"project", "singleton", b"singleton", "sources", b"sources", "tags", b"tags", "user_defined_function", b"user_defined_function", "version", b"version", "write_to_online_store", b"write_to_online_store"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnDemandFeatureViewSpec = OnDemandFeatureViewSpec +Global___OnDemandFeatureViewSpec: _TypeAlias = OnDemandFeatureViewSpec # noqa: Y015 -class OnDemandFeatureViewMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnDemandFeatureViewMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - CURRENT_VERSION_NUMBER_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature View is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time where this Feature View is last updated""" - current_version_number: builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + CURRENT_VERSION_NUMBER_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + current_version_number: _builtins.int """The current version number of this feature view in the version history.""" - version_id: builtins.str + version_id: _builtins.str """Auto-generated UUID identifying this specific version.""" + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature View is created""" + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: + """Time where this Feature View is last updated""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - current_version_number: builtins.int = ..., - version_id: builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + current_version_number: _builtins.int = ..., + version_id: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "version_id", b"version_id"]) -> None: ... - -global___OnDemandFeatureViewMeta = OnDemandFeatureViewMeta - -class OnDemandSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURE_VIEW_FIELD_NUMBER: builtins.int - FEATURE_VIEW_PROJECTION_FIELD_NUMBER: builtins.int - REQUEST_DATA_SOURCE_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - @property - def feature_view_projection(self) -> feast.core.FeatureViewProjection_pb2.FeatureViewProjection: ... - @property - def request_data_source(self) -> feast.core.DataSource_pb2.DataSource: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "current_version_number", b"current_version_number", "last_updated_timestamp", b"last_updated_timestamp", "version_id", b"version_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___OnDemandFeatureViewMeta: _TypeAlias = OnDemandFeatureViewMeta # noqa: Y015 + +@_typing.final +class OnDemandSource(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_PROJECTION_FIELD_NUMBER: _builtins.int + REQUEST_DATA_SOURCE_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def feature_view_projection(self) -> _FeatureViewProjection_pb2.FeatureViewProjection: ... + @_builtins.property + def request_data_source(self) -> _DataSource_pb2.DataSource: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - feature_view_projection: feast.core.FeatureViewProjection_pb2.FeatureViewProjection | None = ..., - request_data_source: feast.core.DataSource_pb2.DataSource | None = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + feature_view_projection: _FeatureViewProjection_pb2.FeatureViewProjection | None = ..., + request_data_source: _DataSource_pb2.DataSource | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["source", b"source"]) -> typing_extensions.Literal["feature_view", "feature_view_projection", "request_data_source"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_view", b"feature_view", "feature_view_projection", b"feature_view_projection", "request_data_source", b"request_data_source", "source", b"source"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_source: _TypeAlias = _typing.Literal["feature_view", "feature_view_projection", "request_data_source"] # noqa: Y015 + _WhichOneofArgType_source: _TypeAlias = _typing.Literal["source", b"source"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_source) -> _WhichOneofReturnType_source | None: ... -global___OnDemandSource = OnDemandSource +Global___OnDemandSource: _TypeAlias = OnDemandSource # noqa: Y015 -class UserDefinedFunction(google.protobuf.message.Message): +@_deprecated("""This message has been marked as deprecated using proto message options.""") +@_typing.final +class UserDefinedFunction(_message.Message): """Serialized representation of python function.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - BODY_FIELD_NUMBER: builtins.int - BODY_TEXT_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + BODY_FIELD_NUMBER: _builtins.int + BODY_TEXT_FIELD_NUMBER: _builtins.int + name: _builtins.str """The function name""" - body: builtins.bytes + body: _builtins.bytes """The python-syntax function body (serialized by dill)""" - body_text: builtins.str + body_text: _builtins.str """The string representation of the udf""" def __init__( self, *, - name: builtins.str = ..., - body: builtins.bytes = ..., - body_text: builtins.str = ..., + name: _builtins.str = ..., + body: _builtins.bytes = ..., + body_text: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["body", b"body", "body_text", b"body_text", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body", "body_text", b"body_text", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___UserDefinedFunction = UserDefinedFunction +Global___UserDefinedFunction: _TypeAlias = UserDefinedFunction # noqa: Y015 -class OnDemandFeatureViewList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnDemandFeatureViewList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ONDEMANDFEATUREVIEWS_FIELD_NUMBER: builtins.int - @property - def ondemandfeatureviews(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnDemandFeatureView]: ... + ONDEMANDFEATUREVIEWS_FIELD_NUMBER: _builtins.int + @_builtins.property + def ondemandfeatureviews(self) -> _containers.RepeatedCompositeFieldContainer[Global___OnDemandFeatureView]: ... def __init__( self, *, - ondemandfeatureviews: collections.abc.Iterable[global___OnDemandFeatureView] | None = ..., + ondemandfeatureviews: _abc.Iterable[Global___OnDemandFeatureView] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ondemandfeatureviews", b"ondemandfeatureviews"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ondemandfeatureviews", b"ondemandfeatureviews"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnDemandFeatureViewList = OnDemandFeatureViewList +Global___OnDemandFeatureViewList: _TypeAlias = OnDemandFeatureViewList # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Permission_pb2.pyi b/sdk/python/feast/protos/feast/core/Permission_pb2.pyi index b2387d29465..4acc8ac3e1e 100644 --- a/sdk/python/feast/protos/feast/core/Permission_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Permission_pb2.pyi @@ -2,55 +2,62 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.Policy_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import Policy_pb2 as _Policy_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Permission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Permission(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___PermissionSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___PermissionSpec: """User-specified specifications of this permission.""" - @property - def meta(self) -> global___PermissionMeta: + + @_builtins.property + def meta(self) -> Global___PermissionMeta: """System-populated metadata for this permission.""" + def __init__( self, *, - spec: global___PermissionSpec | None = ..., - meta: global___PermissionMeta | None = ..., + spec: Global___PermissionSpec | None = ..., + meta: Global___PermissionMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Permission = Permission +Global___Permission: _TypeAlias = Permission # noqa: Y015 -class PermissionSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PermissionSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor class _AuthzedAction: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _AuthzedActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PermissionSpec._AuthzedAction.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _AuthzedActionEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PermissionSpec._AuthzedAction.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor CREATE: PermissionSpec._AuthzedAction.ValueType # 0 DESCRIBE: PermissionSpec._AuthzedAction.ValueType # 1 UPDATE: PermissionSpec._AuthzedAction.ValueType # 2 @@ -71,11 +78,11 @@ class PermissionSpec(google.protobuf.message.Message): WRITE_OFFLINE: PermissionSpec.AuthzedAction.ValueType # 7 class _Type: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PermissionSpec._Type.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _TypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[PermissionSpec._Type.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor FEATURE_VIEW: PermissionSpec._Type.ValueType # 0 ON_DEMAND_FEATURE_VIEW: PermissionSpec._Type.ValueType # 1 BATCH_FEATURE_VIEW: PermissionSpec._Type.ValueType # 2 @@ -101,96 +108,108 @@ class PermissionSpec(google.protobuf.message.Message): PERMISSION: PermissionSpec.Type.ValueType # 9 PROJECT: PermissionSpec.Type.ValueType # 10 - class RequiredTagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class RequiredTagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - TYPES_FIELD_NUMBER: builtins.int - NAME_PATTERNS_FIELD_NUMBER: builtins.int - REQUIRED_TAGS_FIELD_NUMBER: builtins.int - ACTIONS_FIELD_NUMBER: builtins.int - POLICY_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + TYPES_FIELD_NUMBER: _builtins.int + NAME_PATTERNS_FIELD_NUMBER: _builtins.int + REQUIRED_TAGS_FIELD_NUMBER: _builtins.int + ACTIONS_FIELD_NUMBER: _builtins.int + POLICY_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the permission. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project.""" - @property - def types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PermissionSpec.Type.ValueType]: ... - @property - def name_patterns(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def required_tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def actions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PermissionSpec.AuthzedAction.ValueType]: + @_builtins.property + def types(self) -> _containers.RepeatedScalarFieldContainer[Global___PermissionSpec.Type.ValueType]: ... + @_builtins.property + def name_patterns(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def required_tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def actions(self) -> _containers.RepeatedScalarFieldContainer[Global___PermissionSpec.AuthzedAction.ValueType]: """List of actions.""" - @property - def policy(self) -> feast.core.Policy_pb2.Policy: + + @_builtins.property + def policy(self) -> _Policy_pb2.Policy: """the policy.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - types: collections.abc.Iterable[global___PermissionSpec.Type.ValueType] | None = ..., - name_patterns: collections.abc.Iterable[builtins.str] | None = ..., - required_tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - actions: collections.abc.Iterable[global___PermissionSpec.AuthzedAction.ValueType] | None = ..., - policy: feast.core.Policy_pb2.Policy | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + types: _abc.Iterable[Global___PermissionSpec.Type.ValueType] | None = ..., + name_patterns: _abc.Iterable[_builtins.str] | None = ..., + required_tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + actions: _abc.Iterable[Global___PermissionSpec.AuthzedAction.ValueType] | None = ..., + policy: _Policy_pb2.Policy | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["policy", b"policy"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["actions", b"actions", "name", b"name", "name_patterns", b"name_patterns", "policy", b"policy", "project", b"project", "required_tags", b"required_tags", "tags", b"tags", "types", b"types"]) -> None: ... - -global___PermissionSpec = PermissionSpec - -class PermissionMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["policy", b"policy"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["actions", b"actions", "name", b"name", "name_patterns", b"name_patterns", "policy", b"policy", "project", b"project", "required_tags", b"required_tags", "tags", b"tags", "types", b"types"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PermissionSpec: _TypeAlias = PermissionSpec # noqa: Y015 + +@_typing.final +class PermissionMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PermissionMeta = PermissionMeta +Global___PermissionMeta: _TypeAlias = PermissionMeta # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Policy_pb2.pyi b/sdk/python/feast/protos/feast/core/Policy_pb2.pyi index 8410e396586..6c8b6e49206 100644 --- a/sdk/python/feast/protos/feast/core/Policy_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Policy_pb2.pyi @@ -2,122 +2,142 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Policy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Policy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ROLE_BASED_POLICY_FIELD_NUMBER: builtins.int - GROUP_BASED_POLICY_FIELD_NUMBER: builtins.int - NAMESPACE_BASED_POLICY_FIELD_NUMBER: builtins.int - COMBINED_GROUP_NAMESPACE_POLICY_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ROLE_BASED_POLICY_FIELD_NUMBER: _builtins.int + GROUP_BASED_POLICY_FIELD_NUMBER: _builtins.int + NAMESPACE_BASED_POLICY_FIELD_NUMBER: _builtins.int + COMBINED_GROUP_NAMESPACE_POLICY_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the policy.""" - project: builtins.str + project: _builtins.str """Name of Feast project.""" - @property - def role_based_policy(self) -> global___RoleBasedPolicy: ... - @property - def group_based_policy(self) -> global___GroupBasedPolicy: ... - @property - def namespace_based_policy(self) -> global___NamespaceBasedPolicy: ... - @property - def combined_group_namespace_policy(self) -> global___CombinedGroupNamespacePolicy: ... + @_builtins.property + def role_based_policy(self) -> Global___RoleBasedPolicy: ... + @_builtins.property + def group_based_policy(self) -> Global___GroupBasedPolicy: ... + @_builtins.property + def namespace_based_policy(self) -> Global___NamespaceBasedPolicy: ... + @_builtins.property + def combined_group_namespace_policy(self) -> Global___CombinedGroupNamespacePolicy: ... def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - role_based_policy: global___RoleBasedPolicy | None = ..., - group_based_policy: global___GroupBasedPolicy | None = ..., - namespace_based_policy: global___NamespaceBasedPolicy | None = ..., - combined_group_namespace_policy: global___CombinedGroupNamespacePolicy | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + role_based_policy: Global___RoleBasedPolicy | None = ..., + group_based_policy: Global___GroupBasedPolicy | None = ..., + namespace_based_policy: Global___NamespaceBasedPolicy | None = ..., + combined_group_namespace_policy: Global___CombinedGroupNamespacePolicy | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "role_based_policy", b"role_based_policy"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "name", b"name", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "project", b"project", "role_based_policy", b"role_based_policy"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["policy_type", b"policy_type"]) -> typing_extensions.Literal["role_based_policy", "group_based_policy", "namespace_based_policy", "combined_group_namespace_policy"] | None: ... - -global___Policy = Policy - -class RoleBasedPolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROLES_FIELD_NUMBER: builtins.int - @property - def roles(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + _HasFieldArgType: _TypeAlias = _typing.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "role_based_policy", b"role_based_policy"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["combined_group_namespace_policy", b"combined_group_namespace_policy", "group_based_policy", b"group_based_policy", "name", b"name", "namespace_based_policy", b"namespace_based_policy", "policy_type", b"policy_type", "project", b"project", "role_based_policy", b"role_based_policy"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_policy_type: _TypeAlias = _typing.Literal["role_based_policy", "group_based_policy", "namespace_based_policy", "combined_group_namespace_policy"] # noqa: Y015 + _WhichOneofArgType_policy_type: _TypeAlias = _typing.Literal["policy_type", b"policy_type"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_policy_type) -> _WhichOneofReturnType_policy_type | None: ... + +Global___Policy: _TypeAlias = Policy # noqa: Y015 + +@_typing.final +class RoleBasedPolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ROLES_FIELD_NUMBER: _builtins.int + @_builtins.property + def roles(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of roles in this policy.""" + def __init__( self, *, - roles: collections.abc.Iterable[builtins.str] | None = ..., + roles: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["roles", b"roles"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["roles", b"roles"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___RoleBasedPolicy = RoleBasedPolicy +Global___RoleBasedPolicy: _TypeAlias = RoleBasedPolicy # noqa: Y015 -class GroupBasedPolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GroupBasedPolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - GROUPS_FIELD_NUMBER: builtins.int - @property - def groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + GROUPS_FIELD_NUMBER: _builtins.int + @_builtins.property + def groups(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of groups in this policy.""" + def __init__( self, *, - groups: collections.abc.Iterable[builtins.str] | None = ..., + groups: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["groups", b"groups"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GroupBasedPolicy = GroupBasedPolicy +Global___GroupBasedPolicy: _TypeAlias = GroupBasedPolicy # noqa: Y015 -class NamespaceBasedPolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class NamespaceBasedPolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAMESPACES_FIELD_NUMBER: builtins.int - @property - def namespaces(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + NAMESPACES_FIELD_NUMBER: _builtins.int + @_builtins.property + def namespaces(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of namespaces in this policy.""" + def __init__( self, *, - namespaces: collections.abc.Iterable[builtins.str] | None = ..., + namespaces: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["namespaces", b"namespaces"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["namespaces", b"namespaces"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___NamespaceBasedPolicy = NamespaceBasedPolicy +Global___NamespaceBasedPolicy: _TypeAlias = NamespaceBasedPolicy # noqa: Y015 -class CombinedGroupNamespacePolicy(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class CombinedGroupNamespacePolicy(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - GROUPS_FIELD_NUMBER: builtins.int - NAMESPACES_FIELD_NUMBER: builtins.int - @property - def groups(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + GROUPS_FIELD_NUMBER: _builtins.int + NAMESPACES_FIELD_NUMBER: _builtins.int + @_builtins.property + def groups(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of groups in this policy.""" - @property - def namespaces(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + + @_builtins.property + def namespaces(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of namespaces in this policy.""" + def __init__( self, *, - groups: collections.abc.Iterable[builtins.str] | None = ..., - namespaces: collections.abc.Iterable[builtins.str] | None = ..., + groups: _abc.Iterable[_builtins.str] | None = ..., + namespaces: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["groups", b"groups", "namespaces", b"namespaces"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["groups", b"groups", "namespaces", b"namespaces"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___CombinedGroupNamespacePolicy = CombinedGroupNamespacePolicy +Global___CombinedGroupNamespacePolicy: _TypeAlias = CombinedGroupNamespacePolicy # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Project_pb2.pyi b/sdk/python/feast/protos/feast/core/Project_pb2.pyi index e3cce2ec425..d3844463544 100644 --- a/sdk/python/feast/protos/feast/core/Project_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Project_pb2.pyi @@ -16,104 +16,121 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Project(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Project(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___ProjectSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___ProjectSpec: """User-specified specifications of this entity.""" - @property - def meta(self) -> global___ProjectMeta: + + @_builtins.property + def meta(self) -> Global___ProjectMeta: """System-populated metadata for this entity.""" + def __init__( self, *, - spec: global___ProjectSpec | None = ..., - meta: global___ProjectMeta | None = ..., + spec: Global___ProjectSpec | None = ..., + meta: Global___ProjectMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Project = Project +Global___Project: _TypeAlias = Project # noqa: Y015 -class ProjectSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ProjectSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - NAME_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the Project""" - description: builtins.str + description: _builtins.str """Description of the Project""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """User defined metadata""" - owner: builtins.str + owner: _builtins.str """Owner of the Project""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., + name: _builtins.str = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "owner", b"owner", "tags", b"tags"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "name", b"name", "owner", b"owner", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ProjectSpec = ProjectSpec +Global___ProjectSpec: _TypeAlias = ProjectSpec # noqa: Y015 -class ProjectMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ProjectMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when the Project is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when the Project is last updated with registry changes (Apply stage)""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ProjectMeta = ProjectMeta +Global___ProjectMeta: _TypeAlias = ProjectMeta # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Registry_pb2.pyi b/sdk/python/feast/protos/feast/core/Registry_pb2.pyi index 29bd76323e3..5aafdaf21fd 100644 --- a/sdk/python/feast/protos/feast/core/Registry_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Registry_pb2.pyi @@ -16,130 +16,144 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Entity_pb2 -import feast.core.FeatureService_pb2 -import feast.core.FeatureTable_pb2 -import feast.core.FeatureViewVersion_pb2 -import feast.core.FeatureView_pb2 -import feast.core.InfraObject_pb2 -import feast.core.OnDemandFeatureView_pb2 -import feast.core.Permission_pb2 -import feast.core.Project_pb2 -import feast.core.SavedDataset_pb2 -import feast.core.StreamFeatureView_pb2 -import feast.core.ValidationProfile_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Entity_pb2 as _Entity_pb2 +from feast.core import FeatureService_pb2 as _FeatureService_pb2 +from feast.core import FeatureTable_pb2 as _FeatureTable_pb2 +from feast.core import FeatureViewVersion_pb2 as _FeatureViewVersion_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import InfraObject_pb2 as _InfraObject_pb2 +from feast.core import OnDemandFeatureView_pb2 as _OnDemandFeatureView_pb2 +from feast.core import Permission_pb2 as _Permission_pb2 +from feast.core import Project_pb2 as _Project_pb2 +from feast.core import SavedDataset_pb2 as _SavedDataset_pb2 +from feast.core import StreamFeatureView_pb2 as _StreamFeatureView_pb2 +from feast.core import ValidationProfile_pb2 as _ValidationProfile_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Registry(google.protobuf.message.Message): +@_typing.final +class Registry(_message.Message): """Next id: 19""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - ENTITIES_FIELD_NUMBER: builtins.int - FEATURE_TABLES_FIELD_NUMBER: builtins.int - FEATURE_VIEWS_FIELD_NUMBER: builtins.int - DATA_SOURCES_FIELD_NUMBER: builtins.int - ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - FEATURE_SERVICES_FIELD_NUMBER: builtins.int - SAVED_DATASETS_FIELD_NUMBER: builtins.int - VALIDATION_REFERENCES_FIELD_NUMBER: builtins.int - INFRA_FIELD_NUMBER: builtins.int - PROJECT_METADATA_FIELD_NUMBER: builtins.int - REGISTRY_SCHEMA_VERSION_FIELD_NUMBER: builtins.int - VERSION_ID_FIELD_NUMBER: builtins.int - LAST_UPDATED_FIELD_NUMBER: builtins.int - PERMISSIONS_FIELD_NUMBER: builtins.int - PROJECTS_FIELD_NUMBER: builtins.int - FEATURE_VIEW_VERSION_HISTORY_FIELD_NUMBER: builtins.int - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Entity_pb2.Entity]: ... - @property - def feature_tables(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureTable_pb2.FeatureTable]: ... - @property - def feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureView_pb2.FeatureView]: ... - @property - def data_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.DataSource_pb2.DataSource]: ... - @property - def on_demand_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView]: ... - @property - def stream_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.StreamFeatureView_pb2.StreamFeatureView]: ... - @property - def feature_services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureService_pb2.FeatureService]: ... - @property - def saved_datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.SavedDataset_pb2.SavedDataset]: ... - @property - def validation_references(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.ValidationProfile_pb2.ValidationReference]: ... - @property - def infra(self) -> feast.core.InfraObject_pb2.Infra: ... - @property - def project_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProjectMetadata]: - """Tracking metadata of Feast by project""" - registry_schema_version: builtins.str + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURE_TABLES_FIELD_NUMBER: _builtins.int + FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + DATA_SOURCES_FIELD_NUMBER: _builtins.int + ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + FEATURE_SERVICES_FIELD_NUMBER: _builtins.int + SAVED_DATASETS_FIELD_NUMBER: _builtins.int + VALIDATION_REFERENCES_FIELD_NUMBER: _builtins.int + INFRA_FIELD_NUMBER: _builtins.int + PROJECT_METADATA_FIELD_NUMBER: _builtins.int + REGISTRY_SCHEMA_VERSION_FIELD_NUMBER: _builtins.int + VERSION_ID_FIELD_NUMBER: _builtins.int + LAST_UPDATED_FIELD_NUMBER: _builtins.int + PERMISSIONS_FIELD_NUMBER: _builtins.int + PROJECTS_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_VERSION_HISTORY_FIELD_NUMBER: _builtins.int + registry_schema_version: _builtins.str """to support migrations; incremented when schema is changed""" - version_id: builtins.str + version_id: _builtins.str """version id, random string generated on each update of the data; now used only for debugging purposes""" - @property - def last_updated(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Permission_pb2.Permission]: ... - @property - def projects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Project_pb2.Project]: ... - @property - def feature_view_version_history(self) -> feast.core.FeatureViewVersion_pb2.FeatureViewVersionHistory: ... + @_builtins.property + def entities(self) -> _containers.RepeatedCompositeFieldContainer[_Entity_pb2.Entity]: ... + @_builtins.property + def feature_tables(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureTable_pb2.FeatureTable]: ... + @_builtins.property + def feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureView_pb2.FeatureView]: ... + @_builtins.property + def data_sources(self) -> _containers.RepeatedCompositeFieldContainer[_DataSource_pb2.DataSource]: ... + @_builtins.property + def on_demand_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_OnDemandFeatureView_pb2.OnDemandFeatureView]: ... + @_builtins.property + def stream_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_StreamFeatureView_pb2.StreamFeatureView]: ... + @_builtins.property + def feature_services(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureService_pb2.FeatureService]: ... + @_builtins.property + def saved_datasets(self) -> _containers.RepeatedCompositeFieldContainer[_SavedDataset_pb2.SavedDataset]: ... + @_builtins.property + def validation_references(self) -> _containers.RepeatedCompositeFieldContainer[_ValidationProfile_pb2.ValidationReference]: ... + @_builtins.property + def infra(self) -> _InfraObject_pb2.Infra: ... + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def project_metadata(self) -> _containers.RepeatedCompositeFieldContainer[Global___ProjectMetadata]: + """Tracking metadata of Feast by project""" + + @_builtins.property + def last_updated(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def permissions(self) -> _containers.RepeatedCompositeFieldContainer[_Permission_pb2.Permission]: ... + @_builtins.property + def projects(self) -> _containers.RepeatedCompositeFieldContainer[_Project_pb2.Project]: ... + @_builtins.property + def feature_view_version_history(self) -> _FeatureViewVersion_pb2.FeatureViewVersionHistory: ... def __init__( self, *, - entities: collections.abc.Iterable[feast.core.Entity_pb2.Entity] | None = ..., - feature_tables: collections.abc.Iterable[feast.core.FeatureTable_pb2.FeatureTable] | None = ..., - feature_views: collections.abc.Iterable[feast.core.FeatureView_pb2.FeatureView] | None = ..., - data_sources: collections.abc.Iterable[feast.core.DataSource_pb2.DataSource] | None = ..., - on_demand_feature_views: collections.abc.Iterable[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., - stream_feature_views: collections.abc.Iterable[feast.core.StreamFeatureView_pb2.StreamFeatureView] | None = ..., - feature_services: collections.abc.Iterable[feast.core.FeatureService_pb2.FeatureService] | None = ..., - saved_datasets: collections.abc.Iterable[feast.core.SavedDataset_pb2.SavedDataset] | None = ..., - validation_references: collections.abc.Iterable[feast.core.ValidationProfile_pb2.ValidationReference] | None = ..., - infra: feast.core.InfraObject_pb2.Infra | None = ..., - project_metadata: collections.abc.Iterable[global___ProjectMetadata] | None = ..., - registry_schema_version: builtins.str = ..., - version_id: builtins.str = ..., - last_updated: google.protobuf.timestamp_pb2.Timestamp | None = ..., - permissions: collections.abc.Iterable[feast.core.Permission_pb2.Permission] | None = ..., - projects: collections.abc.Iterable[feast.core.Project_pb2.Project] | None = ..., - feature_view_version_history: feast.core.FeatureViewVersion_pb2.FeatureViewVersionHistory | None = ..., + entities: _abc.Iterable[_Entity_pb2.Entity] | None = ..., + feature_tables: _abc.Iterable[_FeatureTable_pb2.FeatureTable] | None = ..., + feature_views: _abc.Iterable[_FeatureView_pb2.FeatureView] | None = ..., + data_sources: _abc.Iterable[_DataSource_pb2.DataSource] | None = ..., + on_demand_feature_views: _abc.Iterable[_OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., + stream_feature_views: _abc.Iterable[_StreamFeatureView_pb2.StreamFeatureView] | None = ..., + feature_services: _abc.Iterable[_FeatureService_pb2.FeatureService] | None = ..., + saved_datasets: _abc.Iterable[_SavedDataset_pb2.SavedDataset] | None = ..., + validation_references: _abc.Iterable[_ValidationProfile_pb2.ValidationReference] | None = ..., + infra: _InfraObject_pb2.Infra | None = ..., + project_metadata: _abc.Iterable[Global___ProjectMetadata] | None = ..., + registry_schema_version: _builtins.str = ..., + version_id: _builtins.str = ..., + last_updated: _timestamp_pb2.Timestamp | None = ..., + permissions: _abc.Iterable[_Permission_pb2.Permission] | None = ..., + projects: _abc.Iterable[_Project_pb2.Project] | None = ..., + feature_view_version_history: _FeatureViewVersion_pb2.FeatureViewVersionHistory | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_view_version_history", b"feature_view_version_history", "infra", b"infra", "last_updated", b"last_updated"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data_sources", b"data_sources", "entities", b"entities", "feature_services", b"feature_services", "feature_tables", b"feature_tables", "feature_view_version_history", b"feature_view_version_history", "feature_views", b"feature_views", "infra", b"infra", "last_updated", b"last_updated", "on_demand_feature_views", b"on_demand_feature_views", "permissions", b"permissions", "project_metadata", b"project_metadata", "projects", b"projects", "registry_schema_version", b"registry_schema_version", "saved_datasets", b"saved_datasets", "stream_feature_views", b"stream_feature_views", "validation_references", b"validation_references", "version_id", b"version_id"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_view_version_history", b"feature_view_version_history", "infra", b"infra", "last_updated", b"last_updated"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_sources", b"data_sources", "entities", b"entities", "feature_services", b"feature_services", "feature_tables", b"feature_tables", "feature_view_version_history", b"feature_view_version_history", "feature_views", b"feature_views", "infra", b"infra", "last_updated", b"last_updated", "on_demand_feature_views", b"on_demand_feature_views", "permissions", b"permissions", "project_metadata", b"project_metadata", "projects", b"projects", "registry_schema_version", b"registry_schema_version", "saved_datasets", b"saved_datasets", "stream_feature_views", b"stream_feature_views", "validation_references", b"validation_references", "version_id", b"version_id"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Registry = Registry +Global___Registry: _TypeAlias = Registry # noqa: Y015 -class ProjectMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ProjectMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - PROJECT_UUID_FIELD_NUMBER: builtins.int - project: builtins.str - project_uuid: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + PROJECT_UUID_FIELD_NUMBER: _builtins.int + project: _builtins.str + project_uuid: _builtins.str def __init__( self, *, - project: builtins.str = ..., - project_uuid: builtins.str = ..., + project: _builtins.str = ..., + project_uuid: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["project", b"project", "project_uuid", b"project_uuid"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["project", b"project", "project_uuid", b"project_uuid"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ProjectMetadata = ProjectMetadata +Global___ProjectMetadata: _TypeAlias = ProjectMetadata # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi b/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi index 47525b64ede..e2c1fb27c4f 100644 --- a/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/SavedDataset_pb2.pyi @@ -16,177 +16,202 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class SavedDatasetSpec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SavedDatasetSpec(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - JOIN_KEYS_FIELD_NUMBER: builtins.int - FULL_FEATURE_NAMES_FIELD_NUMBER: builtins.int - STORAGE_FIELD_NUMBER: builtins.int - FEATURE_SERVICE_NAME_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + JOIN_KEYS_FIELD_NUMBER: _builtins.int + FULL_FEATURE_NAMES_FIELD_NUMBER: _builtins.int + STORAGE_FIELD_NUMBER: _builtins.int + FEATURE_SERVICE_NAME_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the dataset. Must be unique since it's possible to overwrite dataset by name""" - project: builtins.str + project: _builtins.str """Name of Feast project that this Dataset belongs to.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """list of feature references with format ":" """ - @property - def join_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """entity columns + request columns from all feature views used during retrieval""" - full_feature_names: builtins.bool + full_feature_names: _builtins.bool """Whether full feature names are used in stored data""" - @property - def storage(self) -> global___SavedDatasetStorage: ... - feature_service_name: builtins.str + feature_service_name: _builtins.str """Optional and only populated if generated from a feature service fetch""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def features(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + """list of feature references with format ":" """ + + @_builtins.property + def join_keys(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: + """entity columns + request columns from all feature views used during retrieval""" + + @_builtins.property + def storage(self) -> Global___SavedDatasetStorage: ... + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - features: collections.abc.Iterable[builtins.str] | None = ..., - join_keys: collections.abc.Iterable[builtins.str] | None = ..., - full_feature_names: builtins.bool = ..., - storage: global___SavedDatasetStorage | None = ..., - feature_service_name: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + features: _abc.Iterable[_builtins.str] | None = ..., + join_keys: _abc.Iterable[_builtins.str] | None = ..., + full_feature_names: _builtins.bool = ..., + storage: Global___SavedDatasetStorage | None = ..., + feature_service_name: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["storage", b"storage"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_service_name", b"feature_service_name", "features", b"features", "full_feature_names", b"full_feature_names", "join_keys", b"join_keys", "name", b"name", "project", b"project", "storage", b"storage", "tags", b"tags"]) -> None: ... - -global___SavedDatasetSpec = SavedDatasetSpec - -class SavedDatasetStorage(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FILE_STORAGE_FIELD_NUMBER: builtins.int - BIGQUERY_STORAGE_FIELD_NUMBER: builtins.int - REDSHIFT_STORAGE_FIELD_NUMBER: builtins.int - SNOWFLAKE_STORAGE_FIELD_NUMBER: builtins.int - TRINO_STORAGE_FIELD_NUMBER: builtins.int - SPARK_STORAGE_FIELD_NUMBER: builtins.int - CUSTOM_STORAGE_FIELD_NUMBER: builtins.int - ATHENA_STORAGE_FIELD_NUMBER: builtins.int - @property - def file_storage(self) -> feast.core.DataSource_pb2.DataSource.FileOptions: ... - @property - def bigquery_storage(self) -> feast.core.DataSource_pb2.DataSource.BigQueryOptions: ... - @property - def redshift_storage(self) -> feast.core.DataSource_pb2.DataSource.RedshiftOptions: ... - @property - def snowflake_storage(self) -> feast.core.DataSource_pb2.DataSource.SnowflakeOptions: ... - @property - def trino_storage(self) -> feast.core.DataSource_pb2.DataSource.TrinoOptions: ... - @property - def spark_storage(self) -> feast.core.DataSource_pb2.DataSource.SparkOptions: ... - @property - def custom_storage(self) -> feast.core.DataSource_pb2.DataSource.CustomSourceOptions: ... - @property - def athena_storage(self) -> feast.core.DataSource_pb2.DataSource.AthenaOptions: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["storage", b"storage"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_service_name", b"feature_service_name", "features", b"features", "full_feature_names", b"full_feature_names", "join_keys", b"join_keys", "name", b"name", "project", b"project", "storage", b"storage", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SavedDatasetSpec: _TypeAlias = SavedDatasetSpec # noqa: Y015 + +@_typing.final +class SavedDatasetStorage(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FILE_STORAGE_FIELD_NUMBER: _builtins.int + BIGQUERY_STORAGE_FIELD_NUMBER: _builtins.int + REDSHIFT_STORAGE_FIELD_NUMBER: _builtins.int + SNOWFLAKE_STORAGE_FIELD_NUMBER: _builtins.int + TRINO_STORAGE_FIELD_NUMBER: _builtins.int + SPARK_STORAGE_FIELD_NUMBER: _builtins.int + CUSTOM_STORAGE_FIELD_NUMBER: _builtins.int + ATHENA_STORAGE_FIELD_NUMBER: _builtins.int + @_builtins.property + def file_storage(self) -> _DataSource_pb2.DataSource.FileOptions: ... + @_builtins.property + def bigquery_storage(self) -> _DataSource_pb2.DataSource.BigQueryOptions: ... + @_builtins.property + def redshift_storage(self) -> _DataSource_pb2.DataSource.RedshiftOptions: ... + @_builtins.property + def snowflake_storage(self) -> _DataSource_pb2.DataSource.SnowflakeOptions: ... + @_builtins.property + def trino_storage(self) -> _DataSource_pb2.DataSource.TrinoOptions: ... + @_builtins.property + def spark_storage(self) -> _DataSource_pb2.DataSource.SparkOptions: ... + @_builtins.property + def custom_storage(self) -> _DataSource_pb2.DataSource.CustomSourceOptions: ... + @_builtins.property + def athena_storage(self) -> _DataSource_pb2.DataSource.AthenaOptions: ... def __init__( self, *, - file_storage: feast.core.DataSource_pb2.DataSource.FileOptions | None = ..., - bigquery_storage: feast.core.DataSource_pb2.DataSource.BigQueryOptions | None = ..., - redshift_storage: feast.core.DataSource_pb2.DataSource.RedshiftOptions | None = ..., - snowflake_storage: feast.core.DataSource_pb2.DataSource.SnowflakeOptions | None = ..., - trino_storage: feast.core.DataSource_pb2.DataSource.TrinoOptions | None = ..., - spark_storage: feast.core.DataSource_pb2.DataSource.SparkOptions | None = ..., - custom_storage: feast.core.DataSource_pb2.DataSource.CustomSourceOptions | None = ..., - athena_storage: feast.core.DataSource_pb2.DataSource.AthenaOptions | None = ..., + file_storage: _DataSource_pb2.DataSource.FileOptions | None = ..., + bigquery_storage: _DataSource_pb2.DataSource.BigQueryOptions | None = ..., + redshift_storage: _DataSource_pb2.DataSource.RedshiftOptions | None = ..., + snowflake_storage: _DataSource_pb2.DataSource.SnowflakeOptions | None = ..., + trino_storage: _DataSource_pb2.DataSource.TrinoOptions | None = ..., + spark_storage: _DataSource_pb2.DataSource.SparkOptions | None = ..., + custom_storage: _DataSource_pb2.DataSource.CustomSourceOptions | None = ..., + athena_storage: _DataSource_pb2.DataSource.AthenaOptions | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["kind", b"kind"]) -> typing_extensions.Literal["file_storage", "bigquery_storage", "redshift_storage", "snowflake_storage", "trino_storage", "spark_storage", "custom_storage", "athena_storage"] | None: ... - -global___SavedDatasetStorage = SavedDatasetStorage - -class SavedDatasetMeta(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - MIN_EVENT_TIMESTAMP_FIELD_NUMBER: builtins.int - MAX_EVENT_TIMESTAMP_FIELD_NUMBER: builtins.int - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + _HasFieldArgType: _TypeAlias = _typing.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["athena_storage", b"athena_storage", "bigquery_storage", b"bigquery_storage", "custom_storage", b"custom_storage", "file_storage", b"file_storage", "kind", b"kind", "redshift_storage", b"redshift_storage", "snowflake_storage", b"snowflake_storage", "spark_storage", b"spark_storage", "trino_storage", b"trino_storage"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: _TypeAlias = _typing.Literal["file_storage", "bigquery_storage", "redshift_storage", "snowflake_storage", "trino_storage", "spark_storage", "custom_storage", "athena_storage"] # noqa: Y015 + _WhichOneofArgType_kind: _TypeAlias = _typing.Literal["kind", b"kind"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___SavedDatasetStorage: _TypeAlias = SavedDatasetStorage # noqa: Y015 + +@_typing.final +class SavedDatasetMeta(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + MIN_EVENT_TIMESTAMP_FIELD_NUMBER: _builtins.int + MAX_EVENT_TIMESTAMP_FIELD_NUMBER: _builtins.int + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when this saved dataset is created""" - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: """Time when this saved dataset is last updated""" - @property - def min_event_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def min_event_timestamp(self) -> _timestamp_pb2.Timestamp: """Min timestamp in the dataset (needed for retrieval)""" - @property - def max_event_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + + @_builtins.property + def max_event_timestamp(self) -> _timestamp_pb2.Timestamp: """Max timestamp in the dataset (needed for retrieval)""" + def __init__( self, *, - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - min_event_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - max_event_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + min_event_timestamp: _timestamp_pb2.Timestamp | None = ..., + max_event_timestamp: _timestamp_pb2.Timestamp | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"]) -> None: ... - -global___SavedDatasetMeta = SavedDatasetMeta - -class SavedDataset(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___SavedDatasetSpec: ... - @property - def meta(self) -> global___SavedDatasetMeta: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp", "max_event_timestamp", b"max_event_timestamp", "min_event_timestamp", b"min_event_timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___SavedDatasetMeta: _TypeAlias = SavedDatasetMeta # noqa: Y015 + +@_typing.final +class SavedDataset(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___SavedDatasetSpec: ... + @_builtins.property + def meta(self) -> Global___SavedDatasetMeta: ... def __init__( self, *, - spec: global___SavedDatasetSpec | None = ..., - meta: global___SavedDatasetMeta | None = ..., + spec: Global___SavedDatasetSpec | None = ..., + meta: Global___SavedDatasetMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SavedDataset = SavedDataset +Global___SavedDataset: _TypeAlias = SavedDataset # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi b/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi index 10ecebf362b..43d97f7d188 100644 --- a/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/SqliteTable_pb2.pyi @@ -16,35 +16,39 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class SqliteTable(google.protobuf.message.Message): +@_typing.final +class SqliteTable(_message.Message): """Represents a Sqlite table""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PATH_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - path: builtins.str + PATH_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + path: _builtins.str """Absolute path of the table""" - name: builtins.str + name: _builtins.str """Name of the table""" def __init__( self, *, - path: builtins.str = ..., - name: builtins.str = ..., + path: _builtins.str = ..., + name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "path", b"path"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "path", b"path"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SqliteTable = SqliteTable +Global___SqliteTable: _TypeAlias = SqliteTable # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Store_pb2.pyi b/sdk/python/feast/protos/feast/core/Store_pb2.pyi index 5ee957d184f..718654b267c 100644 --- a/sdk/python/feast/protos/feast/core/Store_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Store_pb2.pyi @@ -16,37 +16,39 @@ isort:skip_file * See the License for the specific language governing permissions and * limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Store(google.protobuf.message.Message): +@_typing.final +class Store(_message.Message): """Store provides a location where Feast reads and writes feature values. Feature values will be written to the Store in the form of FeatureRow elements. The way FeatureRow is encoded and decoded when it is written to and read from the Store depends on the type of the Store. """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor class _StoreType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _StoreTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Store._StoreType.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _StoreTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Store._StoreType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor INVALID: Store._StoreType.ValueType # 0 REDIS: Store._StoreType.ValueType # 1 """Redis stores a FeatureRow element as a key, value pair. @@ -76,48 +78,51 @@ class Store(google.protobuf.message.Message): """ REDIS_CLUSTER: Store.StoreType.ValueType # 4 - class RedisConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HOST_FIELD_NUMBER: builtins.int - PORT_FIELD_NUMBER: builtins.int - INITIAL_BACKOFF_MS_FIELD_NUMBER: builtins.int - MAX_RETRIES_FIELD_NUMBER: builtins.int - FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: builtins.int - SSL_FIELD_NUMBER: builtins.int - host: builtins.str - port: builtins.int - initial_backoff_ms: builtins.int + @_typing.final + class RedisConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + HOST_FIELD_NUMBER: _builtins.int + PORT_FIELD_NUMBER: _builtins.int + INITIAL_BACKOFF_MS_FIELD_NUMBER: _builtins.int + MAX_RETRIES_FIELD_NUMBER: _builtins.int + FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: _builtins.int + SSL_FIELD_NUMBER: _builtins.int + host: _builtins.str + port: _builtins.int + initial_backoff_ms: _builtins.int """Optional. The number of milliseconds to wait before retrying failed Redis connection. By default, Feast uses exponential backoff policy and "initial_backoff_ms" sets the initial wait duration. """ - max_retries: builtins.int + max_retries: _builtins.int """Optional. Maximum total number of retries for connecting to Redis. Default to zero retries.""" - flush_frequency_seconds: builtins.int + flush_frequency_seconds: _builtins.int """Optional. How often flush data to redis""" - ssl: builtins.bool + ssl: _builtins.bool """Optional. Connect over SSL.""" def __init__( self, *, - host: builtins.str = ..., - port: builtins.int = ..., - initial_backoff_ms: builtins.int = ..., - max_retries: builtins.int = ..., - flush_frequency_seconds: builtins.int = ..., - ssl: builtins.bool = ..., + host: _builtins.str = ..., + port: _builtins.int = ..., + initial_backoff_ms: _builtins.int = ..., + max_retries: _builtins.int = ..., + flush_frequency_seconds: _builtins.int = ..., + ssl: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["flush_frequency_seconds", b"flush_frequency_seconds", "host", b"host", "initial_backoff_ms", b"initial_backoff_ms", "max_retries", b"max_retries", "port", b"port", "ssl", b"ssl"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["flush_frequency_seconds", b"flush_frequency_seconds", "host", b"host", "initial_backoff_ms", b"initial_backoff_ms", "max_retries", b"max_retries", "port", b"port", "ssl", b"ssl"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class RedisClusterConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class RedisClusterConfig(_message.Message): + DESCRIPTOR: _descriptor.Descriptor class _ReadFrom: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _ReadFromEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Store.RedisClusterConfig._ReadFrom.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _ReadFromEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Store.RedisClusterConfig._ReadFrom.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor MASTER: Store.RedisClusterConfig._ReadFrom.ValueType # 0 MASTER_PREFERRED: Store.RedisClusterConfig._ReadFrom.ValueType # 1 REPLICA: Store.RedisClusterConfig._ReadFrom.ValueType # 2 @@ -131,50 +136,52 @@ class Store(google.protobuf.message.Message): REPLICA: Store.RedisClusterConfig.ReadFrom.ValueType # 2 REPLICA_PREFERRED: Store.RedisClusterConfig.ReadFrom.ValueType # 3 - CONNECTION_STRING_FIELD_NUMBER: builtins.int - INITIAL_BACKOFF_MS_FIELD_NUMBER: builtins.int - MAX_RETRIES_FIELD_NUMBER: builtins.int - FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: builtins.int - KEY_PREFIX_FIELD_NUMBER: builtins.int - ENABLE_FALLBACK_FIELD_NUMBER: builtins.int - FALLBACK_PREFIX_FIELD_NUMBER: builtins.int - READ_FROM_FIELD_NUMBER: builtins.int - connection_string: builtins.str + CONNECTION_STRING_FIELD_NUMBER: _builtins.int + INITIAL_BACKOFF_MS_FIELD_NUMBER: _builtins.int + MAX_RETRIES_FIELD_NUMBER: _builtins.int + FLUSH_FREQUENCY_SECONDS_FIELD_NUMBER: _builtins.int + KEY_PREFIX_FIELD_NUMBER: _builtins.int + ENABLE_FALLBACK_FIELD_NUMBER: _builtins.int + FALLBACK_PREFIX_FIELD_NUMBER: _builtins.int + READ_FROM_FIELD_NUMBER: _builtins.int + connection_string: _builtins.str """List of Redis Uri for all the nodes in Redis Cluster, comma separated. Eg. host1:6379, host2:6379""" - initial_backoff_ms: builtins.int - max_retries: builtins.int - flush_frequency_seconds: builtins.int + initial_backoff_ms: _builtins.int + max_retries: _builtins.int + flush_frequency_seconds: _builtins.int """Optional. How often flush data to redis""" - key_prefix: builtins.str + key_prefix: _builtins.str """Optional. Append a prefix to the Redis Key""" - enable_fallback: builtins.bool + enable_fallback: _builtins.bool """Optional. Enable fallback to another key prefix if the original key is not present. Useful for migrating key prefix without re-ingestion. Disabled by default. """ - fallback_prefix: builtins.str + fallback_prefix: _builtins.str """Optional. This would be the fallback prefix to use if enable_fallback is true.""" - read_from: global___Store.RedisClusterConfig.ReadFrom.ValueType + read_from: Global___Store.RedisClusterConfig.ReadFrom.ValueType def __init__( self, *, - connection_string: builtins.str = ..., - initial_backoff_ms: builtins.int = ..., - max_retries: builtins.int = ..., - flush_frequency_seconds: builtins.int = ..., - key_prefix: builtins.str = ..., - enable_fallback: builtins.bool = ..., - fallback_prefix: builtins.str = ..., - read_from: global___Store.RedisClusterConfig.ReadFrom.ValueType = ..., + connection_string: _builtins.str = ..., + initial_backoff_ms: _builtins.int = ..., + max_retries: _builtins.int = ..., + flush_frequency_seconds: _builtins.int = ..., + key_prefix: _builtins.str = ..., + enable_fallback: _builtins.bool = ..., + fallback_prefix: _builtins.str = ..., + read_from: Global___Store.RedisClusterConfig.ReadFrom.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["connection_string", b"connection_string", "enable_fallback", b"enable_fallback", "fallback_prefix", b"fallback_prefix", "flush_frequency_seconds", b"flush_frequency_seconds", "initial_backoff_ms", b"initial_backoff_ms", "key_prefix", b"key_prefix", "max_retries", b"max_retries", "read_from", b"read_from"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["connection_string", b"connection_string", "enable_fallback", b"enable_fallback", "fallback_prefix", b"fallback_prefix", "flush_frequency_seconds", b"flush_frequency_seconds", "initial_backoff_ms", b"initial_backoff_ms", "key_prefix", b"key_prefix", "max_retries", b"max_retries", "read_from", b"read_from"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - class Subscription(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class Subscription(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - EXCLUDE_FIELD_NUMBER: builtins.int - project: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + EXCLUDE_FIELD_NUMBER: _builtins.int + project: _builtins.str """Name of project that the feature sets belongs to. This can be one of - [project_name] - * @@ -182,7 +189,7 @@ class Store(google.protobuf.message.Message): be matched. It is NOT possible to provide an asterisk with a string in order to do pattern matching. """ - name: builtins.str + name: _builtins.str """Name of the desired feature set. Asterisks can be used as wildcards in the name. Matching on names is only permitted if a specific project is defined. It is disallowed If the project name is set to "*" @@ -191,44 +198,50 @@ class Store(google.protobuf.message.Message): - my-feature-set* can be used to match all features prefixed by "my-feature-set" - my-feature-set-6 can be used to select a single feature set """ - exclude: builtins.bool + exclude: _builtins.bool """All matches with exclude enabled will be filtered out instead of added""" def __init__( self, *, - project: builtins.str = ..., - name: builtins.str = ..., - exclude: builtins.bool = ..., + project: _builtins.str = ..., + name: _builtins.str = ..., + exclude: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["exclude", b"exclude", "name", b"name", "project", b"project"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - SUBSCRIPTIONS_FIELD_NUMBER: builtins.int - REDIS_CONFIG_FIELD_NUMBER: builtins.int - REDIS_CLUSTER_CONFIG_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["exclude", b"exclude", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + SUBSCRIPTIONS_FIELD_NUMBER: _builtins.int + REDIS_CONFIG_FIELD_NUMBER: _builtins.int + REDIS_CLUSTER_CONFIG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the store.""" - type: global___Store.StoreType.ValueType + type: Global___Store.StoreType.ValueType """Type of store.""" - @property - def subscriptions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Store.Subscription]: + @_builtins.property + def subscriptions(self) -> _containers.RepeatedCompositeFieldContainer[Global___Store.Subscription]: """Feature sets to subscribe to.""" - @property - def redis_config(self) -> global___Store.RedisConfig: ... - @property - def redis_cluster_config(self) -> global___Store.RedisClusterConfig: ... + + @_builtins.property + def redis_config(self) -> Global___Store.RedisConfig: ... + @_builtins.property + def redis_cluster_config(self) -> Global___Store.RedisClusterConfig: ... def __init__( self, *, - name: builtins.str = ..., - type: global___Store.StoreType.ValueType = ..., - subscriptions: collections.abc.Iterable[global___Store.Subscription] | None = ..., - redis_config: global___Store.RedisConfig | None = ..., - redis_cluster_config: global___Store.RedisClusterConfig | None = ..., + name: _builtins.str = ..., + type: Global___Store.StoreType.ValueType = ..., + subscriptions: _abc.Iterable[Global___Store.Subscription] | None = ..., + redis_config: Global___Store.RedisConfig | None = ..., + redis_cluster_config: Global___Store.RedisClusterConfig | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["config", b"config", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["config", b"config", "name", b"name", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config", "subscriptions", b"subscriptions", "type", b"type"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["config", b"config"]) -> typing_extensions.Literal["redis_config", "redis_cluster_config"] | None: ... - -global___Store = Store + _HasFieldArgType: _TypeAlias = _typing.Literal["config", b"config", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["config", b"config", "name", b"name", "redis_cluster_config", b"redis_cluster_config", "redis_config", b"redis_config", "subscriptions", b"subscriptions", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_config: _TypeAlias = _typing.Literal["redis_config", "redis_cluster_config"] # noqa: Y015 + _WhichOneofArgType_config: _TypeAlias = _typing.Literal["config", b"config"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_config) -> _WhichOneofReturnType_config | None: ... + +Global___Store: _TypeAlias = Store # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi index 26ff6a42534..3fafb889540 100644 --- a/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/StreamFeatureView_pb2.pyi @@ -16,178 +16,206 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.core.Aggregation_pb2 -import feast.core.DataSource_pb2 -import feast.core.FeatureView_pb2 -import feast.core.Feature_pb2 -import feast.core.OnDemandFeatureView_pb2 -import feast.core.Transformation_pb2 -import google.protobuf.descriptor -import google.protobuf.duration_pb2 -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.core import Aggregation_pb2 as _Aggregation_pb2 +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import Feature_pb2 as _Feature_pb2 +from feast.core import OnDemandFeatureView_pb2 as _OnDemandFeatureView_pb2 +from feast.core import Transformation_pb2 as _Transformation_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing + +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias +else: + from typing_extensions import TypeAlias as _TypeAlias -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 13): + from warnings import deprecated as _deprecated else: - import typing_extensions + from typing_extensions import deprecated as _deprecated -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class StreamFeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StreamFeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SPEC_FIELD_NUMBER: builtins.int - META_FIELD_NUMBER: builtins.int - @property - def spec(self) -> global___StreamFeatureViewSpec: + SPEC_FIELD_NUMBER: _builtins.int + META_FIELD_NUMBER: _builtins.int + @_builtins.property + def spec(self) -> Global___StreamFeatureViewSpec: """User-specified specifications of this feature view.""" - @property - def meta(self) -> feast.core.FeatureView_pb2.FeatureViewMeta: ... + + @_builtins.property + def meta(self) -> _FeatureView_pb2.FeatureViewMeta: ... def __init__( self, *, - spec: global___StreamFeatureViewSpec | None = ..., - meta: feast.core.FeatureView_pb2.FeatureViewMeta | None = ..., + spec: Global___StreamFeatureViewSpec | None = ..., + meta: _FeatureView_pb2.FeatureViewMeta | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "spec", b"spec"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["meta", b"meta", "spec", b"spec"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StreamFeatureView = StreamFeatureView +Global___StreamFeatureView: _TypeAlias = StreamFeatureView # noqa: Y015 -class StreamFeatureViewSpec(google.protobuf.message.Message): +@_typing.final +class StreamFeatureViewSpec(_message.Message): """Next available id: 23""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - ENTITY_COLUMNS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - TTL_FIELD_NUMBER: builtins.int - BATCH_SOURCE_FIELD_NUMBER: builtins.int - STREAM_SOURCE_FIELD_NUMBER: builtins.int - ONLINE_FIELD_NUMBER: builtins.int - USER_DEFINED_FUNCTION_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - AGGREGATIONS_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_FIELD_NUMBER: builtins.int - FEATURE_TRANSFORMATION_FIELD_NUMBER: builtins.int - ENABLE_TILING_FIELD_NUMBER: builtins.int - TILING_HOP_SIZE_FIELD_NUMBER: builtins.int - ENABLE_VALIDATION_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - ORG_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + ENTITY_COLUMNS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + TTL_FIELD_NUMBER: _builtins.int + BATCH_SOURCE_FIELD_NUMBER: _builtins.int + STREAM_SOURCE_FIELD_NUMBER: _builtins.int + ONLINE_FIELD_NUMBER: _builtins.int + USER_DEFINED_FUNCTION_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + AGGREGATIONS_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_FIELD_NUMBER: _builtins.int + FEATURE_TRANSFORMATION_FIELD_NUMBER: _builtins.int + ENABLE_TILING_FIELD_NUMBER: _builtins.int + TILING_HOP_SIZE_FIELD_NUMBER: _builtins.int + ENABLE_VALIDATION_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + ORG_FIELD_NUMBER: _builtins.int + name: _builtins.str """Name of the feature view. Must be unique. Not updated.""" - project: builtins.str + project: _builtins.str """Name of Feast project that this feature view belongs to.""" - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + description: _builtins.str + """Description of the feature view.""" + owner: _builtins.str + """Owner of the feature view.""" + online: _builtins.bool + """Whether these features should be served online or not""" + mode: _builtins.str + """Mode of execution""" + timestamp_field: _builtins.str + """Timestamp field for aggregation""" + enable_tiling: _builtins.bool + """Enable tiling for efficient window aggregation""" + enable_validation: _builtins.bool + """Whether schema validation is enabled during materialization""" + version: _builtins.str + """User-specified version pin (e.g. "latest", "v2", "version2")""" + org: _builtins.str + """Organizational unit that owns this stream feature view (e.g. "ads", "search").""" + @_builtins.property + def entities(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: """List of names of entities associated with this feature view.""" - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each feature defined as part of this feature view.""" - @property - def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]: + + @_builtins.property + def entity_columns(self) -> _containers.RepeatedCompositeFieldContainer[_Feature_pb2.FeatureSpecV2]: """List of specifications for each entity defined as part of this feature view.""" - description: builtins.str - """Description of the feature view.""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - owner: builtins.str - """Owner of the feature view.""" - @property - def ttl(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def ttl(self) -> _duration_pb2.Duration: """Features in this feature view can only be retrieved from online serving younger than ttl. Ttl is measured as the duration of time between the feature's event timestamp and when the feature is retrieved Feature values outside ttl will be returned as unset values and indicated to end user """ - @property - def batch_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def batch_source(self) -> _DataSource_pb2.DataSource: """Batch/Offline DataSource where this view can retrieve offline feature data.""" - @property - def stream_source(self) -> feast.core.DataSource_pb2.DataSource: + + @_builtins.property + def stream_source(self) -> _DataSource_pb2.DataSource: """Streaming DataSource from where this view can consume "online" feature data.""" - online: builtins.bool - """Whether these features should be served online or not""" - @property - def user_defined_function(self) -> feast.core.OnDemandFeatureView_pb2.UserDefinedFunction: + + @_builtins.property + @_deprecated("""This field has been marked as deprecated using proto field options.""") + def user_defined_function(self) -> _OnDemandFeatureView_pb2.UserDefinedFunction: """Serialized function that is encoded in the streamfeatureview""" - mode: builtins.str - """Mode of execution""" - @property - def aggregations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Aggregation_pb2.Aggregation]: + + @_builtins.property + def aggregations(self) -> _containers.RepeatedCompositeFieldContainer[_Aggregation_pb2.Aggregation]: """Aggregation definitions""" - timestamp_field: builtins.str - """Timestamp field for aggregation""" - @property - def feature_transformation(self) -> feast.core.Transformation_pb2.FeatureTransformationV2: + + @_builtins.property + def feature_transformation(self) -> _Transformation_pb2.FeatureTransformationV2: """Oneof with {user_defined_function, on_demand_substrait_transformation}""" - enable_tiling: builtins.bool - """Enable tiling for efficient window aggregation""" - @property - def tiling_hop_size(self) -> google.protobuf.duration_pb2.Duration: + + @_builtins.property + def tiling_hop_size(self) -> _duration_pb2.Duration: """Hop size for tiling (e.g., 5 minutes). Determines the granularity of pre-aggregated tiles. If not specified, defaults to 5 minutes. Only used when enable_tiling is true. """ - enable_validation: builtins.bool - """Whether schema validation is enabled during materialization""" - version: builtins.str - """User-specified version pin (e.g. "latest", "v2", "version2")""" - org: builtins.str - """Organizational unit that owns this stream feature view (e.g. "ads", "search").""" + def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - entities: collections.abc.Iterable[builtins.str] | None = ..., - features: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - owner: builtins.str = ..., - ttl: google.protobuf.duration_pb2.Duration | None = ..., - batch_source: feast.core.DataSource_pb2.DataSource | None = ..., - stream_source: feast.core.DataSource_pb2.DataSource | None = ..., - online: builtins.bool = ..., - user_defined_function: feast.core.OnDemandFeatureView_pb2.UserDefinedFunction | None = ..., - mode: builtins.str = ..., - aggregations: collections.abc.Iterable[feast.core.Aggregation_pb2.Aggregation] | None = ..., - timestamp_field: builtins.str = ..., - feature_transformation: feast.core.Transformation_pb2.FeatureTransformationV2 | None = ..., - enable_tiling: builtins.bool = ..., - tiling_hop_size: google.protobuf.duration_pb2.Duration | None = ..., - enable_validation: builtins.bool = ..., - version: builtins.str = ..., - org: builtins.str = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + entities: _abc.Iterable[_builtins.str] | None = ..., + features: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + entity_columns: _abc.Iterable[_Feature_pb2.FeatureSpecV2] | None = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + owner: _builtins.str = ..., + ttl: _duration_pb2.Duration | None = ..., + batch_source: _DataSource_pb2.DataSource | None = ..., + stream_source: _DataSource_pb2.DataSource | None = ..., + online: _builtins.bool = ..., + user_defined_function: _OnDemandFeatureView_pb2.UserDefinedFunction | None = ..., + mode: _builtins.str = ..., + aggregations: _abc.Iterable[_Aggregation_pb2.Aggregation] | None = ..., + timestamp_field: _builtins.str = ..., + feature_transformation: _Transformation_pb2.FeatureTransformationV2 | None = ..., + enable_tiling: _builtins.bool = ..., + tiling_hop_size: _duration_pb2.Duration | None = ..., + enable_validation: _builtins.bool = ..., + version: _builtins.str = ..., + org: _builtins.str = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "tiling_hop_size", b"tiling_hop_size", "ttl", b"ttl", "user_defined_function", b"user_defined_function"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aggregations", b"aggregations", "batch_source", b"batch_source", "description", b"description", "enable_tiling", b"enable_tiling", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "online", b"online", "org", b"org", "owner", b"owner", "project", b"project", "stream_source", b"stream_source", "tags", b"tags", "tiling_hop_size", b"tiling_hop_size", "timestamp_field", b"timestamp_field", "ttl", b"ttl", "user_defined_function", b"user_defined_function", "version", b"version"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["batch_source", b"batch_source", "feature_transformation", b"feature_transformation", "stream_source", b"stream_source", "tiling_hop_size", b"tiling_hop_size", "ttl", b"ttl", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["aggregations", b"aggregations", "batch_source", b"batch_source", "description", b"description", "enable_tiling", b"enable_tiling", "enable_validation", b"enable_validation", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "online", b"online", "org", b"org", "owner", b"owner", "project", b"project", "stream_source", b"stream_source", "tags", b"tags", "tiling_hop_size", b"tiling_hop_size", "timestamp_field", b"timestamp_field", "ttl", b"ttl", "user_defined_function", b"user_defined_function", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StreamFeatureViewSpec = StreamFeatureViewSpec +Global___StreamFeatureViewSpec: _TypeAlias = StreamFeatureViewSpec # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi b/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi index fb56ab5bc73..d8aacf9f812 100644 --- a/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/Transformation_pb2.pyi @@ -2,83 +2,94 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import google.protobuf.descriptor -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class UserDefinedFunctionV2(google.protobuf.message.Message): +@_typing.final +class UserDefinedFunctionV2(_message.Message): """Serialized representation of python function.""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - BODY_FIELD_NUMBER: builtins.int - BODY_TEXT_FIELD_NUMBER: builtins.int - MODE_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + BODY_FIELD_NUMBER: _builtins.int + BODY_TEXT_FIELD_NUMBER: _builtins.int + MODE_FIELD_NUMBER: _builtins.int + name: _builtins.str """The function name""" - body: builtins.bytes + body: _builtins.bytes """The python-syntax function body (serialized by dill)""" - body_text: builtins.str + body_text: _builtins.str """The string representation of the udf""" - mode: builtins.str + mode: _builtins.str """The transformation mode (e.g., "python", "pandas", "ray", "spark", "sql")""" def __init__( self, *, - name: builtins.str = ..., - body: builtins.bytes = ..., - body_text: builtins.str = ..., - mode: builtins.str = ..., + name: _builtins.str = ..., + body: _builtins.bytes = ..., + body_text: _builtins.str = ..., + mode: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["body", b"body", "body_text", b"body_text", "mode", b"mode", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body", "body_text", b"body_text", "mode", b"mode", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___UserDefinedFunctionV2 = UserDefinedFunctionV2 +Global___UserDefinedFunctionV2: _TypeAlias = UserDefinedFunctionV2 # noqa: Y015 -class FeatureTransformationV2(google.protobuf.message.Message): +@_typing.final +class FeatureTransformationV2(_message.Message): """A feature transformation executed as a user-defined function""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - USER_DEFINED_FUNCTION_FIELD_NUMBER: builtins.int - SUBSTRAIT_TRANSFORMATION_FIELD_NUMBER: builtins.int - @property - def user_defined_function(self) -> global___UserDefinedFunctionV2: ... - @property - def substrait_transformation(self) -> global___SubstraitTransformationV2: ... + USER_DEFINED_FUNCTION_FIELD_NUMBER: _builtins.int + SUBSTRAIT_TRANSFORMATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def user_defined_function(self) -> Global___UserDefinedFunctionV2: ... + @_builtins.property + def substrait_transformation(self) -> Global___SubstraitTransformationV2: ... def __init__( self, *, - user_defined_function: global___UserDefinedFunctionV2 | None = ..., - substrait_transformation: global___SubstraitTransformationV2 | None = ..., + user_defined_function: Global___UserDefinedFunctionV2 | None = ..., + substrait_transformation: Global___SubstraitTransformationV2 | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["transformation", b"transformation"]) -> typing_extensions.Literal["user_defined_function", "substrait_transformation"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["substrait_transformation", b"substrait_transformation", "transformation", b"transformation", "user_defined_function", b"user_defined_function"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_transformation: _TypeAlias = _typing.Literal["user_defined_function", "substrait_transformation"] # noqa: Y015 + _WhichOneofArgType_transformation: _TypeAlias = _typing.Literal["transformation", b"transformation"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_transformation) -> _WhichOneofReturnType_transformation | None: ... -global___FeatureTransformationV2 = FeatureTransformationV2 +Global___FeatureTransformationV2: _TypeAlias = FeatureTransformationV2 # noqa: Y015 -class SubstraitTransformationV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SubstraitTransformationV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SUBSTRAIT_PLAN_FIELD_NUMBER: builtins.int - IBIS_FUNCTION_FIELD_NUMBER: builtins.int - substrait_plan: builtins.bytes - ibis_function: builtins.bytes + SUBSTRAIT_PLAN_FIELD_NUMBER: _builtins.int + IBIS_FUNCTION_FIELD_NUMBER: _builtins.int + substrait_plan: _builtins.bytes + ibis_function: _builtins.bytes def __init__( self, *, - substrait_plan: builtins.bytes = ..., - ibis_function: builtins.bytes = ..., + substrait_plan: _builtins.bytes = ..., + ibis_function: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ibis_function", b"ibis_function", "substrait_plan", b"substrait_plan"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["ibis_function", b"ibis_function", "substrait_plan", b"substrait_plan"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SubstraitTransformationV2 = SubstraitTransformationV2 +Global___SubstraitTransformationV2: _TypeAlias = SubstraitTransformationV2 # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi b/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi index 93da1e0f5e8..16cc081f054 100644 --- a/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi +++ b/sdk/python/feast/protos/feast/core/ValidationProfile_pb2.pyi @@ -16,121 +16,139 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys -import typing +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class GEValidationProfiler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GEValidationProfiler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class UserDefinedProfiler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class UserDefinedProfiler(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - BODY_FIELD_NUMBER: builtins.int - body: builtins.bytes + BODY_FIELD_NUMBER: _builtins.int + body: _builtins.bytes """The python-syntax function body (serialized by dill)""" def __init__( self, *, - body: builtins.bytes = ..., + body: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["body", b"body"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROFILER_FIELD_NUMBER: builtins.int - @property - def profiler(self) -> global___GEValidationProfiler.UserDefinedProfiler: ... + PROFILER_FIELD_NUMBER: _builtins.int + @_builtins.property + def profiler(self) -> Global___GEValidationProfiler.UserDefinedProfiler: ... def __init__( self, *, - profiler: global___GEValidationProfiler.UserDefinedProfiler | None = ..., + profiler: Global___GEValidationProfiler.UserDefinedProfiler | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["profiler", b"profiler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["profiler", b"profiler"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["profiler", b"profiler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["profiler", b"profiler"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GEValidationProfiler = GEValidationProfiler +Global___GEValidationProfiler: _TypeAlias = GEValidationProfiler # noqa: Y015 -class GEValidationProfile(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GEValidationProfile(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - EXPECTATION_SUITE_FIELD_NUMBER: builtins.int - expectation_suite: builtins.bytes + EXPECTATION_SUITE_FIELD_NUMBER: _builtins.int + expectation_suite: _builtins.bytes """JSON-serialized ExpectationSuite object""" def __init__( self, *, - expectation_suite: builtins.bytes = ..., + expectation_suite: _builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["expectation_suite", b"expectation_suite"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["expectation_suite", b"expectation_suite"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GEValidationProfile = GEValidationProfile +Global___GEValidationProfile: _TypeAlias = GEValidationProfile # noqa: Y015 -class ValidationReference(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ValidationReference(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - REFERENCE_DATASET_NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - GE_PROFILER_FIELD_NUMBER: builtins.int - GE_PROFILE_FIELD_NUMBER: builtins.int - name: builtins.str + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + REFERENCE_DATASET_NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + GE_PROFILER_FIELD_NUMBER: _builtins.int + GE_PROFILE_FIELD_NUMBER: _builtins.int + name: _builtins.str """Unique name of validation reference within the project""" - reference_dataset_name: builtins.str + reference_dataset_name: _builtins.str """Name of saved dataset used as reference dataset""" - project: builtins.str + project: _builtins.str """Name of Feast project that this object source belongs to""" - description: builtins.str + description: _builtins.str """Description of the validation reference""" - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: """User defined metadata""" - @property - def ge_profiler(self) -> global___GEValidationProfiler: ... - @property - def ge_profile(self) -> global___GEValidationProfile: ... + + @_builtins.property + def ge_profiler(self) -> Global___GEValidationProfiler: ... + @_builtins.property + def ge_profile(self) -> Global___GEValidationProfile: ... def __init__( self, *, - name: builtins.str = ..., - reference_dataset_name: builtins.str = ..., - project: builtins.str = ..., - description: builtins.str = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ge_profiler: global___GEValidationProfiler | None = ..., - ge_profile: global___GEValidationProfile | None = ..., + name: _builtins.str = ..., + reference_dataset_name: _builtins.str = ..., + project: _builtins.str = ..., + description: _builtins.str = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ge_profiler: Global___GEValidationProfiler | None = ..., + ge_profile: Global___GEValidationProfile | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cached_profile", b"cached_profile", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "profiler", b"profiler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cached_profile", b"cached_profile", "description", b"description", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "name", b"name", "profiler", b"profiler", "project", b"project", "reference_dataset_name", b"reference_dataset_name", "tags", b"tags"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["cached_profile", b"cached_profile"]) -> typing_extensions.Literal["ge_profile"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["profiler", b"profiler"]) -> typing_extensions.Literal["ge_profiler"] | None: ... - -global___ValidationReference = ValidationReference + _HasFieldArgType: _TypeAlias = _typing.Literal["cached_profile", b"cached_profile", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "profiler", b"profiler"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["cached_profile", b"cached_profile", "description", b"description", "ge_profile", b"ge_profile", "ge_profiler", b"ge_profiler", "name", b"name", "profiler", b"profiler", "project", b"project", "reference_dataset_name", b"reference_dataset_name", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_cached_profile: _TypeAlias = _typing.Literal["ge_profile"] # noqa: Y015 + _WhichOneofArgType_cached_profile: _TypeAlias = _typing.Literal["cached_profile", b"cached_profile"] # noqa: Y015 + _WhichOneofReturnType_profiler: _TypeAlias = _typing.Literal["ge_profiler"] # noqa: Y015 + _WhichOneofArgType_profiler: _TypeAlias = _typing.Literal["profiler", b"profiler"] # noqa: Y015 + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType_cached_profile) -> _WhichOneofReturnType_cached_profile | None: ... + @_typing.overload + def WhichOneof(self, oneof_group: _WhichOneofArgType_profiler) -> _WhichOneofReturnType_profiler | None: ... + +Global___ValidationReference: _TypeAlias = ValidationReference # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi b/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi index a1f1b99365d..7dd137bc89e 100644 --- a/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi +++ b/sdk/python/feast/protos/feast/registry/RegistryServer_pb2.pyi @@ -2,1841 +2,2053 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.core.DataSource_pb2 -import feast.core.Entity_pb2 -import feast.core.FeatureService_pb2 -import feast.core.FeatureView_pb2 -import feast.core.InfraObject_pb2 -import feast.core.OnDemandFeatureView_pb2 -import feast.core.Permission_pb2 -import feast.core.Project_pb2 -import feast.core.Registry_pb2 -import feast.core.SavedDataset_pb2 -import feast.core.StreamFeatureView_pb2 -import feast.core.ValidationProfile_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.core import DataSource_pb2 as _DataSource_pb2 +from feast.core import Entity_pb2 as _Entity_pb2 +from feast.core import FeatureService_pb2 as _FeatureService_pb2 +from feast.core import FeatureView_pb2 as _FeatureView_pb2 +from feast.core import InfraObject_pb2 as _InfraObject_pb2 +from feast.core import OnDemandFeatureView_pb2 as _OnDemandFeatureView_pb2 +from feast.core import Permission_pb2 as _Permission_pb2 +from feast.core import Project_pb2 as _Project_pb2 +from feast.core import Registry_pb2 as _Registry_pb2 +from feast.core import SavedDataset_pb2 as _SavedDataset_pb2 +from feast.core import StreamFeatureView_pb2 as _StreamFeatureView_pb2 +from feast.core import ValidationProfile_pb2 as _ValidationProfile_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class PaginationParams(google.protobuf.message.Message): +@_typing.final +class PaginationParams(_message.Message): """Common pagination and sorting messages""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PAGE_FIELD_NUMBER: builtins.int - LIMIT_FIELD_NUMBER: builtins.int - page: builtins.int + PAGE_FIELD_NUMBER: _builtins.int + LIMIT_FIELD_NUMBER: _builtins.int + page: _builtins.int """1-based page number""" - limit: builtins.int + limit: _builtins.int """Number of items per page""" def __init__( self, *, - page: builtins.int = ..., - limit: builtins.int = ..., + page: _builtins.int = ..., + limit: _builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["limit", b"limit", "page", b"page"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["limit", b"limit", "page", b"page"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PaginationParams = PaginationParams +Global___PaginationParams: _TypeAlias = PaginationParams # noqa: Y015 -class SortingParams(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class SortingParams(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SORT_BY_FIELD_NUMBER: builtins.int - SORT_ORDER_FIELD_NUMBER: builtins.int - sort_by: builtins.str + SORT_BY_FIELD_NUMBER: _builtins.int + SORT_ORDER_FIELD_NUMBER: _builtins.int + sort_by: _builtins.str """Field to sort by (supports dot notation)""" - sort_order: builtins.str + sort_order: _builtins.str """"asc" or "desc" """ def __init__( self, *, - sort_by: builtins.str = ..., - sort_order: builtins.str = ..., + sort_by: _builtins.str = ..., + sort_order: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["sort_by", b"sort_by", "sort_order", b"sort_order"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["sort_by", b"sort_by", "sort_order", b"sort_order"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___SortingParams = SortingParams +Global___SortingParams: _TypeAlias = SortingParams # noqa: Y015 -class PaginationMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PaginationMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PAGE_FIELD_NUMBER: builtins.int - LIMIT_FIELD_NUMBER: builtins.int - TOTAL_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PAGES_FIELD_NUMBER: builtins.int - HAS_NEXT_FIELD_NUMBER: builtins.int - HAS_PREVIOUS_FIELD_NUMBER: builtins.int - page: builtins.int - limit: builtins.int - total_count: builtins.int - total_pages: builtins.int - has_next: builtins.bool - has_previous: builtins.bool + PAGE_FIELD_NUMBER: _builtins.int + LIMIT_FIELD_NUMBER: _builtins.int + TOTAL_COUNT_FIELD_NUMBER: _builtins.int + TOTAL_PAGES_FIELD_NUMBER: _builtins.int + HAS_NEXT_FIELD_NUMBER: _builtins.int + HAS_PREVIOUS_FIELD_NUMBER: _builtins.int + page: _builtins.int + limit: _builtins.int + total_count: _builtins.int + total_pages: _builtins.int + has_next: _builtins.bool + has_previous: _builtins.bool def __init__( self, *, - page: builtins.int = ..., - limit: builtins.int = ..., - total_count: builtins.int = ..., - total_pages: builtins.int = ..., - has_next: builtins.bool = ..., - has_previous: builtins.bool = ..., + page: _builtins.int = ..., + limit: _builtins.int = ..., + total_count: _builtins.int = ..., + total_pages: _builtins.int = ..., + has_next: _builtins.bool = ..., + has_previous: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["has_next", b"has_next", "has_previous", b"has_previous", "limit", b"limit", "page", b"page", "total_count", b"total_count", "total_pages", b"total_pages"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["has_next", b"has_next", "has_previous", b"has_previous", "limit", b"limit", "page", b"page", "total_count", b"total_count", "total_pages", b"total_pages"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PaginationMetadata = PaginationMetadata +Global___PaginationMetadata: _TypeAlias = PaginationMetadata # noqa: Y015 -class RefreshRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class RefreshRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - project: builtins.str + PROJECT_FIELD_NUMBER: _builtins.int + project: _builtins.str def __init__( self, *, - project: builtins.str = ..., + project: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___RefreshRequest = RefreshRequest +Global___RefreshRequest: _TypeAlias = RefreshRequest # noqa: Y015 -class UpdateInfraRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class UpdateInfraRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - INFRA_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def infra(self) -> feast.core.InfraObject_pb2.Infra: ... - project: builtins.str - commit: builtins.bool + INFRA_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def infra(self) -> _InfraObject_pb2.Infra: ... def __init__( self, *, - infra: feast.core.InfraObject_pb2.Infra | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + infra: _InfraObject_pb2.Infra | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["infra", b"infra"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "infra", b"infra", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["infra", b"infra"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "infra", b"infra", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___UpdateInfraRequest = UpdateInfraRequest +Global___UpdateInfraRequest: _TypeAlias = UpdateInfraRequest # noqa: Y015 -class GetInfraRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetInfraRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetInfraRequest = GetInfraRequest +Global___GetInfraRequest: _TypeAlias = GetInfraRequest # noqa: Y015 -class ListProjectMetadataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectMetadataRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectMetadataRequest = ListProjectMetadataRequest +Global___ListProjectMetadataRequest: _TypeAlias = ListProjectMetadataRequest # noqa: Y015 -class ListProjectMetadataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectMetadataResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_METADATA_FIELD_NUMBER: builtins.int - @property - def project_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Registry_pb2.ProjectMetadata]: ... + PROJECT_METADATA_FIELD_NUMBER: _builtins.int + @_builtins.property + def project_metadata(self) -> _containers.RepeatedCompositeFieldContainer[_Registry_pb2.ProjectMetadata]: ... def __init__( self, *, - project_metadata: collections.abc.Iterable[feast.core.Registry_pb2.ProjectMetadata] | None = ..., + project_metadata: _abc.Iterable[_Registry_pb2.ProjectMetadata] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["project_metadata", b"project_metadata"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["project_metadata", b"project_metadata"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectMetadataResponse = ListProjectMetadataResponse +Global___ListProjectMetadataResponse: _TypeAlias = ListProjectMetadataResponse # noqa: Y015 -class ApplyMaterializationRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApplyMaterializationRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - START_DATE_FIELD_NUMBER: builtins.int - END_DATE_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - project: builtins.str - @property - def start_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def end_date(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - commit: builtins.bool + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + START_DATE_FIELD_NUMBER: _builtins.int + END_DATE_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def start_date(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def end_date(self) -> _timestamp_pb2.Timestamp: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - project: builtins.str = ..., - start_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., - end_date: google.protobuf.timestamp_pb2.Timestamp | None = ..., - commit: builtins.bool = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + project: _builtins.str = ..., + start_date: _timestamp_pb2.Timestamp | None = ..., + end_date: _timestamp_pb2.Timestamp | None = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_date", b"end_date", "feature_view", b"feature_view", "start_date", b"start_date"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "end_date", b"end_date", "feature_view", b"feature_view", "project", b"project", "start_date", b"start_date"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["end_date", b"end_date", "feature_view", b"feature_view", "start_date", b"start_date"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "end_date", b"end_date", "feature_view", b"feature_view", "project", b"project", "start_date", b"start_date"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyMaterializationRequest = ApplyMaterializationRequest +Global___ApplyMaterializationRequest: _TypeAlias = ApplyMaterializationRequest # noqa: Y015 -class ApplyEntityRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ApplyEntityRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITY_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def entity(self) -> feast.core.Entity_pb2.Entity: ... - project: builtins.str - commit: builtins.bool + ENTITY_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def entity(self) -> _Entity_pb2.Entity: ... def __init__( self, *, - entity: feast.core.Entity_pb2.Entity | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + entity: _Entity_pb2.Entity | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["entity", b"entity"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "entity", b"entity", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["entity", b"entity"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "entity", b"entity", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyEntityRequest = ApplyEntityRequest +Global___ApplyEntityRequest: _TypeAlias = ApplyEntityRequest # noqa: Y015 -class GetEntityRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetEntityRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetEntityRequest = GetEntityRequest +Global___GetEntityRequest: _TypeAlias = GetEntityRequest # noqa: Y015 -class ListEntitiesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListEntitiesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListEntitiesRequest = ListEntitiesRequest +Global___ListEntitiesRequest: _TypeAlias = ListEntitiesRequest # noqa: Y015 -class ListEntitiesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListEntitiesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITIES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def entities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Entity_pb2.Entity]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + ENTITIES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def entities(self) -> _containers.RepeatedCompositeFieldContainer[_Entity_pb2.Entity]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - entities: collections.abc.Iterable[feast.core.Entity_pb2.Entity] | None = ..., - pagination: global___PaginationMetadata | None = ..., + entities: _abc.Iterable[_Entity_pb2.Entity] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["entities", b"entities", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entities", b"entities", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListEntitiesResponse = ListEntitiesResponse +Global___ListEntitiesResponse: _TypeAlias = ListEntitiesResponse # noqa: Y015 -class DeleteEntityRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteEntityRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteEntityRequest = DeleteEntityRequest +Global___DeleteEntityRequest: _TypeAlias = DeleteEntityRequest # noqa: Y015 -class ApplyDataSourceRequest(google.protobuf.message.Message): +@_typing.final +class ApplyDataSourceRequest(_message.Message): """DataSources""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - DATA_SOURCE_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def data_source(self) -> feast.core.DataSource_pb2.DataSource: ... - project: builtins.str - commit: builtins.bool + DATA_SOURCE_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def data_source(self) -> _DataSource_pb2.DataSource: ... def __init__( self, *, - data_source: feast.core.DataSource_pb2.DataSource | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + data_source: _DataSource_pb2.DataSource | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["data_source", b"data_source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "data_source", b"data_source", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["data_source", b"data_source"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "data_source", b"data_source", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyDataSourceRequest = ApplyDataSourceRequest +Global___ApplyDataSourceRequest: _TypeAlias = ApplyDataSourceRequest # noqa: Y015 -class GetDataSourceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetDataSourceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetDataSourceRequest = GetDataSourceRequest +Global___GetDataSourceRequest: _TypeAlias = GetDataSourceRequest # noqa: Y015 -class ListDataSourcesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListDataSourcesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListDataSourcesRequest = ListDataSourcesRequest +Global___ListDataSourcesRequest: _TypeAlias = ListDataSourcesRequest # noqa: Y015 -class ListDataSourcesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListDataSourcesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - DATA_SOURCES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def data_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.DataSource_pb2.DataSource]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + DATA_SOURCES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def data_sources(self) -> _containers.RepeatedCompositeFieldContainer[_DataSource_pb2.DataSource]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - data_sources: collections.abc.Iterable[feast.core.DataSource_pb2.DataSource] | None = ..., - pagination: global___PaginationMetadata | None = ..., + data_sources: _abc.Iterable[_DataSource_pb2.DataSource] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data_sources", b"data_sources", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["data_sources", b"data_sources", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListDataSourcesResponse = ListDataSourcesResponse +Global___ListDataSourcesResponse: _TypeAlias = ListDataSourcesResponse # noqa: Y015 -class DeleteDataSourceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteDataSourceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteDataSourceRequest = DeleteDataSourceRequest +Global___DeleteDataSourceRequest: _TypeAlias = DeleteDataSourceRequest # noqa: Y015 -class ApplyFeatureViewRequest(google.protobuf.message.Message): +@_typing.final +class ApplyFeatureViewRequest(_message.Message): """FeatureViews""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_FIELD_NUMBER: builtins.int - ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEW_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - @property - def on_demand_feature_view(self) -> feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView: ... - @property - def stream_feature_view(self) -> feast.core.StreamFeatureView_pb2.StreamFeatureView: ... - project: builtins.str - commit: builtins.bool + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def on_demand_feature_view(self) -> _OnDemandFeatureView_pb2.OnDemandFeatureView: ... + @_builtins.property + def stream_feature_view(self) -> _StreamFeatureView_pb2.StreamFeatureView: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - on_demand_feature_view: feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., - stream_feature_view: feast.core.StreamFeatureView_pb2.StreamFeatureView | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + on_demand_feature_view: _OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., + stream_feature_view: _StreamFeatureView_pb2.StreamFeatureView | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["base_feature_view", b"base_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["base_feature_view", b"base_feature_view", "commit", b"commit", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "project", b"project", "stream_feature_view", b"stream_feature_view"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["base_feature_view", b"base_feature_view"]) -> typing_extensions.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["base_feature_view", b"base_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["base_feature_view", b"base_feature_view", "commit", b"commit", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "project", b"project", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_base_feature_view: _TypeAlias = _typing.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] # noqa: Y015 + _WhichOneofArgType_base_feature_view: _TypeAlias = _typing.Literal["base_feature_view", b"base_feature_view"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_base_feature_view) -> _WhichOneofReturnType_base_feature_view | None: ... -global___ApplyFeatureViewRequest = ApplyFeatureViewRequest +Global___ApplyFeatureViewRequest: _TypeAlias = ApplyFeatureViewRequest # noqa: Y015 -class GetFeatureViewRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeatureViewRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeatureViewRequest = GetFeatureViewRequest +Global___GetFeatureViewRequest: _TypeAlias = GetFeatureViewRequest # noqa: Y015 -class ListFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureViewsRequest = ListFeatureViewsRequest +Global___ListFeatureViewsRequest: _TypeAlias = ListFeatureViewsRequest # noqa: Y015 -class ListFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureView_pb2.FeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureView_pb2.FeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - feature_views: collections.abc.Iterable[feast.core.FeatureView_pb2.FeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., + feature_views: _abc.Iterable[_FeatureView_pb2.FeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_views", b"feature_views", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_views", b"feature_views", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureViewsResponse = ListFeatureViewsResponse +Global___ListFeatureViewsResponse: _TypeAlias = ListFeatureViewsResponse # noqa: Y015 -class DeleteFeatureViewRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteFeatureViewRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteFeatureViewRequest = DeleteFeatureViewRequest +Global___DeleteFeatureViewRequest: _TypeAlias = DeleteFeatureViewRequest # noqa: Y015 -class AnyFeatureView(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class AnyFeatureView(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_FIELD_NUMBER: builtins.int - ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEW_FIELD_NUMBER: builtins.int - @property - def feature_view(self) -> feast.core.FeatureView_pb2.FeatureView: ... - @property - def on_demand_feature_view(self) -> feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView: ... - @property - def stream_feature_view(self) -> feast.core.StreamFeatureView_pb2.StreamFeatureView: ... + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + ON_DEMAND_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_view(self) -> _FeatureView_pb2.FeatureView: ... + @_builtins.property + def on_demand_feature_view(self) -> _OnDemandFeatureView_pb2.OnDemandFeatureView: ... + @_builtins.property + def stream_feature_view(self) -> _StreamFeatureView_pb2.StreamFeatureView: ... def __init__( self, *, - feature_view: feast.core.FeatureView_pb2.FeatureView | None = ..., - on_demand_feature_view: feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., - stream_feature_view: feast.core.StreamFeatureView_pb2.StreamFeatureView | None = ..., + feature_view: _FeatureView_pb2.FeatureView | None = ..., + on_demand_feature_view: _OnDemandFeatureView_pb2.OnDemandFeatureView | None = ..., + stream_feature_view: _StreamFeatureView_pb2.StreamFeatureView | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["any_feature_view", b"any_feature_view"]) -> typing_extensions.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view", "feature_view", b"feature_view", "on_demand_feature_view", b"on_demand_feature_view", "stream_feature_view", b"stream_feature_view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_any_feature_view: _TypeAlias = _typing.Literal["feature_view", "on_demand_feature_view", "stream_feature_view"] # noqa: Y015 + _WhichOneofArgType_any_feature_view: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_any_feature_view) -> _WhichOneofReturnType_any_feature_view | None: ... -global___AnyFeatureView = AnyFeatureView +Global___AnyFeatureView: _TypeAlias = AnyFeatureView # noqa: Y015 -class GetAnyFeatureViewRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetAnyFeatureViewRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetAnyFeatureViewRequest = GetAnyFeatureViewRequest +Global___GetAnyFeatureViewRequest: _TypeAlias = GetAnyFeatureViewRequest # noqa: Y015 -class GetAnyFeatureViewResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetAnyFeatureViewResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ANY_FEATURE_VIEW_FIELD_NUMBER: builtins.int - @property - def any_feature_view(self) -> global___AnyFeatureView: ... + ANY_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + @_builtins.property + def any_feature_view(self) -> Global___AnyFeatureView: ... def __init__( self, *, - any_feature_view: global___AnyFeatureView | None = ..., + any_feature_view: Global___AnyFeatureView | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["any_feature_view", b"any_feature_view"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["any_feature_view", b"any_feature_view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetAnyFeatureViewResponse = GetAnyFeatureViewResponse +Global___GetAnyFeatureViewResponse: _TypeAlias = GetAnyFeatureViewResponse # noqa: Y015 -class ListAllFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListAllFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - ENTITY_FIELD_NUMBER: builtins.int - FEATURE_FIELD_NUMBER: builtins.int - FEATURE_SERVICE_FIELD_NUMBER: builtins.int - DATA_SOURCE_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - entity: builtins.str - feature: builtins.str - feature_service: builtins.str - data_source: builtins.str - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... - def __init__( - self, - *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - entity: builtins.str = ..., - feature: builtins.str = ..., - feature_service: builtins.str = ..., - data_source: builtins.str = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "data_source", b"data_source", "entity", b"entity", "feature", b"feature", "feature_service", b"feature_service", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... - -global___ListAllFeatureViewsRequest = ListAllFeatureViewsRequest - -class ListAllFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AnyFeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... - def __init__( - self, - *, - feature_views: collections.abc.Iterable[global___AnyFeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_views", b"feature_views", "pagination", b"pagination"]) -> None: ... - -global___ListAllFeatureViewsResponse = ListAllFeatureViewsResponse - -class GetStreamFeatureViewRequest(google.protobuf.message.Message): + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + ENTITY_FIELD_NUMBER: _builtins.int + FEATURE_FIELD_NUMBER: _builtins.int + FEATURE_SERVICE_FIELD_NUMBER: _builtins.int + DATA_SOURCE_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + entity: _builtins.str + feature: _builtins.str + feature_service: _builtins.str + data_source: _builtins.str + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... + def __init__( + self, + *, + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + entity: _builtins.str = ..., + feature: _builtins.str = ..., + feature_service: _builtins.str = ..., + data_source: _builtins.str = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "data_source", b"data_source", "entity", b"entity", "feature", b"feature", "feature_service", b"feature_service", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListAllFeatureViewsRequest: _TypeAlias = ListAllFeatureViewsRequest # noqa: Y015 + +@_typing.final +class ListAllFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_views(self) -> _containers.RepeatedCompositeFieldContainer[Global___AnyFeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... + def __init__( + self, + *, + feature_views: _abc.Iterable[Global___AnyFeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_views", b"feature_views", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListAllFeatureViewsResponse: _TypeAlias = ListAllFeatureViewsResponse # noqa: Y015 + +@_typing.final +class GetStreamFeatureViewRequest(_message.Message): """StreamFeatureView""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetStreamFeatureViewRequest = GetStreamFeatureViewRequest +Global___GetStreamFeatureViewRequest: _TypeAlias = GetStreamFeatureViewRequest # noqa: Y015 -class ListStreamFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListStreamFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListStreamFeatureViewsRequest = ListStreamFeatureViewsRequest +Global___ListStreamFeatureViewsRequest: _TypeAlias = ListStreamFeatureViewsRequest # noqa: Y015 -class ListStreamFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListStreamFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STREAM_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def stream_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.StreamFeatureView_pb2.StreamFeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + STREAM_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def stream_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_StreamFeatureView_pb2.StreamFeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - stream_feature_views: collections.abc.Iterable[feast.core.StreamFeatureView_pb2.StreamFeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., + stream_feature_views: _abc.Iterable[_StreamFeatureView_pb2.StreamFeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "stream_feature_views", b"stream_feature_views"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "stream_feature_views", b"stream_feature_views"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListStreamFeatureViewsResponse = ListStreamFeatureViewsResponse +Global___ListStreamFeatureViewsResponse: _TypeAlias = ListStreamFeatureViewsResponse # noqa: Y015 -class GetOnDemandFeatureViewRequest(google.protobuf.message.Message): +@_typing.final +class GetOnDemandFeatureViewRequest(_message.Message): """OnDemandFeatureView""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnDemandFeatureViewRequest = GetOnDemandFeatureViewRequest +Global___GetOnDemandFeatureViewRequest: _TypeAlias = GetOnDemandFeatureViewRequest # noqa: Y015 -class ListOnDemandFeatureViewsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListOnDemandFeatureViewsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListOnDemandFeatureViewsRequest = ListOnDemandFeatureViewsRequest +Global___ListOnDemandFeatureViewsRequest: _TypeAlias = ListOnDemandFeatureViewsRequest # noqa: Y015 -class ListOnDemandFeatureViewsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListOnDemandFeatureViewsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def on_demand_feature_views(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + ON_DEMAND_FEATURE_VIEWS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def on_demand_feature_views(self) -> _containers.RepeatedCompositeFieldContainer[_OnDemandFeatureView_pb2.OnDemandFeatureView]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - on_demand_feature_views: collections.abc.Iterable[feast.core.OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., - pagination: global___PaginationMetadata | None = ..., + on_demand_feature_views: _abc.Iterable[_OnDemandFeatureView_pb2.OnDemandFeatureView] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["on_demand_feature_views", b"on_demand_feature_views", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["on_demand_feature_views", b"on_demand_feature_views", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListOnDemandFeatureViewsResponse = ListOnDemandFeatureViewsResponse +Global___ListOnDemandFeatureViewsResponse: _TypeAlias = ListOnDemandFeatureViewsResponse # noqa: Y015 -class ApplyFeatureServiceRequest(google.protobuf.message.Message): +@_typing.final +class ApplyFeatureServiceRequest(_message.Message): """FeatureServices""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - FEATURE_SERVICE_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def feature_service(self) -> feast.core.FeatureService_pb2.FeatureService: ... - project: builtins.str - commit: builtins.bool + FEATURE_SERVICE_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def feature_service(self) -> _FeatureService_pb2.FeatureService: ... def __init__( self, *, - feature_service: feast.core.FeatureService_pb2.FeatureService | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + feature_service: _FeatureService_pb2.FeatureService | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_service", b"feature_service"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "feature_service", b"feature_service", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_service", b"feature_service"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "feature_service", b"feature_service", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyFeatureServiceRequest = ApplyFeatureServiceRequest +Global___ApplyFeatureServiceRequest: _TypeAlias = ApplyFeatureServiceRequest # noqa: Y015 -class GetFeatureServiceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeatureServiceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeatureServiceRequest = GetFeatureServiceRequest +Global___GetFeatureServiceRequest: _TypeAlias = GetFeatureServiceRequest # noqa: Y015 -class ListFeatureServicesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureServicesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - feature_view: builtins.str - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + feature_view: _builtins.str + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - feature_view: builtins.str = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + feature_view: _builtins.str = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureServicesRequest = ListFeatureServicesRequest +Global___ListFeatureServicesRequest: _TypeAlias = ListFeatureServicesRequest # noqa: Y015 -class ListFeatureServicesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListFeatureServicesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_SERVICES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def feature_services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureService_pb2.FeatureService]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + FEATURE_SERVICES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_services(self) -> _containers.RepeatedCompositeFieldContainer[_FeatureService_pb2.FeatureService]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - feature_services: collections.abc.Iterable[feast.core.FeatureService_pb2.FeatureService] | None = ..., - pagination: global___PaginationMetadata | None = ..., + feature_services: _abc.Iterable[_FeatureService_pb2.FeatureService] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_services", b"feature_services", "pagination", b"pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_services", b"feature_services", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListFeatureServicesResponse = ListFeatureServicesResponse +Global___ListFeatureServicesResponse: _TypeAlias = ListFeatureServicesResponse # noqa: Y015 -class DeleteFeatureServiceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteFeatureServiceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteFeatureServiceRequest = DeleteFeatureServiceRequest +Global___DeleteFeatureServiceRequest: _TypeAlias = DeleteFeatureServiceRequest # noqa: Y015 -class ApplySavedDatasetRequest(google.protobuf.message.Message): +@_typing.final +class ApplySavedDatasetRequest(_message.Message): """SavedDataset""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - SAVED_DATASET_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def saved_dataset(self) -> feast.core.SavedDataset_pb2.SavedDataset: ... - project: builtins.str - commit: builtins.bool + SAVED_DATASET_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def saved_dataset(self) -> _SavedDataset_pb2.SavedDataset: ... def __init__( self, *, - saved_dataset: feast.core.SavedDataset_pb2.SavedDataset | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + saved_dataset: _SavedDataset_pb2.SavedDataset | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["saved_dataset", b"saved_dataset"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "project", b"project", "saved_dataset", b"saved_dataset"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["saved_dataset", b"saved_dataset"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "project", b"project", "saved_dataset", b"saved_dataset"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplySavedDatasetRequest = ApplySavedDatasetRequest +Global___ApplySavedDatasetRequest: _TypeAlias = ApplySavedDatasetRequest # noqa: Y015 -class GetSavedDatasetRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetSavedDatasetRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetSavedDatasetRequest = GetSavedDatasetRequest +Global___GetSavedDatasetRequest: _TypeAlias = GetSavedDatasetRequest # noqa: Y015 -class ListSavedDatasetsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListSavedDatasetsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListSavedDatasetsRequest = ListSavedDatasetsRequest +Global___ListSavedDatasetsRequest: _TypeAlias = ListSavedDatasetsRequest # noqa: Y015 -class ListSavedDatasetsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListSavedDatasetsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - SAVED_DATASETS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def saved_datasets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.SavedDataset_pb2.SavedDataset]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + SAVED_DATASETS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def saved_datasets(self) -> _containers.RepeatedCompositeFieldContainer[_SavedDataset_pb2.SavedDataset]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - saved_datasets: collections.abc.Iterable[feast.core.SavedDataset_pb2.SavedDataset] | None = ..., - pagination: global___PaginationMetadata | None = ..., + saved_datasets: _abc.Iterable[_SavedDataset_pb2.SavedDataset] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "saved_datasets", b"saved_datasets"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "saved_datasets", b"saved_datasets"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListSavedDatasetsResponse = ListSavedDatasetsResponse +Global___ListSavedDatasetsResponse: _TypeAlias = ListSavedDatasetsResponse # noqa: Y015 -class DeleteSavedDatasetRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteSavedDatasetRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteSavedDatasetRequest = DeleteSavedDatasetRequest +Global___DeleteSavedDatasetRequest: _TypeAlias = DeleteSavedDatasetRequest # noqa: Y015 -class ApplyValidationReferenceRequest(google.protobuf.message.Message): +@_typing.final +class ApplyValidationReferenceRequest(_message.Message): """ValidationReference""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - VALIDATION_REFERENCE_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def validation_reference(self) -> feast.core.ValidationProfile_pb2.ValidationReference: ... - project: builtins.str - commit: builtins.bool + VALIDATION_REFERENCE_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def validation_reference(self) -> _ValidationProfile_pb2.ValidationReference: ... def __init__( self, *, - validation_reference: feast.core.ValidationProfile_pb2.ValidationReference | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + validation_reference: _ValidationProfile_pb2.ValidationReference | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["validation_reference", b"validation_reference"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "project", b"project", "validation_reference", b"validation_reference"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["validation_reference", b"validation_reference"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "project", b"project", "validation_reference", b"validation_reference"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyValidationReferenceRequest = ApplyValidationReferenceRequest +Global___ApplyValidationReferenceRequest: _TypeAlias = ApplyValidationReferenceRequest # noqa: Y015 -class GetValidationReferenceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetValidationReferenceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetValidationReferenceRequest = GetValidationReferenceRequest +Global___GetValidationReferenceRequest: _TypeAlias = GetValidationReferenceRequest # noqa: Y015 -class ListValidationReferencesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListValidationReferencesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListValidationReferencesRequest = ListValidationReferencesRequest +Global___ListValidationReferencesRequest: _TypeAlias = ListValidationReferencesRequest # noqa: Y015 -class ListValidationReferencesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListValidationReferencesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VALIDATION_REFERENCES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def validation_references(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.ValidationProfile_pb2.ValidationReference]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + VALIDATION_REFERENCES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def validation_references(self) -> _containers.RepeatedCompositeFieldContainer[_ValidationProfile_pb2.ValidationReference]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - validation_references: collections.abc.Iterable[feast.core.ValidationProfile_pb2.ValidationReference] | None = ..., - pagination: global___PaginationMetadata | None = ..., + validation_references: _abc.Iterable[_ValidationProfile_pb2.ValidationReference] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "validation_references", b"validation_references"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "validation_references", b"validation_references"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListValidationReferencesResponse = ListValidationReferencesResponse +Global___ListValidationReferencesResponse: _TypeAlias = ListValidationReferencesResponse # noqa: Y015 -class DeleteValidationReferenceRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteValidationReferenceRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteValidationReferenceRequest = DeleteValidationReferenceRequest +Global___DeleteValidationReferenceRequest: _TypeAlias = DeleteValidationReferenceRequest # noqa: Y015 -class ApplyPermissionRequest(google.protobuf.message.Message): +@_typing.final +class ApplyPermissionRequest(_message.Message): """Permissions""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PERMISSION_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def permission(self) -> feast.core.Permission_pb2.Permission: ... - project: builtins.str - commit: builtins.bool + PERMISSION_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + project: _builtins.str + commit: _builtins.bool + @_builtins.property + def permission(self) -> _Permission_pb2.Permission: ... def __init__( self, *, - permission: feast.core.Permission_pb2.Permission | None = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + permission: _Permission_pb2.Permission | None = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["permission", b"permission"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "permission", b"permission", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["permission", b"permission"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "permission", b"permission", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyPermissionRequest = ApplyPermissionRequest +Global___ApplyPermissionRequest: _TypeAlias = ApplyPermissionRequest # noqa: Y015 -class GetPermissionRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetPermissionRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetPermissionRequest = GetPermissionRequest +Global___GetPermissionRequest: _TypeAlias = GetPermissionRequest # noqa: Y015 -class ListPermissionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListPermissionsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "project", b"project", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListPermissionsRequest = ListPermissionsRequest +Global___ListPermissionsRequest: _TypeAlias = ListPermissionsRequest # noqa: Y015 -class ListPermissionsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListPermissionsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PERMISSIONS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Permission_pb2.Permission]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + PERMISSIONS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def permissions(self) -> _containers.RepeatedCompositeFieldContainer[_Permission_pb2.Permission]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - permissions: collections.abc.Iterable[feast.core.Permission_pb2.Permission] | None = ..., - pagination: global___PaginationMetadata | None = ..., + permissions: _abc.Iterable[_Permission_pb2.Permission] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "permissions", b"permissions"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "permissions", b"permissions"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListPermissionsResponse = ListPermissionsResponse +Global___ListPermissionsResponse: _TypeAlias = ListPermissionsResponse # noqa: Y015 -class DeletePermissionRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeletePermissionRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - project: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + project: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - project: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + project: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeletePermissionRequest = DeletePermissionRequest +Global___DeletePermissionRequest: _TypeAlias = DeletePermissionRequest # noqa: Y015 -class ApplyProjectRequest(google.protobuf.message.Message): +@_typing.final +class ApplyProjectRequest(_message.Message): """Projects""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - @property - def project(self) -> feast.core.Project_pb2.Project: ... - commit: builtins.bool + PROJECT_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + commit: _builtins.bool + @_builtins.property + def project(self) -> _Project_pb2.Project: ... def __init__( self, *, - project: feast.core.Project_pb2.Project | None = ..., - commit: builtins.bool = ..., + project: _Project_pb2.Project | None = ..., + commit: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["project", b"project"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "project", b"project"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["project", b"project"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ApplyProjectRequest = ApplyProjectRequest +Global___ApplyProjectRequest: _TypeAlias = ApplyProjectRequest # noqa: Y015 -class GetProjectRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetProjectRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - name: builtins.str - allow_cache: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + name: _builtins.str + allow_cache: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - allow_cache: builtins.bool = ..., + name: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetProjectRequest = GetProjectRequest +Global___GetProjectRequest: _TypeAlias = GetProjectRequest # noqa: Y015 -class ListProjectsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - ALLOW_CACHE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - allow_cache: builtins.bool - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + allow_cache: _builtins.bool + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - allow_cache: builtins.bool = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + allow_cache: _builtins.bool = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "sorting", b"sorting", "tags", b"tags"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "pagination", b"pagination", "sorting", b"sorting", "tags", b"tags"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectsRequest = ListProjectsRequest +Global___ListProjectsRequest: _TypeAlias = ListProjectsRequest # noqa: Y015 -class ListProjectsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ListProjectsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECTS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def projects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Project_pb2.Project]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... + PROJECTS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def projects(self) -> _containers.RepeatedCompositeFieldContainer[_Project_pb2.Project]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - projects: collections.abc.Iterable[feast.core.Project_pb2.Project] | None = ..., - pagination: global___PaginationMetadata | None = ..., + projects: _abc.Iterable[_Project_pb2.Project] | None = ..., + pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "projects", b"projects"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "projects", b"projects"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ListProjectsResponse = ListProjectsResponse +Global___ListProjectsResponse: _TypeAlias = ListProjectsResponse # noqa: Y015 -class DeleteProjectRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DeleteProjectRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - COMMIT_FIELD_NUMBER: builtins.int - name: builtins.str - commit: builtins.bool + NAME_FIELD_NUMBER: _builtins.int + COMMIT_FIELD_NUMBER: _builtins.int + name: _builtins.str + commit: _builtins.bool def __init__( self, *, - name: builtins.str = ..., - commit: builtins.bool = ..., + name: _builtins.str = ..., + commit: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["commit", b"commit", "name", b"name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["commit", b"commit", "name", b"name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DeleteProjectRequest = DeleteProjectRequest +Global___DeleteProjectRequest: _TypeAlias = DeleteProjectRequest # noqa: Y015 -class EntityReference(google.protobuf.message.Message): +@_typing.final +class EntityReference(_message.Message): """Lineage""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - type: builtins.str + TYPE_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + type: _builtins.str """"dataSource", "entity", "featureView", "featureService" """ - name: builtins.str + name: _builtins.str def __init__( self, *, - type: builtins.str = ..., - name: builtins.str = ..., + type: _builtins.str = ..., + name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "type", b"type"]) -> None: ... - -global___EntityReference = EntityReference + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -class EntityRelation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +Global___EntityReference: _TypeAlias = EntityReference # noqa: Y015 - SOURCE_FIELD_NUMBER: builtins.int - TARGET_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___EntityReference: ... - @property - def target(self) -> global___EntityReference: ... +@_typing.final +class EntityRelation(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + SOURCE_FIELD_NUMBER: _builtins.int + TARGET_FIELD_NUMBER: _builtins.int + @_builtins.property + def source(self) -> Global___EntityReference: ... + @_builtins.property + def target(self) -> Global___EntityReference: ... def __init__( self, *, - source: global___EntityReference | None = ..., - target: global___EntityReference | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["source", b"source", "target", b"target"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["source", b"source", "target", b"target"]) -> None: ... - -global___EntityRelation = EntityRelation - -class GetRegistryLineageRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + source: Global___EntityReference | None = ..., + target: Global___EntityReference | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["source", b"source", "target", b"target"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["source", b"source", "target", b"target"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___EntityRelation: _TypeAlias = EntityRelation # noqa: Y015 + +@_typing.final +class GetRegistryLineageRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - PROJECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - FILTER_OBJECT_TYPE_FIELD_NUMBER: builtins.int - FILTER_OBJECT_NAME_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - allow_cache: builtins.bool - filter_object_type: builtins.str - filter_object_name: builtins.str - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... + PROJECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + FILTER_OBJECT_TYPE_FIELD_NUMBER: _builtins.int + FILTER_OBJECT_NAME_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + allow_cache: _builtins.bool + filter_object_type: _builtins.str + filter_object_name: _builtins.str + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... def __init__( self, *, - project: builtins.str = ..., - allow_cache: builtins.bool = ..., - filter_object_type: builtins.str = ..., - filter_object_name: builtins.str = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., + project: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + filter_object_type: _builtins.str = ..., + filter_object_name: _builtins.str = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "filter_object_name", b"filter_object_name", "filter_object_type", b"filter_object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "filter_object_name", b"filter_object_name", "filter_object_type", b"filter_object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetRegistryLineageRequest = GetRegistryLineageRequest +Global___GetRegistryLineageRequest: _TypeAlias = GetRegistryLineageRequest # noqa: Y015 -class GetRegistryLineageResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetRegistryLineageResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RELATIONSHIPS_FIELD_NUMBER: builtins.int - INDIRECT_RELATIONSHIPS_FIELD_NUMBER: builtins.int - RELATIONSHIPS_PAGINATION_FIELD_NUMBER: builtins.int - INDIRECT_RELATIONSHIPS_PAGINATION_FIELD_NUMBER: builtins.int - @property - def relationships(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EntityRelation]: ... - @property - def indirect_relationships(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EntityRelation]: ... - @property - def relationships_pagination(self) -> global___PaginationMetadata: ... - @property - def indirect_relationships_pagination(self) -> global___PaginationMetadata: ... + RELATIONSHIPS_FIELD_NUMBER: _builtins.int + INDIRECT_RELATIONSHIPS_FIELD_NUMBER: _builtins.int + RELATIONSHIPS_PAGINATION_FIELD_NUMBER: _builtins.int + INDIRECT_RELATIONSHIPS_PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def relationships(self) -> _containers.RepeatedCompositeFieldContainer[Global___EntityRelation]: ... + @_builtins.property + def indirect_relationships(self) -> _containers.RepeatedCompositeFieldContainer[Global___EntityRelation]: ... + @_builtins.property + def relationships_pagination(self) -> Global___PaginationMetadata: ... + @_builtins.property + def indirect_relationships_pagination(self) -> Global___PaginationMetadata: ... def __init__( self, *, - relationships: collections.abc.Iterable[global___EntityRelation] | None = ..., - indirect_relationships: collections.abc.Iterable[global___EntityRelation] | None = ..., - relationships_pagination: global___PaginationMetadata | None = ..., - indirect_relationships_pagination: global___PaginationMetadata | None = ..., + relationships: _abc.Iterable[Global___EntityRelation] | None = ..., + indirect_relationships: _abc.Iterable[Global___EntityRelation] | None = ..., + relationships_pagination: Global___PaginationMetadata | None = ..., + indirect_relationships_pagination: Global___PaginationMetadata | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships_pagination", b"relationships_pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["indirect_relationships", b"indirect_relationships", "indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships", b"relationships", "relationships_pagination", b"relationships_pagination"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships_pagination", b"relationships_pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["indirect_relationships", b"indirect_relationships", "indirect_relationships_pagination", b"indirect_relationships_pagination", "relationships", b"relationships", "relationships_pagination", b"relationships_pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetRegistryLineageResponse = GetRegistryLineageResponse +Global___GetRegistryLineageResponse: _TypeAlias = GetRegistryLineageResponse # noqa: Y015 -class GetObjectRelationshipsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - OBJECT_TYPE_FIELD_NUMBER: builtins.int - OBJECT_NAME_FIELD_NUMBER: builtins.int - INCLUDE_INDIRECT_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - object_type: builtins.str - object_name: builtins.str - include_indirect: builtins.bool - allow_cache: builtins.bool - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... - def __init__( - self, - *, - project: builtins.str = ..., - object_type: builtins.str = ..., - object_name: builtins.str = ..., - include_indirect: builtins.bool = ..., - allow_cache: builtins.bool = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "include_indirect", b"include_indirect", "object_name", b"object_name", "object_type", b"object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"]) -> None: ... - -global___GetObjectRelationshipsRequest = GetObjectRelationshipsRequest - -class GetObjectRelationshipsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RELATIONSHIPS_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def relationships(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EntityRelation]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... - def __init__( - self, - *, - relationships: collections.abc.Iterable[global___EntityRelation] | None = ..., - pagination: global___PaginationMetadata | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "relationships", b"relationships"]) -> None: ... - -global___GetObjectRelationshipsResponse = GetObjectRelationshipsResponse - -class Feature(google.protobuf.message.Message): +@_typing.final +class GetObjectRelationshipsRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + OBJECT_TYPE_FIELD_NUMBER: _builtins.int + OBJECT_NAME_FIELD_NUMBER: _builtins.int + INCLUDE_INDIRECT_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + object_type: _builtins.str + object_name: _builtins.str + include_indirect: _builtins.bool + allow_cache: _builtins.bool + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... + def __init__( + self, + *, + project: _builtins.str = ..., + object_type: _builtins.str = ..., + object_name: _builtins.str = ..., + include_indirect: _builtins.bool = ..., + allow_cache: _builtins.bool = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "include_indirect", b"include_indirect", "object_name", b"object_name", "object_type", b"object_type", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetObjectRelationshipsRequest: _TypeAlias = GetObjectRelationshipsRequest # noqa: Y015 + +@_typing.final +class GetObjectRelationshipsResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + RELATIONSHIPS_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def relationships(self) -> _containers.RepeatedCompositeFieldContainer[Global___EntityRelation]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... + def __init__( + self, + *, + relationships: _abc.Iterable[Global___EntityRelation] | None = ..., + pagination: Global___PaginationMetadata | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "relationships", b"relationships"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetObjectRelationshipsResponse: _TypeAlias = GetObjectRelationshipsResponse # noqa: Y015 + +@_typing.final +class Feature(_message.Message): """Feature messages""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - NAME_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - OWNER_FIELD_NUMBER: builtins.int - CREATED_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - name: builtins.str - feature_view: builtins.str - type: builtins.str - description: builtins.str - owner: builtins.str - @property - def created_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def last_updated_timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - def __init__( - self, - *, - name: builtins.str = ..., - feature_view: builtins.str = ..., - type: builtins.str = ..., - description: builtins.str = ..., - owner: builtins.str = ..., - created_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - last_updated_timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view", b"feature_view", "last_updated_timestamp", b"last_updated_timestamp", "name", b"name", "owner", b"owner", "tags", b"tags", "type", b"type"]) -> None: ... - -global___Feature = Feature - -class ListFeaturesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - SORTING_FIELD_NUMBER: builtins.int - project: builtins.str - feature_view: builtins.str - name: builtins.str - allow_cache: builtins.bool - @property - def pagination(self) -> global___PaginationParams: ... - @property - def sorting(self) -> global___SortingParams: ... - def __init__( - self, - *, - project: builtins.str = ..., - feature_view: builtins.str = ..., - name: builtins.str = ..., - allow_cache: builtins.bool = ..., - pagination: global___PaginationParams | None = ..., - sorting: global___SortingParams | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination", "sorting", b"sorting"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"]) -> None: ... - -global___ListFeaturesRequest = ListFeaturesRequest - -class ListFeaturesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FEATURES_FIELD_NUMBER: builtins.int - PAGINATION_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Feature]: ... - @property - def pagination(self) -> global___PaginationMetadata: ... - def __init__( - self, - *, - features: collections.abc.Iterable[global___Feature] | None = ..., - pagination: global___PaginationMetadata | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pagination", b"pagination"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["features", b"features", "pagination", b"pagination"]) -> None: ... - -global___ListFeaturesResponse = ListFeaturesResponse - -class GetFeatureRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - FEATURE_VIEW_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ALLOW_CACHE_FIELD_NUMBER: builtins.int - project: builtins.str - feature_view: builtins.str - name: builtins.str - allow_cache: builtins.bool - def __init__( - self, - *, - project: builtins.str = ..., - feature_view: builtins.str = ..., - name: builtins.str = ..., - allow_cache: builtins.bool = ..., + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + NAME_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + OWNER_FIELD_NUMBER: _builtins.int + CREATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + LAST_UPDATED_TIMESTAMP_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + name: _builtins.str + feature_view: _builtins.str + type: _builtins.str + description: _builtins.str + owner: _builtins.str + @_builtins.property + def created_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def last_updated_timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + def __init__( + self, + *, + name: _builtins.str = ..., + feature_view: _builtins.str = ..., + type: _builtins.str = ..., + description: _builtins.str = ..., + owner: _builtins.str = ..., + created_timestamp: _timestamp_pb2.Timestamp | None = ..., + last_updated_timestamp: _timestamp_pb2.Timestamp | None = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "last_updated_timestamp", b"last_updated_timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["created_timestamp", b"created_timestamp", "description", b"description", "feature_view", b"feature_view", "last_updated_timestamp", b"last_updated_timestamp", "name", b"name", "owner", b"owner", "tags", b"tags", "type", b"type"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___Feature: _TypeAlias = Feature # noqa: Y015 + +@_typing.final +class ListFeaturesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + SORTING_FIELD_NUMBER: _builtins.int + project: _builtins.str + feature_view: _builtins.str + name: _builtins.str + allow_cache: _builtins.bool + @_builtins.property + def pagination(self) -> Global___PaginationParams: ... + @_builtins.property + def sorting(self) -> Global___SortingParams: ... + def __init__( + self, + *, + project: _builtins.str = ..., + feature_view: _builtins.str = ..., + name: _builtins.str = ..., + allow_cache: _builtins.bool = ..., + pagination: Global___PaginationParams | None = ..., + sorting: Global___SortingParams | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination", "sorting", b"sorting"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "pagination", b"pagination", "project", b"project", "sorting", b"sorting"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListFeaturesRequest: _TypeAlias = ListFeaturesRequest # noqa: Y015 + +@_typing.final +class ListFeaturesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + FEATURES_FIELD_NUMBER: _builtins.int + PAGINATION_FIELD_NUMBER: _builtins.int + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[Global___Feature]: ... + @_builtins.property + def pagination(self) -> Global___PaginationMetadata: ... + def __init__( + self, + *, + features: _abc.Iterable[Global___Feature] | None = ..., + pagination: Global___PaginationMetadata | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["pagination", b"pagination"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["features", b"features", "pagination", b"pagination"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ListFeaturesResponse: _TypeAlias = ListFeaturesResponse # noqa: Y015 + +@_typing.final +class GetFeatureRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_FIELD_NUMBER: _builtins.int + NAME_FIELD_NUMBER: _builtins.int + ALLOW_CACHE_FIELD_NUMBER: _builtins.int + project: _builtins.str + feature_view: _builtins.str + name: _builtins.str + allow_cache: _builtins.bool + def __init__( + self, + *, + project: _builtins.str = ..., + feature_view: _builtins.str = ..., + name: _builtins.str = ..., + allow_cache: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_cache", b"allow_cache", "feature_view", b"feature_view", "name", b"name", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeatureRequest = GetFeatureRequest +Global___GetFeatureRequest: _TypeAlias = GetFeatureRequest # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi b/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi index f87109e0fa5..4e40abd912f 100644 --- a/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/Connector_pb2.pyi @@ -2,96 +2,107 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.serving.ServingService_pb2 -import feast.types.EntityKey_pb2 -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.serving import ServingService_pb2 as _ServingService_pb2 # type: ignore[attr-defined] +from feast.types import EntityKey_pb2 as _EntityKey_pb2 # type: ignore[attr-defined] +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class ConnectorFeature(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectorFeature(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - REFERENCE_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - @property - def reference(self) -> feast.serving.ServingService_pb2.FeatureReferenceV2: ... - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def value(self) -> feast.types.Value_pb2.Value: ... + REFERENCE_FIELD_NUMBER: _builtins.int + TIMESTAMP_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + @_builtins.property + def reference(self) -> _ServingService_pb2.FeatureReferenceV2: ... + @_builtins.property + def timestamp(self) -> _timestamp_pb2.Timestamp: ... + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - reference: feast.serving.ServingService_pb2.FeatureReferenceV2 | None = ..., - timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - value: feast.types.Value_pb2.Value | None = ..., + reference: _ServingService_pb2.FeatureReferenceV2 | None = ..., + timestamp: _timestamp_pb2.Timestamp | None = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["reference", b"reference", "timestamp", b"timestamp", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ConnectorFeature = ConnectorFeature +Global___ConnectorFeature: _TypeAlias = ConnectorFeature # noqa: Y015 -class ConnectorFeatureList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ConnectorFeatureList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURELIST_FIELD_NUMBER: builtins.int - @property - def featureList(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectorFeature]: ... + FEATURELIST_FIELD_NUMBER: _builtins.int + @_builtins.property + def featureList(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectorFeature]: ... def __init__( self, *, - featureList: collections.abc.Iterable[global___ConnectorFeature] | None = ..., + featureList: _abc.Iterable[Global___ConnectorFeature] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["featureList", b"featureList"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["featureList", b"featureList"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___ConnectorFeatureList = ConnectorFeatureList +Global___ConnectorFeatureList: _TypeAlias = ConnectorFeatureList # noqa: Y015 -class OnlineReadRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnlineReadRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ENTITYKEYS_FIELD_NUMBER: builtins.int - VIEW_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - @property - def entityKeys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.types.EntityKey_pb2.EntityKey]: ... - view: builtins.str - @property - def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + ENTITYKEYS_FIELD_NUMBER: _builtins.int + VIEW_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + view: _builtins.str + @_builtins.property + def entityKeys(self) -> _containers.RepeatedCompositeFieldContainer[_EntityKey_pb2.EntityKey]: ... + @_builtins.property + def features(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - entityKeys: collections.abc.Iterable[feast.types.EntityKey_pb2.EntityKey] | None = ..., - view: builtins.str = ..., - features: collections.abc.Iterable[builtins.str] | None = ..., + entityKeys: _abc.Iterable[_EntityKey_pb2.EntityKey] | None = ..., + view: _builtins.str = ..., + features: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entityKeys", b"entityKeys", "features", b"features", "view", b"view"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entityKeys", b"entityKeys", "features", b"features", "view", b"view"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnlineReadRequest = OnlineReadRequest +Global___OnlineReadRequest: _TypeAlias = OnlineReadRequest # noqa: Y015 -class OnlineReadResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class OnlineReadResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - RESULTS_FIELD_NUMBER: builtins.int - @property - def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectorFeatureList]: ... + RESULTS_FIELD_NUMBER: _builtins.int + @_builtins.property + def results(self) -> _containers.RepeatedCompositeFieldContainer[Global___ConnectorFeatureList]: ... def __init__( self, *, - results: collections.abc.Iterable[global___ConnectorFeatureList] | None = ..., + results: _abc.Iterable[Global___ConnectorFeatureList] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["results", b"results"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["results", b"results"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___OnlineReadResponse = OnlineReadResponse +Global___OnlineReadResponse: _TypeAlias = OnlineReadResponse # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi b/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi index a83cd87a16e..f63321d5d36 100644 --- a/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/GrpcServer_pb2.pyi @@ -2,162 +2,182 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ -import builtins -import collections.abc -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class PushRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PushRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class FeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class TypedFeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> feast.types.Value_pb2.Value: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class TypedFeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - key: builtins.str = ..., - value: feast.types.Value_pb2.Value | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - FEATURES_FIELD_NUMBER: builtins.int - STREAM_FEATURE_VIEW_FIELD_NUMBER: builtins.int - ALLOW_REGISTRY_CACHE_FIELD_NUMBER: builtins.int - TO_FIELD_NUMBER: builtins.int - TYPED_FEATURES_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - stream_feature_view: builtins.str - allow_registry_cache: builtins.bool - to: builtins.str - @property - def typed_features(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, feast.types.Value_pb2.Value]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURES_FIELD_NUMBER: _builtins.int + STREAM_FEATURE_VIEW_FIELD_NUMBER: _builtins.int + ALLOW_REGISTRY_CACHE_FIELD_NUMBER: _builtins.int + TO_FIELD_NUMBER: _builtins.int + TYPED_FEATURES_FIELD_NUMBER: _builtins.int + stream_feature_view: _builtins.str + allow_registry_cache: _builtins.bool + to: _builtins.str + @_builtins.property + def features(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def typed_features(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.Value]: ... def __init__( self, *, - features: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - stream_feature_view: builtins.str = ..., - allow_registry_cache: builtins.bool = ..., - to: builtins.str = ..., - typed_features: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.Value] | None = ..., + features: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + stream_feature_view: _builtins.str = ..., + allow_registry_cache: _builtins.bool = ..., + to: _builtins.str = ..., + typed_features: _abc.Mapping[_builtins.str, _Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_registry_cache", b"allow_registry_cache", "features", b"features", "stream_feature_view", b"stream_feature_view", "to", b"to", "typed_features", b"typed_features"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_registry_cache", b"allow_registry_cache", "features", b"features", "stream_feature_view", b"stream_feature_view", "to", b"to", "typed_features", b"typed_features"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PushRequest = PushRequest +Global___PushRequest: _TypeAlias = PushRequest # noqa: Y015 -class PushResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class PushResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STATUS_FIELD_NUMBER: builtins.int - status: builtins.bool + STATUS_FIELD_NUMBER: _builtins.int + status: _builtins.bool def __init__( self, *, - status: builtins.bool = ..., + status: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["status", b"status"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___PushResponse = PushResponse +Global___PushResponse: _TypeAlias = PushResponse # noqa: Y015 -class WriteToOnlineStoreRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class WriteToOnlineStoreRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class FeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class TypedFeaturesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> feast.types.Value_pb2.Value: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class TypedFeaturesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - key: builtins.str = ..., - value: feast.types.Value_pb2.Value | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - FEATURES_FIELD_NUMBER: builtins.int - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - ALLOW_REGISTRY_CACHE_FIELD_NUMBER: builtins.int - TYPED_FEATURES_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - feature_view_name: builtins.str - allow_registry_cache: builtins.bool - @property - def typed_features(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, feast.types.Value_pb2.Value]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURES_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + ALLOW_REGISTRY_CACHE_FIELD_NUMBER: _builtins.int + TYPED_FEATURES_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str + allow_registry_cache: _builtins.bool + @_builtins.property + def features(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ... + @_builtins.property + def typed_features(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.Value]: ... def __init__( self, *, - features: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - feature_view_name: builtins.str = ..., - allow_registry_cache: builtins.bool = ..., - typed_features: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.Value] | None = ..., + features: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + feature_view_name: _builtins.str = ..., + allow_registry_cache: _builtins.bool = ..., + typed_features: _abc.Mapping[_builtins.str, _Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["allow_registry_cache", b"allow_registry_cache", "feature_view_name", b"feature_view_name", "features", b"features", "typed_features", b"typed_features"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["allow_registry_cache", b"allow_registry_cache", "feature_view_name", b"feature_view_name", "features", b"features", "typed_features", b"typed_features"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___WriteToOnlineStoreRequest = WriteToOnlineStoreRequest +Global___WriteToOnlineStoreRequest: _TypeAlias = WriteToOnlineStoreRequest # noqa: Y015 -class WriteToOnlineStoreResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class WriteToOnlineStoreResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - STATUS_FIELD_NUMBER: builtins.int - status: builtins.bool + STATUS_FIELD_NUMBER: _builtins.int + status: _builtins.bool def __init__( self, *, - status: builtins.bool = ..., + status: _builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["status", b"status"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___WriteToOnlineStoreResponse = WriteToOnlineStoreResponse +Global___WriteToOnlineStoreResponse: _TypeAlias = WriteToOnlineStoreResponse # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi b/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi index 1804ce0428e..5aca6dc73ab 100644 --- a/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/ServingService_pb2.pyi @@ -16,30 +16,31 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 + +from collections import abc as _abc +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _FieldStatus: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _FieldStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FieldStatus.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _FieldStatusEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_FieldStatus.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor INVALID: _FieldStatus.ValueType # 0 """Status is unset for this field.""" PRESENT: _FieldStatus.ValueType # 1 @@ -77,300 +78,345 @@ OUTSIDE_MAX_AGE: FieldStatus.ValueType # 4 """Values could be found for entity key, but field values are outside the maximum allowable range. """ -global___FieldStatus = FieldStatus +Global___FieldStatus: _TypeAlias = FieldStatus # noqa: Y015 -class GetFeastServingInfoRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeastServingInfoRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... -global___GetFeastServingInfoRequest = GetFeastServingInfoRequest +Global___GetFeastServingInfoRequest: _TypeAlias = GetFeastServingInfoRequest # noqa: Y015 -class GetFeastServingInfoResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetFeastServingInfoResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VERSION_FIELD_NUMBER: builtins.int - version: builtins.str + VERSION_FIELD_NUMBER: _builtins.int + version: _builtins.str """Feast version of this serving deployment.""" def __init__( self, *, - version: builtins.str = ..., + version: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["version", b"version"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetFeastServingInfoResponse = GetFeastServingInfoResponse +Global___GetFeastServingInfoResponse: _TypeAlias = GetFeastServingInfoResponse # noqa: Y015 -class FeatureReferenceV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureReferenceV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - FEATURE_NAME_FIELD_NUMBER: builtins.int - feature_view_name: builtins.str + FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + FEATURE_NAME_FIELD_NUMBER: _builtins.int + feature_view_name: _builtins.str """Name of the Feature View to retrieve the feature from.""" - feature_name: builtins.str + feature_name: _builtins.str """Name of the Feature to retrieve the feature from.""" def __init__( self, *, - feature_view_name: builtins.str = ..., - feature_name: builtins.str = ..., + feature_view_name: _builtins.str = ..., + feature_name: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_name", b"feature_name", "feature_view_name", b"feature_view_name"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_name", b"feature_name", "feature_view_name", b"feature_view_name"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureReferenceV2 = FeatureReferenceV2 +Global___FeatureReferenceV2: _TypeAlias = FeatureReferenceV2 # noqa: Y015 -class GetOnlineFeaturesRequestV2(google.protobuf.message.Message): +@_typing.final +class GetOnlineFeaturesRequestV2(_message.Message): """ToDo (oleksii): remove this message (since it's not used) and move EntityRow on package level""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - class EntityRow(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class EntityRow(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class FieldsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class FieldsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> feast.types.Value_pb2.Value: ... + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.Value: ... def __init__( self, *, - key: builtins.str = ..., - value: feast.types.Value_pb2.Value | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - TIMESTAMP_FIELD_NUMBER: builtins.int - FIELDS_FIELD_NUMBER: builtins.int - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + TIMESTAMP_FIELD_NUMBER: _builtins.int + FIELDS_FIELD_NUMBER: _builtins.int + @_builtins.property + def timestamp(self) -> _timestamp_pb2.Timestamp: """Request timestamp of this row. This value will be used, together with maxAge, to determine feature staleness. """ - @property - def fields(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, feast.types.Value_pb2.Value]: + + @_builtins.property + def fields(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.Value]: """Map containing mapping of entity name to entity value.""" + def __init__( self, *, - timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - fields: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.Value] | None = ..., + timestamp: _timestamp_pb2.Timestamp | None = ..., + fields: _abc.Mapping[_builtins.str, _Value_pb2.Value] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["timestamp", b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["fields", b"fields", "timestamp", b"timestamp"]) -> None: ... - - FEATURES_FIELD_NUMBER: builtins.int - ENTITY_ROWS_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - @property - def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureReferenceV2]: + _HasFieldArgType: _TypeAlias = _typing.Literal["timestamp", b"timestamp"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["fields", b"fields", "timestamp", b"timestamp"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURES_FIELD_NUMBER: _builtins.int + ENTITY_ROWS_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + project: _builtins.str + """Optional field to specify project name override. If specified, uses the + given project for retrieval. Overrides the projects specified in + Feature References if both are specified. + """ + @_builtins.property + def features(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureReferenceV2]: """List of features that are being retrieved""" - @property - def entity_rows(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetOnlineFeaturesRequestV2.EntityRow]: + + @_builtins.property + def entity_rows(self) -> _containers.RepeatedCompositeFieldContainer[Global___GetOnlineFeaturesRequestV2.EntityRow]: """List of entity rows, containing entity id and timestamp data. Used during retrieval of feature rows and for joining feature rows into a final dataset """ - project: builtins.str - """Optional field to specify project name override. If specified, uses the - given project for retrieval. Overrides the projects specified in - Feature References if both are specified. - """ + def __init__( self, *, - features: collections.abc.Iterable[global___FeatureReferenceV2] | None = ..., - entity_rows: collections.abc.Iterable[global___GetOnlineFeaturesRequestV2.EntityRow] | None = ..., - project: builtins.str = ..., + features: _abc.Iterable[Global___FeatureReferenceV2] | None = ..., + entity_rows: _abc.Iterable[Global___GetOnlineFeaturesRequestV2.EntityRow] | None = ..., + project: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entity_rows", b"entity_rows", "features", b"features", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entity_rows", b"entity_rows", "features", b"features", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnlineFeaturesRequestV2 = GetOnlineFeaturesRequestV2 +Global___GetOnlineFeaturesRequestV2: _TypeAlias = GetOnlineFeaturesRequestV2 # noqa: Y015 -class FeatureList(google.protobuf.message.Message): +@_typing.final +class FeatureList(_message.Message): """In JSON "val" field can be omitted""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.str] | None = ..., + val: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureList = FeatureList +Global___FeatureList: _TypeAlias = FeatureList # noqa: Y015 -class GetOnlineFeaturesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetOnlineFeaturesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class EntitiesEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class EntitiesEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> feast.types.Value_pb2.RepeatedValue: ... + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.RepeatedValue: ... def __init__( self, *, - key: builtins.str = ..., - value: feast.types.Value_pb2.RepeatedValue | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.RepeatedValue | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - class RequestContextEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> feast.types.Value_pb2.RepeatedValue: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + @_typing.final + class RequestContextEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> _Value_pb2.RepeatedValue: ... def __init__( self, *, - key: builtins.str = ..., - value: feast.types.Value_pb2.RepeatedValue | None = ..., + key: _builtins.str = ..., + value: _Value_pb2.RepeatedValue | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - FEATURE_SERVICE_FIELD_NUMBER: builtins.int - FEATURES_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int - FULL_FEATURE_NAMES_FIELD_NUMBER: builtins.int - REQUEST_CONTEXT_FIELD_NUMBER: builtins.int - INCLUDE_FEATURE_VIEW_VERSION_METADATA_FIELD_NUMBER: builtins.int - feature_service: builtins.str - @property - def features(self) -> global___FeatureList: ... - @property - def entities(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, feast.types.Value_pb2.RepeatedValue]: + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + FEATURE_SERVICE_FIELD_NUMBER: _builtins.int + FEATURES_FIELD_NUMBER: _builtins.int + ENTITIES_FIELD_NUMBER: _builtins.int + FULL_FEATURE_NAMES_FIELD_NUMBER: _builtins.int + REQUEST_CONTEXT_FIELD_NUMBER: _builtins.int + INCLUDE_FEATURE_VIEW_VERSION_METADATA_FIELD_NUMBER: _builtins.int + feature_service: _builtins.str + full_feature_names: _builtins.bool + include_feature_view_version_metadata: _builtins.bool + """Whether to include feature view version metadata in the response""" + @_builtins.property + def features(self) -> Global___FeatureList: ... + @_builtins.property + def entities(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.RepeatedValue]: """The entity data is specified in a columnar format A map of entity name -> list of values """ - full_feature_names: builtins.bool - @property - def request_context(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, feast.types.Value_pb2.RepeatedValue]: + + @_builtins.property + def request_context(self) -> _containers.MessageMap[_builtins.str, _Value_pb2.RepeatedValue]: """Context for OnDemand Feature Transformation (was moved to dedicated parameter to avoid unnecessary separation logic on serving side) A map of variable name -> list of values """ - include_feature_view_version_metadata: builtins.bool - """Whether to include feature view version metadata in the response""" + def __init__( self, *, - feature_service: builtins.str = ..., - features: global___FeatureList | None = ..., - entities: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.RepeatedValue] | None = ..., - full_feature_names: builtins.bool = ..., - request_context: collections.abc.Mapping[builtins.str, feast.types.Value_pb2.RepeatedValue] | None = ..., - include_feature_view_version_metadata: builtins.bool = ..., + feature_service: _builtins.str = ..., + features: Global___FeatureList | None = ..., + entities: _abc.Mapping[_builtins.str, _Value_pb2.RepeatedValue] | None = ..., + full_feature_names: _builtins.bool = ..., + request_context: _abc.Mapping[_builtins.str, _Value_pb2.RepeatedValue] | None = ..., + include_feature_view_version_metadata: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_service", b"feature_service", "features", b"features", "kind", b"kind"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["entities", b"entities", "feature_service", b"feature_service", "features", b"features", "full_feature_names", b"full_feature_names", "include_feature_view_version_metadata", b"include_feature_view_version_metadata", "kind", b"kind", "request_context", b"request_context"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["kind", b"kind"]) -> typing_extensions.Literal["feature_service", "features"] | None: ... - -global___GetOnlineFeaturesRequest = GetOnlineFeaturesRequest - -class GetOnlineFeaturesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class FeatureVector(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - STATUSES_FIELD_NUMBER: builtins.int - EVENT_TIMESTAMPS_FIELD_NUMBER: builtins.int - @property - def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.types.Value_pb2.Value]: ... - @property - def statuses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___FieldStatus.ValueType]: ... - @property - def event_timestamps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.timestamp_pb2.Timestamp]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_service", b"feature_service", "features", b"features", "kind", b"kind"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entities", b"entities", "feature_service", b"feature_service", "features", b"features", "full_feature_names", b"full_feature_names", "include_feature_view_version_metadata", b"include_feature_view_version_metadata", "kind", b"kind", "request_context", b"request_context"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: _TypeAlias = _typing.Literal["feature_service", "features"] # noqa: Y015 + _WhichOneofArgType_kind: _TypeAlias = _typing.Literal["kind", b"kind"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___GetOnlineFeaturesRequest: _TypeAlias = GetOnlineFeaturesRequest # noqa: Y015 + +@_typing.final +class GetOnlineFeaturesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + @_typing.final + class FeatureVector(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + VALUES_FIELD_NUMBER: _builtins.int + STATUSES_FIELD_NUMBER: _builtins.int + EVENT_TIMESTAMPS_FIELD_NUMBER: _builtins.int + @_builtins.property + def values(self) -> _containers.RepeatedCompositeFieldContainer[_Value_pb2.Value]: ... + @_builtins.property + def statuses(self) -> _containers.RepeatedScalarFieldContainer[Global___FieldStatus.ValueType]: ... + @_builtins.property + def event_timestamps(self) -> _containers.RepeatedCompositeFieldContainer[_timestamp_pb2.Timestamp]: ... def __init__( self, *, - values: collections.abc.Iterable[feast.types.Value_pb2.Value] | None = ..., - statuses: collections.abc.Iterable[global___FieldStatus.ValueType] | None = ..., - event_timestamps: collections.abc.Iterable[google.protobuf.timestamp_pb2.Timestamp] | None = ..., + values: _abc.Iterable[_Value_pb2.Value] | None = ..., + statuses: _abc.Iterable[Global___FieldStatus.ValueType] | None = ..., + event_timestamps: _abc.Iterable[_timestamp_pb2.Timestamp] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["event_timestamps", b"event_timestamps", "statuses", b"statuses", "values", b"values"]) -> None: ... - - METADATA_FIELD_NUMBER: builtins.int - RESULTS_FIELD_NUMBER: builtins.int - STATUS_FIELD_NUMBER: builtins.int - @property - def metadata(self) -> global___GetOnlineFeaturesResponseMetadata: ... - @property - def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetOnlineFeaturesResponse.FeatureVector]: + _ClearFieldArgType: _TypeAlias = _typing.Literal["event_timestamps", b"event_timestamps", "statuses", b"statuses", "values", b"values"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + METADATA_FIELD_NUMBER: _builtins.int + RESULTS_FIELD_NUMBER: _builtins.int + STATUS_FIELD_NUMBER: _builtins.int + status: _builtins.bool + @_builtins.property + def metadata(self) -> Global___GetOnlineFeaturesResponseMetadata: ... + @_builtins.property + def results(self) -> _containers.RepeatedCompositeFieldContainer[Global___GetOnlineFeaturesResponse.FeatureVector]: """Length of "results" array should match length of requested features. We also preserve the same order of features here as in metadata.feature_names """ - status: builtins.bool + def __init__( self, *, - metadata: global___GetOnlineFeaturesResponseMetadata | None = ..., - results: collections.abc.Iterable[global___GetOnlineFeaturesResponse.FeatureVector] | None = ..., - status: builtins.bool = ..., + metadata: Global___GetOnlineFeaturesResponseMetadata | None = ..., + results: _abc.Iterable[Global___GetOnlineFeaturesResponse.FeatureVector] | None = ..., + status: _builtins.bool = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "results", b"results", "status", b"status"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["metadata", b"metadata", "results", b"results", "status", b"status"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnlineFeaturesResponse = GetOnlineFeaturesResponse +Global___GetOnlineFeaturesResponse: _TypeAlias = GetOnlineFeaturesResponse # noqa: Y015 -class FeatureViewMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FeatureViewMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - name: builtins.str + NAME_FIELD_NUMBER: _builtins.int + VERSION_FIELD_NUMBER: _builtins.int + name: _builtins.str """Feature view name (e.g., "driver_stats")""" - version: builtins.int + version: _builtins.int """Version number (e.g., 2)""" def __init__( self, *, - name: builtins.str = ..., - version: builtins.int = ..., + name: _builtins.str = ..., + version: _builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "version", b"version"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["name", b"name", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FeatureViewMetadata = FeatureViewMetadata +Global___FeatureViewMetadata: _TypeAlias = FeatureViewMetadata # noqa: Y015 -class GetOnlineFeaturesResponseMetadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetOnlineFeaturesResponseMetadata(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - FEATURE_NAMES_FIELD_NUMBER: builtins.int - FEATURE_VIEW_METADATA_FIELD_NUMBER: builtins.int - @property - def feature_names(self) -> global___FeatureList: + FEATURE_NAMES_FIELD_NUMBER: _builtins.int + FEATURE_VIEW_METADATA_FIELD_NUMBER: _builtins.int + @_builtins.property + def feature_names(self) -> Global___FeatureList: """Clean feature names without @v2 syntax""" - @property - def feature_view_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FeatureViewMetadata]: + + @_builtins.property + def feature_view_metadata(self) -> _containers.RepeatedCompositeFieldContainer[Global___FeatureViewMetadata]: """Only populated when requested""" + def __init__( self, *, - feature_names: global___FeatureList | None = ..., - feature_view_metadata: collections.abc.Iterable[global___FeatureViewMetadata] | None = ..., + feature_names: Global___FeatureList | None = ..., + feature_view_metadata: _abc.Iterable[Global___FeatureViewMetadata] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["feature_names", b"feature_names"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_names", b"feature_names", "feature_view_metadata", b"feature_view_metadata"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["feature_names", b"feature_names"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["feature_names", b"feature_names", "feature_view_metadata", b"feature_view_metadata"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___GetOnlineFeaturesResponseMetadata = GetOnlineFeaturesResponseMetadata +Global___GetOnlineFeaturesResponseMetadata: _TypeAlias = GetOnlineFeaturesResponseMetadata # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi b/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi index 3e0752b7bdd..f21ebfd05f8 100644 --- a/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi +++ b/sdk/python/feast/protos/feast/serving/TransformationService_pb2.pyi @@ -16,26 +16,27 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _TransformationServiceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _TransformationServiceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TransformationServiceType.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _TransformationServiceTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TransformationServiceType.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor TRANSFORMATION_SERVICE_TYPE_INVALID: _TransformationServiceType.ValueType # 0 TRANSFORMATION_SERVICE_TYPE_PYTHON: _TransformationServiceType.ValueType # 1 TRANSFORMATION_SERVICE_TYPE_CUSTOM: _TransformationServiceType.ValueType # 100 @@ -45,92 +46,106 @@ class TransformationServiceType(_TransformationServiceType, metaclass=_Transform TRANSFORMATION_SERVICE_TYPE_INVALID: TransformationServiceType.ValueType # 0 TRANSFORMATION_SERVICE_TYPE_PYTHON: TransformationServiceType.ValueType # 1 TRANSFORMATION_SERVICE_TYPE_CUSTOM: TransformationServiceType.ValueType # 100 -global___TransformationServiceType = TransformationServiceType +Global___TransformationServiceType: _TypeAlias = TransformationServiceType # noqa: Y015 -class ValueType(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ValueType(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - ARROW_VALUE_FIELD_NUMBER: builtins.int - arrow_value: builtins.bytes + ARROW_VALUE_FIELD_NUMBER: _builtins.int + arrow_value: _builtins.bytes """Having a oneOf provides forward compatibility if we need to support compound types that are not supported by arrow natively. """ def __init__( self, *, - arrow_value: builtins.bytes = ..., + arrow_value: _builtins.bytes = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["arrow_value", b"arrow_value", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["arrow_value", b"arrow_value", "value", b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["arrow_value"] | None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["arrow_value", b"arrow_value", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["arrow_value", b"arrow_value", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_value: _TypeAlias = _typing.Literal["arrow_value"] # noqa: Y015 + _WhichOneofArgType_value: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_value) -> _WhichOneofReturnType_value | None: ... -global___ValueType = ValueType +Global___ValueType: _TypeAlias = ValueType # noqa: Y015 -class GetTransformationServiceInfoRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetTransformationServiceInfoRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor def __init__( self, ) -> None: ... -global___GetTransformationServiceInfoRequest = GetTransformationServiceInfoRequest +Global___GetTransformationServiceInfoRequest: _TypeAlias = GetTransformationServiceInfoRequest # noqa: Y015 -class GetTransformationServiceInfoResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class GetTransformationServiceInfoResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VERSION_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - TRANSFORMATION_SERVICE_TYPE_DETAILS_FIELD_NUMBER: builtins.int - version: builtins.str + VERSION_FIELD_NUMBER: _builtins.int + TYPE_FIELD_NUMBER: _builtins.int + TRANSFORMATION_SERVICE_TYPE_DETAILS_FIELD_NUMBER: _builtins.int + version: _builtins.str """Feast version of this transformation service deployment.""" - type: global___TransformationServiceType.ValueType + type: Global___TransformationServiceType.ValueType """Type of transformation service deployment. This is either Python, or custom""" - transformation_service_type_details: builtins.str + transformation_service_type_details: _builtins.str def __init__( self, *, - version: builtins.str = ..., - type: global___TransformationServiceType.ValueType = ..., - transformation_service_type_details: builtins.str = ..., + version: _builtins.str = ..., + type: Global___TransformationServiceType.ValueType = ..., + transformation_service_type_details: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["transformation_service_type_details", b"transformation_service_type_details", "type", b"type", "version", b"version"]) -> None: ... - -global___GetTransformationServiceInfoResponse = GetTransformationServiceInfoResponse - -class TransformFeaturesRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ON_DEMAND_FEATURE_VIEW_NAME_FIELD_NUMBER: builtins.int - PROJECT_FIELD_NUMBER: builtins.int - TRANSFORMATION_INPUT_FIELD_NUMBER: builtins.int - on_demand_feature_view_name: builtins.str - project: builtins.str - @property - def transformation_input(self) -> global___ValueType: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["transformation_service_type_details", b"transformation_service_type_details", "type", b"type", "version", b"version"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___GetTransformationServiceInfoResponse: _TypeAlias = GetTransformationServiceInfoResponse # noqa: Y015 + +@_typing.final +class TransformFeaturesRequest(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + ON_DEMAND_FEATURE_VIEW_NAME_FIELD_NUMBER: _builtins.int + PROJECT_FIELD_NUMBER: _builtins.int + TRANSFORMATION_INPUT_FIELD_NUMBER: _builtins.int + on_demand_feature_view_name: _builtins.str + project: _builtins.str + @_builtins.property + def transformation_input(self) -> Global___ValueType: ... def __init__( self, *, - on_demand_feature_view_name: builtins.str = ..., - project: builtins.str = ..., - transformation_input: global___ValueType | None = ..., + on_demand_feature_view_name: _builtins.str = ..., + project: _builtins.str = ..., + transformation_input: Global___ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["transformation_input", b"transformation_input"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["on_demand_feature_view_name", b"on_demand_feature_view_name", "project", b"project", "transformation_input", b"transformation_input"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["transformation_input", b"transformation_input"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["on_demand_feature_view_name", b"on_demand_feature_view_name", "project", b"project", "transformation_input", b"transformation_input"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TransformFeaturesRequest = TransformFeaturesRequest +Global___TransformFeaturesRequest: _TypeAlias = TransformFeaturesRequest # noqa: Y015 -class TransformFeaturesResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class TransformFeaturesResponse(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - TRANSFORMATION_OUTPUT_FIELD_NUMBER: builtins.int - @property - def transformation_output(self) -> global___ValueType: ... + TRANSFORMATION_OUTPUT_FIELD_NUMBER: _builtins.int + @_builtins.property + def transformation_output(self) -> Global___ValueType: ... def __init__( self, *, - transformation_output: global___ValueType | None = ..., + transformation_output: Global___ValueType | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["transformation_output", b"transformation_output"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["transformation_output", b"transformation_output"]) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["transformation_output", b"transformation_output"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["transformation_output", b"transformation_output"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___TransformFeaturesResponse = TransformFeaturesResponse +Global___TransformFeaturesResponse: _TypeAlias = TransformFeaturesResponse # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi b/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi index 74cc2b07f0a..4ff2f7c6d14 100644 --- a/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi +++ b/sdk/python/feast/protos/feast/storage/Redis_pb2.pyi @@ -16,39 +16,43 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class RedisKeyV2(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROJECT_FIELD_NUMBER: builtins.int - ENTITY_NAMES_FIELD_NUMBER: builtins.int - ENTITY_VALUES_FIELD_NUMBER: builtins.int - project: builtins.str - @property - def entity_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def entity_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.types.Value_pb2.Value]: ... + from typing_extensions import TypeAlias as _TypeAlias + +DESCRIPTOR: _descriptor.FileDescriptor + +@_typing.final +class RedisKeyV2(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + PROJECT_FIELD_NUMBER: _builtins.int + ENTITY_NAMES_FIELD_NUMBER: _builtins.int + ENTITY_VALUES_FIELD_NUMBER: _builtins.int + project: _builtins.str + @_builtins.property + def entity_names(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def entity_values(self) -> _containers.RepeatedCompositeFieldContainer[_Value_pb2.Value]: ... def __init__( self, *, - project: builtins.str = ..., - entity_names: collections.abc.Iterable[builtins.str] | None = ..., - entity_values: collections.abc.Iterable[feast.types.Value_pb2.Value] | None = ..., + project: _builtins.str = ..., + entity_names: _abc.Iterable[_builtins.str] | None = ..., + entity_values: _abc.Iterable[_Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entity_names", b"entity_names", "entity_values", b"entity_values", "project", b"project"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entity_names", b"entity_names", "entity_values", b"entity_values", "project", b"project"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___RedisKeyV2 = RedisKeyV2 +Global___RedisKeyV2: _TypeAlias = RedisKeyV2 # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi b/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi index fe65e0c1b32..b3c1c18549b 100644 --- a/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/EntityKey_pb2.pyi @@ -16,36 +16,40 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class EntityKey(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class EntityKey(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - JOIN_KEYS_FIELD_NUMBER: builtins.int - ENTITY_VALUES_FIELD_NUMBER: builtins.int - @property - def join_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def entity_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.types.Value_pb2.Value]: ... + JOIN_KEYS_FIELD_NUMBER: _builtins.int + ENTITY_VALUES_FIELD_NUMBER: _builtins.int + @_builtins.property + def join_keys(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... + @_builtins.property + def entity_values(self) -> _containers.RepeatedCompositeFieldContainer[_Value_pb2.Value]: ... def __init__( self, *, - join_keys: collections.abc.Iterable[builtins.str] | None = ..., - entity_values: collections.abc.Iterable[feast.types.Value_pb2.Value] | None = ..., + join_keys: _abc.Iterable[_builtins.str] | None = ..., + entity_values: _abc.Iterable[_Value_pb2.Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["entity_values", b"entity_values", "join_keys", b"join_keys"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["entity_values", b"entity_values", "join_keys", b"join_keys"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___EntityKey = EntityKey +Global___EntityKey: _TypeAlias = EntityKey # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/types/Field_pb2.pyi b/sdk/python/feast/protos/feast/types/Field_pb2.pyi index 28a21942378..0a98517bec2 100644 --- a/sdk/python/feast/protos/feast/types/Field_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/Field_pb2.pyi @@ -16,58 +16,65 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import feast.types.Value_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message + +from collections import abc as _abc +from feast.types import Value_pb2 as _Value_pb2 # type: ignore[attr-defined] +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +import builtins as _builtins import sys +import typing as _typing -if sys.version_info >= (3, 8): - import typing as typing_extensions +if sys.version_info >= (3, 10): + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor -class Field(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Field(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class TagsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class TagsEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + value: _builtins.str def __init__( self, *, - key: builtins.str = ..., - value: builtins.str = ..., + key: _builtins.str = ..., + value: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - NAME_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - TAGS_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - name: builtins.str - value: feast.types.Value_pb2.ValueType.Enum.ValueType - @property - def tags(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """Tags for user defined metadata on a field""" - description: builtins.str + NAME_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + TAGS_FIELD_NUMBER: _builtins.int + DESCRIPTION_FIELD_NUMBER: _builtins.int + name: _builtins.str + value: _Value_pb2.ValueType.Enum.ValueType + description: _builtins.str """Description of the field.""" + @_builtins.property + def tags(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: + """Tags for user defined metadata on a field""" + def __init__( self, *, - name: builtins.str = ..., - value: feast.types.Value_pb2.ValueType.Enum.ValueType = ..., - tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - description: builtins.str = ..., + name: _builtins.str = ..., + value: _Value_pb2.ValueType.Enum.ValueType = ..., + tags: _abc.Mapping[_builtins.str, _builtins.str] | None = ..., + description: _builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "name", b"name", "tags", b"tags", "value", b"value"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["description", b"description", "name", b"name", "tags", b"tags", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Field = Field +Global___Field: _TypeAlias = Field # noqa: Y015 diff --git a/sdk/python/feast/protos/feast/types/Value_pb2.py b/sdk/python/feast/protos/feast/types/Value_pb2.py index 3f6e55d3005..e8c67b76c3f 100644 --- a/sdk/python/feast/protos/feast/types/Value_pb2.py +++ b/sdk/python/feast/protos/feast/types/Value_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x66\x65\x61st/types/Value.proto\x12\x0b\x66\x65\x61st.types\"\x92\x05\n\tValueType\"\x84\x05\n\x04\x45num\x12\x0b\n\x07INVALID\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\n\n\x06STRING\x10\x02\x12\t\n\x05INT32\x10\x03\x12\t\n\x05INT64\x10\x04\x12\n\n\x06\x44OUBLE\x10\x05\x12\t\n\x05\x46LOAT\x10\x06\x12\x08\n\x04\x42OOL\x10\x07\x12\x12\n\x0eUNIX_TIMESTAMP\x10\x08\x12\x0e\n\nBYTES_LIST\x10\x0b\x12\x0f\n\x0bSTRING_LIST\x10\x0c\x12\x0e\n\nINT32_LIST\x10\r\x12\x0e\n\nINT64_LIST\x10\x0e\x12\x0f\n\x0b\x44OUBLE_LIST\x10\x0f\x12\x0e\n\nFLOAT_LIST\x10\x10\x12\r\n\tBOOL_LIST\x10\x11\x12\x17\n\x13UNIX_TIMESTAMP_LIST\x10\x12\x12\x08\n\x04NULL\x10\x13\x12\x07\n\x03MAP\x10\x14\x12\x0c\n\x08MAP_LIST\x10\x15\x12\r\n\tBYTES_SET\x10\x16\x12\x0e\n\nSTRING_SET\x10\x17\x12\r\n\tINT32_SET\x10\x18\x12\r\n\tINT64_SET\x10\x19\x12\x0e\n\nDOUBLE_SET\x10\x1a\x12\r\n\tFLOAT_SET\x10\x1b\x12\x0c\n\x08\x42OOL_SET\x10\x1c\x12\x16\n\x12UNIX_TIMESTAMP_SET\x10\x1d\x12\x08\n\x04JSON\x10 \x12\r\n\tJSON_LIST\x10!\x12\n\n\x06STRUCT\x10\"\x12\x0f\n\x0bSTRUCT_LIST\x10#\x12\x08\n\x04UUID\x10$\x12\r\n\tTIME_UUID\x10%\x12\r\n\tUUID_LIST\x10&\x12\x12\n\x0eTIME_UUID_LIST\x10\'\x12\x0c\n\x08UUID_SET\x10(\x12\x11\n\rTIME_UUID_SET\x10)\x12\x0e\n\nVALUE_LIST\x10*\x12\r\n\tVALUE_SET\x10+\x12\x0b\n\x07\x44\x45\x43IMAL\x10,\x12\x10\n\x0c\x44\x45\x43IMAL_LIST\x10-\x12\x0f\n\x0b\x44\x45\x43IMAL_SET\x10.\"\xd8\r\n\x05Value\x12\x13\n\tbytes_val\x18\x01 \x01(\x0cH\x00\x12\x14\n\nstring_val\x18\x02 \x01(\tH\x00\x12\x13\n\tint32_val\x18\x03 \x01(\x05H\x00\x12\x13\n\tint64_val\x18\x04 \x01(\x03H\x00\x12\x14\n\ndouble_val\x18\x05 \x01(\x01H\x00\x12\x13\n\tfloat_val\x18\x06 \x01(\x02H\x00\x12\x12\n\x08\x62ool_val\x18\x07 \x01(\x08H\x00\x12\x1c\n\x12unix_timestamp_val\x18\x08 \x01(\x03H\x00\x12\x30\n\x0e\x62ytes_list_val\x18\x0b \x01(\x0b\x32\x16.feast.types.BytesListH\x00\x12\x32\n\x0fstring_list_val\x18\x0c \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12\x30\n\x0eint32_list_val\x18\r \x01(\x0b\x32\x16.feast.types.Int32ListH\x00\x12\x30\n\x0eint64_list_val\x18\x0e \x01(\x0b\x32\x16.feast.types.Int64ListH\x00\x12\x32\n\x0f\x64ouble_list_val\x18\x0f \x01(\x0b\x32\x17.feast.types.DoubleListH\x00\x12\x30\n\x0e\x66loat_list_val\x18\x10 \x01(\x0b\x32\x16.feast.types.FloatListH\x00\x12.\n\rbool_list_val\x18\x11 \x01(\x0b\x32\x15.feast.types.BoolListH\x00\x12\x39\n\x17unix_timestamp_list_val\x18\x12 \x01(\x0b\x32\x16.feast.types.Int64ListH\x00\x12%\n\x08null_val\x18\x13 \x01(\x0e\x32\x11.feast.types.NullH\x00\x12#\n\x07map_val\x18\x14 \x01(\x0b\x32\x10.feast.types.MapH\x00\x12,\n\x0cmap_list_val\x18\x15 \x01(\x0b\x32\x14.feast.types.MapListH\x00\x12.\n\rbytes_set_val\x18\x16 \x01(\x0b\x32\x15.feast.types.BytesSetH\x00\x12\x30\n\x0estring_set_val\x18\x17 \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x12.\n\rint32_set_val\x18\x18 \x01(\x0b\x32\x15.feast.types.Int32SetH\x00\x12.\n\rint64_set_val\x18\x19 \x01(\x0b\x32\x15.feast.types.Int64SetH\x00\x12\x30\n\x0e\x64ouble_set_val\x18\x1a \x01(\x0b\x32\x16.feast.types.DoubleSetH\x00\x12.\n\rfloat_set_val\x18\x1b \x01(\x0b\x32\x15.feast.types.FloatSetH\x00\x12,\n\x0c\x62ool_set_val\x18\x1c \x01(\x0b\x32\x14.feast.types.BoolSetH\x00\x12\x37\n\x16unix_timestamp_set_val\x18\x1d \x01(\x0b\x32\x15.feast.types.Int64SetH\x00\x12\x12\n\x08json_val\x18 \x01(\tH\x00\x12\x30\n\rjson_list_val\x18! \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12&\n\nstruct_val\x18\" \x01(\x0b\x32\x10.feast.types.MapH\x00\x12/\n\x0fstruct_list_val\x18# \x01(\x0b\x32\x14.feast.types.MapListH\x00\x12\x12\n\x08uuid_val\x18$ \x01(\tH\x00\x12\x17\n\rtime_uuid_val\x18% \x01(\tH\x00\x12\x30\n\ruuid_list_val\x18& \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12\x35\n\x12time_uuid_list_val\x18\' \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12.\n\x0cuuid_set_val\x18( \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x12\x33\n\x11time_uuid_set_val\x18) \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x12.\n\x08list_val\x18* \x01(\x0b\x32\x1a.feast.types.RepeatedValueH\x00\x12-\n\x07set_val\x18+ \x01(\x0b\x32\x1a.feast.types.RepeatedValueH\x00\x12\x15\n\x0b\x64\x65\x63imal_val\x18, \x01(\tH\x00\x12\x33\n\x10\x64\x65\x63imal_list_val\x18- \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12\x31\n\x0f\x64\x65\x63imal_set_val\x18. \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x42\x05\n\x03val\"\x18\n\tBytesList\x12\x0b\n\x03val\x18\x01 \x03(\x0c\"\x19\n\nStringList\x12\x0b\n\x03val\x18\x01 \x03(\t\"\x18\n\tInt32List\x12\x0b\n\x03val\x18\x01 \x03(\x05\"\x18\n\tInt64List\x12\x0b\n\x03val\x18\x01 \x03(\x03\"\x19\n\nDoubleList\x12\x0b\n\x03val\x18\x01 \x03(\x01\"\x18\n\tFloatList\x12\x0b\n\x03val\x18\x01 \x03(\x02\"\x17\n\x08\x42oolList\x12\x0b\n\x03val\x18\x01 \x03(\x08\"\x17\n\x08\x42ytesSet\x12\x0b\n\x03val\x18\x01 \x03(\x0c\"\x18\n\tStringSet\x12\x0b\n\x03val\x18\x01 \x03(\t\"\x17\n\x08Int32Set\x12\x0b\n\x03val\x18\x01 \x03(\x05\"\x17\n\x08Int64Set\x12\x0b\n\x03val\x18\x01 \x03(\x03\"\x18\n\tDoubleSet\x12\x0b\n\x03val\x18\x01 \x03(\x01\"\x17\n\x08\x46loatSet\x12\x0b\n\x03val\x18\x01 \x03(\x02\"\x16\n\x07\x42oolSet\x12\x0b\n\x03val\x18\x01 \x03(\x08\"m\n\x03Map\x12&\n\x03val\x18\x01 \x03(\x0b\x32\x19.feast.types.Map.ValEntry\x1a>\n\x08ValEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.feast.types.Value:\x02\x38\x01\"(\n\x07MapList\x12\x1d\n\x03val\x18\x01 \x03(\x0b\x32\x10.feast.types.Map\"0\n\rRepeatedValue\x12\x1f\n\x03val\x18\x01 \x03(\x0b\x32\x12.feast.types.Value*\x10\n\x04Null\x12\x08\n\x04NULL\x10\x00\x42Q\n\x11\x66\x65\x61st.proto.typesB\nValueProtoZ0github.com/feast-dev/feast/go/protos/feast/typesb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x66\x65\x61st/types/Value.proto\x12\x0b\x66\x65\x61st.types\"\xa2\x05\n\tValueType\"\x94\x05\n\x04\x45num\x12\x0b\n\x07INVALID\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\n\n\x06STRING\x10\x02\x12\t\n\x05INT32\x10\x03\x12\t\n\x05INT64\x10\x04\x12\n\n\x06\x44OUBLE\x10\x05\x12\t\n\x05\x46LOAT\x10\x06\x12\x08\n\x04\x42OOL\x10\x07\x12\x12\n\x0eUNIX_TIMESTAMP\x10\x08\x12\x0e\n\nBYTES_LIST\x10\x0b\x12\x0f\n\x0bSTRING_LIST\x10\x0c\x12\x0e\n\nINT32_LIST\x10\r\x12\x0e\n\nINT64_LIST\x10\x0e\x12\x0f\n\x0b\x44OUBLE_LIST\x10\x0f\x12\x0e\n\nFLOAT_LIST\x10\x10\x12\r\n\tBOOL_LIST\x10\x11\x12\x17\n\x13UNIX_TIMESTAMP_LIST\x10\x12\x12\x08\n\x04NULL\x10\x13\x12\x07\n\x03MAP\x10\x14\x12\x0c\n\x08MAP_LIST\x10\x15\x12\r\n\tBYTES_SET\x10\x16\x12\x0e\n\nSTRING_SET\x10\x17\x12\r\n\tINT32_SET\x10\x18\x12\r\n\tINT64_SET\x10\x19\x12\x0e\n\nDOUBLE_SET\x10\x1a\x12\r\n\tFLOAT_SET\x10\x1b\x12\x0c\n\x08\x42OOL_SET\x10\x1c\x12\x16\n\x12UNIX_TIMESTAMP_SET\x10\x1d\x12\x08\n\x04JSON\x10 \x12\r\n\tJSON_LIST\x10!\x12\n\n\x06STRUCT\x10\"\x12\x0f\n\x0bSTRUCT_LIST\x10#\x12\x08\n\x04UUID\x10$\x12\r\n\tTIME_UUID\x10%\x12\r\n\tUUID_LIST\x10&\x12\x12\n\x0eTIME_UUID_LIST\x10\'\x12\x0c\n\x08UUID_SET\x10(\x12\x11\n\rTIME_UUID_SET\x10)\x12\x0e\n\nVALUE_LIST\x10*\x12\r\n\tVALUE_SET\x10+\x12\x0b\n\x07\x44\x45\x43IMAL\x10,\x12\x10\n\x0c\x44\x45\x43IMAL_LIST\x10-\x12\x0f\n\x0b\x44\x45\x43IMAL_SET\x10.\x12\x0e\n\nSCALAR_MAP\x10/\"\x8a\x0e\n\x05Value\x12\x13\n\tbytes_val\x18\x01 \x01(\x0cH\x00\x12\x14\n\nstring_val\x18\x02 \x01(\tH\x00\x12\x13\n\tint32_val\x18\x03 \x01(\x05H\x00\x12\x13\n\tint64_val\x18\x04 \x01(\x03H\x00\x12\x14\n\ndouble_val\x18\x05 \x01(\x01H\x00\x12\x13\n\tfloat_val\x18\x06 \x01(\x02H\x00\x12\x12\n\x08\x62ool_val\x18\x07 \x01(\x08H\x00\x12\x1c\n\x12unix_timestamp_val\x18\x08 \x01(\x03H\x00\x12\x30\n\x0e\x62ytes_list_val\x18\x0b \x01(\x0b\x32\x16.feast.types.BytesListH\x00\x12\x32\n\x0fstring_list_val\x18\x0c \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12\x30\n\x0eint32_list_val\x18\r \x01(\x0b\x32\x16.feast.types.Int32ListH\x00\x12\x30\n\x0eint64_list_val\x18\x0e \x01(\x0b\x32\x16.feast.types.Int64ListH\x00\x12\x32\n\x0f\x64ouble_list_val\x18\x0f \x01(\x0b\x32\x17.feast.types.DoubleListH\x00\x12\x30\n\x0e\x66loat_list_val\x18\x10 \x01(\x0b\x32\x16.feast.types.FloatListH\x00\x12.\n\rbool_list_val\x18\x11 \x01(\x0b\x32\x15.feast.types.BoolListH\x00\x12\x39\n\x17unix_timestamp_list_val\x18\x12 \x01(\x0b\x32\x16.feast.types.Int64ListH\x00\x12%\n\x08null_val\x18\x13 \x01(\x0e\x32\x11.feast.types.NullH\x00\x12#\n\x07map_val\x18\x14 \x01(\x0b\x32\x10.feast.types.MapH\x00\x12,\n\x0cmap_list_val\x18\x15 \x01(\x0b\x32\x14.feast.types.MapListH\x00\x12.\n\rbytes_set_val\x18\x16 \x01(\x0b\x32\x15.feast.types.BytesSetH\x00\x12\x30\n\x0estring_set_val\x18\x17 \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x12.\n\rint32_set_val\x18\x18 \x01(\x0b\x32\x15.feast.types.Int32SetH\x00\x12.\n\rint64_set_val\x18\x19 \x01(\x0b\x32\x15.feast.types.Int64SetH\x00\x12\x30\n\x0e\x64ouble_set_val\x18\x1a \x01(\x0b\x32\x16.feast.types.DoubleSetH\x00\x12.\n\rfloat_set_val\x18\x1b \x01(\x0b\x32\x15.feast.types.FloatSetH\x00\x12,\n\x0c\x62ool_set_val\x18\x1c \x01(\x0b\x32\x14.feast.types.BoolSetH\x00\x12\x37\n\x16unix_timestamp_set_val\x18\x1d \x01(\x0b\x32\x15.feast.types.Int64SetH\x00\x12\x12\n\x08json_val\x18 \x01(\tH\x00\x12\x30\n\rjson_list_val\x18! \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12&\n\nstruct_val\x18\" \x01(\x0b\x32\x10.feast.types.MapH\x00\x12/\n\x0fstruct_list_val\x18# \x01(\x0b\x32\x14.feast.types.MapListH\x00\x12\x12\n\x08uuid_val\x18$ \x01(\tH\x00\x12\x17\n\rtime_uuid_val\x18% \x01(\tH\x00\x12\x30\n\ruuid_list_val\x18& \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12\x35\n\x12time_uuid_list_val\x18\' \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12.\n\x0cuuid_set_val\x18( \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x12\x33\n\x11time_uuid_set_val\x18) \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x12.\n\x08list_val\x18* \x01(\x0b\x32\x1a.feast.types.RepeatedValueH\x00\x12-\n\x07set_val\x18+ \x01(\x0b\x32\x1a.feast.types.RepeatedValueH\x00\x12\x15\n\x0b\x64\x65\x63imal_val\x18, \x01(\tH\x00\x12\x33\n\x10\x64\x65\x63imal_list_val\x18- \x01(\x0b\x32\x17.feast.types.StringListH\x00\x12\x31\n\x0f\x64\x65\x63imal_set_val\x18. \x01(\x0b\x32\x16.feast.types.StringSetH\x00\x12\x30\n\x0escalar_map_val\x18/ \x01(\x0b\x32\x16.feast.types.ScalarMapH\x00\x42\x05\n\x03val\"\x18\n\tBytesList\x12\x0b\n\x03val\x18\x01 \x03(\x0c\"\x19\n\nStringList\x12\x0b\n\x03val\x18\x01 \x03(\t\"\x18\n\tInt32List\x12\x0b\n\x03val\x18\x01 \x03(\x05\"\x18\n\tInt64List\x12\x0b\n\x03val\x18\x01 \x03(\x03\"\x19\n\nDoubleList\x12\x0b\n\x03val\x18\x01 \x03(\x01\"\x18\n\tFloatList\x12\x0b\n\x03val\x18\x01 \x03(\x02\"\x17\n\x08\x42oolList\x12\x0b\n\x03val\x18\x01 \x03(\x08\"\x17\n\x08\x42ytesSet\x12\x0b\n\x03val\x18\x01 \x03(\x0c\"\x18\n\tStringSet\x12\x0b\n\x03val\x18\x01 \x03(\t\"\x17\n\x08Int32Set\x12\x0b\n\x03val\x18\x01 \x03(\x05\"\x17\n\x08Int64Set\x12\x0b\n\x03val\x18\x01 \x03(\x03\"\x18\n\tDoubleSet\x12\x0b\n\x03val\x18\x01 \x03(\x01\"\x17\n\x08\x46loatSet\x12\x0b\n\x03val\x18\x01 \x03(\x02\"\x16\n\x07\x42oolSet\x12\x0b\n\x03val\x18\x01 \x03(\x08\"m\n\x03Map\x12&\n\x03val\x18\x01 \x03(\x0b\x32\x19.feast.types.Map.ValEntry\x1a>\n\x08ValEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.feast.types.Value:\x02\x38\x01\"(\n\x07MapList\x12\x1d\n\x03val\x18\x01 \x03(\x0b\x32\x10.feast.types.Map\"0\n\rRepeatedValue\x12\x1f\n\x03val\x18\x01 \x03(\x0b\x32\x12.feast.types.Value\"\xef\x01\n\x06MapKey\x12\x13\n\tint32_key\x18\x01 \x01(\x05H\x00\x12\x13\n\tint64_key\x18\x02 \x01(\x03H\x00\x12\x13\n\tfloat_key\x18\x03 \x01(\x02H\x00\x12\x14\n\ndouble_key\x18\x04 \x01(\x01H\x00\x12\x12\n\x08\x62ool_key\x18\x05 \x01(\x08H\x00\x12\x1c\n\x12unix_timestamp_key\x18\x06 \x01(\x03H\x00\x12\x13\n\tbytes_key\x18\x07 \x01(\x0cH\x00\x12\x12\n\x08uuid_key\x18\x08 \x01(\tH\x00\x12\x17\n\rtime_uuid_key\x18\t \x01(\tH\x00\x12\x15\n\x0b\x64\x65\x63imal_key\x18\n \x01(\tH\x00\x42\x05\n\x03key\"U\n\x0eScalarMapEntry\x12 \n\x03key\x18\x01 \x01(\x0b\x32\x13.feast.types.MapKey\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.feast.types.Value\"5\n\tScalarMap\x12(\n\x03val\x18\x01 \x03(\x0b\x32\x1b.feast.types.ScalarMapEntry*\x10\n\x04Null\x12\x08\n\x04NULL\x10\x00\x42Q\n\x11\x66\x65\x61st.proto.typesB\nValueProtoZ0github.com/feast-dev/feast/go/protos/feast/typesb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,48 +24,54 @@ _globals['DESCRIPTOR']._serialized_options = b'\n\021feast.proto.typesB\nValueProtoZ0github.com/feast-dev/feast/go/protos/feast/types' _globals['_MAP_VALENTRY']._options = None _globals['_MAP_VALENTRY']._serialized_options = b'8\001' - _globals['_NULL']._serialized_start=3018 - _globals['_NULL']._serialized_end=3034 + _globals['_NULL']._serialized_start=3468 + _globals['_NULL']._serialized_end=3484 _globals['_VALUETYPE']._serialized_start=41 - _globals['_VALUETYPE']._serialized_end=699 + _globals['_VALUETYPE']._serialized_end=715 _globals['_VALUETYPE_ENUM']._serialized_start=55 - _globals['_VALUETYPE_ENUM']._serialized_end=699 - _globals['_VALUE']._serialized_start=702 - _globals['_VALUE']._serialized_end=2454 - _globals['_BYTESLIST']._serialized_start=2456 - _globals['_BYTESLIST']._serialized_end=2480 - _globals['_STRINGLIST']._serialized_start=2482 - _globals['_STRINGLIST']._serialized_end=2507 - _globals['_INT32LIST']._serialized_start=2509 - _globals['_INT32LIST']._serialized_end=2533 - _globals['_INT64LIST']._serialized_start=2535 - _globals['_INT64LIST']._serialized_end=2559 - _globals['_DOUBLELIST']._serialized_start=2561 - _globals['_DOUBLELIST']._serialized_end=2586 - _globals['_FLOATLIST']._serialized_start=2588 - _globals['_FLOATLIST']._serialized_end=2612 - _globals['_BOOLLIST']._serialized_start=2614 - _globals['_BOOLLIST']._serialized_end=2637 - _globals['_BYTESSET']._serialized_start=2639 - _globals['_BYTESSET']._serialized_end=2662 - _globals['_STRINGSET']._serialized_start=2664 - _globals['_STRINGSET']._serialized_end=2688 - _globals['_INT32SET']._serialized_start=2690 - _globals['_INT32SET']._serialized_end=2713 - _globals['_INT64SET']._serialized_start=2715 - _globals['_INT64SET']._serialized_end=2738 - _globals['_DOUBLESET']._serialized_start=2740 - _globals['_DOUBLESET']._serialized_end=2764 - _globals['_FLOATSET']._serialized_start=2766 - _globals['_FLOATSET']._serialized_end=2789 - _globals['_BOOLSET']._serialized_start=2791 - _globals['_BOOLSET']._serialized_end=2813 - _globals['_MAP']._serialized_start=2815 - _globals['_MAP']._serialized_end=2924 - _globals['_MAP_VALENTRY']._serialized_start=2862 - _globals['_MAP_VALENTRY']._serialized_end=2924 - _globals['_MAPLIST']._serialized_start=2926 - _globals['_MAPLIST']._serialized_end=2966 - _globals['_REPEATEDVALUE']._serialized_start=2968 - _globals['_REPEATEDVALUE']._serialized_end=3016 + _globals['_VALUETYPE_ENUM']._serialized_end=715 + _globals['_VALUE']._serialized_start=718 + _globals['_VALUE']._serialized_end=2520 + _globals['_BYTESLIST']._serialized_start=2522 + _globals['_BYTESLIST']._serialized_end=2546 + _globals['_STRINGLIST']._serialized_start=2548 + _globals['_STRINGLIST']._serialized_end=2573 + _globals['_INT32LIST']._serialized_start=2575 + _globals['_INT32LIST']._serialized_end=2599 + _globals['_INT64LIST']._serialized_start=2601 + _globals['_INT64LIST']._serialized_end=2625 + _globals['_DOUBLELIST']._serialized_start=2627 + _globals['_DOUBLELIST']._serialized_end=2652 + _globals['_FLOATLIST']._serialized_start=2654 + _globals['_FLOATLIST']._serialized_end=2678 + _globals['_BOOLLIST']._serialized_start=2680 + _globals['_BOOLLIST']._serialized_end=2703 + _globals['_BYTESSET']._serialized_start=2705 + _globals['_BYTESSET']._serialized_end=2728 + _globals['_STRINGSET']._serialized_start=2730 + _globals['_STRINGSET']._serialized_end=2754 + _globals['_INT32SET']._serialized_start=2756 + _globals['_INT32SET']._serialized_end=2779 + _globals['_INT64SET']._serialized_start=2781 + _globals['_INT64SET']._serialized_end=2804 + _globals['_DOUBLESET']._serialized_start=2806 + _globals['_DOUBLESET']._serialized_end=2830 + _globals['_FLOATSET']._serialized_start=2832 + _globals['_FLOATSET']._serialized_end=2855 + _globals['_BOOLSET']._serialized_start=2857 + _globals['_BOOLSET']._serialized_end=2879 + _globals['_MAP']._serialized_start=2881 + _globals['_MAP']._serialized_end=2990 + _globals['_MAP_VALENTRY']._serialized_start=2928 + _globals['_MAP_VALENTRY']._serialized_end=2990 + _globals['_MAPLIST']._serialized_start=2992 + _globals['_MAPLIST']._serialized_end=3032 + _globals['_REPEATEDVALUE']._serialized_start=3034 + _globals['_REPEATEDVALUE']._serialized_end=3082 + _globals['_MAPKEY']._serialized_start=3085 + _globals['_MAPKEY']._serialized_end=3324 + _globals['_SCALARMAPENTRY']._serialized_start=3326 + _globals['_SCALARMAPENTRY']._serialized_end=3411 + _globals['_SCALARMAP']._serialized_start=3413 + _globals['_SCALARMAP']._serialized_end=3466 # @@protoc_insertion_point(module_scope) diff --git a/sdk/python/feast/protos/feast/types/Value_pb2.pyi b/sdk/python/feast/protos/feast/types/Value_pb2.pyi index 80c6a717acf..162f8829bc1 100644 --- a/sdk/python/feast/protos/feast/types/Value_pb2.pyi +++ b/sdk/python/feast/protos/feast/types/Value_pb2.pyi @@ -16,44 +16,46 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message + +from collections import abc as _abc +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +import builtins as _builtins import sys -import typing +import typing as _typing if sys.version_info >= (3, 10): - import typing as typing_extensions + from typing import TypeAlias as _TypeAlias else: - import typing_extensions + from typing_extensions import TypeAlias as _TypeAlias -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +DESCRIPTOR: _descriptor.FileDescriptor class _Null: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 -class _NullEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Null.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor +class _NullEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_Null.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor NULL: _Null.ValueType # 0 class Null(_Null, metaclass=_NullEnumTypeWrapper): ... NULL: Null.ValueType # 0 -global___Null = Null +Global___Null: _TypeAlias = Null # noqa: Y015 -class ValueType(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class ValueType(_message.Message): + DESCRIPTOR: _descriptor.Descriptor class _Enum: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType + ValueType = _typing.NewType("ValueType", _builtins.int) + V: _TypeAlias = ValueType # noqa: Y015 - class _EnumEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ValueType._Enum.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + class _EnumEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[ValueType._Enum.ValueType], _builtins.type): + DESCRIPTOR: _descriptor.EnumDescriptor INVALID: ValueType._Enum.ValueType # 0 BYTES: ValueType._Enum.ValueType # 1 STRING: ValueType._Enum.ValueType # 2 @@ -97,6 +99,7 @@ class ValueType(google.protobuf.message.Message): DECIMAL: ValueType._Enum.ValueType # 44 DECIMAL_LIST: ValueType._Enum.ValueType # 45 DECIMAL_SET: ValueType._Enum.ValueType # 46 + SCALAR_MAP: ValueType._Enum.ValueType # 47 class Enum(_Enum, metaclass=_EnumEnumTypeWrapper): ... INVALID: ValueType.Enum.ValueType # 0 @@ -142,453 +145,594 @@ class ValueType(google.protobuf.message.Message): DECIMAL: ValueType.Enum.ValueType # 44 DECIMAL_LIST: ValueType.Enum.ValueType # 45 DECIMAL_SET: ValueType.Enum.ValueType # 46 + SCALAR_MAP: ValueType.Enum.ValueType # 47 def __init__( self, ) -> None: ... -global___ValueType = ValueType - -class Value(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BYTES_VAL_FIELD_NUMBER: builtins.int - STRING_VAL_FIELD_NUMBER: builtins.int - INT32_VAL_FIELD_NUMBER: builtins.int - INT64_VAL_FIELD_NUMBER: builtins.int - DOUBLE_VAL_FIELD_NUMBER: builtins.int - FLOAT_VAL_FIELD_NUMBER: builtins.int - BOOL_VAL_FIELD_NUMBER: builtins.int - UNIX_TIMESTAMP_VAL_FIELD_NUMBER: builtins.int - BYTES_LIST_VAL_FIELD_NUMBER: builtins.int - STRING_LIST_VAL_FIELD_NUMBER: builtins.int - INT32_LIST_VAL_FIELD_NUMBER: builtins.int - INT64_LIST_VAL_FIELD_NUMBER: builtins.int - DOUBLE_LIST_VAL_FIELD_NUMBER: builtins.int - FLOAT_LIST_VAL_FIELD_NUMBER: builtins.int - BOOL_LIST_VAL_FIELD_NUMBER: builtins.int - UNIX_TIMESTAMP_LIST_VAL_FIELD_NUMBER: builtins.int - NULL_VAL_FIELD_NUMBER: builtins.int - MAP_VAL_FIELD_NUMBER: builtins.int - MAP_LIST_VAL_FIELD_NUMBER: builtins.int - BYTES_SET_VAL_FIELD_NUMBER: builtins.int - STRING_SET_VAL_FIELD_NUMBER: builtins.int - INT32_SET_VAL_FIELD_NUMBER: builtins.int - INT64_SET_VAL_FIELD_NUMBER: builtins.int - DOUBLE_SET_VAL_FIELD_NUMBER: builtins.int - FLOAT_SET_VAL_FIELD_NUMBER: builtins.int - BOOL_SET_VAL_FIELD_NUMBER: builtins.int - UNIX_TIMESTAMP_SET_VAL_FIELD_NUMBER: builtins.int - JSON_VAL_FIELD_NUMBER: builtins.int - JSON_LIST_VAL_FIELD_NUMBER: builtins.int - STRUCT_VAL_FIELD_NUMBER: builtins.int - STRUCT_LIST_VAL_FIELD_NUMBER: builtins.int - UUID_VAL_FIELD_NUMBER: builtins.int - TIME_UUID_VAL_FIELD_NUMBER: builtins.int - UUID_LIST_VAL_FIELD_NUMBER: builtins.int - TIME_UUID_LIST_VAL_FIELD_NUMBER: builtins.int - UUID_SET_VAL_FIELD_NUMBER: builtins.int - TIME_UUID_SET_VAL_FIELD_NUMBER: builtins.int - LIST_VAL_FIELD_NUMBER: builtins.int - SET_VAL_FIELD_NUMBER: builtins.int - DECIMAL_VAL_FIELD_NUMBER: builtins.int - DECIMAL_LIST_VAL_FIELD_NUMBER: builtins.int - DECIMAL_SET_VAL_FIELD_NUMBER: builtins.int - bytes_val: builtins.bytes - string_val: builtins.str - int32_val: builtins.int - int64_val: builtins.int - double_val: builtins.float - float_val: builtins.float - bool_val: builtins.bool - unix_timestamp_val: builtins.int - @property - def bytes_list_val(self) -> global___BytesList: ... - @property - def string_list_val(self) -> global___StringList: ... - @property - def int32_list_val(self) -> global___Int32List: ... - @property - def int64_list_val(self) -> global___Int64List: ... - @property - def double_list_val(self) -> global___DoubleList: ... - @property - def float_list_val(self) -> global___FloatList: ... - @property - def bool_list_val(self) -> global___BoolList: ... - @property - def unix_timestamp_list_val(self) -> global___Int64List: ... - null_val: global___Null.ValueType - @property - def map_val(self) -> global___Map: ... - @property - def map_list_val(self) -> global___MapList: ... - @property - def bytes_set_val(self) -> global___BytesSet: ... - @property - def string_set_val(self) -> global___StringSet: ... - @property - def int32_set_val(self) -> global___Int32Set: ... - @property - def int64_set_val(self) -> global___Int64Set: ... - @property - def double_set_val(self) -> global___DoubleSet: ... - @property - def float_set_val(self) -> global___FloatSet: ... - @property - def bool_set_val(self) -> global___BoolSet: ... - @property - def unix_timestamp_set_val(self) -> global___Int64Set: ... - json_val: builtins.str - @property - def json_list_val(self) -> global___StringList: ... - @property - def struct_val(self) -> global___Map: ... - @property - def struct_list_val(self) -> global___MapList: ... - uuid_val: builtins.str - time_uuid_val: builtins.str - @property - def uuid_list_val(self) -> global___StringList: ... - @property - def time_uuid_list_val(self) -> global___StringList: ... - @property - def uuid_set_val(self) -> global___StringSet: ... - @property - def time_uuid_set_val(self) -> global___StringSet: ... - @property - def list_val(self) -> global___RepeatedValue: ... - @property - def set_val(self) -> global___RepeatedValue: ... - decimal_val: builtins.str - @property - def decimal_list_val(self) -> global___StringList: ... - @property - def decimal_set_val(self) -> global___StringSet: ... +Global___ValueType: _TypeAlias = ValueType # noqa: Y015 + +@_typing.final +class Value(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + BYTES_VAL_FIELD_NUMBER: _builtins.int + STRING_VAL_FIELD_NUMBER: _builtins.int + INT32_VAL_FIELD_NUMBER: _builtins.int + INT64_VAL_FIELD_NUMBER: _builtins.int + DOUBLE_VAL_FIELD_NUMBER: _builtins.int + FLOAT_VAL_FIELD_NUMBER: _builtins.int + BOOL_VAL_FIELD_NUMBER: _builtins.int + UNIX_TIMESTAMP_VAL_FIELD_NUMBER: _builtins.int + BYTES_LIST_VAL_FIELD_NUMBER: _builtins.int + STRING_LIST_VAL_FIELD_NUMBER: _builtins.int + INT32_LIST_VAL_FIELD_NUMBER: _builtins.int + INT64_LIST_VAL_FIELD_NUMBER: _builtins.int + DOUBLE_LIST_VAL_FIELD_NUMBER: _builtins.int + FLOAT_LIST_VAL_FIELD_NUMBER: _builtins.int + BOOL_LIST_VAL_FIELD_NUMBER: _builtins.int + UNIX_TIMESTAMP_LIST_VAL_FIELD_NUMBER: _builtins.int + NULL_VAL_FIELD_NUMBER: _builtins.int + MAP_VAL_FIELD_NUMBER: _builtins.int + MAP_LIST_VAL_FIELD_NUMBER: _builtins.int + BYTES_SET_VAL_FIELD_NUMBER: _builtins.int + STRING_SET_VAL_FIELD_NUMBER: _builtins.int + INT32_SET_VAL_FIELD_NUMBER: _builtins.int + INT64_SET_VAL_FIELD_NUMBER: _builtins.int + DOUBLE_SET_VAL_FIELD_NUMBER: _builtins.int + FLOAT_SET_VAL_FIELD_NUMBER: _builtins.int + BOOL_SET_VAL_FIELD_NUMBER: _builtins.int + UNIX_TIMESTAMP_SET_VAL_FIELD_NUMBER: _builtins.int + JSON_VAL_FIELD_NUMBER: _builtins.int + JSON_LIST_VAL_FIELD_NUMBER: _builtins.int + STRUCT_VAL_FIELD_NUMBER: _builtins.int + STRUCT_LIST_VAL_FIELD_NUMBER: _builtins.int + UUID_VAL_FIELD_NUMBER: _builtins.int + TIME_UUID_VAL_FIELD_NUMBER: _builtins.int + UUID_LIST_VAL_FIELD_NUMBER: _builtins.int + TIME_UUID_LIST_VAL_FIELD_NUMBER: _builtins.int + UUID_SET_VAL_FIELD_NUMBER: _builtins.int + TIME_UUID_SET_VAL_FIELD_NUMBER: _builtins.int + LIST_VAL_FIELD_NUMBER: _builtins.int + SET_VAL_FIELD_NUMBER: _builtins.int + DECIMAL_VAL_FIELD_NUMBER: _builtins.int + DECIMAL_LIST_VAL_FIELD_NUMBER: _builtins.int + DECIMAL_SET_VAL_FIELD_NUMBER: _builtins.int + SCALAR_MAP_VAL_FIELD_NUMBER: _builtins.int + bytes_val: _builtins.bytes + string_val: _builtins.str + int32_val: _builtins.int + int64_val: _builtins.int + double_val: _builtins.float + float_val: _builtins.float + bool_val: _builtins.bool + unix_timestamp_val: _builtins.int + null_val: Global___Null.ValueType + json_val: _builtins.str + uuid_val: _builtins.str + time_uuid_val: _builtins.str + decimal_val: _builtins.str + @_builtins.property + def bytes_list_val(self) -> Global___BytesList: ... + @_builtins.property + def string_list_val(self) -> Global___StringList: ... + @_builtins.property + def int32_list_val(self) -> Global___Int32List: ... + @_builtins.property + def int64_list_val(self) -> Global___Int64List: ... + @_builtins.property + def double_list_val(self) -> Global___DoubleList: ... + @_builtins.property + def float_list_val(self) -> Global___FloatList: ... + @_builtins.property + def bool_list_val(self) -> Global___BoolList: ... + @_builtins.property + def unix_timestamp_list_val(self) -> Global___Int64List: ... + @_builtins.property + def map_val(self) -> Global___Map: ... + @_builtins.property + def map_list_val(self) -> Global___MapList: ... + @_builtins.property + def bytes_set_val(self) -> Global___BytesSet: ... + @_builtins.property + def string_set_val(self) -> Global___StringSet: ... + @_builtins.property + def int32_set_val(self) -> Global___Int32Set: ... + @_builtins.property + def int64_set_val(self) -> Global___Int64Set: ... + @_builtins.property + def double_set_val(self) -> Global___DoubleSet: ... + @_builtins.property + def float_set_val(self) -> Global___FloatSet: ... + @_builtins.property + def bool_set_val(self) -> Global___BoolSet: ... + @_builtins.property + def unix_timestamp_set_val(self) -> Global___Int64Set: ... + @_builtins.property + def json_list_val(self) -> Global___StringList: ... + @_builtins.property + def struct_val(self) -> Global___Map: ... + @_builtins.property + def struct_list_val(self) -> Global___MapList: ... + @_builtins.property + def uuid_list_val(self) -> Global___StringList: ... + @_builtins.property + def time_uuid_list_val(self) -> Global___StringList: ... + @_builtins.property + def uuid_set_val(self) -> Global___StringSet: ... + @_builtins.property + def time_uuid_set_val(self) -> Global___StringSet: ... + @_builtins.property + def list_val(self) -> Global___RepeatedValue: ... + @_builtins.property + def set_val(self) -> Global___RepeatedValue: ... + @_builtins.property + def decimal_list_val(self) -> Global___StringList: ... + @_builtins.property + def decimal_set_val(self) -> Global___StringSet: ... + @_builtins.property + def scalar_map_val(self) -> Global___ScalarMap: ... def __init__( self, *, - bytes_val: builtins.bytes = ..., - string_val: builtins.str = ..., - int32_val: builtins.int = ..., - int64_val: builtins.int = ..., - double_val: builtins.float = ..., - float_val: builtins.float = ..., - bool_val: builtins.bool = ..., - unix_timestamp_val: builtins.int = ..., - bytes_list_val: global___BytesList | None = ..., - string_list_val: global___StringList | None = ..., - int32_list_val: global___Int32List | None = ..., - int64_list_val: global___Int64List | None = ..., - double_list_val: global___DoubleList | None = ..., - float_list_val: global___FloatList | None = ..., - bool_list_val: global___BoolList | None = ..., - unix_timestamp_list_val: global___Int64List | None = ..., - null_val: global___Null.ValueType = ..., - map_val: global___Map | None = ..., - map_list_val: global___MapList | None = ..., - bytes_set_val: global___BytesSet | None = ..., - string_set_val: global___StringSet | None = ..., - int32_set_val: global___Int32Set | None = ..., - int64_set_val: global___Int64Set | None = ..., - double_set_val: global___DoubleSet | None = ..., - float_set_val: global___FloatSet | None = ..., - bool_set_val: global___BoolSet | None = ..., - unix_timestamp_set_val: global___Int64Set | None = ..., - json_val: builtins.str = ..., - json_list_val: global___StringList | None = ..., - struct_val: global___Map | None = ..., - struct_list_val: global___MapList | None = ..., - uuid_val: builtins.str = ..., - time_uuid_val: builtins.str = ..., - uuid_list_val: global___StringList | None = ..., - time_uuid_list_val: global___StringList | None = ..., - uuid_set_val: global___StringSet | None = ..., - time_uuid_set_val: global___StringSet | None = ..., - list_val: global___RepeatedValue | None = ..., - set_val: global___RepeatedValue | None = ..., - decimal_val: builtins.str = ..., - decimal_list_val: global___StringList | None = ..., - decimal_set_val: global___StringSet | None = ..., + bytes_val: _builtins.bytes = ..., + string_val: _builtins.str = ..., + int32_val: _builtins.int = ..., + int64_val: _builtins.int = ..., + double_val: _builtins.float = ..., + float_val: _builtins.float = ..., + bool_val: _builtins.bool = ..., + unix_timestamp_val: _builtins.int = ..., + bytes_list_val: Global___BytesList | None = ..., + string_list_val: Global___StringList | None = ..., + int32_list_val: Global___Int32List | None = ..., + int64_list_val: Global___Int64List | None = ..., + double_list_val: Global___DoubleList | None = ..., + float_list_val: Global___FloatList | None = ..., + bool_list_val: Global___BoolList | None = ..., + unix_timestamp_list_val: Global___Int64List | None = ..., + null_val: Global___Null.ValueType = ..., + map_val: Global___Map | None = ..., + map_list_val: Global___MapList | None = ..., + bytes_set_val: Global___BytesSet | None = ..., + string_set_val: Global___StringSet | None = ..., + int32_set_val: Global___Int32Set | None = ..., + int64_set_val: Global___Int64Set | None = ..., + double_set_val: Global___DoubleSet | None = ..., + float_set_val: Global___FloatSet | None = ..., + bool_set_val: Global___BoolSet | None = ..., + unix_timestamp_set_val: Global___Int64Set | None = ..., + json_val: _builtins.str = ..., + json_list_val: Global___StringList | None = ..., + struct_val: Global___Map | None = ..., + struct_list_val: Global___MapList | None = ..., + uuid_val: _builtins.str = ..., + time_uuid_val: _builtins.str = ..., + uuid_list_val: Global___StringList | None = ..., + time_uuid_list_val: Global___StringList | None = ..., + uuid_set_val: Global___StringSet | None = ..., + time_uuid_set_val: Global___StringSet | None = ..., + list_val: Global___RepeatedValue | None = ..., + set_val: Global___RepeatedValue | None = ..., + decimal_val: _builtins.str = ..., + decimal_list_val: Global___StringList | None = ..., + decimal_set_val: Global___StringSet | None = ..., + scalar_map_val: Global___ScalarMap | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["val", b"val"]) -> typing_extensions.Literal["bytes_val", "string_val", "int32_val", "int64_val", "double_val", "float_val", "bool_val", "unix_timestamp_val", "bytes_list_val", "string_list_val", "int32_list_val", "int64_list_val", "double_list_val", "float_list_val", "bool_list_val", "unix_timestamp_list_val", "null_val", "map_val", "map_list_val", "bytes_set_val", "string_set_val", "int32_set_val", "int64_set_val", "double_set_val", "float_set_val", "bool_set_val", "unix_timestamp_set_val", "json_val", "json_list_val", "struct_val", "struct_list_val", "uuid_val", "time_uuid_val", "uuid_list_val", "time_uuid_list_val", "uuid_set_val", "time_uuid_set_val", "list_val", "set_val", "decimal_val", "decimal_list_val", "decimal_set_val"] | None: ... - -global___Value = Value - -class BytesList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "scalar_map_val", b"scalar_map_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bool_list_val", b"bool_list_val", "bool_set_val", b"bool_set_val", "bool_val", b"bool_val", "bytes_list_val", b"bytes_list_val", "bytes_set_val", b"bytes_set_val", "bytes_val", b"bytes_val", "decimal_list_val", b"decimal_list_val", "decimal_set_val", b"decimal_set_val", "decimal_val", b"decimal_val", "double_list_val", b"double_list_val", "double_set_val", b"double_set_val", "double_val", b"double_val", "float_list_val", b"float_list_val", "float_set_val", b"float_set_val", "float_val", b"float_val", "int32_list_val", b"int32_list_val", "int32_set_val", b"int32_set_val", "int32_val", b"int32_val", "int64_list_val", b"int64_list_val", "int64_set_val", b"int64_set_val", "int64_val", b"int64_val", "json_list_val", b"json_list_val", "json_val", b"json_val", "list_val", b"list_val", "map_list_val", b"map_list_val", "map_val", b"map_val", "null_val", b"null_val", "scalar_map_val", b"scalar_map_val", "set_val", b"set_val", "string_list_val", b"string_list_val", "string_set_val", b"string_set_val", "string_val", b"string_val", "struct_list_val", b"struct_list_val", "struct_val", b"struct_val", "time_uuid_list_val", b"time_uuid_list_val", "time_uuid_set_val", b"time_uuid_set_val", "time_uuid_val", b"time_uuid_val", "unix_timestamp_list_val", b"unix_timestamp_list_val", "unix_timestamp_set_val", b"unix_timestamp_set_val", "unix_timestamp_val", b"unix_timestamp_val", "uuid_list_val", b"uuid_list_val", "uuid_set_val", b"uuid_set_val", "uuid_val", b"uuid_val", "val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_val: _TypeAlias = _typing.Literal["bytes_val", "string_val", "int32_val", "int64_val", "double_val", "float_val", "bool_val", "unix_timestamp_val", "bytes_list_val", "string_list_val", "int32_list_val", "int64_list_val", "double_list_val", "float_list_val", "bool_list_val", "unix_timestamp_list_val", "null_val", "map_val", "map_list_val", "bytes_set_val", "string_set_val", "int32_set_val", "int64_set_val", "double_set_val", "float_set_val", "bool_set_val", "unix_timestamp_set_val", "json_val", "json_list_val", "struct_val", "struct_list_val", "uuid_val", "time_uuid_val", "uuid_list_val", "time_uuid_list_val", "uuid_set_val", "time_uuid_set_val", "list_val", "set_val", "decimal_val", "decimal_list_val", "decimal_set_val", "scalar_map_val"] # noqa: Y015 + _WhichOneofArgType_val: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_val) -> _WhichOneofReturnType_val | None: ... + +Global___Value: _TypeAlias = Value # noqa: Y015 + +@_typing.final +class BytesList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bytes]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.bytes] | None = ..., + val: _abc.Iterable[_builtins.bytes] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___BytesList = BytesList +Global___BytesList: _TypeAlias = BytesList # noqa: Y015 -class StringList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StringList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.str] | None = ..., + val: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StringList = StringList +Global___StringList: _TypeAlias = StringList # noqa: Y015 -class Int32List(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Int32List(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.int] | None = ..., + val: _abc.Iterable[_builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Int32List = Int32List +Global___Int32List: _TypeAlias = Int32List # noqa: Y015 -class Int64List(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Int64List(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.int] | None = ..., + val: _abc.Iterable[_builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Int64List = Int64List +Global___Int64List: _TypeAlias = Int64List # noqa: Y015 -class DoubleList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DoubleList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.float] | None = ..., + val: _abc.Iterable[_builtins.float] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DoubleList = DoubleList +Global___DoubleList: _TypeAlias = DoubleList # noqa: Y015 -class FloatList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FloatList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.float] | None = ..., + val: _abc.Iterable[_builtins.float] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FloatList = FloatList +Global___FloatList: _TypeAlias = FloatList # noqa: Y015 -class BoolList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class BoolList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bool]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.bool] | None = ..., + val: _abc.Iterable[_builtins.bool] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___BoolList = BoolList +Global___BoolList: _TypeAlias = BoolList # noqa: Y015 -class BytesSet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class BytesSet(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bytes]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.bytes] | None = ..., + val: _abc.Iterable[_builtins.bytes] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___BytesSet = BytesSet +Global___BytesSet: _TypeAlias = BytesSet # noqa: Y015 -class StringSet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class StringSet(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.str] | None = ..., + val: _abc.Iterable[_builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___StringSet = StringSet +Global___StringSet: _TypeAlias = StringSet # noqa: Y015 -class Int32Set(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Int32Set(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.int] | None = ..., + val: _abc.Iterable[_builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Int32Set = Int32Set +Global___Int32Set: _TypeAlias = Int32Set # noqa: Y015 -class Int64Set(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Int64Set(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.int] | None = ..., + val: _abc.Iterable[_builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Int64Set = Int64Set +Global___Int64Set: _TypeAlias = Int64Set # noqa: Y015 -class DoubleSet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class DoubleSet(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.float] | None = ..., + val: _abc.Iterable[_builtins.float] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___DoubleSet = DoubleSet +Global___DoubleSet: _TypeAlias = DoubleSet # noqa: Y015 -class FloatSet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class FloatSet(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.float] | None = ..., + val: _abc.Iterable[_builtins.float] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___FloatSet = FloatSet +Global___FloatSet: _TypeAlias = FloatSet # noqa: Y015 -class BoolSet(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class BoolSet(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedScalarFieldContainer[_builtins.bool]: ... def __init__( self, *, - val: collections.abc.Iterable[builtins.bool] | None = ..., + val: _abc.Iterable[_builtins.bool] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___BoolSet = BoolSet +Global___BoolSet: _TypeAlias = BoolSet # noqa: Y015 -class Map(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class Map(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - class ValEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + @_typing.final + class ValEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - @property - def value(self) -> global___Value: ... + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + key: _builtins.str + @_builtins.property + def value(self) -> Global___Value: ... def __init__( self, *, - key: builtins.str = ..., - value: global___Value | None = ..., + key: _builtins.str = ..., + value: Global___Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Value]: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.MessageMap[_builtins.str, Global___Value]: ... def __init__( self, *, - val: collections.abc.Mapping[builtins.str, global___Value] | None = ..., + val: _abc.Mapping[_builtins.str, Global___Value] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___Map = Map +Global___Map: _TypeAlias = Map # noqa: Y015 -class MapList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor +@_typing.final +class MapList(_message.Message): + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Map]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedCompositeFieldContainer[Global___Map]: ... def __init__( self, *, - val: collections.abc.Iterable[global___Map] | None = ..., + val: _abc.Iterable[Global___Map] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___MapList = MapList +Global___MapList: _TypeAlias = MapList # noqa: Y015 -class RepeatedValue(google.protobuf.message.Message): +@_typing.final +class RepeatedValue(_message.Message): """This is to avoid an issue of being unable to specify `repeated value` in oneofs or maps In JSON "val" field can be omitted """ - DESCRIPTOR: google.protobuf.descriptor.Descriptor + DESCRIPTOR: _descriptor.Descriptor + + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedCompositeFieldContainer[Global___Value]: ... + def __init__( + self, + *, + val: _abc.Iterable[Global___Value] | None = ..., + ) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___RepeatedValue: _TypeAlias = RepeatedValue # noqa: Y015 + +@_typing.final +class MapKey(_message.Message): + """Map key for maps with non-string keys. + Excludes string (handled by Map) and all collection types (not valid as keys). + """ + + DESCRIPTOR: _descriptor.Descriptor + + INT32_KEY_FIELD_NUMBER: _builtins.int + INT64_KEY_FIELD_NUMBER: _builtins.int + FLOAT_KEY_FIELD_NUMBER: _builtins.int + DOUBLE_KEY_FIELD_NUMBER: _builtins.int + BOOL_KEY_FIELD_NUMBER: _builtins.int + UNIX_TIMESTAMP_KEY_FIELD_NUMBER: _builtins.int + BYTES_KEY_FIELD_NUMBER: _builtins.int + UUID_KEY_FIELD_NUMBER: _builtins.int + TIME_UUID_KEY_FIELD_NUMBER: _builtins.int + DECIMAL_KEY_FIELD_NUMBER: _builtins.int + int32_key: _builtins.int + int64_key: _builtins.int + float_key: _builtins.float + double_key: _builtins.float + bool_key: _builtins.bool + unix_timestamp_key: _builtins.int + bytes_key: _builtins.bytes + uuid_key: _builtins.str + time_uuid_key: _builtins.str + decimal_key: _builtins.str + def __init__( + self, + *, + int32_key: _builtins.int = ..., + int64_key: _builtins.int = ..., + float_key: _builtins.float = ..., + double_key: _builtins.float = ..., + bool_key: _builtins.bool = ..., + unix_timestamp_key: _builtins.int = ..., + bytes_key: _builtins.bytes = ..., + uuid_key: _builtins.str = ..., + time_uuid_key: _builtins.str = ..., + decimal_key: _builtins.str = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["bool_key", b"bool_key", "bytes_key", b"bytes_key", "decimal_key", b"decimal_key", "double_key", b"double_key", "float_key", b"float_key", "int32_key", b"int32_key", "int64_key", b"int64_key", "key", b"key", "time_uuid_key", b"time_uuid_key", "unix_timestamp_key", b"unix_timestamp_key", "uuid_key", b"uuid_key"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["bool_key", b"bool_key", "bytes_key", b"bytes_key", "decimal_key", b"decimal_key", "double_key", b"double_key", "float_key", b"float_key", "int32_key", b"int32_key", "int64_key", b"int64_key", "key", b"key", "time_uuid_key", b"time_uuid_key", "unix_timestamp_key", b"unix_timestamp_key", "uuid_key", b"uuid_key"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_key: _TypeAlias = _typing.Literal["int32_key", "int64_key", "float_key", "double_key", "bool_key", "unix_timestamp_key", "bytes_key", "uuid_key", "time_uuid_key", "decimal_key"] # noqa: Y015 + _WhichOneofArgType_key: _TypeAlias = _typing.Literal["key", b"key"] # noqa: Y015 + def WhichOneof(self, oneof_group: _WhichOneofArgType_key) -> _WhichOneofReturnType_key | None: ... + +Global___MapKey: _TypeAlias = MapKey # noqa: Y015 + +@_typing.final +class ScalarMapEntry(_message.Message): + DESCRIPTOR: _descriptor.Descriptor + + KEY_FIELD_NUMBER: _builtins.int + VALUE_FIELD_NUMBER: _builtins.int + @_builtins.property + def key(self) -> Global___MapKey: ... + @_builtins.property + def value(self) -> Global___Value: ... + def __init__( + self, + *, + key: Global___MapKey | None = ..., + value: Global___Value | None = ..., + ) -> None: ... + _HasFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ScalarMapEntry: _TypeAlias = ScalarMapEntry # noqa: Y015 + +@_typing.final +class ScalarMap(_message.Message): + """Map with non-string keys. For string-keyed maps use Map.""" + + DESCRIPTOR: _descriptor.Descriptor - VAL_FIELD_NUMBER: builtins.int - @property - def val(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Value]: ... + VAL_FIELD_NUMBER: _builtins.int + @_builtins.property + def val(self) -> _containers.RepeatedCompositeFieldContainer[Global___ScalarMapEntry]: ... def __init__( self, *, - val: collections.abc.Iterable[global___Value] | None = ..., + val: _abc.Iterable[Global___ScalarMapEntry] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["val", b"val"]) -> None: ... + _ClearFieldArgType: _TypeAlias = _typing.Literal["val", b"val"] # noqa: Y015 + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... -global___RepeatedValue = RepeatedValue +Global___ScalarMap: _TypeAlias = ScalarMap # noqa: Y015 diff --git a/sdk/python/feast/type_map.py b/sdk/python/feast/type_map.py index 7960a3a3620..e9ccee08f25 100644 --- a/sdk/python/feast/type_map.py +++ b/sdk/python/feast/type_map.py @@ -52,8 +52,11 @@ Int64List, Int64Set, Map, + MapKey, MapList, RepeatedValue, + ScalarMap, + ScalarMapEntry, StringList, StringSet, ) @@ -121,6 +124,8 @@ def feast_value_type_to_python_type( return _handle_map_value(val) elif val_attr == "map_list_val": return _handle_map_list_value(val) + elif val_attr == "scalar_map_val": + return _handle_scalar_map_value(val) # If it's a _LIST or _SET type extract the values. if hasattr(val, "val"): @@ -223,6 +228,43 @@ def _handle_nested_collection_value(repeated_value) -> List[Any]: return result +def _map_key_to_python_value(map_key: MapKey) -> Any: + """Convert a MapKey proto to its Python equivalent.""" + key_attr = map_key.WhichOneof("key") + if key_attr is None: + return None + val = getattr(map_key, key_attr) + if key_attr in ("int32_key", "int64_key"): + return int(val) + if key_attr in ("float_key", "double_key"): + return float(val) + if key_attr == "bool_key": + return bool(val) + if key_attr == "unix_timestamp_key": + return ( + datetime.fromtimestamp(val, tz=timezone.utc) + if val != NULL_TIMESTAMP_INT_VALUE + else None + ) + if key_attr == "bytes_key": + return bytes(val) + if key_attr in ("uuid_key", "time_uuid_key"): + return uuid_module.UUID(val) + if key_attr == "decimal_key": + return decimal.Decimal(val) + return val + + +def _handle_scalar_map_value(value_map_message: ScalarMap) -> Dict[Any, Any]: + """Handle ScalarMap proto message (repeated ScalarMapEntry) → Python dict.""" + result: Dict[Any, Any] = {} + for entry in value_map_message.val: + key = _map_key_to_python_value(entry.key) + value = feast_value_type_to_python_type(entry.value) + result[key] = value + return result + + def feast_value_type_to_pandas_type(value_type: ValueType) -> Any: value_type_to_pandas_type: Dict[ValueType, str] = { ValueType.FLOAT: "float", @@ -399,6 +441,9 @@ def python_type_to_feast_value_type( # Check if it's a dictionary (Map type) if isinstance(value, dict): + # Non-string keys require ScalarMap; string keys (or empty dict) use Map + if value and not isinstance(next(iter(value)), str): + return ValueType.SCALAR_MAP return ValueType.MAP raise ValueError( @@ -1066,6 +1111,21 @@ def _python_value_to_proto_value( ) return result + if feast_value_type == ValueType.SCALAR_MAP: + result = [] + for value in values: + if value is None: + result.append(ProtoValue()) + else: + if not isinstance(value, dict): + raise TypeError( + f"Expected dict for SCALAR_MAP type, got {type(value).__name__}: {value!r}" + ) + result.append( + ProtoValue(scalar_map_val=_python_dict_to_scalar_map_proto(value)) + ) + return result + # Handle JSON type — serialize Python objects as JSON strings if feast_value_type == ValueType.JSON: result = [] @@ -1249,6 +1309,48 @@ def _python_list_to_map_list_proto(python_list: List[Dict[str, Any]]) -> MapList return map_list_proto +def _python_value_to_map_key_proto(key: Any) -> MapKey: + """Convert a Python value to a MapKey proto for use in ScalarMap entries.""" + # bool must be checked before int since bool is a subclass of int + if isinstance(key, (bool, np.bool_)): + return MapKey(bool_key=bool(key)) + if isinstance(key, np.int32): + return MapKey(int32_key=int(key)) + if isinstance(key, (int, np.integer)): + return MapKey(int64_key=int(key)) + if isinstance(key, np.float32): + return MapKey(float_key=float(key)) + if isinstance(key, (float, np.floating)): + return MapKey(double_key=float(key)) + if isinstance(key, uuid_module.UUID): + return MapKey(uuid_key=str(key)) + if isinstance(key, decimal.Decimal): + return MapKey(decimal_key=str(key)) + if isinstance(key, bytes): + return MapKey(bytes_key=key) + if isinstance(key, (datetime, pd.Timestamp)): + ts = int(pd.Timestamp(key).timestamp()) + return MapKey(unix_timestamp_key=ts) + raise TypeError( + f"Unsupported key type for SCALAR_MAP: {type(key).__name__}. " + "Supported non-string key types: int, float, bool, uuid.UUID, " + "decimal.Decimal, bytes, datetime." + ) + + +def _python_dict_to_scalar_map_proto(python_dict: Dict[Any, Any]) -> ScalarMap: + """Convert a Python dictionary with non-string keys to a ScalarMap proto.""" + value_map_proto = ScalarMap() + for key, value in python_dict.items(): + map_key = _python_value_to_map_key_proto(key) + if value is None: + value_proto = ProtoValue() + else: + value_proto = python_values_to_proto_values([value], ValueType.UNKNOWN)[0] + value_map_proto.val.append(ScalarMapEntry(key=map_key, value=value_proto)) + return value_map_proto + + def python_values_to_proto_values( values: List[Any], feature_type: ValueType = ValueType.UNKNOWN ) -> List[ProtoValue]: @@ -1321,6 +1423,7 @@ def python_values_to_proto_values( "decimal_val": ValueType.DECIMAL, "decimal_list_val": ValueType.DECIMAL_LIST, "decimal_set_val": ValueType.DECIMAL_SET, + "scalar_map_val": ValueType.SCALAR_MAP, } VALUE_TYPE_TO_PROTO_VALUE_MAP: Dict[ValueType, str] = { diff --git a/sdk/python/feast/types.py b/sdk/python/feast/types.py index 0a97037811b..9a9cfeeec84 100644 --- a/sdk/python/feast/types.py +++ b/sdk/python/feast/types.py @@ -37,6 +37,7 @@ "UNIX_TIMESTAMP": "UNIX_TIMESTAMP", "MAP": "MAP", "JSON": "JSON", + "SCALAR_MAP": "SCALAR_MAP", } @@ -93,6 +94,7 @@ class PrimitiveFeastType(Enum): UUID = 13 TIME_UUID = 14 DECIMAL = 15 + SCALAR_MAP = 16 def to_value_type(self) -> ValueType: """ @@ -130,6 +132,7 @@ def __hash__(self): Uuid = PrimitiveFeastType.UUID TimeUuid = PrimitiveFeastType.TIME_UUID Decimal = PrimitiveFeastType.DECIMAL +ScalarMap = PrimitiveFeastType.SCALAR_MAP SUPPORTED_BASE_TYPES = [ Invalid, @@ -167,6 +170,7 @@ def __hash__(self): "UUID": "Uuid", "TIME_UUID": "TimeUuid", "DECIMAL": "Decimal", + "SCALAR_MAP": "ScalarMap", } @@ -346,6 +350,7 @@ def __hash__(self): ValueType.DECIMAL: Decimal, ValueType.DECIMAL_LIST: Array(Decimal), ValueType.DECIMAL_SET: Set(Decimal), + ValueType.SCALAR_MAP: ScalarMap, } FEAST_TYPES_TO_PYARROW_TYPES = { diff --git a/sdk/python/feast/value_type.py b/sdk/python/feast/value_type.py index f09ae948d9b..e8b0b5a10d6 100644 --- a/sdk/python/feast/value_type.py +++ b/sdk/python/feast/value_type.py @@ -82,6 +82,7 @@ class ValueType(enum.Enum): DECIMAL = 44 DECIMAL_LIST = 45 DECIMAL_SET = 46 + SCALAR_MAP = 47 ListType = Union[ diff --git a/sdk/python/tests/unit/test_type_map.py b/sdk/python/tests/unit/test_type_map.py index 4f87aa46f19..bdaea63a607 100644 --- a/sdk/python/tests/unit/test_type_map.py +++ b/sdk/python/tests/unit/test_type_map.py @@ -6,6 +6,7 @@ import pytest from feast.protos.feast.types.Value_pb2 import Map, MapList +from feast.protos.feast.types.Value_pb2 import Value as ProtoValue from feast.type_map import ( _convert_value_type_str_to_value_type, _python_dict_to_map_proto, @@ -1953,3 +1954,114 @@ def test_non_empty_array_treated_as_null_unix_timestamp(self): "non-empty array in UNIX_TIMESTAMP scalar column should produce null" ) assert result[1].unix_timestamp_val == int(ts.timestamp()) + + +class TestValueMapTypes: + """Tests for SCALAR_MAP: maps with non-string keys encoded via ScalarMap proto.""" + + def test_int_key_roundtrip(self): + """Int keys are encoded as int64_key and round-trip back as int.""" + data = {1: "one", 2: "two", 3: "three"} + + protos = python_values_to_proto_values([data], ValueType.SCALAR_MAP) + assert protos[0].WhichOneof("val") == "scalar_map_val" + result = feast_value_type_to_python_type(protos[0]) + + assert result == {1: "one", 2: "two", 3: "three"} + + def test_long_key_roundtrip(self): + """Large int keys (simulating int64/Long) round-trip correctly.""" + data = {1513185957000: {"svacct_id": 123, "amount": 99.5}} + + protos = python_values_to_proto_values([data], ValueType.SCALAR_MAP) + result = feast_value_type_to_python_type(protos[0]) + + assert result[1513185957000]["svacct_id"] == 123 + assert result[1513185957000]["amount"] == 99.5 + + def test_uuid_key_roundtrip(self): + """UUID keys are encoded as uuid_key strings and decoded back to uuid.UUID.""" + key1 = uuid.UUID("12345678-1234-5678-1234-567812345678") + key2 = uuid.UUID("87654321-4321-8765-4321-876543218765") + data = {key1: "first", key2: "second"} + + protos = python_values_to_proto_values([data], ValueType.SCALAR_MAP) + result = feast_value_type_to_python_type(protos[0]) + + assert result[key1] == "first" + assert result[key2] == "second" + + def test_type_inference_non_string_keys_returns_scalar_map(self): + """python_type_to_feast_value_type infers SCALAR_MAP for non-string-keyed dicts.""" + assert python_type_to_feast_value_type("f", {1: "a"}) == ValueType.SCALAR_MAP + assert ( + python_type_to_feast_value_type("f", {uuid.uuid4(): "x"}) + == ValueType.SCALAR_MAP + ) + + def test_type_inference_string_keys_returns_map(self): + """python_type_to_feast_value_type still infers MAP for string-keyed dicts.""" + assert python_type_to_feast_value_type("f", {"k": "v"}) == ValueType.MAP + + def test_type_inference_empty_dict_returns_map(self): + """Empty dict infers MAP (no key to inspect).""" + assert python_type_to_feast_value_type("f", {}) == ValueType.MAP + + def test_none_value_roundtrip(self): + """None values in SCALAR_MAP are preserved as None.""" + data = {10: "present", 20: None} + + protos = python_values_to_proto_values([data], ValueType.SCALAR_MAP) + result = feast_value_type_to_python_type(protos[0]) + + assert result[10] == "present" + assert result[20] is None + + def test_null_value_map(self): + """None SCALAR_MAP encodes to empty ProtoValue and decodes to None.""" + protos = python_values_to_proto_values([None], ValueType.SCALAR_MAP) + assert protos[0] == ProtoValue() + assert feast_value_type_to_python_type(protos[0]) is None + + def test_empty_value_map(self): + """Empty dict encodes and decodes as empty SCALAR_MAP.""" + protos = python_values_to_proto_values([{}], ValueType.SCALAR_MAP) + # empty dict has no non-string key to trigger SCALAR_MAP via inference, + # but explicit type forces the path + result = feast_value_type_to_python_type(protos[0]) + assert isinstance(result, dict) + + def test_multiple_value_maps_in_batch(self): + """Batch of SCALAR_MAP values all encode correctly.""" + batch = [{1: "a", 2: "b"}, {10: "x"}, None] + + protos = python_values_to_proto_values(batch, ValueType.SCALAR_MAP) + assert feast_value_type_to_python_type(protos[0]) == {1: "a", 2: "b"} + assert feast_value_type_to_python_type(protos[1]) == {10: "x"} + assert feast_value_type_to_python_type(protos[2]) is None + + def test_nested_map_value_in_value_map(self): + """SCALAR_MAP can hold nested dicts as values (encoded as MAP vals).""" + inner = {"name": "alice", "score": 42} + data = {100: inner} + + protos = python_values_to_proto_values([data], ValueType.SCALAR_MAP) + result = feast_value_type_to_python_type(protos[0]) + + assert result[100]["name"] == "alice" + assert result[100]["score"] == 42 + + def test_invalid_key_type_raises(self): + """Passing an unsupported key type raises TypeError.""" + + class Unsupported: + pass + + with pytest.raises(TypeError, match="Unsupported key type for SCALAR_MAP"): + python_values_to_proto_values([{Unsupported(): "v"}], ValueType.SCALAR_MAP) + + def test_proto_field_name_in_map(self): + """scalar_map_val maps to ValueType.SCALAR_MAP in PROTO_VALUE_TO_VALUE_TYPE_MAP.""" + from feast.type_map import PROTO_VALUE_TO_VALUE_TYPE_MAP + + assert PROTO_VALUE_TO_VALUE_TYPE_MAP["scalar_map_val"] == ValueType.SCALAR_MAP From b3fadefccc1c0ecb7cab9f902383f875bc7696ef Mon Sep 17 00:00:00 2001 From: Srihari Date: Thu, 16 Apr 2026 13:31:06 +0530 Subject: [PATCH 27/37] Add Feast OIDC happy path tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Srihari feat(e2e): implement OIDC authentication e2e tests - Add complete feast_oidc.yaml with storage config (redis, sql, duckdb), git feature repo, and OIDC auth - Implement oidc_util.go with FetchOIDCToken, ApplyFeastOidcPermissions, CreateOidcNotebookTest, and BuildOidcNotebookCommand helpers - Create feast-oidc-auth-test.ipynb notebook verifying OIDC auth flow: token validation, list methods, permissions, online features, data sources - Update feast_oidc_test_oc.go with full Ginkgo test structure using credit_scoring_local project and OIDC GroupBasedPolicy permissions Co-Authored-By: Claude Opus 4.6 refactor(e2e): simplify OIDC CR to use default stores Remove postgres/redis dependencies from OIDC e2e test: - Strip feast-data-stores Secret and storage persistence config - Use default services: offlineStore: {}, onlineStore: {} - Enable both grpc and restAPI on registry - Remove ApplyFeastInfraManifestsAndVerify from BeforeAll - Add VerifyApplyFeatureStoreDefinitionsOidc with relaxed log checks (no redis-specific assertions) Co-Authored-By: Claude Opus 4.6 refactor(e2e): use driver_ranking_oidc with default stores Simplify OIDC e2e test to use driver_ranking_oidc project with default services (no postgres/redis/git repo): - feast_oidc.yaml: minimal CR with offlineStore: {}, onlineStore: {} - Remove VerifyApplyFeatureStoreDefinitions from BeforeEach (no CronJob) - Remove credit_scoring-specific notebook cells (entity, online features, data source, ODFV) since no git repo provides feature definitions - Notebook focuses on OIDC auth validation: token, project, list methods, and admin_group_permission verification Co-Authored-By: Claude Opus 4.6 fix(e2e): replace ApplyFeastYamlAndVerify with OIDC-specific version ApplyFeastYamlAndVerify checks for postgres tables and git repo init container logs, which don't exist for the OIDC CR (default stores, no feastProjectDir). Add ApplyFeastOidcYamlAndVerify that only applies the YAML and waits for deployment availability. Co-Authored-By: Claude Opus 4.6 fix(e2e): use kubectl exec instead of oc cp for permissions file The default-stores registry container image does not include tar, which oc cp requires. Replace with kubectl exec + shell heredoc to write the permissions file content directly into the pod. Co-Authored-By: Claude Opus 4.6 fix(e2e): use OIDC exec-plugin login instead of token-based login OIDC auth requires oc login with --issuer-url, --exec-plugin oc-oidc, and --client-id instead of --token. Update BuildOidcNotebookCommand to use the OIDC login format, deriving issuer URL from OIDC_AUTH_DISCOVERY_URL and client ID from OIDC_CLIENT_ID env vars. Also update notebook to remove token-based login cells — the OIDC login is performed by the container command before papermill runs. Co-Authored-By: Claude Opus 4.6 Add Feast OIDC tests --- .../test/e2e_rhoai/feast_oidc_test.go | 131 +++++ .../test/e2e_rhoai/resources/custom-nb.yaml | 4 + .../resources/feast-oidc-auth-test.ipynb | 504 ++++++++++++++++++ .../test/e2e_rhoai/resources/feast_oidc.yaml | 20 + .../e2e_rhoai/resources/permissions_oidc.py | 17 + .../test/e2e_rhoai/utils/notebook_util.go | 17 +- .../test/e2e_rhoai/utils/oidc_util.go | 181 +++++++ 7 files changed, 868 insertions(+), 6 deletions(-) create mode 100644 infra/feast-operator/test/e2e_rhoai/feast_oidc_test.go create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/feast-oidc-auth-test.ipynb create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/feast_oidc.yaml create mode 100644 infra/feast-operator/test/e2e_rhoai/resources/permissions_oidc.py create mode 100644 infra/feast-operator/test/e2e_rhoai/utils/oidc_util.go diff --git a/infra/feast-operator/test/e2e_rhoai/feast_oidc_test.go b/infra/feast-operator/test/e2e_rhoai/feast_oidc_test.go new file mode 100644 index 00000000000..6cd6e6cc504 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/feast_oidc_test.go @@ -0,0 +1,131 @@ +/* +Copyright 2026 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package e2erhoai provides end-to-end (E2E) test coverage for Feast integration with +// Red Hat OpenShift AI (RHOAI) environments. +// This test validates Feast workbench integration with OIDC authentication, +// verifying that OIDC token-based auth works correctly for Feast operations. +package e2erhoai + +import ( + "fmt" + "time" + + . "github.com/feast-dev/feast/infra/feast-operator/test/e2e_rhoai/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +var _ = Describe("Feast OIDC Authentication Integration Testing", Ordered, func() { + const ( + namespace = "test-ns-feast-oidc" + configMapName = "feast-oidc-wb-cm" + rolebindingName = "rb-feast-oidc-test" + notebookFile = "test/e2e_rhoai/resources/feast-oidc-auth-test.ipynb" + pvcFile = "test/e2e_rhoai/resources/pvc.yaml" + permissionFile = "test/e2e_rhoai/resources/permissions_oidc.py" + notebookPVC = "jupyterhub-nb-kube-3aadmin-pvc" + testDir = "/test/e2e_rhoai" + notebookName = "feast-oidc-auth-test.ipynb" + feastDeploymentName = FeastPrefix + "test-feast-oidc" + feastCRName = "test-feast-oidc" + feastProject = "driver_ranking_oidc" + feastOidcYaml = "test/e2e_rhoai/resources/feast_oidc.yaml" + feastConfigMapName = "jupyter-nb-kube-3aadmin-feast-config" + feastClientConfigMapKey = "driver_ranking_oidc" + ) + + // Verify feast ConfigMap contains OIDC auth type + verifyFeastOidcConfigMap := func() { + By(fmt.Sprintf("Listing ConfigMaps and verifying %s exists with OIDC auth", feastConfigMapName)) + + expectedContent := []string{ + "project: driver_ranking_oidc", + "type: oidc", + } + + const maxRetries = 5 + const retryInterval = 5 * time.Second + var configMapExists bool + var err error + + for i := 0; i < maxRetries; i++ { + exists, listErr := VerifyConfigMapExistsInList(namespace, feastConfigMapName) + if listErr != nil { + err = listErr + if i < maxRetries-1 { + fmt.Printf("Failed to list ConfigMaps, retrying in %v... (attempt %d/%d)\n", retryInterval, i+1, maxRetries) + time.Sleep(retryInterval) + continue + } + } else if exists { + configMapExists = true + fmt.Printf("ConfigMap %s found in ConfigMap list\n", feastConfigMapName) + break + } + + if i < maxRetries-1 { + fmt.Printf("ConfigMap %s not found in list yet, retrying in %v... (attempt %d/%d)\n", feastConfigMapName, retryInterval, i+1, maxRetries) + time.Sleep(retryInterval) + } + } + + if !configMapExists { + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to find ConfigMap %s in ConfigMap list after %d attempts: %v", feastConfigMapName, maxRetries, err)) + } + + err = VerifyFeastConfigMapContent(namespace, feastConfigMapName, feastClientConfigMapKey, expectedContent) + Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to verify Feast ConfigMap %s content: %v", feastConfigMapName, err)) + fmt.Printf("Feast ConfigMap %s verified successfully with OIDC auth type\n", feastConfigMapName) + } + + BeforeAll(func() { + By(fmt.Sprintf("Creating test namespace: %s", namespace)) + Expect(CreateNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s created successfully\n", namespace) + }) + + AfterAll(func() { + By(fmt.Sprintf("Deleting test namespace: %s", namespace)) + Expect(DeleteNamespace(namespace, testDir)).To(Succeed()) + fmt.Printf("Namespace %s deleted successfully\n", namespace) + }) + + Context("Feast OIDC Authentication Tests", func() { + BeforeEach(func() { + By("Applying and validating the OIDC FeatureStore CR") + ApplyFeastOidcYamlAndVerify(namespace, testDir, feastDeploymentName, feastCRName, feastOidcYaml) + + By("Verify Feature Store CR is in Ready state") + ValidateFeatureStoreCRStatus(namespace, feastCRName) + }) + + It("Should apply OIDC permissions and verify Feast methods with OIDC auth", func() { + By("Applying Feast OIDC permissions") + ApplyFeastOidcPermissions(permissionFile, "/feast-data/driver_ranking_oidc/feature_repo/permissions.py", namespace, feastDeploymentName) + + By("Creating notebook with OIDC token env var") + CreateOidcNotebookTest(namespace, configMapName, notebookFile, "test/e2e_rhoai/resources/feature_repo", + pvcFile, rolebindingName, notebookPVC, notebookName, testDir, feastProject) + + By("Verifying Feast ConfigMap was created with OIDC auth type") + verifyFeastOidcConfigMap() + + By("Monitoring notebook execution") + MonitorNotebookTest(namespace, notebookName) + }) + }) +}) diff --git a/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml b/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml index 3ae52ff8d19..18473fb0d7f 100644 --- a/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml +++ b/infra/feast-operator/test/e2e_rhoai/resources/custom-nb.yaml @@ -60,6 +60,10 @@ spec: value: {{.OpenAIAPIKey}} - name: NAMESPACE value: {{.Namespace}} +{{- range $name, $value := .AdditionalEnv }} + - name: {{$name}} + value: {{$value}} +{{- end }} image: {{.NotebookImage}} command: {{.Command}} imagePullPolicy: Always diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-oidc-auth-test.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-oidc-auth-test.ipynb new file mode 100644 index 00000000000..ecc32adbdc0 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-oidc-auth-test.ipynb @@ -0,0 +1,504 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "cell-4", + "metadata": {}, + "outputs": [], + "source": [ + "from feast import FeatureStore\n", + "fs_oidc = FeatureStore(fs_yaml_file='/opt/app-root/src/feast-config/driver_ranking_oidc')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "c4c03bc6", + "metadata": {}, + "outputs": [], + "source": [ + "auth_config = fs_oidc.config.auth_config\n", + "auth_type = getattr(auth_config, 'auth_type', None) or getattr(auth_config, 'type', None)\n", + "assert auth_type == 'oidc', f\"Expected auth type 'oidc', got: '{auth_type}'\"\n", + "print(f\"✅ Auth type verified from FeatureStore config: {auth_type}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "cell-7", + "metadata": {}, + "outputs": [], + "source": [ + "# Verify project\n", + "project_name = \"driver_ranking_oidc\"\n", + "project = fs_oidc.get_project(project_name)\n", + "\n", + "assert project is not None, f\"get_project('{project_name}') returned None\"\n", + "\n", + "if isinstance(project, dict):\n", + " returned_name = project.get(\"spec\", {}).get(\"name\")\n", + "else:\n", + " returned_name = getattr(project, \"name\", None)\n", + " if not returned_name and hasattr(project, \"spec\") and hasattr(project.spec, \"name\"):\n", + " returned_name = project.spec.name\n", + "\n", + "assert returned_name, f\"Returned project does not contain a valid name: {project}\"\n", + "assert returned_name == project_name, (\n", + " f\"Expected project '{project_name}', but got '{returned_name}'\"\n", + ")\n", + "\n", + "print(f\"get_project('{project_name}') validation passed!\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e26f3c0a", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate get_entity\n", + "entity = fs_oidc.get_entity(\"driver\")\n", + "assert entity is not None, \"Entity 'driver' not found in registry\"\n", + "assert entity.name == \"driver\", f\"Entity name mismatch: {entity.name}\"\n", + "\n", + "join_keys = getattr(entity, \"join_keys\", None) or [getattr(entity, \"join_key\", \"\")]\n", + "assert \"driver_id\" in join_keys, f\"Expected join_key 'driver_id', got: {join_keys}\"\n", + "print(f\"✅ get_entity('driver'): name={entity.name}, join_keys={join_keys}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b7f470b2", + "metadata": {}, + "outputs": [], + "source": [ + "# driver_hourly_stats_fresh is the registered view (PushSource-backed)\n", + "fv = fs_oidc.get_feature_view(\"driver_hourly_stats_fresh\")\n", + "assert fv is not None, \"FeatureView 'driver_hourly_stats_fresh' not found in registry\"\n", + "assert fv.name == \"driver_hourly_stats_fresh\", f\"FeatureView name mismatch: {fv.name}\"\n", + "feature_names = [f.name for f in fv.features]\n", + "for expected in [\"conv_rate\", \"acc_rate\", \"avg_daily_trips\",\n", + " \"driver_metadata\", \"driver_config\", \"driver_profile\"]:\n", + " assert expected in feature_names, f\"'{expected}' not in features: {feature_names}\"\n", + "print(f\"✅ get_feature_view('driver_hourly_stats_fresh'): {len(fv.features)} features — {feature_names}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "80e6449f", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate get_data_source\n", + "ds = fs_oidc.get_data_source(\"driver_hourly_stats_source\")\n", + "assert ds is not None, \"DataSource 'driver_hourly_stats_source' not found in registry\"\n", + "assert ds.name == \"driver_hourly_stats_source\", f\"DataSource name mismatch: {ds.name}\"\n", + "print(f\"✅ get_data_source('driver_hourly_stats_source'): {ds.name}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0e4faeb0", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate get_feature_service\n", + "for fs_name in [\"driver_activity_v1\", \"driver_activity_v2\", \"driver_activity_v3\"]:\n", + " svc = fs_oidc.get_feature_service(fs_name)\n", + " assert svc is not None, f\"FeatureService '{fs_name}' not found in registry\"\n", + " assert svc.name == fs_name, f\"FeatureService name mismatch: {svc.name}\"\n", + " print(f\"✅ get_feature_service('{fs_name}'): {len(svc.feature_view_projections)} projections\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "8b2ccacd", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate get_on_demand_feature_view\n", + "for odfv_name in [\"transformed_conv_rate\", \"transformed_conv_rate_fresh\"]:\n", + " odfv = fs_oidc.get_on_demand_feature_view(odfv_name)\n", + " assert odfv is not None, f\"OnDemandFeatureView '{odfv_name}' not found\"\n", + " if isinstance(odfv, dict):\n", + " odfv_returned_name = odfv.get(\"spec\", {}).get(\"name\")\n", + " else:\n", + " odfv_returned_name = getattr(odfv, \"name\", None)\n", + " assert odfv_returned_name == odfv_name, (\n", + " f\"OnDemandFeatureView name mismatch: {odfv_returned_name}\"\n", + " )\n", + " odfv_features = [f.name for f in getattr(odfv, \"features\", [])]\n", + " for expected in [\"conv_rate_plus_val1\", \"conv_rate_plus_val2\"]:\n", + " assert expected in odfv_features, (\n", + " f\"'{expected}' not in {odfv_name} features: {odfv_features}\"\n", + " )\n", + " print(f\"✅ get_on_demand_feature_view('{odfv_name}'): features={odfv_features}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "02256c21", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate all list_* methods with OIDC auth.\n", + "non_empty_required = {\n", + " \"list_projects\",\n", + " \"list_entities\",\n", + " \"list_feature_views\",\n", + " \"list_all_feature_views\",\n", + " \"list_batch_feature_views\",\n", + " \"list_on_demand_feature_views\",\n", + " \"list_feature_services\",\n", + " \"list_data_sources\",\n", + "}\n", + "\n", + "feast_list_functions = [\n", + " \"list_projects\",\n", + " \"list_entities\",\n", + " \"list_feature_views\",\n", + " \"list_all_feature_views\",\n", + " \"list_batch_feature_views\",\n", + " \"list_on_demand_feature_views\",\n", + " \"list_feature_services\",\n", + " \"list_data_sources\",\n", + " \"list_saved_datasets\",\n", + "]\n", + "\n", + "def validate_list_method(fs_obj, method_name, require_non_empty=False):\n", + " assert hasattr(fs_obj, method_name), f\"Method not found: {method_name}\"\n", + " result = getattr(fs_obj, method_name)()\n", + " assert isinstance(result, list), (\n", + " f\"{method_name}() must return a list, got {type(result)}\"\n", + " )\n", + " if require_non_empty:\n", + " assert len(result) > 0, (\n", + " f\"{method_name}() returned an empty list — expected pre-applied data\"\n", + " )\n", + " print(f\"✅ {method_name}() returned {len(result)} items\")\n", + "\n", + "for m in feast_list_functions:\n", + " validate_list_method(fs_oidc, m, require_non_empty=(m in non_empty_required))\n", + "\n", + "print(\"\\nAll list_* methods validated successfully with OIDC auth\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "60a56715", + "metadata": {}, + "outputs": [], + "source": [ + "import time\n", + "import pandas as pd\n", + "\n", + "ts = pd.Timestamp.now(tz=\"UTC\")\n", + "online_write_df = pd.DataFrame({\n", + " \"driver_id\": [1001],\n", + " \"conv_rate\": [0.75],\n", + " \"acc_rate\": [0.91],\n", + " \"avg_daily_trips\": [42],\n", + " \"driver_metadata\": [{\"region\": \"west\"}],\n", + " \"driver_config\": [{\"level\": \"senior\"}],\n", + " \"driver_profile\": [{\"name\": \"John\", \"age\": \"30\"}],\n", + " \"event_timestamp\": [ts],\n", + " \"created\": [ts],\n", + "})\n", + "\n", + "fs_oidc.write_to_online_store(\n", + " feature_view_name=\"driver_hourly_stats_fresh\",\n", + " df=online_write_df,\n", + " allow_registry_cache=False,\n", + ")\n", + "print(\"✅ write_to_online_store('driver_hourly_stats_fresh') succeeded\")\n", + "\n", + "response = None\n", + "last_error = None\n", + "for attempt in range(1, 4):\n", + " try:\n", + " response = fs_oidc.get_online_features(\n", + " features=[\n", + " \"driver_hourly_stats_fresh:conv_rate\",\n", + " \"driver_hourly_stats_fresh:acc_rate\",\n", + " \"driver_hourly_stats_fresh:avg_daily_trips\",\n", + " ],\n", + " entity_rows=[{\"driver_id\": 1001}],\n", + " ).to_dict()\n", + " break\n", + " except Exception as exc:\n", + " last_error = exc\n", + " if attempt < 3:\n", + " print(f\"⚠️ Online read attempt {attempt}/3: {exc}\")\n", + " time.sleep(5)\n", + " else:\n", + " raise\n", + "\n", + "assert response is not None, f\"Online feature read failed: {last_error}\"\n", + "assert \"conv_rate\" in response, f\"'conv_rate' missing: {list(response.keys())}\"\n", + "assert \"acc_rate\" in response, f\"'acc_rate' missing: {list(response.keys())}\"\n", + "assert response[\"avg_daily_trips\"] == [42], (\n", + " f\"avg_daily_trips mismatch: {response['avg_daily_trips']}\"\n", + ")\n", + "print(f\"✅ get_online_features(): conv_rate={response['conv_rate']}, \"\n", + " f\"acc_rate={response['acc_rate']}, avg_daily_trips={response['avg_daily_trips']}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d3160e1e", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate list_permissions returns the OIDC admin group permission\n", + "permissions = fs_oidc.list_permissions()\n", + "assert isinstance(permissions, list), (\n", + " f\"list_permissions() must return a list, got {type(permissions)}\"\n", + ")\n", + "assert len(permissions) > 0, \"list_permissions() returned empty — expected admin_group_permission\"\n", + "\n", + "permission_names = [p.name for p in permissions]\n", + "print(f\"Permissions found: {permission_names}\")\n", + "\n", + "assert \"admin_group_permission\" in permission_names, (\n", + " f\"Expected 'admin_group_permission' in permissions, but got: {permission_names}\"\n", + ")\n", + "print(\"✅ admin_group_permission exists in Feast OIDC permissions\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "090ac5ef", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate get_historical_features with OIDC admin auth.\n", + "from datetime import datetime, timezone\n", + "import pandas as pd\n", + "\n", + "entity_df = pd.DataFrame({\n", + " \"driver_id\": [1001, 1002, 1003],\n", + " \"event_timestamp\": [datetime.now(tz=timezone.utc)] * 3,\n", + "})\n", + "\n", + "job = fs_oidc.get_historical_features(\n", + " entity_df=entity_df,\n", + " features=[\n", + " \"driver_hourly_stats_fresh:conv_rate\",\n", + " \"driver_hourly_stats_fresh:acc_rate\",\n", + " \"driver_hourly_stats_fresh:avg_daily_trips\",\n", + " ],\n", + ")\n", + "training_df = job.to_df()\n", + "\n", + "assert training_df is not None, \"get_historical_features() returned None\"\n", + "for col in [\"conv_rate\", \"acc_rate\", \"avg_daily_trips\"]:\n", + " assert col in training_df.columns, (\n", + " f\"'{col}' missing from historical features: {list(training_df.columns)}\"\n", + " )\n", + "print(f\"✅ get_historical_features(): {len(training_df)} rows\")\n", + "print(f\" Columns: {list(training_df.columns)}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "9c8f1184", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate materialize_incremental with OIDC admin auth.\n", + "\n", + "from datetime import datetime, timezone\n", + "\n", + "end_date = datetime.now(tz=timezone.utc)\n", + "\n", + "fs_oidc.materialize_incremental(\n", + " end_date=end_date,\n", + " feature_views=[\"driver_hourly_stats_fresh\"],\n", + ")\n", + "print(f\"✅ materialize_incremental(end_date={end_date.isoformat()}) succeeded with OIDC admin auth\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "79af11b8", + "metadata": {}, + "outputs": [], + "source": [ + "from feast.errors import (\n", + " FeatureServiceNotFoundException,\n", + " FeatureViewNotFoundException,\n", + " EntityNotFoundException,\n", + ")\n", + "\n", + "# delete_feature_service\n", + "for fs_name in [\"driver_activity_v1\", \"driver_activity_v2\", \"driver_activity_v3\"]:\n", + " fs_oidc.delete_feature_service(fs_name)\n", + " remaining = [s.name for s in fs_oidc.list_feature_services()]\n", + " assert fs_name not in remaining, (\n", + " f\"FeatureService '{fs_name}' still present after deletion\"\n", + " )\n", + " try:\n", + " fs_oidc.get_feature_service(fs_name)\n", + " raise AssertionError(f\"Expected get_feature_service('{fs_name}') to raise after deletion\")\n", + " except FeatureServiceNotFoundException:\n", + " print(f\"✅ delete_feature_service('{fs_name}'): confirmed FeatureServiceNotFoundException\")\n", + "\n", + "# delete_feature_view\n", + "for fv_name in [\"driver_hourly_stats_fresh\"]:\n", + " fs_oidc.delete_feature_view(fv_name)\n", + " remaining = [fv.name for fv in fs_oidc.list_feature_views()]\n", + " assert fv_name not in remaining, (\n", + " f\"FeatureView '{fv_name}' still present after deletion\"\n", + " )\n", + " try:\n", + " fs_oidc.get_feature_view(fv_name)\n", + " raise AssertionError(f\"Expected get_feature_view('{fv_name}') to raise after deletion\")\n", + " except FeatureViewNotFoundException:\n", + " print(f\"✅ delete_feature_view('{fv_name}'): confirmed FeatureViewNotFoundException\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "3f5964a3", + "metadata": {}, + "outputs": [], + "source": [ + "# Validate teardown with OIDC admin auth.\n", + "\n", + "fs_oidc.teardown()\n", + "print(\"✅ teardown() succeeded with OIDC admin auth\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "05940cf0", + "metadata": {}, + "outputs": [], + "source": [ + "# close() releases gRPC channels and registry connections.\n", + "fs_oidc.close()\n", + "print(\"✅ close() succeeded\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f4b3f65d", + "metadata": {}, + "outputs": [], + "source": [ + "import requests\n", + "\n", + "# Get feature server URL from the FeatureStore config already initialized\n", + "online_store_url = fs_oidc.config.online_store.path\n", + "assert online_store_url, \"Could not determine feature server URL from FeatureStore config\"\n", + "print(f\"Feature server URL: {online_store_url}\")\n", + "\n", + "# Send a request with an invalid token — OIDC must reject it with 401\n", + "response = requests.post(\n", + " f\"{online_store_url.rstrip('/')}/get-online-features\",\n", + " headers={\n", + " \"Authorization\": \"Bearer invalid-garbage-token\",\n", + " \"Content-Type\": \"application/json\",\n", + " },\n", + " json={\n", + " \"features\": [\"driver_hourly_stats_fresh:conv_rate\"],\n", + " \"entities\": {\"driver_id\": [1001]},\n", + " },\n", + " verify=False, # test cluster uses self-signed cert (verifySSL: false in CR)\n", + " timeout=10,\n", + ")\n", + "\n", + "assert response.status_code == 401, (\n", + " f\"Expected 401 Unauthorized for invalid OIDC token, \"\n", + " f\"got HTTP {response.status_code}: {response.text[:200]}\"\n", + ")\n", + "print(\"✅ Invalid token correctly rejected with HTTP 401\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e8d242a1", + "metadata": {}, + "outputs": [], + "source": [ + "response = requests.post(\n", + " f\"{online_store_url.rstrip('/')}/get-online-features\",\n", + " headers={\"Content-Type\": \"application/json\"}, # no Authorization header\n", + " json={\n", + " \"features\": [\"driver_hourly_stats_fresh:conv_rate\"],\n", + " \"entities\": {\"driver_id\": [1001]},\n", + " },\n", + " verify=False,\n", + " timeout=10,\n", + ")\n", + "assert response.status_code == 401, (\n", + " f\"Expected 401 for missing token, got HTTP {response.status_code}\"\n", + ")\n", + "print(\"✅ Missing Authorization header correctly rejected with HTTP 401\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "d5fdf606", + "metadata": {}, + "outputs": [], + "source": [ + "response = requests.post(\n", + " f\"{online_store_url.rstrip('/')}/get-online-features\",\n", + " headers={\n", + " \"Authorization\": \"Basic dXNlcjpwYXNzd29yZA==\", # base64 user:password\n", + " \"Content-Type\": \"application/json\",\n", + " },\n", + " json={\n", + " \"features\": [\"driver_hourly_stats_fresh:conv_rate\"],\n", + " \"entities\": {\"driver_id\": [1001]},\n", + " },\n", + " verify=False,\n", + " timeout=10,\n", + ")\n", + "assert response.status_code == 401, (\n", + " f\"Expected 401 for wrong auth scheme, got HTTP {response.status_code}\"\n", + ")\n", + "print(\"✅ Wrong auth scheme (Basic) correctly rejected with HTTP 401\")" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbformat_minor": 5, + "version": "3.11.0" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast_oidc.yaml b/infra/feast-operator/test/e2e_rhoai/resources/feast_oidc.yaml new file mode 100644 index 00000000000..2aaf5f33fcd --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast_oidc.yaml @@ -0,0 +1,20 @@ +apiVersion: feast.dev/v1 +kind: FeatureStore +metadata: + name: test-feast-oidc + labels: + feature-store-ui: enabled +spec: + authz: + oidc: + verifySSL: false + feastProject: driver_ranking_oidc + services: + offlineStore: + server: {} + onlineStore: + server: {} + registry: + local: + server: + restAPI: true diff --git a/infra/feast-operator/test/e2e_rhoai/resources/permissions_oidc.py b/infra/feast-operator/test/e2e_rhoai/resources/permissions_oidc.py new file mode 100644 index 00000000000..1da939e6016 --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/resources/permissions_oidc.py @@ -0,0 +1,17 @@ +from feast.feast_object import ALL_RESOURCE_TYPES +from feast.permissions.permission import Permission +from feast.permissions.action import ALL_ACTIONS +from feast.permissions.policy import GroupBasedPolicy + +# Define admin groups with full access +admin_groups = ["dedicated-admins"] + +# Admin group permission — full control over all Feast resources +admin_group_perm = Permission( + name="admin_group_permission", + types=ALL_RESOURCE_TYPES, + policy=GroupBasedPolicy(admin_groups), + actions=ALL_ACTIONS, +) + +print("Admin group permission configured successfully.") diff --git a/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go b/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go index ba02a4a676f..239dbf287a2 100644 --- a/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go +++ b/infra/feast-operator/test/e2e_rhoai/utils/notebook_util.go @@ -31,6 +31,7 @@ type NotebookTemplateParams struct { FeastVersion string OpenAIAPIKey string FeastProject string + AdditionalEnv map[string]string } // CreateNotebook renders a notebook manifest from a template and applies it using kubectl. @@ -317,6 +318,7 @@ func GetNotebookParams(namespace, configMapName, notebookPVC, notebookName, test FeastVersion: getEnv("FEAST_VERSION"), OpenAIAPIKey: getEnv("OPENAI_API_KEY"), FeastProject: feastProject, + AdditionalEnv: map[string]string{}, } } @@ -346,11 +348,8 @@ func SetupNotebookEnvironment(namespace, configMapName, notebookFile, featureRep return nil } -// CreateNotebookTest performs all the setup steps and creates a notebook. -// This function handles namespace context, ConfigMap, PVC, rolebinding, and notebook creation. -// feastProject is optional - if provided, it will be set in the notebook annotation, otherwise it will be empty -func CreateNotebookTest(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, notebookName, testDir string, feastProject string) { - // Execute common setup steps +// prepareNotebookTestResources sets namespace context, ConfigMap, PVC, and rolebinding for notebook E2E tests. +func prepareNotebookTestResources(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, testDir string) { By(fmt.Sprintf("Setting namespace context to : %s", namespace)) Expect(SetNamespaceContext(namespace, testDir)).To(Succeed()) fmt.Printf("Successfully set namespace context to: %s\n", namespace) @@ -366,8 +365,14 @@ func CreateNotebookTest(namespace, configMapName, notebookFile, featureRepoPath, By(fmt.Sprintf("Creating rolebinding %s for the user", rolebindingName)) Expect(CreateNotebookRoleBinding(namespace, rolebindingName, GetOCUser(testDir), testDir)).To(Succeed()) fmt.Printf("Created rolebinding %s successfully\n", rolebindingName) +} + +// CreateNotebookTest performs all the setup steps and creates a notebook. +// This function handles namespace context, ConfigMap, PVC, rolebinding, and notebook creation. +// feastProject is optional - if provided, it will be set in the notebook annotation, otherwise it will be empty +func CreateNotebookTest(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, notebookName, testDir string, feastProject string) { + prepareNotebookTestResources(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, testDir) - // Build notebook parameters and create notebook nbParams := GetNotebookParams(namespace, configMapName, notebookPVC, notebookName, testDir, feastProject) By("Creating Jupyter Notebook") Expect(CreateNotebook(nbParams)).To(Succeed(), "Failed to create notebook") diff --git a/infra/feast-operator/test/e2e_rhoai/utils/oidc_util.go b/infra/feast-operator/test/e2e_rhoai/utils/oidc_util.go new file mode 100644 index 00000000000..1c60a5f036f --- /dev/null +++ b/infra/feast-operator/test/e2e_rhoai/utils/oidc_util.go @@ -0,0 +1,181 @@ +/* +Copyright 2026 Feast Community. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package utils + +import ( + "encoding/base64" + "fmt" + "os" + "os/exec" + "strings" + + testutils "github.com/feast-dev/feast/infra/feast-operator/test/utils" + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +// ApplyFeastOidcPermissions writes the OIDC permissions file into the Feast registry pod +// using kubectl exec (avoids `oc cp` which requires tar in the container), +// then runs `feast apply` to register the permissions. +func ApplyFeastOidcPermissions(fileName string, registryFilePath string, namespace string, podNamePrefix string) { + By("Applying Feast OIDC permissions to the Feast registry pod") + + By(fmt.Sprintf("Finding pod with prefix %q in namespace %q", podNamePrefix, namespace)) + pod, err := getPodByPrefix(namespace, podNamePrefix) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + ExpectWithOffset(1, pod).NotTo(BeNil()) + + podName := pod.Name + fmt.Printf("Found pod: %s\n", podName) + + // Read the permissions file content locally + content, err := os.ReadFile(fileName) + ExpectWithOffset(1, err).NotTo(HaveOccurred(), fmt.Sprintf("Failed to read permissions file %s", fileName)) + + idx := strings.LastIndex(registryFilePath, "/") + ExpectWithOffset(1, idx).To(BeNumerically(">", 0), "registryFilePath must include a directory component") + dir := registryFilePath[:idx] + + By(fmt.Sprintf("Writing permissions file to %s in pod %s", registryFilePath, podName)) + cmd := exec.Command( + "kubectl", "exec", podName, + "-n", namespace, + "-c", "registry", + "--", + "mkdir", "-p", dir, + ) + _, err = testutils.Run(cmd, "/test/e2e_rhoai") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + encoded := base64.StdEncoding.EncodeToString(content) + shellCmd := fmt.Sprintf("echo '%s' | base64 -d > %s", encoded, registryFilePath) + cmd = exec.Command( + "kubectl", "exec", podName, + "-n", namespace, + "-c", "registry", + "--", + "sh", "-c", shellCmd, + ) + _, err = testutils.Run(cmd, "/test/e2e_rhoai") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + fmt.Printf("Successfully wrote OIDC permissions file to pod: %s\n", podName) + + By("Running feast apply inside the Feast registry pod") + cmd = exec.Command( + "kubectl", "exec", podName, + "-n", namespace, + "-c", "registry", + "--", + "sh", "-c", + "cd /feast-data/driver_ranking_oidc/feature_repo && feast apply", + ) + _, err = testutils.Run(cmd, "/test/e2e_rhoai") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + fmt.Println("Feast OIDC permissions apply executed successfully") + + By("Validating that Feast OIDC permission has been applied") + cmd = exec.Command( + "kubectl", "exec", podName, + "-n", namespace, + "-c", "registry", + "--", + "feast", "permissions", "list", + ) + + output, err := testutils.Run(cmd, "/test/e2e_rhoai") + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + ExpectWithOffset(1, output).To(ContainSubstring("admin_group_permission"), "Expected permission 'admin_group_permission' to exist") + fmt.Println("Verified: Feast OIDC permission 'admin_group_permission' exists") +} + +// ApplyFeastOidcYamlAndVerify applies the OIDC FeatureStore manifest and waits for the +// deployment to become available. Unlike ApplyFeastYamlAndVerify, this skips postgres +// table checks and git repo init container verification since the OIDC CR uses default stores. +func ApplyFeastOidcYamlAndVerify(namespace string, testDir string, feastDeploymentName string, feastCRName string, feastYAMLFilePath string) { + By("Applying OIDC Feast yaml for Feature store CR") + cmd := exec.Command("kubectl", "apply", "-n", namespace, + "-f", feastYAMLFilePath) + _, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + CheckDeployment(namespace, feastDeploymentName) +} + +// CreateOidcNotebookTest performs all the setup steps and creates a notebook with OIDC token injected. +func CreateOidcNotebookTest(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, notebookName, testDir string, feastProject string) { + prepareNotebookTestResources(namespace, configMapName, notebookFile, featureRepoPath, pvcFile, rolebindingName, notebookPVC, testDir) + + nbParams := GetOidcNotebookParams(namespace, configMapName, notebookPVC, notebookName, testDir, feastProject) + By("Creating Jupyter Notebook with OIDC token") + Expect(CreateNotebook(nbParams)).To(Succeed(), "Failed to create OIDC notebook") +} + +// BuildOidcNotebookCommand builds the command for executing the OIDC notebook. +func BuildOidcNotebookCommand(notebookName string) []string { + return []string{ + "/bin/sh", + "-c", + fmt.Sprintf( + "pip install papermill && "+ + "mkdir -p /opt/app-root/src/feature_repo && "+ + "cp -rL /opt/app-root/notebooks/* /opt/app-root/src/feature_repo/ && "+ + "(papermill /opt/app-root/notebooks/%s /opt/app-root/src/output.ipynb --kernel python3 && "+ + "echo '✅ Notebook executed successfully' || "+ + "(echo '❌ Notebook execution failed' && "+ + "cp /opt/app-root/src/output.ipynb /opt/app-root/src/failed_output.ipynb && "+ + "echo '📄 Copied failed notebook to failed_output.ipynb')) && "+ + "jupyter nbconvert --to notebook --stdout /opt/app-root/src/output.ipynb || echo '⚠️ nbconvert failed' && "+ + "sleep 100; exit 0", + notebookName, + ), + } +} + +// GetOidcNotebookParams builds NotebookTemplateParams with FEAST_OIDC_TOKEN set from TOKEN env var. +func GetOidcNotebookParams(namespace, configMapName, notebookPVC, notebookName, testDir string, feastProject string) NotebookTemplateParams { + username := GetOCUser(testDir) + command := BuildOidcNotebookCommand(notebookName) + oidcToken := strings.TrimSpace(os.Getenv("TOKEN")) + ExpectWithOffset(1, oidcToken).NotTo(BeEmpty(), "TOKEN env var must be set for OIDC notebook test") + + getEnv := func(key string) string { + val, _ := os.LookupEnv(key) + return val + } + + return NotebookTemplateParams{ + Namespace: namespace, + IngressDomain: GetIngressDomain(testDir), + OpenDataHubNamespace: getEnv("APPLICATIONS_NAMESPACE"), + NotebookImage: getEnv("NOTEBOOK_IMAGE"), + NotebookConfigMapName: configMapName, + NotebookPVC: notebookPVC, + Username: username, + OC_TOKEN: GetOCToken(testDir), + OC_SERVER: GetOCServer(testDir), + NotebookFile: notebookName, + Command: "[\"" + strings.Join(command, "\",\"") + "\"]", + PipIndexUrl: getEnv("PIP_INDEX_URL"), + PipTrustedHost: getEnv("PIP_TRUSTED_HOST"), + FeastVersion: getEnv("FEAST_VERSION"), + OpenAIAPIKey: getEnv("OPENAI_API_KEY"), + FeastProject: feastProject, + AdditionalEnv: map[string]string{ + "FEAST_OIDC_TOKEN": oidcToken, + }, + } +} From a52a385a42cd133f48f355851f607e1911ad2a38 Mon Sep 17 00:00:00 2001 From: Srihari Date: Mon, 25 May 2026 19:01:55 +0530 Subject: [PATCH 28/37] test: Refactor Milvus RAG Notebook test --- .../resources/feast-wb-milvus-test.ipynb | 409 +++++++++--------- 1 file changed, 195 insertions(+), 214 deletions(-) mode change 100755 => 100644 infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb diff --git a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb old mode 100755 new mode 100644 index e2838a4f33e..e0505dac0ad --- a/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb +++ b/infra/feast-operator/test/e2e_rhoai/resources/feast-wb-milvus-test.ipynb @@ -6,14 +6,17 @@ "metadata": {}, "outputs": [], "source": [ + "# ── Validate Feast version ───────────────────────────────────────────\n", "import os\n", "import feast\n", "\n", "actual_version = feast.__version__\n", - "assert actual_version == os.environ.get(\"FEAST_VERSION\"), (\n", - " f\"❌ Feast version mismatch. Expected: {os.environ.get('FEAST_VERSION')}, Found: {actual_version}\"\n", + "expected_version = os.environ.get(\"FEAST_VERSION\")\n", + "\n", + "assert actual_version == expected_version, (\n", + " f\"❌ Feast version mismatch. Expected: {expected_version}, Found: {actual_version}\"\n", ")\n", - "print(f\"✅ Successfully installed Feast version: {actual_version}\")" + "print(f\"✅ Feast version validated: {actual_version}\")" ] }, { @@ -22,6 +25,7 @@ "metadata": {}, "outputs": [], "source": [ + "# ── Navigate to feature repo ─────────────────────────────────────────\n", "%cd /opt/app-root/src/feature_repo\n", "!ls -l" ] @@ -32,7 +36,22 @@ "metadata": {}, "outputs": [], "source": [ - "!cat /opt/app-root/src/feature_repo/feature_store.yaml" + "# ── Validate feature_store.yaml ──────────────────────────────────────\n", + "import yaml\n", + "\n", + "with open(\"feature_store.yaml\") as f:\n", + " fs_config = yaml.safe_load(f)\n", + "\n", + "print(yaml.dump(fs_config, default_flow_style=False))\n", + "\n", + "assert fs_config.get(\"project\") == \"rag\", (\n", + " f\"❌ Expected project 'rag', got '{fs_config.get('project')}'\"\n", + ")\n", + "online_store = str(fs_config.get(\"online_store\", \"\")).lower()\n", + "assert \"milvus\" in online_store, (\n", + " f\"❌ Milvus not configured as online store. Found: {fs_config.get('online_store')}\"\n", + ")\n", + "print(\"✅ feature_store.yaml validated: project=rag, online_store=milvus\")" ] }, { @@ -41,8 +60,11 @@ "metadata": {}, "outputs": [], "source": [ + "# ── Download dataset ──────────────────────────────────────────────────\n", "!mkdir -p data\n", - "!wget -O data/city_wikipedia_summaries_with_embeddings.parquet https://raw.githubusercontent.com/opendatahub-io/feast/master/examples/rag/feature_repo/data/city_wikipedia_summaries_with_embeddings.parquet" + "!wget -q -O data/city_wikipedia_summaries_with_embeddings.parquet \\\n", + " https://raw.githubusercontent.com/opendatahub-io/feast/master/examples/rag/feature_repo/data/city_wikipedia_summaries_with_embeddings.parquet\n", + "print(\"✅ Dataset downloaded\")" ] }, { @@ -51,24 +73,23 @@ "metadata": {}, "outputs": [], "source": [ - "import pandas as pd \n", + "# Load dataset and validate embeddings ──────────────────────────────\n", + "import pandas as pd\n", "\n", "df = pd.read_parquet(\"./data/city_wikipedia_summaries_with_embeddings.parquet\")\n", - "df['vector'] = df['vector'].apply(lambda x: x.tolist())\n", - "embedding_length = len(df['vector'][0])\n", - "assert embedding_length == 384, f\"❌ Expected vector length 384, but got {embedding_length}\"\n", - "print(f'embedding length = {embedding_length}')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from IPython.display import display\n", + "df[\"vector\"] = df[\"vector\"].apply(lambda x: x.tolist())\n", + "\n", + "assert not df.empty, \"❌ Loaded dataframe is empty\"\n", "\n", - "display(df.head())" + "required_columns = {\"item_id\", \"vector\", \"state\", \"sentence_chunks\", \"wiki_summary\"}\n", + "missing = required_columns - set(df.columns)\n", + "assert not missing, f\"❌ Missing columns in parquet: {missing}\"\n", + "\n", + "embedding_length = len(df[\"vector\"][0])\n", + "assert embedding_length == 384, f\"❌ Expected vector length 384, got {embedding_length}\"\n", + "\n", + "print(f\"✅ Dataset loaded: {len(df)} rows, embedding length={embedding_length}\")\n", + "df.head()" ] }, { @@ -77,7 +98,9 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install -q pymilvus[milvus_lite] transformers torch" + "# Install dependencies ──────────────────────────────────────────────\n", + "!pip install -q pymilvus[milvus_lite] transformers torch\n", + "print(\"✅ Dependencies installed\")" ] }, { @@ -86,29 +109,25 @@ "metadata": {}, "outputs": [], "source": [ + "# Run feast apply and validate output ───────────────────────────────\n", "import subprocess\n", "\n", - "# Run `feast apply` and capture output\n", "result = subprocess.run([\"feast\", \"apply\"], capture_output=True, text=True)\n", - "\n", - "# Combine stdout and stderr in case important info is in either\n", "output = result.stdout + result.stderr\n", - "\n", - "# Print full output for debugging (optional)\n", "print(output)\n", "\n", - "# Expected substrings to validate\n", + "assert result.returncode == 0, (\n", + " f\"❌ feast apply exited with code {result.returncode}\\n{output}\"\n", + ")\n", + "\n", "expected_messages = [\n", " \"Applying changes for project rag\",\n", - " \"Connecting to Milvus in local mode\",\n", - " \"Deploying infrastructure for city_embeddings\"\n", + " \"Deploying infrastructure for city_embeddings\",\n", "]\n", - "\n", - "# Validate all expected messages are in output\n", "for msg in expected_messages:\n", - " assert msg in output, f\"❌ Expected message not found: '{msg}'\"\n", + " assert msg in output, f\"❌ Expected message not found in feast apply output: '{msg}'\"\n", "\n", - "print(\"✅ All expected messages were found in the output.\")\n" + "print(\"✅ feast apply succeeded with all expected messages\")" ] }, { @@ -117,10 +136,11 @@ "metadata": {}, "outputs": [], "source": [ - "from datetime import datetime\n", + "# Initialize FeatureStore ──────────────────────────────────────────\n", "from feast import FeatureStore\n", "\n", - "store = FeatureStore(repo_path=\".\")" + "store = FeatureStore(repo_path=\".\")\n", + "print(f\"✅ FeatureStore initialized — project: {store.project}\")" ] }, { @@ -129,30 +149,27 @@ "metadata": {}, "outputs": [], "source": [ - "import io\n", - "import sys\n", - "\n", - "# Capture stdout\n", - "captured_output = io.StringIO()\n", - "sys_stdout_backup = sys.stdout\n", - "sys.stdout = captured_output\n", - "\n", - "# Call the function\n", - "store.write_to_online_store(feature_view_name='city_embeddings', df=df)\n", - "\n", - "# Restore stdout\n", - "sys.stdout = sys_stdout_backup\n", - "\n", - "# Get the output\n", - "output_str = captured_output.getvalue()\n", - "\n", - "# Expected message\n", - "expected_msg = \"Connecting to Milvus in local mode using data/online_store.db\"\n", - "\n", - "# Validate\n", - "assert expected_msg in output_str, f\"❌ Expected message not found.\\nExpected: {expected_msg}\\nActual Output:\\n{output_str}\"\n", - "\n", - "print(\"✅ Output message validated successfully.\")\n" + "try:\n", + " store.write_to_online_store(feature_view_name=\"city_embeddings\", df=df)\n", + " print(\"✅ write_to_online_store executed successfully\")\n", + "except Exception as e:\n", + " raise AssertionError(f\"❌ write_to_online_store failed: {e}\")\n", + "\n", + "# Verify row count in Milvus matches source dataframe\n", + "milvus_client = store._provider._online_store._connect(store.config)\n", + "collections = milvus_client.list_collections()\n", + "assert len(collections) > 0, \"❌ No Milvus collections found after write_to_online_store\"\n", + "\n", + "actual_count = milvus_client.query(\n", + " collection_name=collections[0],\n", + " filter=\"\",\n", + " output_fields=[\"count(*)\"],\n", + ")[0].get(\"count(*)\", 0)\n", + "\n", + "assert actual_count == len(df), (\n", + " f\"❌ Row count mismatch: wrote {len(df)}, Milvus has {actual_count}\"\n", + ")\n", + "print(f\"✅ Milvus contains all {actual_count} written rows\")" ] }, { @@ -161,17 +178,13 @@ "metadata": {}, "outputs": [], "source": [ - "# List batch feature views\n", "batch_fvs = store.list_batch_feature_views()\n", "\n", - "# Print the number of batch feature views\n", - "print(\"Number of batch feature views:\", len(batch_fvs))\n", - "\n", - "# Assert that the result is an integer and non-negative\n", - "assert isinstance(len(batch_fvs), int), \"Result is not an integer\"\n", - "assert len(batch_fvs) >= 0, \"Feature view count is negative\"\n", - "\n", - "print(\"Feature views listed correctly ✅\")" + "assert isinstance(batch_fvs, list), \"❌ list_batch_feature_views did not return a list\"\n", + "assert len(batch_fvs) == 1, (\n", + " f\"❌ Expected exactly 1 batch feature view, got {len(batch_fvs)}\"\n", + ")\n", + "print(f\"✅ Batch feature views count validated: {len(batch_fvs)}\")" ] }, { @@ -180,33 +193,31 @@ "metadata": {}, "outputs": [], "source": [ - "from feast import FeatureStore\n", - "\n", - "# Initialize store (if not already)\n", - "store = FeatureStore(repo_path=\".\") # Adjust path if necessary\n", - "\n", - "# Retrieve the feature view\n", "fv = store.get_feature_view(\"city_embeddings\")\n", "\n", - "# Assert name\n", - "assert fv.name == \"city_embeddings\", \"Feature view name mismatch\"\n", - "\n", - "# Assert entities\n", - "assert fv.entities == [\"item_id\"], f\"Expected entities ['item_id'], got {fv.entities}\"\n", + "assert fv.name == \"city_embeddings\", (\n", + " f\"❌ Feature view name mismatch: expected 'city_embeddings', got '{fv.name}'\"\n", + ")\n", + "assert fv.entities == [\"item_id\"], (\n", + " f\"❌ Expected entities ['item_id'], got {fv.entities}\"\n", + ")\n", "\n", - "# Assert feature names and vector index settings\n", "feature_names = [f.name for f in fv.features]\n", - "assert \"vector\" in feature_names, \"Missing 'vector' feature\"\n", - "assert \"state\" in feature_names, \"Missing 'state' feature\"\n", - "assert \"sentence_chunks\" in feature_names, \"Missing 'sentence_chunks' feature\"\n", - "assert \"wiki_summary\" in feature_names, \"Missing 'wiki_summary' feature\"\n", + "for expected_field in [\"vector\", \"state\", \"sentence_chunks\", \"wiki_summary\"]:\n", + " assert expected_field in feature_names, (\n", + " f\"❌ Missing expected feature field: '{expected_field}'\"\n", + " )\n", "\n", - "# Assert 'vector' feature is a vector index with COSINE metric\n", "vector_feature = next(f for f in fv.features if f.name == \"vector\")\n", - "assert vector_feature.vector_index, \"'vector' feature is not indexed\"\n", - "assert vector_feature.vector_search_metric == \"COSINE\", \"Expected COSINE search metric for 'vector'\"\n", + "assert vector_feature.vector_index, \"❌ 'vector' feature is not configured as a vector index\"\n", + "assert vector_feature.vector_search_metric == \"COSINE\", (\n", + " f\"❌ Expected COSINE search metric, got '{vector_feature.vector_search_metric}'\"\n", + ")\n", "\n", - "print(\"All assertions passed ✅\")" + "print(f\"✅ Feature view 'city_embeddings' schema validated\")\n", + "print(f\" Fields : {feature_names}\")\n", + "print(f\" Entities : {fv.entities}\")\n", + "print(f\" Metric : {vector_feature.vector_search_metric}\")" ] }, { @@ -217,15 +228,19 @@ "source": [ "from feast.entity import Entity\n", "from feast.types import ValueType\n", - "entity = Entity(\n", + "\n", + "test_entity = Entity(\n", " name=\"item_id1\",\n", " value_type=ValueType.INT64,\n", - " description=\"test id\",\n", + " description=\"Temporary test entity\",\n", " tags={\"team\": \"feast\"},\n", ")\n", - "store.apply(entity)\n", - "assert any(e.name == \"item_id1\" for e in store.list_entities())\n", - "print(\"Entity added ✅\")" + "store.apply(test_entity)\n", + "\n", + "assert any(e.name == \"item_id1\" for e in store.list_entities()), (\n", + " \"❌ Entity 'item_id1' not found after apply\"\n", + ")\n", + "print(\"✅ Entity 'item_id1' added and verified\")" ] }, { @@ -235,16 +250,12 @@ "outputs": [], "source": [ "entity_to_delete = store.get_entity(\"item_id1\")\n", + "store.apply(objects=[], objects_to_delete=[entity_to_delete], partial=False)\n", "\n", - "store.apply(\n", - " objects=[],\n", - " objects_to_delete=[entity_to_delete],\n", - " partial=False\n", + "assert not any(e.name == \"item_id1\" for e in store.list_entities()), (\n", + " \"❌ Entity 'item_id1' still present after deletion\"\n", ")\n", - "\n", - "# Validation after deletion\n", - "assert not any(e.name == \"item_id1\" for e in store.list_entities())\n", - "print(\"Entity deleted ✅\")" + "print(\"✅ Entity 'item_id1' deleted and verified\")" ] }, { @@ -253,12 +264,11 @@ "metadata": {}, "outputs": [], "source": [ - "# List batch feature views\n", "batch_fvs = store.list_batch_feature_views()\n", - "assert len(batch_fvs) == 1\n", - "\n", - "# Print count\n", - "print(f\"Found {len(batch_fvs)} batch feature view(s) ✅\")\n" + "assert len(batch_fvs) == 1, (\n", + " f\"❌ Expected 1 feature view after entity delete, got {len(batch_fvs)}\"\n", + ")\n", + "print(f\"✅ Feature view count unchanged after entity delete: {len(batch_fvs)}\")" ] }, { @@ -267,14 +277,25 @@ "metadata": {}, "outputs": [], "source": [ - "pymilvus_client = store._provider._online_store._connect(store.config)\n", - "COLLECTION_NAME = pymilvus_client.list_collections()[0]\n", "\n", - "milvus_query_result = pymilvus_client.query(\n", + "milvus_client = store._provider._online_store._connect(store.config)\n", + "\n", + "collections = milvus_client.list_collections()\n", + "assert len(collections) > 0, \"❌ No Milvus collections found\"\n", + "COLLECTION_NAME = collections[0]\n", + "print(f\"Collection: {COLLECTION_NAME}\")\n", + "\n", + "milvus_results = milvus_client.query(\n", " collection_name=COLLECTION_NAME,\n", " filter=\"item_id == '0'\",\n", ")\n", - "pd.DataFrame(milvus_query_result[0]).head()" + "assert len(milvus_results) > 0, \"❌ Milvus query for item_id=0 returned no results\"\n", + "\n", + "result_df = pd.DataFrame(milvus_results)\n", + "assert \"vector\" in result_df.columns, \"❌ 'vector' column missing from Milvus query result\"\n", + "\n", + "print(f\"✅ Milvus direct query validated: {len(result_df)} row(s) returned\")\n", + "result_df.head()" ] }, { @@ -283,20 +304,16 @@ "metadata": {}, "outputs": [], "source": [ + "\n", "import torch\n", "import torch.nn.functional as F\n", - "from feast import FeatureStore\n", - "from pymilvus import MilvusClient, DataType, FieldSchema\n", "from transformers import AutoTokenizer, AutoModel\n", - "from example_repo import city_embeddings_feature_view, item\n", "\n", "TOKENIZER = \"sentence-transformers/all-MiniLM-L6-v2\"\n", "MODEL = \"sentence-transformers/all-MiniLM-L6-v2\"\n", "\n", "def mean_pooling(model_output, attention_mask):\n", - " token_embeddings = model_output[\n", - " 0\n", - " ] # First element of model_output contains all token embeddings\n", + " token_embeddings = model_output[0]\n", " input_mask_expanded = (\n", " attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()\n", " )\n", @@ -308,13 +325,14 @@ " encoded_input = tokenizer(\n", " sentences, padding=True, truncation=True, return_tensors=\"pt\"\n", " )\n", - " # Compute token embeddings\n", " with torch.no_grad():\n", " model_output = model(**encoded_input)\n", + " embeddings = mean_pooling(model_output, encoded_input[\"attention_mask\"])\n", + " return F.normalize(embeddings, p=2, dim=1)\n", "\n", - " sentence_embeddings = mean_pooling(model_output, encoded_input[\"attention_mask\"])\n", - " sentence_embeddings = F.normalize(sentence_embeddings, p=2, dim=1)\n", - " return sentence_embeddings" + "tokenizer = AutoTokenizer.from_pretrained(TOKENIZER)\n", + "model = AutoModel.from_pretrained(MODEL)\n", + "print(\"✅ Embedding model loaded\")" ] }, { @@ -323,12 +341,14 @@ "metadata": {}, "outputs": [], "source": [ + "# ── Cell 17: Generate query embedding ─────────────────────────────────────────\n", "question = \"Which city has the largest population in New York?\"\n", "\n", - "tokenizer = AutoTokenizer.from_pretrained(TOKENIZER)\n", - "model = AutoModel.from_pretrained(MODEL)\n", "query_embedding = run_model(question, tokenizer, model)\n", - "query = query_embedding.detach().cpu().numpy().tolist()[0]" + "query = query_embedding.detach().cpu().numpy().tolist()[0]\n", + "\n", + "assert len(query) == 384, f\"❌ Query embedding length mismatch: expected 384, got {len(query)}\"\n", + "print(f\"✅ Query embedding generated: length={len(query)}\")" ] }, { @@ -337,9 +357,9 @@ "metadata": {}, "outputs": [], "source": [ - "from IPython.display import display\n", "\n", - "# Retrieve top k documents\n", + "TOP_K = 3\n", + "\n", "context_data = store.retrieve_online_documents_v2(\n", " features=[\n", " \"city_embeddings:vector\",\n", @@ -349,10 +369,29 @@ " \"city_embeddings:wiki_summary\",\n", " ],\n", " query=query,\n", - " top_k=3,\n", - " distance_metric='COSINE',\n", + " top_k=TOP_K,\n", + " distance_metric=\"COSINE\",\n", ").to_df()\n", - "display(context_data)" + "\n", + "assert context_data is not None and not context_data.empty, (\n", + " \"❌ retrieve_online_documents_v2 returned empty results\"\n", + ")\n", + "assert len(context_data) == TOP_K, (\n", + " f\"❌ Expected top_k={TOP_K} results, got {len(context_data)}\"\n", + ")\n", + "\n", + "expected_columns = {\"state\", \"sentence_chunks\", \"wiki_summary\", \"item_id\", \"vector\"}\n", + "missing_cols = expected_columns - set(context_data.columns)\n", + "assert not missing_cols, f\"❌ Missing columns in RAG result: {missing_cols}\"\n", + "\n", + "if \"distance\" in context_data.columns:\n", + " assert context_data[\"distance\"].between(-1.0, 1.0).all(), (\n", + " \"❌ COSINE distance scores out of expected range [-1, 1]\"\n", + " )\n", + " print(f\" Distance range: [{context_data['distance'].min():.4f}, {context_data['distance'].max():.4f}]\")\n", + "\n", + "print(f\"✅ retrieve_online_documents_v2 returned {len(context_data)} results with correct schema\")\n", + "context_data" ] }, { @@ -363,76 +402,26 @@ "source": [ "def format_documents(context_df):\n", " output_context = \"\"\n", - " unique_documents = context_df.drop_duplicates().apply(\n", - " lambda x: \"City & State = {\" + x['state'] +\"}\\nSummary = {\" + x['wiki_summary'].strip()+\"}\",\n", + " unique_documents = context_df.drop_duplicates(subset=[\"item_id\"]).apply(\n", + " lambda x: \"City & State = {\" + x[\"state\"] + \"}\\nSummary = {\" + x[\"wiki_summary\"].strip() + \"}\",\n", " axis=1,\n", " )\n", " for i, document_text in enumerate(unique_documents):\n", - " output_context+= f\"****START DOCUMENT {i}****\\n{document_text.strip()}\\n****END DOCUMENT {i}****\"\n", - " return output_context" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "RAG_CONTEXT = format_documents(context_data[['state', 'wiki_summary']])\n", - "print(RAG_CONTEXT)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "FULL_PROMPT = f\"\"\"\n", - "You are an assistant for answering questions about states. You will be provided documentation from Wikipedia. Provide a conversational answer.\n", - "If you don't know the answer, just say \"I do not know.\" Don't make up an answer.\n", + " output_context += f\"****START DOCUMENT {i}****\\n{document_text.strip()}\\n****END DOCUMENT {i}****\\n\"\n", + " return output_context\n", "\n", - "Here are document(s) you should use when answer the users question:\n", - "{RAG_CONTEXT}\n", - "\"\"\"" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pip install openai" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import os\n", - "from openai import OpenAI\n", + "# Pass item_id so drop_duplicates(subset=[\"item_id\"]) has the column available\n", + "RAG_CONTEXT = format_documents(context_data[[\"item_id\", \"state\", \"wiki_summary\"]])\n", "\n", - "client = OpenAI(\n", - " api_key=os.environ.get(\"OPENAI_API_KEY\"),\n", - ")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "response = client.chat.completions.create(\n", - " model=\"gpt-4o-mini\",\n", - " messages=[\n", - " {\"role\": \"system\", \"content\": FULL_PROMPT},\n", - " {\"role\": \"user\", \"content\": question}\n", - " ],\n", - ")" + "assert RAG_CONTEXT.strip(), \"❌ format_documents returned empty context\"\n", + "assert \"START DOCUMENT\" in RAG_CONTEXT, \"❌ START DOCUMENT marker missing from RAG context\"\n", + "assert \"END DOCUMENT\" in RAG_CONTEXT, \"❌ END DOCUMENT marker missing from RAG context\"\n", + "assert RAG_CONTEXT.count(\"START DOCUMENT\") == TOP_K, (\n", + " f\"❌ Expected {TOP_K} documents in context, found {RAG_CONTEXT.count('START DOCUMENT')}\"\n", + ")\n", + "\n", + "print(f\"✅ RAG context formatted correctly: {TOP_K} documents\")\n", + "print(RAG_CONTEXT)" ] }, { @@ -441,18 +430,19 @@ "metadata": {}, "outputs": [], "source": [ - "# The expected output\n", - "expected_output = (\n", - " \"New York City\"\n", - ")\n", "\n", - "# Actual output from response\n", - "actual_output = '\\n'.join([c.message.content.strip() for c in response.choices])\n", + "FULL_PROMPT = f\"\"\"\n", + "You are an assistant for answering questions about states. You will be provided documentation\n", + "from Wikipedia. Provide a conversational answer. If you don't know the answer, just say\n", + "\"I do not know.\" Don't make up an answer.\n", "\n", - "# Validate\n", - "assert expected_output in actual_output, f\"❌ Output mismatch:\\nExpected: {expected_output}\\nActual: {actual_output}\"\n", + "Here are document(s) you should use when answering the user's question:\n", + "{RAG_CONTEXT}\n", + "\"\"\"\n", "\n", - "print(\"✅ Output matches expected response.\")" + "assert RAG_CONTEXT in FULL_PROMPT, \"❌ RAG context not embedded in prompt\"\n", + "print(\"✅ Full prompt constructed\")\n", + "print(FULL_PROMPT)" ] } ], @@ -463,19 +453,10 @@ "name": "python3" }, "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.11.5" - }, - "orig_nbformat": 4 + "version": "3.11.0" + } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 5 } From 7dace28b5f46112e3cad7bc38f86230834415ffa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 4 Jun 2026 12:54:56 +0000 Subject: [PATCH 29/37] Early-gate: add early-gate CI pipelines - Added early-gate-ci-build.yaml for build validation - Added early-gate-ci-test.yaml for test validation (if available) - Pipelines trigger via /early-gate or /early-gate-build comment --- .tekton/early-gate-ci-build.yaml | 37 +++++++++++++++++++++++++++++ .tekton/early-gate-ci-test.yaml | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 .tekton/early-gate-ci-build.yaml create mode 100644 .tekton/early-gate-ci-test.yaml diff --git a/.tekton/early-gate-ci-build.yaml b/.tekton/early-gate-ci-build.yaml new file mode 100644 index 00000000000..26e9bad9bcb --- /dev/null +++ b/.tekton/early-gate-ci-build.yaml @@ -0,0 +1,37 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-event: "[issue_comment]" + pipelinesascode.tekton.dev/on-comment: "^/early-gate(-build)?$" + labels: + appstudio.openshift.io/application: early-gate + appstudio.openshift.io/component: early-gate-ci + pipelines.appstudio.openshift.io/type: build + name: early-gate-ci-build + namespace: open-data-hub-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: 'main' + - name: pathInRepo + value: early-gate/early-gate-component-pipeline.yaml + taskRunTemplate: + serviceAccountName: build-pipeline-early-gate-ci + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {} diff --git a/.tekton/early-gate-ci-test.yaml b/.tekton/early-gate-ci-test.yaml new file mode 100644 index 00000000000..648f4246abb --- /dev/null +++ b/.tekton/early-gate-ci-test.yaml @@ -0,0 +1,40 @@ +apiVersion: tekton.dev/v1 +kind: PipelineRun +metadata: + annotations: + build.appstudio.redhat.com/commit_sha: '{{revision}}' + build.appstudio.redhat.com/target_branch: '{{target_branch}}' + pipelinesascode.tekton.dev/max-keep-runs: "3" + pipelinesascode.tekton.dev/on-event: "[issue_comment]" + pipelinesascode.tekton.dev/on-comment: "^/early-gate-test$" + labels: + appstudio.openshift.io/application: early-gate + appstudio.openshift.io/component: early-gate-ci + pipelines.appstudio.openshift.io/type: test + name: early-gate-ci-test + namespace: open-data-hub-tenant +spec: + params: + - name: git-url + value: '{{source_url}}' + - name: revision + value: '{{revision}}' + timeouts: + pipeline: 6h + tasks: 5h + pipelineRef: + resolver: git + params: + - name: url + value: https://github.com/opendatahub-io/odh-konflux-central.git + - name: revision + value: 'main' + - name: pathInRepo + value: early-gate/early-gate-test-pipeline.yaml + taskRunTemplate: + serviceAccountName: build-pipeline-early-gate-ci + workspaces: + - name: git-auth + secret: + secretName: '{{ git_auth_secret }}' +status: {} From f1189636e4dbdaee940aa7499b82d387fd73f653 Mon Sep 17 00:00:00 2001 From: Mohammadi Iram <89964724+MohammadiIram@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:10:51 +0530 Subject: [PATCH 30/37] Change Git revision from 'main' to 'earlygate2' (#140) --- .tekton/early-gate-ci-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tekton/early-gate-ci-build.yaml b/.tekton/early-gate-ci-build.yaml index 26e9bad9bcb..41cc4330005 100644 --- a/.tekton/early-gate-ci-build.yaml +++ b/.tekton/early-gate-ci-build.yaml @@ -25,7 +25,7 @@ spec: - name: url value: https://github.com/opendatahub-io/odh-konflux-central.git - name: revision - value: 'main' + value: 'earlygate2' - name: pathInRepo value: early-gate/early-gate-component-pipeline.yaml taskRunTemplate: From 68db7def495f4cae2d75ee545ded3a10ecce3bab Mon Sep 17 00:00:00 2001 From: Srihari Date: Thu, 11 Jun 2026 12:03:07 +0530 Subject: [PATCH 31/37] Add Post Upgrade Scenarios registry data and materialization validation Signed-off-by: Srihari --- .../test/e2e_rhoai/feast_postupgrade_test.go | 17 ++ .../test/e2e_rhoai/utils/util.go | 191 ++++++++++++++++-- 2 files changed, 196 insertions(+), 12 deletions(-) diff --git a/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go b/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go index ad8c14295c4..1649705f25f 100644 --- a/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go +++ b/infra/feast-operator/test/e2e_rhoai/feast_postupgrade_test.go @@ -38,14 +38,31 @@ var _ = Describe("Feast PostUpgrade scenario Testing", Ordered, func() { fmt.Printf("Namespace %s deleted successfully\n", namespace) }) runPostUpgradeTest := func() { + + By("Checking if the Feast deployment is available after upgrade") + CheckDeployment(namespace, feastDeploymentName) + By("Verify Feature Store CR is in Ready state") ValidateFeatureStoreCRStatus(namespace, feastCRName) + By("Validating feature_store.yaml contains S3 registry path and driver_ranking project") + ValidateFeatureStoreYamlS3(namespace, feastDeploymentName) + + By("Validating pre-upgrade registry objects are intact in S3 (before feast apply)") + ValidateRegistryIntact(namespace, feastDeploymentName, testDir) + + By("Validating materialization intervals (last_updated_timestamp) are preserved post-upgrade") + ValidateMaterializationIntervals(namespace, feastDeploymentName, testDir) + By("Running `feast apply` and `feast materialize-incremental` to validate registry definitions (S3 / driver_ranking)") VerifyApplyFeatureStoreDefinitionsS3(namespace, feastCRName, feastDeploymentName) By("Validating Feast project list for driver_ranking") VerifyFeastMethodsForDriverRanking(namespace, feastDeploymentName, testDir) + + By("Verifying online feature serving is queryable post-upgrade and post-materialization") + VerifyOnlineFeatureServing(namespace, feastDeploymentName, testDir) + } // This context verifies that a pre-created Feast FeatureStore CR continues to function as expected diff --git a/infra/feast-operator/test/e2e_rhoai/utils/util.go b/infra/feast-operator/test/e2e_rhoai/utils/util.go index c60d093d2ab..f5ed55c3bb2 100644 --- a/infra/feast-operator/test/e2e_rhoai/utils/util.go +++ b/infra/feast-operator/test/e2e_rhoai/utils/util.go @@ -532,18 +532,6 @@ func VerifyFeastMethods(namespace string, feastDeploymentName string, testDir st } } -// VerifyFeastMethodsForDriverRanking checks CLI output for the driver_ranking project (S3 registry). -func VerifyFeastMethodsForDriverRanking(namespace string, feastDeploymentName string, testDir string) { - cmd := exec.Command("kubectl", "exec", "deploy/"+feastDeploymentName, "-n", namespace, "-c", "online", "--", - "feast", "projects", "list") - output, err := testutils.Run(cmd, testDir) - ExpectWithOffset(1, err).NotTo(HaveOccurred()) - - fmt.Printf("Command: feast projects list\nOutput:\n%s\n", string(output)) - VerifyOutputContains(output, []string{"driver_ranking"}) - fmt.Printf("Assertion OK: output contains expected substring driver_ranking\n") -} - // ReplaceNamespaceInYaml reads a YAML file, replaces all existingNamespace with the actual namespace func ReplaceNamespaceInYamlFilesInPlace(filePaths []string, existingNamespace string, actualNamespace string) error { for _, filePath := range filePaths { @@ -568,3 +556,182 @@ func VerifyOutputContains(output []byte, expectedSubstrings []string) { Expect(outputStr).To(ContainSubstring(expected), fmt.Sprintf("Expected output to contain: %s", expected)) } } + +func ValidateFeatureStoreYamlS3(namespace, deployment string) { + cmd := exec.Command("kubectl", "exec", "deploy/"+deployment, "-n", namespace, "-c", "online", "--", "cat", "feature_store.yaml") + output, err := cmd.CombinedOutput() + Expect(err).NotTo(HaveOccurred(), "Failed to read feature_store.yaml") + + content := string(output) + Expect(content).To(ContainSubstring("project: driver_ranking")) + Expect(content).To(ContainSubstring("s3://")) + fmt.Printf("feature_store.yaml in online pod: contains project driver_ranking and s3:// registry path\n") +} + +// ValidateMaterializationIntervals verifies that two properties survived the operator upgrade: +// +// 1. The K8s CronJob that drives feast materialize-incremental still has a non-empty +// schedule — a schedule wipe would silently stop all future materialization. +// +// 2. The per-feature-view materialization bookmark (materializationIntervals in the S3 registry) +// is intact. feast materialize-incremental uses the most recent interval endTime as its +// start window; if the bookmark is wiped, the next run re-materializes from epoch (full scan). +// If the bookmark was never written pre-upgrade (CronJob had not yet fired), the +// materializationIntervals list is empty and this check is skipped with a warning. +func ValidateMaterializationIntervals(namespace string, feastDeploymentName string, testDir string) { + By("Asserting CronJob schedule was not wiped by the upgrade") + cmd := exec.Command("kubectl", "get", "cronjob", feastDeploymentName, + "-n", namespace, "-o", "jsonpath={.spec.schedule}") + output, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred(), + fmt.Sprintf("CronJob %s not found in namespace %s — upgrade may have deleted it", feastDeploymentName, namespace)) + schedule := strings.TrimSpace(string(output)) + ExpectWithOffset(1, schedule).NotTo(BeEmpty(), + "CronJob schedule is empty — upgrade reset the materialization schedule") + fmt.Printf("CronJob %s schedule: %q (preserved)\n", feastDeploymentName, schedule) + + for _, fv := range []string{"driver_hourly_stats", "driver_hourly_stats_fresh"} { + By(fmt.Sprintf("Asserting materialization bookmark for feature view %s", fv)) + cmd = exec.Command( + "kubectl", "exec", "deploy/"+feastDeploymentName, + "-n", namespace, "-c", "online", "--", + "feast", "feature-views", "describe", fv, + ) + output, err = testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred(), + fmt.Sprintf("feast feature-views describe %s failed — S3 registry may be inaccessible", fv)) + + described := string(output) + fmt.Printf("feast feature-views describe %s:\n%s\n", fv, described) + + ExpectWithOffset(1, described).To(ContainSubstring("materializationIntervals"), + fmt.Sprintf("feature view %s: materializationIntervals field missing — "+ + "registry entry may have been reset by the upgrade", fv)) + + if strings.Contains(described, "startTime") { + ExpectWithOffset(1, described).NotTo(ContainSubstring("1970-01-01"), + fmt.Sprintf("feature view %s: materializationIntervals contain epoch timestamp (1970-01-01) — "+ + "bookmark was reset by the upgrade; next incremental job will re-materialize from epoch", fv)) + fmt.Printf("Feature view %s: materialization bookmark intact (non-epoch startTime present)\n", fv) + } else { + fmt.Printf("NOTICE: feature view %s has no materializationIntervals — "+ + "CronJob may not have fired before the upgrade; bookmark check skipped\n", fv) + } + } +} + +func ValidateRegistryIntact(namespace string, feastDeploymentName string, testDir string) { + type feastCheck struct { + command []string + expected []string + logPrefix string + } + + checks := []feastCheck{ + { + command: []string{"feast", "projects", "list"}, + expected: []string{"driver_ranking"}, + logPrefix: "Projects List", + }, + { + command: []string{"feast", "feature-views", "list"}, + expected: []string{"driver_hourly_stats", "driver_hourly_stats_fresh", "transformed_conv_rate", "transformed_conv_rate_fresh"}, + logPrefix: "Feature Views List", + }, + { + command: []string{"feast", "entities", "list"}, + expected: []string{"driver"}, + logPrefix: "Entities List", + }, + { + command: []string{"feast", "data-sources", "list"}, + expected: []string{"driver_hourly_stats_source", "vals_to_add", "driver_stats_push_source"}, + logPrefix: "Data Sources List", + }, + { + command: []string{"feast", "features", "list"}, + expected: []string{ + "conv_rate", "acc_rate", "avg_daily_trips", + "driver_metadata", "driver_config", "driver_profile", + "conv_rate_plus_val1", "conv_rate_plus_val2", + }, + logPrefix: "Features List", + }, + { + command: []string{"feast", "feature-services", "list"}, + expected: []string{"driver_activity_v1", "driver_activity_v2"}, + logPrefix: "Feature Services List", + }, + } + + for _, check := range checks { + cmd := exec.Command("kubectl", "exec", "deploy/"+feastDeploymentName, "-n", namespace, "-c", "online", "--") + cmd.Args = append(cmd.Args, check.command...) + output, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred(), + fmt.Sprintf("feast %s list failed — registry may be inaccessible or objects wiped by upgrade", check.logPrefix)) + + fmt.Printf("%s:\n%s\n", check.logPrefix, string(output)) + for _, expected := range check.expected { + ExpectWithOffset(1, string(output)).To(ContainSubstring(expected), + fmt.Sprintf("registry intact check: %s list missing %q — was the S3 registry wiped by the upgrade?", check.logPrefix, expected)) + } + } + fmt.Printf("Registry intact: all pre-upgrade objects present in S3 registry\n") +} + +// VerifyFeastMethodsForDriverRanking confirms the driver_ranking project is listed post-apply. +// Unlike ValidateRegistryIntact it runs after feast apply and serves as a write-path smoke test. +func VerifyFeastMethodsForDriverRanking(namespace string, feastDeploymentName string, testDir string) { + cmd := exec.Command("kubectl", "exec", "deploy/"+feastDeploymentName, "-n", namespace, "-c", "online", "--", + "feast", "projects", "list") + output, err := testutils.Run(cmd, testDir) + ExpectWithOffset(1, err).NotTo(HaveOccurred()) + + fmt.Printf("Command: feast projects list\nOutput:\n%s\n", string(output)) + VerifyOutputContains(output, []string{"driver_ranking"}) + fmt.Printf("Assertion OK: output contains expected substring driver_ranking\n") +} + +func VerifyOnlineFeatureServing(namespace string, feastDeploymentName string, testDir string) { + var output []byte + var err error + + // Retry up to 3 times — the online store may take a moment to become ready + // after the deployment rolls out during an upgrade. + for attempt := 1; attempt <= 3; attempt++ { + cmd := exec.Command( + "kubectl", "exec", "deploy/"+feastDeploymentName, + "-n", namespace, "-c", "online", "--", + "feast", "get-online-features", + "-e", "driver_id=1001", + "-e", "driver_id=1002", + "-f", "driver_hourly_stats:conv_rate", + "-f", "driver_hourly_stats:acc_rate", + "-f", "driver_hourly_stats:avg_daily_trips", + ) + output, err = testutils.Run(cmd, testDir) + if err == nil { + break + } + if attempt < 3 { + fmt.Printf("feast get-online-features attempt %d/3 failed: %v — retrying\n", attempt, err) + cmd2 := exec.Command("sleep", "5") + _, _ = testutils.Run(cmd2, testDir) + } + } + ExpectWithOffset(1, err).NotTo(HaveOccurred(), + fmt.Sprintf("feast get-online-features failed after 3 attempts — "+ + "online store may be inaccessible post-upgrade:\n%s", string(output))) + + response := string(output) + fmt.Printf("feast get-online-features response:\n%s\n", response) + + for _, feature := range []string{"conv_rate", "acc_rate", "avg_daily_trips", "driver_id"} { + ExpectWithOffset(1, response).To(ContainSubstring(feature), + fmt.Sprintf("%q missing from get-online-features output — "+ + "online store schema may have changed or materialization did not write data", feature)) + } + + fmt.Printf("VerifyOnlineFeatureServing: online feature serving verified via feast get-online-features\n") +} From 2926bb53625fdcd0b68f1633598a30d4dcf0cbe0 Mon Sep 17 00:00:00 2001 From: Srihari Venkataraman Date: Fri, 8 May 2026 13:09:08 +0000 Subject: [PATCH 32/37] fix: remove on-comment from nightly cron trigger and fix on-target-branch Signed-off-by: Srihari --- .tekton/README.md | 11 ++++++----- .tekton/feast-nightly-test.yaml | 4 +--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.tekton/README.md b/.tekton/README.md index 181cdd55be7..a991e7035d9 100644 --- a/.tekton/README.md +++ b/.tekton/README.md @@ -18,8 +18,8 @@ PR opened / updated ├─ odh-feast-operator-pull-request → quay.io/opendatahub/feast-operator:odh-pr- └─ odh-feature-server-pull-request → quay.io/opendatahub/feature-server:odh-pr- │ - ├─ /group-test or group-test event → feast-group-test (tests PR images) - └─ /pr-e2etest comment → feast-pr-test (tests PR images) + ├─ /group-test or group-test event auto triggered → feast-group-test (tests PR images) + └─ /pr-e2etest comment for retest → feast-pr-test (tests PR images) Merge to master ├─ odh-feast-operator-push → quay.io/opendatahub/feast-operator:odh-master @@ -158,7 +158,7 @@ Use this when changes may affect both the Feast operator and the feature server | | | |---|---| -| **Trigger** | `group-test` event (from Konflux App Studio group-test workflow) | +| **Trigger** | Automatic — fires when both `odh-feast-operator-pull-request` and `odh-feature-server-pull-request` complete successfully on a PR. | **Trigger (manual)** | Comment `/group-test` on a pull request | | **Images tested** | PR-built images resolved by the `generate-snapshot` task (`odh-pr-`) | | **Source cloned** | `opendatahub-io/feast` at the PR commit | @@ -170,8 +170,9 @@ Use this when changes may affect both the Feast operator and the feature server 1. When a PR is opened or updated, `odh-feast-operator-pull-request` and `odh-feature-server-pull-request` build and push images tagged `odh-pr-` and `odh-pr-`. -2. When `/group-test` is triggered, the `generate-snapshot` task finds those - PR images by component name, assembles a snapshot JSON with their digests +2. Once both build pipelines succeed, `feast-group-test` is automatically + triggered. The `generate-snapshot` task finds those PR images by component + name, assembles a snapshot JSON with their digests and git metadata, and passes it to `deploy-and-test`. Both the images and the source checkout use the same PR commit, so the code diff --git a/.tekton/feast-nightly-test.yaml b/.tekton/feast-nightly-test.yaml index 591a0cb057e..4b30e9476ab 100644 --- a/.tekton/feast-nightly-test.yaml +++ b/.tekton/feast-nightly-test.yaml @@ -9,7 +9,6 @@ # # Triggers: # - Cron: daily at 8 AM UTC -# - Comment: /nightly-test on a pull request # # Pipeline definition: odh-konflux-central/integration-tests/feast/nightly-testing-pipeline.yaml # @@ -23,8 +22,7 @@ metadata: pipelinesascode.tekton.dev/cancel-in-progress: "false" pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cron: "0 8 * * *" - pipelinesascode.tekton.dev/on-target-branch: "[master]" - pipelinesascode.tekton.dev/on-comment: "^/nightly-test" + pipelinesascode.tekton.dev/on-target-branch: "master" name: feast-nightly-test namespace: open-data-hub-tenant labels: From ae7a5590c7e3bbbac6330335cffa904b6360661d Mon Sep 17 00:00:00 2001 From: "jira-autofix[bot]" <276618161+jira-autofix[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 18:01:32 +0530 Subject: [PATCH 33/37] fix: configure FIPS-compliant gRPC cipher suites for offline server (#151) RHOAIENG-70153 The Feast FeatureStore offline container crashes in CrashLoopBackOff on FIPS-enabled OpenShift clusters due to gRPC/OpenSSL cipher incompatibility during TLS initialization in the PyArrow Flight server. PyArrow Flight bundles its own gRPC (linked against BoringSSL), which does not respect the system's FIPS crypto policy. When the Flight server initializes TLS, it attempts to use cipher suites that are rejected by the kernel's FIPS enforcement, causing the server to crash. This fix detects FIPS mode by reading /proc/sys/crypto/fips_enabled and configures the GRPC_SSL_CIPHER_SUITES environment variable with FIPS-approved AES-GCM cipher suites before the Flight server starts. The env var is only set when FIPS is active and no custom cipher configuration already exists, so non-FIPS deployments are unaffected. - [x] I've made sure the tests are passing. - [x] My commits are signed off (`git commit -s`) - [x] My PR title follows conventional commits format - [x] Unit tests - [ ] Integration tests - [ ] Manual tests - [ ] Testing is not required for this change Signed-off-by: aipcc-bot Signed-off-by: Jitendra Yejare <11752425+jyejare@users.noreply.github.com> Co-authored-by: aipcc-bot --- sdk/python/feast/offline_server.py | 27 ++++++++++ sdk/python/tests/unit/test_offline_server.py | 55 +++++++++++++++++++- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/sdk/python/feast/offline_server.py b/sdk/python/feast/offline_server.py index 0373b3a8146..e130544445f 100644 --- a/sdk/python/feast/offline_server.py +++ b/sdk/python/feast/offline_server.py @@ -38,6 +38,32 @@ logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) +_FIPS_CIPHER_SUITES = ":".join( + [ + "ECDHE-RSA-AES128-GCM-SHA256", + "ECDHE-RSA-AES256-GCM-SHA384", + "ECDHE-ECDSA-AES128-GCM-SHA256", + "ECDHE-ECDSA-AES256-GCM-SHA384", + "AES128-GCM-SHA256", + "AES256-GCM-SHA384", + ] +) + + +def _is_fips_enabled() -> bool: + try: + with open("/proc/sys/crypto/fips_enabled") as f: + return f.read().strip() == "1" + except (FileNotFoundError, PermissionError, OSError): + logger.debug("Could not detect FIPS mode (Linux-only feature)") + return False + + +def _configure_grpc_fips() -> None: + if _is_fips_enabled() and "GRPC_SSL_CIPHER_SUITES" not in os.environ: + os.environ["GRPC_SSL_CIPHER_SUITES"] = _FIPS_CIPHER_SUITES + logger.info("FIPS mode detected, configured FIPS-compliant gRPC cipher suites.") + class OfflineServer(fl.FlightServerBase): def __init__( @@ -596,6 +622,7 @@ def start_server( tls_cert_path: str = "", ): _init_auth_manager(store) + _configure_grpc_fips() tls_certificates = [] scheme = "grpc+tcp" diff --git a/sdk/python/tests/unit/test_offline_server.py b/sdk/python/tests/unit/test_offline_server.py index 3e25e5c2061..6ff93d02282 100644 --- a/sdk/python/tests/unit/test_offline_server.py +++ b/sdk/python/tests/unit/test_offline_server.py @@ -1,4 +1,5 @@ -from unittest.mock import MagicMock, patch +import os +from unittest.mock import MagicMock, mock_open, patch import assertpy @@ -7,7 +8,11 @@ RemoteOfflineStoreConfig, _create_retrieval_metadata, ) -from feast.offline_server import OfflineServer +from feast.offline_server import ( + OfflineServer, + _configure_grpc_fips, + _is_fips_enabled, +) def test_create_retrieval_metadata_with_sql_string(): @@ -86,3 +91,49 @@ def test_offline_server_get_historical_features_passes_sql_to_store(): assertpy.assert_that(result).is_equal_to(mock_job) _, kwargs = mock_offline_store.get_historical_features.call_args assertpy.assert_that(kwargs["entity_df"]).is_equal_to(sql) + + +def test_is_fips_enabled_returns_true(): + with patch("builtins.open", mock_open(read_data="1\n")): + assert _is_fips_enabled() is True + + +def test_is_fips_enabled_returns_false(): + with patch("builtins.open", mock_open(read_data="0\n")): + assert _is_fips_enabled() is False + + +def test_is_fips_enabled_missing_file(): + with patch("builtins.open", side_effect=FileNotFoundError): + assert _is_fips_enabled() is False + + +def test_configure_grpc_fips_sets_cipher_suites(): + with ( + patch("feast.offline_server._is_fips_enabled", return_value=True), + patch.dict(os.environ, {}, clear=False), + ): + os.environ.pop("GRPC_SSL_CIPHER_SUITES", None) + _configure_grpc_fips() + assert "GRPC_SSL_CIPHER_SUITES" in os.environ + assert "AES128-GCM-SHA256" in os.environ["GRPC_SSL_CIPHER_SUITES"] + del os.environ["GRPC_SSL_CIPHER_SUITES"] + + +def test_configure_grpc_fips_respects_existing_env(): + with ( + patch("feast.offline_server._is_fips_enabled", return_value=True), + patch.dict(os.environ, {"GRPC_SSL_CIPHER_SUITES": "custom"}, clear=False), + ): + _configure_grpc_fips() + assert os.environ["GRPC_SSL_CIPHER_SUITES"] == "custom" + + +def test_configure_grpc_fips_noop_without_fips(): + with ( + patch("feast.offline_server._is_fips_enabled", return_value=False), + patch.dict(os.environ, {}, clear=False), + ): + os.environ.pop("GRPC_SSL_CIPHER_SUITES", None) + _configure_grpc_fips() + assert "GRPC_SSL_CIPHER_SUITES" not in os.environ From af9d21a539cd94dcb36a5de1e5a25ac36c8cc00a Mon Sep 17 00:00:00 2001 From: "odh-drs-automation-bot[bot]" <291887556+odh-drs-automation-bot[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 16:12:23 +0000 Subject: [PATCH 34/37] Add disconnected readiness workflow --- .github/workflows/disconnected-readiness.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/disconnected-readiness.yml diff --git a/.github/workflows/disconnected-readiness.yml b/.github/workflows/disconnected-readiness.yml new file mode 100644 index 00000000000..07f941a5663 --- /dev/null +++ b/.github/workflows/disconnected-readiness.yml @@ -0,0 +1,12 @@ +name: Disconnected Readiness +on: + pull_request: + branches: + - main + - master + +jobs: + check: + uses: opendatahub-io/disconnected-readiness-scorer/.github/workflows/disconnected-readiness-check.yml@v1 + with: + rules: "" From b22a53a6c191ba92d93f29c4101403fe8e6eb3ba Mon Sep 17 00:00:00 2001 From: Ugo Giordano Date: Tue, 7 Jul 2026 17:55:21 +0200 Subject: [PATCH 35/37] feat: apply Intermediate TLS defaults on API fallback and handle transient errors Follow-up to #6567. Two fixes: 1. Move NewTLSConfigFromProfile outside the if/else so it runs on all code paths. Previously, error paths skipped TLS configuration entirely, leaving the operator running with Go's bare defaults (no MinVersion, no cipher restrictions). Now all error paths explicitly fall back to the Intermediate TLS profile. 2. Handle transient API errors (ServiceUnavailable, Timeout, TooManyRequests) gracefully instead of crashing with os.Exit(1). These set tlsProfileFetched=true so the SecurityProfileWatcher self-heals when the API recovers. Also adds a 10-second context timeout on bootstrap API calls and applies the same transient error handling to the TLS adherence policy fetch. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Ugo Giordano --- infra/feast-operator/cmd/main.go | 43 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/infra/feast-operator/cmd/main.go b/infra/feast-operator/cmd/main.go index f222e9dd28b..100f8866dcc 100644 --- a/infra/feast-operator/cmd/main.go +++ b/infra/feast-operator/cmd/main.go @@ -110,7 +110,7 @@ func main() { var probeAddr string var secureMetrics bool var featureStoreMetrics bool - var tlsOpts []func(*tls.Config) + tlsOpts := make([]func(*tls.Config), 0, 2) flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metrics endpoint binds to. "+ "Use :8443 for HTTPS or :8080 for HTTP, or leave as 0 to disable the metrics service.") flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.") @@ -138,42 +138,41 @@ func main() { os.Exit(1) } + bootstrapCtx, cancelBootstrap := context.WithTimeout(context.Background(), 10*time.Second) + defer cancelBootstrap() + tlsProfileFetched := false - tlsProfile, err := tlspkg.FetchAPIServerTLSProfile(context.Background(), bootstrapClient) + tlsProfile, err := tlspkg.FetchAPIServerTLSProfile(bootstrapCtx, bootstrapClient) if err != nil { switch { case apimeta.IsNoMatchError(err): - setupLog.Info("TLS profile not available, using hardened defaults (non-OpenShift cluster)") + setupLog.Info("TLS profile not available, using Intermediate defaults (non-OpenShift cluster)") case apierrors.IsNotFound(err): - setupLog.Info("APIServer resource not found, using hardened defaults") + setupLog.Info("APIServer resource not found, using Intermediate defaults") + case apierrors.IsServiceUnavailable(err), + apierrors.IsTimeout(err), + apierrors.IsTooManyRequests(err): + setupLog.Info("Transient API error reading TLS profile, using Intermediate defaults", "error", err) + tlsProfileFetched = true // watcher self-heals when the API recovers default: setupLog.Error(err, "unable to read APIServer TLS profile, refusing to start with unknown TLS posture") os.Exit(1) } + tlsProfile = *configv1.TLSProfiles[configv1.TLSProfileIntermediateType] } else { tlsProfileFetched = true - tlsConfigFn, unsupported := tlspkg.NewTLSConfigFromProfile(tlsProfile) - if len(unsupported) > 0 { - setupLog.Info("TLS profile contains ciphers unsupported by Go", "unsupported", unsupported) - } - tlsOpts = append(tlsOpts, tlsConfigFn) } + tlsConfigFn, unsupported := tlspkg.NewTLSConfigFromProfile(tlsProfile) + if len(unsupported) > 0 { + setupLog.Info("TLS profile contains ciphers unsupported by Go", "unsupported", unsupported) + } + tlsOpts = append(tlsOpts, tlsConfigFn) - tlsAdherenceFetched := false - tlsAdherence, err := tlspkg.FetchAPIServerTLSAdherencePolicy(context.Background(), bootstrapClient) + tlsAdherence, err := tlspkg.FetchAPIServerTLSAdherencePolicy(bootstrapCtx, bootstrapClient) if err != nil { - switch { - case apimeta.IsNoMatchError(err): - setupLog.Info("TLS adherence policy not available (non-OpenShift cluster)") - case apierrors.IsNotFound(err): - setupLog.Info("APIServer resource not found, skipping adherence policy") - default: - setupLog.Error(err, "unable to read APIServer TLS adherence policy, refusing to start") - os.Exit(1) - } - } else { - tlsAdherenceFetched = true + setupLog.Info("unable to fetch TLS adherence policy, watcher will retry", "error", err) } + tlsAdherenceFetched := true tlsOpts = append(tlsOpts, func(c *tls.Config) { c.NextProtos = []string{"h2", "http/1.1"} From 081b2fdfa70ad0deb8de94d7998b472b36f618c1 Mon Sep 17 00:00:00 2001 From: Ugo Giordano Date: Tue, 14 Jul 2026 11:36:42 +0200 Subject: [PATCH 36/37] fix: handle context.DeadlineExceeded in TLS profile resolution When context.WithTimeout fires due to a slow API server, the resulting context.DeadlineExceeded error does not match any apierrors.Is* check and falls into the fatal default case with os.Exit(1), crashing the operator. Add it to the transient error branch so the operator gracefully falls back to Intermediate TLS defaults instead. Signed-off-by: Ugo Giordano Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Ugo Giordano --- infra/feast-operator/cmd/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infra/feast-operator/cmd/main.go b/infra/feast-operator/cmd/main.go index 100f8866dcc..514094a6530 100644 --- a/infra/feast-operator/cmd/main.go +++ b/infra/feast-operator/cmd/main.go @@ -19,6 +19,7 @@ package main import ( "context" "crypto/tls" + "errors" "flag" "fmt" "os" @@ -151,7 +152,8 @@ func main() { setupLog.Info("APIServer resource not found, using Intermediate defaults") case apierrors.IsServiceUnavailable(err), apierrors.IsTimeout(err), - apierrors.IsTooManyRequests(err): + apierrors.IsTooManyRequests(err), + errors.Is(err, context.DeadlineExceeded): setupLog.Info("Transient API error reading TLS profile, using Intermediate defaults", "error", err) tlsProfileFetched = true // watcher self-heals when the API recovers default: From c7b9f67678a7e85ca646646bc32c783e46cbde7e Mon Sep 17 00:00:00 2001 From: Ugo Giordano Date: Thu, 16 Jul 2026 16:38:12 +0200 Subject: [PATCH 37/37] fix: handle IsServerTimeout in TLS profile resolution StatusReasonServerTimeout is a distinct Kubernetes error from StatusReasonTimeout. Without handling it, a server-side API timeout during TLS profile fetch causes the operator to fail to start instead of falling back to Intermediate defaults. Signed-off-by: Ugo Giordano Co-Authored-By: Claude Opus 4.6 (1M context) --- infra/feast-operator/cmd/main.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/infra/feast-operator/cmd/main.go b/infra/feast-operator/cmd/main.go index 514094a6530..03768b67805 100644 --- a/infra/feast-operator/cmd/main.go +++ b/infra/feast-operator/cmd/main.go @@ -139,11 +139,10 @@ func main() { os.Exit(1) } - bootstrapCtx, cancelBootstrap := context.WithTimeout(context.Background(), 10*time.Second) - defer cancelBootstrap() - tlsProfileFetched := false - tlsProfile, err := tlspkg.FetchAPIServerTLSProfile(bootstrapCtx, bootstrapClient) + profileCtx, cancelProfile := context.WithTimeout(context.Background(), 10*time.Second) + defer cancelProfile() + tlsProfile, err := tlspkg.FetchAPIServerTLSProfile(profileCtx, bootstrapClient) if err != nil { switch { case apimeta.IsNoMatchError(err): @@ -152,10 +151,11 @@ func main() { setupLog.Info("APIServer resource not found, using Intermediate defaults") case apierrors.IsServiceUnavailable(err), apierrors.IsTimeout(err), + apierrors.IsServerTimeout(err), apierrors.IsTooManyRequests(err), errors.Is(err, context.DeadlineExceeded): setupLog.Info("Transient API error reading TLS profile, using Intermediate defaults", "error", err) - tlsProfileFetched = true // watcher self-heals when the API recovers + tlsProfileFetched = true default: setupLog.Error(err, "unable to read APIServer TLS profile, refusing to start with unknown TLS posture") os.Exit(1) @@ -170,11 +170,15 @@ func main() { } tlsOpts = append(tlsOpts, tlsConfigFn) - tlsAdherence, err := tlspkg.FetchAPIServerTLSAdherencePolicy(bootstrapCtx, bootstrapClient) + tlsAdherenceFetched := false + adherenceCtx, cancelAdherence := context.WithTimeout(context.Background(), 10*time.Second) + defer cancelAdherence() + tlsAdherence, err := tlspkg.FetchAPIServerTLSAdherencePolicy(adherenceCtx, bootstrapClient) if err != nil { setupLog.Info("unable to fetch TLS adherence policy, watcher will retry", "error", err) + } else { + tlsAdherenceFetched = true } - tlsAdherenceFetched := true tlsOpts = append(tlsOpts, func(c *tls.Config) { c.NextProtos = []string{"h2", "http/1.1"}

XO6tpH|_=NdBCE%OcdSr6Yf=V8oe(WoN=V1CBWQPqWi$o z@st=ce|gz#e|8g1!B>^m@QDvq)O_NH#(ojRRQ z&JejJp#M_gX_N{V{G%$Ify%;;TdIJ@mty2;WG|IxAW-PZ1#pD(_C)rJABK(3JJyCD za1W+cRA}aF6%X7uPsk6>daP-skUwf*r*{V5Y_urzJHv%!=kykV@Ax}hq<=CuQ8Cu& zkATD9AuS+!VnFnA;$=JxIJTD;?pAH04# zq^y=5L8A@{E8}K;K5E(4rFp!RqrTrrVGvy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