GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: Add TLS support to the Operator by tchughesiv · Pull Request #4796 · feast-dev/feast feat: Add TLS support to the Operator #4796New issueHave 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
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filterConversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page. Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page. Diff viewDiff viewThere are no files selected for viewing
that said, its not mentioned in the docs, so maybe its unnecessary? i guess i just felt like we should offer the user all the options. it's certainly added a layer of complexity to the code.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lokeshrangineni thoughts?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regarding
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we add the verify_client options to all the servers @lokeshrangineni ?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
|
} |
|
|
|
|
|
// OfflineStorePersistence configures the persistence settings for the offline store service |
|
@@ -119,6 +127,7 @@ var ValidOfflineStoreDBStorePersistenceTypes = []string{ |
|
|
type OnlineStore struct { |
|
|
ServiceConfigs `json:",inline"` |
|
|
Persistence *OnlineStorePersistence `json:"persistence,omitempty"` |
|
|
TLS *TlsConfigs `json:"tls,omitempty"` |
|
|
} |
|
|
|
|
|
// OnlineStorePersistence configures the persistence settings for the online store service |
|
@@ -163,9 +172,11 @@ var ValidOnlineStoreDBStorePersistenceTypes = []string{ |
|
|
type LocalRegistryConfig struct { |
|
|
ServiceConfigs `json:",inline"` |
|
|
Persistence *RegistryPersistence `json:"persistence,omitempty"` |
|
|
TLS *TlsConfigs `json:"tls,omitempty"` |
|
|
} |
|
|
|
|
|
// RegistryPersistence configures the persistence settings for the registry service |
|
|
// +kubebuilder:validation:XValidation:rule="[has(self.file), has(self.store)].exists_one(c, c)",message="One selection required between file or store." |
|
|
type RegistryPersistence struct { |
|
|
FilePersistence *RegistryFilePersistence `json:"file,omitempty"` |
|
|
DBPersistence *RegistryDBStorePersistence `json:"store,omitempty"` |
|
@@ -238,7 +249,8 @@ type RemoteRegistryConfig struct { |
|
|
// Host address of the remote registry service - <domain>:<port>, e.g. `registry.<namespace>.svc.cluster.local:80` |
|
|
Hostname *string `json:"hostname,omitempty"` |
|
|
// Reference to an existing `FeatureStore` CR in the same k8s cluster. |
|
|
FeastRef *FeatureStoreRef `json:"feastRef,omitempty"` |
|
|
FeastRef *FeatureStoreRef `json:"feastRef,omitempty"` |
|
|
TLS *TlsRemoteRegistryConfigs `json:"tls,omitempty"` |
|
|
} |
|
|
|
|
|
// FeatureStoreRef defines which existing FeatureStore's registry should be used |
|
@@ -284,6 +296,45 @@ type KubernetesAuthz struct { |
|
|
Roles []string `json:"roles,omitempty"` |
|
|
} |
|
|
|
|
|
// 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 { |
|
|
// references the local k8s secret where the TLS key and cert reside |
|
|
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"` |
|
|
SecretKeyNames SecretKeyNames `json:"secretKeyNames,omitempty"` |
|
|
// will disable TLS for the feast service. useful in an openshift cluster, for example, where TLS is configured by default |
|
|
Disable *bool `json:"disable,omitempty"` |
|
|
} |
|
|
|
|
|
// `secretRef` required if `disable` is false. |
|
|
func (tls *TlsConfigs) IsTLS() bool { |
|
|
if tls != nil { |
|
tchughesiv marked this conversation as resolved.
Resolved
Uh oh!
There was an error while loading. Please reload this page.
|
|
if tls.Disable != nil && *tls.Disable { |
|
|
return false |
|
|
} else if tls.SecretRef == nil { |
|
|
return false |
|
|
} |
|
|
return true |
|
|
} |
|
|
return false |
|
|
} |
|
|
|
|
|
// TlsRemoteRegistryConfigs configures client TLS for a remote feast registry. in an openshift cluster, this is configured by default when the remote feast registry is using service serving certificates. |
|
|
type TlsRemoteRegistryConfigs struct { |
|
|
// references the local k8s configmap where the TLS cert resides |
|
|
ConfigMapRef corev1.LocalObjectReference `json:"configMapRef"` |
|
|
// defines the configmap key name for the client TLS cert. |
|
|
CertName string `json:"certName"` |
|
|
} |
|
|
|
|
|
// SecretKeyNames defines the secret key names for the TLS key and cert. |
|
|
type SecretKeyNames struct { |
|
|
// defaults to "tls.crt" |
|
|
TlsCrt string `json:"tlsCrt,omitempty"` |
|
|
// defaults to "tls.key" |
|
|
TlsKey string `json:"tlsKey,omitempty"` |
|
|
} |
|
|
|
|
|
// FeatureStoreStatus defines the observed state of FeatureStore |
|
|
type FeatureStoreStatus struct { |
|
|
// Shows the currently applied feast configuration, including any pertinent defaults |
|
|
98 changes: 98 additions & 0 deletions
98
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.
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||