Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updated feast Go operator db stores #4802

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
aefebd5
Added secret and registry to sample yaml
tmihalac Dec 2, 2024
00914b9
- Added missing go operator test file
tmihalac Dec 2, 2024
fc48971
Added a description for SecretKeyName and the default behaviour
tmihalac Dec 2, 2024
1c6f1e7
Added a test where the secret contains invalid type
tmihalac Dec 2, 2024
83d1720
Added a test where the secret contains invalid type
tmihalac Dec 2, 2024
08cc90c
Merge remote-tracking branch 'origin/leftover-PR-4771' into leftover-…
tmihalac Dec 2, 2024
ce7d3fd
Updated the description of SecretKeyName and SecretRef parameters in …
tmihalac Dec 3, 2024
7e1b901
Added secret and registry to sample yaml
tmihalac Dec 2, 2024
7d50c17
- Added missing go operator test file
tmihalac Dec 2, 2024
39d5c1a
Added a description for SecretKeyName and the default behaviour
tmihalac Dec 2, 2024
84ca903
Added a test where the secret contains invalid type
tmihalac Dec 2, 2024
86d2a99
Updated the description of SecretKeyName and SecretRef parameters in …
tmihalac Dec 3, 2024
cc4040f
Fixed error
tmihalac Dec 3, 2024
34b70ae
Merge remote-tracking branch 'origin/leftover-PR-4771' into leftover-…
tmihalac Dec 3, 2024
0fd929a
chore: Update packages and fix lint issues (#4790)
franciscojavierarceo Nov 26, 2024
b9ffc1f
feat: Added feast Go operator db stores support (#4771)
tmihalac Nov 26, 2024
7d8292b
chore: Rename test_validation to be more explicit about what it is do…
franciscojavierarceo Nov 27, 2024
f72b2f8
fix: Fix db store types in Operator CRD (#4798)
tchughesiv Nov 27, 2024
7f71f7a
fix: Add adapters for sqlite datetime conversion (#4797)
emgeee Nov 27, 2024
8a847f4
chore: Upgrade TypeScript to latest version 5.7.2 in /ui (#4788)
peruukki Dec 1, 2024
c928c53
feat: RBAC Authorization in Feast Operator (#4786)
dmartinol Dec 1, 2024
a1bc04b
feat: Add TLS support to the Operator (#4796)
tchughesiv Dec 2, 2024
8e1f940
chore: Clean up makefile (#4799)
emgeee Dec 3, 2024
7add6dc
Added secret and registry to sample yaml
tmihalac Dec 2, 2024
cf25793
- Added missing go operator test file
tmihalac Dec 2, 2024
ebbfdac
Added a description for SecretKeyName and the default behaviour
tmihalac Dec 2, 2024
22593b9
Added a test where the secret contains invalid type
tmihalac Dec 2, 2024
de9a5ff
Updated the description of SecretKeyName and SecretRef parameters in …
tmihalac Dec 3, 2024
8b632b8
Fixed error
tmihalac Dec 3, 2024
bf237f8
Merge remote-tracking branch 'origin/leftover-PR-4771' into leftover-…
tmihalac Dec 3, 2024
eb111d6
feat: OIDC authorization in Feast Operator (#4801)
dmartinol Dec 4, 2024
1115d96
fix: Operator envVar positioning & tls.SecretRef.Name (#4806)
tchughesiv Dec 4, 2024
6c1fa7b
feat: Added feast Go operator db stores support (#4771)
tmihalac Nov 26, 2024
8252bd3
feat: RBAC Authorization in Feast Operator (#4786)
dmartinol Dec 1, 2024
89842fa
feat: Add TLS support to the Operator (#4796)
tchughesiv Dec 2, 2024
c9a0de5
Added secret and registry to sample yaml
tmihalac Dec 2, 2024
cb9c299
- Added missing go operator test file
tmihalac Dec 2, 2024
c6bfe71
Added a description for SecretKeyName and the default behaviour
tmihalac Dec 2, 2024
e86f894
Added a test where the secret contains invalid type
tmihalac Dec 2, 2024
f6cd4df
Updated the description of SecretKeyName and SecretRef parameters in …
tmihalac Dec 3, 2024
131e6e1
Fixed error
tmihalac Dec 3, 2024
ddcac5c
Rebased to fix conflicts
tmihalac Dec 4, 2024
56449f3
Merge remote-tracking branch 'origin/leftover-PR-4771' into leftover-…
tmihalac Dec 4, 2024
1fbe9ea
Rebased to fix conflicts
tmihalac Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions infra/feast-operator/api/v1alpha1/featurestore_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ var ValidOfflineStoreFilePersistenceTypes = []string{
// OfflineStoreDBStorePersistence configures the DB store persistence for the offline store service
type OfflineStoreDBStorePersistence struct {
// +kubebuilder:validation:Enum=snowflake.offline;bigquery;redshift;spark;postgres;feast_trino.trino.TrinoOfflineStore;redis
Type string `json:"type"`
SecretRef corev1.LocalObjectReference `json:"secretRef"`
SecretKeyName string `json:"secretKeyName,omitempty"`
Type string `json:"type"`
// Data store parameters should be placed as-is from the "feature_store.yaml" under the secret key. "registry_type" & "type" fields should be removed.
SecretRef corev1.LocalObjectReference `json:"secretRef"`
// By default, the selected store "type" is used as the SecretKeyName
SecretKeyName string `json:"secretKeyName,omitempty"`
}

var ValidOfflineStoreDBStorePersistenceTypes = []string{
Expand Down Expand Up @@ -149,9 +151,11 @@ type OnlineStoreFilePersistence struct {
// OnlineStoreDBStorePersistence configures the DB store persistence for the offline store service
type OnlineStoreDBStorePersistence struct {
// +kubebuilder:validation:Enum=snowflake.online;redis;ikv;datastore;dynamodb;bigtable;postgres;cassandra;mysql;hazelcast;singlestore
Type string `json:"type"`
SecretRef corev1.LocalObjectReference `json:"secretRef"`
SecretKeyName string `json:"secretKeyName,omitempty"`
Type string `json:"type"`
// Data store parameters should be placed as-is from the "feature_store.yaml" under the secret key. "registry_type" & "type" fields should be removed.
SecretRef corev1.LocalObjectReference `json:"secretRef"`
// By default, the selected store "type" is used as the SecretKeyName
SecretKeyName string `json:"secretKeyName,omitempty"`
}

var ValidOnlineStoreDBStorePersistenceTypes = []string{
Expand Down Expand Up @@ -196,9 +200,11 @@ type RegistryFilePersistence struct {
// RegistryDBStorePersistence configures the DB store persistence for the registry service
type RegistryDBStorePersistence struct {
// +kubebuilder:validation:Enum=sql;snowflake.registry
Type string `json:"type"`
SecretRef corev1.LocalObjectReference `json:"secretRef"`
SecretKeyName string `json:"secretKeyName,omitempty"`
Type string `json:"type"`
// Data store parameters should be placed as-is from the "feature_store.yaml" under the secret key. "registry_type" & "type" fields should be removed.
SecretRef corev1.LocalObjectReference `json:"secretRef"`
// By default, the selected store "type" is used as the SecretKeyName
SecretKeyName string `json:"secretKeyName,omitempty"`
}

var ValidRegistryDBStorePersistenceTypes = []string{
Expand Down Expand Up @@ -280,8 +286,10 @@ type OptionalConfigs struct {
}

// AuthzConfig defines the authorization settings for the deployed Feast services.
// +kubebuilder:validation:XValidation:rule="[has(self.kubernetes), has(self.oidc)].exists_one(c, c)",message="One selection required between kubernetes or oidc."
type AuthzConfig struct {
KubernetesAuthz *KubernetesAuthz `json:"kubernetes,omitempty"`
OidcAuthz *OidcAuthz `json:"oidc,omitempty"`
}

// KubernetesAuthz provides a way to define the authorization settings using Kubernetes RBAC resources.
Expand All @@ -296,6 +304,12 @@ type KubernetesAuthz struct {
Roles []string `json:"roles,omitempty"`
}

// OidcAuthz defines the authorization settings for deployments using an Open ID Connect identity provider.
// https://auth0.com/docs/authenticate/protocols/openid-connect-protocol
type OidcAuthz struct {
SecretRef corev1.LocalObjectReference `json:"secretRef"`
}

// TlsConfigs configures server TLS for a feast service. in an openshift cluster, this is configured by default using service serving certificates.
// +kubebuilder:validation:XValidation:rule="(!has(self.disable) || !self.disable) ? has(self.secretRef) : true",message="`secretRef` required if `disable` is false."
type TlsConfigs struct {
Expand Down
21 changes: 21 additions & 0 deletions infra/feast-operator/api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 83 additions & 18 deletions infra/feast-operator/config/crd/bases/feast.dev_featurestores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,31 @@ spec:
type: string
type: array
type: object
oidc:
description: |-
OidcAuthz defines the authorization settings for deployments using an Open ID Connect identity provider.
https://auth0.com/docs/authenticate/protocols/openid-connect-protocol
properties:
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
properties:
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
type: string
type: object
x-kubernetes-map-type: atomic
required:
- secretRef
type: object
type: object
x-kubernetes-validations:
- message: One selection required between kubernetes or oidc.
rule: '[has(self.kubernetes), has(self.oidc)].exists_one(c, c)'
feastProject:
description: FeastProject is the Feast project id. This can be any
alphanumeric string with underscores, but it cannot start with an
Expand Down Expand Up @@ -297,11 +321,13 @@ spec:
the DB store persistence for the offline store service
properties:
secretKeyName:
description: By default, the selected store "type"
is used as the SecretKeyName
type: string
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
description: Data store parameters should be placed
as-is from the "feature_store.yaml" under the secret
key. "registry_type" & "type" fields should be removed.
properties:
name:
description: |-
Expand Down Expand Up @@ -652,11 +678,13 @@ spec:
the DB store persistence for the offline store service
properties:
secretKeyName:
description: By default, the selected store "type"
is used as the SecretKeyName
type: string
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
description: Data store parameters should be placed
as-is from the "feature_store.yaml" under the secret
key. "registry_type" & "type" fields should be removed.
properties:
name:
description: |-
Expand Down Expand Up @@ -1025,11 +1053,14 @@ spec:
the DB store persistence for the registry service
properties:
secretKeyName:
description: By default, the selected store "type"
is used as the SecretKeyName
type: string
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
description: Data store parameters should be placed
as-is from the "feature_store.yaml" under the
secret key. "registry_type" & "type" fields
should be removed.
properties:
name:
description: |-
Expand Down Expand Up @@ -1238,7 +1269,32 @@ spec:
type: string
type: array
type: object
oidc:
description: |-
OidcAuthz defines the authorization settings for deployments using an Open ID Connect identity provider.
https://auth0.com/docs/authenticate/protocols/openid-connect-protocol
properties:
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
properties:
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
type: string
type: object
x-kubernetes-map-type: atomic
required:
- secretRef
type: object
type: object
x-kubernetes-validations:
- message: One selection required between kubernetes or oidc.
rule: '[has(self.kubernetes), has(self.oidc)].exists_one(c,
c)'
feastProject:
description: FeastProject is the Feast project id. This can be
any alphanumeric string with underscores, but it cannot start
Expand Down Expand Up @@ -1468,11 +1524,14 @@ spec:
the DB store persistence for the offline store service
properties:
secretKeyName:
description: By default, the selected store "type"
is used as the SecretKeyName
type: string
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
description: Data store parameters should be placed
as-is from the "feature_store.yaml" under the
secret key. "registry_type" & "type" fields
should be removed.
properties:
name:
description: |-
Expand Down Expand Up @@ -1829,11 +1888,14 @@ spec:
the DB store persistence for the offline store service
properties:
secretKeyName:
description: By default, the selected store "type"
is used as the SecretKeyName
type: string
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
description: Data store parameters should be placed
as-is from the "feature_store.yaml" under the
secret key. "registry_type" & "type" fields
should be removed.
properties:
name:
description: |-
Expand Down Expand Up @@ -2210,11 +2272,14 @@ spec:
the DB store persistence for the registry service
properties:
secretKeyName:
description: By default, the selected store
"type" is used as the SecretKeyName
type: string
secretRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
description: Data store parameters should
be placed as-is from the "feature_store.yaml"
under the secret key. "registry_type" &
"type" fields should be removed.
properties:
name:
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,25 @@ spec:
store:
type: postgres
secretRef:
name: my-secret
secretKeyName: mykey # optional
name: postgres-secret
secretKeyName: postgres-secret-parameters # optional
registry:
local:
persistence:
store:
type: sql
secretRef:
name: postgres-secret
secretKeyName: postgres-secret-parameters # optional
---
apiVersion: v1
kind: Secret
metadata:
name: postgres-secret
stringData:
postgres-secret-parameters: |
path: postgresql://postgres:[email protected]:55001/feast
cache_ttl_seconds: 60
sqlalchemy_config_kwargs:
echo: false
pool_pre_ping: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: feast.dev/v1alpha1
kind: FeatureStore
metadata:
name: sample-oidc-auth
spec:
feastProject: my_project
services:
onlineStore:
persistence:
file:
path: /data/online_store.db
offlineStore:
persistence:
file:
type: dask
registry:
local:
persistence:
file:
path: /data/registry.db
authz:
oidc:
secretRef:
name: oidc-secret
---
kind: Secret
apiVersion: v1
metadata:
name: oidc-secret
stringData:
client_id: client_id
auth_discovery_url: auth_discovery_url
client_secret: client_secret
username: username
password: password
Loading
Loading