forked from opendatahub-io/opendatahub-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kserve): automates installation and configuration of KServe prer…
…equisites (opendatahub-io#691) * Implement installation and configuration of KServe prerequisites KServe pre-requisites are: * Service Mesh (Istio) * A minimal Control Plane is configured for KServe with only Pilot and default gateways. * An additional knative: ingressgateway is set for the Istio Ingress gateway workload. * Some ports are excluded from envoy to allow for metrics collection and KNative hooks. * Metrics collection is configured for Pilot and the gateways. * Serverless (KNative) * Only serving components are needed from KNative. * For the most part, a typical Serving deployment is configured, with Istio as networking layer. * By default, a self-signed certificate is generated using the OpenShift Ingress domain. Users can provide their own secret with a production ready TLS certificate. Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com> * chore: updates apis/dscinitialization/v1/servicemesh_types.go Co-authored-by: Cameron Garrison <cgarriso@redhat.com> * wip: serverless as part of kserve * chore: removes identitytype from CRD * feat: ensures that serverless config is removed when KServe is enabled * chore: checks if service mesh is configured when serving is enabled * fix: returns error on fail to remove serverless * chore(dsci): attempts to reduce test flakyness * chore: removes misleading TODO * Fix Dockerfile Add new COPY statement, due to the new `infrastructure` directory Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com> * chore: regenerates bundle --------- Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com> Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com> Co-authored-by: Cameron Garrison <cgarriso@redhat.com>
- Loading branch information
1 parent
be27a94
commit c2a5084
Showing
57 changed files
with
2,342 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package v1 | ||
|
||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
||
// FeatureTracker represents a cluster-scoped resource in the Data Science Cluster, | ||
// specifically designed for monitoring and managing objects created via the internal Features API. | ||
// This resource serves a crucial role in cross-namespace resource management, acting as | ||
// an owner reference for various resources. The primary purpose of the FeatureTracker | ||
// is to enable efficient garbage collection by Kubernetes. This is essential for | ||
// ensuring that resources are automatically cleaned up and reclaimed when they are | ||
// no longer required. | ||
// +kubebuilder:object:root=true | ||
// +kubebuilder:resource:scope=Cluster | ||
type FeatureTracker struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
Spec FeatureTrackerSpec `json:"spec,omitempty"` | ||
Status FeatureTrackerStatus `json:"status,omitempty"` | ||
} | ||
|
||
func (s *FeatureTracker) ToOwnerReference() metav1.OwnerReference { | ||
return metav1.OwnerReference{ | ||
APIVersion: s.APIVersion, | ||
Kind: s.Kind, | ||
Name: s.Name, | ||
UID: s.UID, | ||
} | ||
} | ||
|
||
// FeatureTrackerSpec defines the desired state of FeatureTracker. | ||
type FeatureTrackerSpec struct { | ||
} | ||
|
||
// FeatureTrackerStatus defines the observed state of FeatureTracker. | ||
type FeatureTrackerStatus struct { | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// FeatureTrackerList contains a list of FeatureTracker. | ||
type FeatureTrackerList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []FeatureTracker `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register( | ||
&FeatureTracker{}, | ||
&FeatureTrackerList{}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
Copyright 2023. | ||
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. | ||
*/ | ||
|
||
// +kubebuilder:object:generate=true | ||
// +groupName=features.opendatahub.io | ||
|
||
// Package v1 contains API Schema definitions for the datasciencecluster v1 API group | ||
package v1 | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
"sigs.k8s.io/controller-runtime/pkg/scheme" | ||
) | ||
|
||
var ( | ||
// GroupVersion is group version used to register these objects. | ||
GroupVersion = schema.GroupVersion{Group: "features.opendatahub.io", Version: "v1"} | ||
|
||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme. | ||
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} | ||
|
||
// AddToScheme adds the types in this group-version to the given scheme. | ||
AddToScheme = SchemeBuilder.AddToScheme | ||
) |
Oops, something went wrong.