Skip to content

Commit

Permalink
update: remove gvk into one file but under cluster package
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw committed Apr 23, 2024
1 parent 3fa4c20 commit 290c874
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 37 deletions.
26 changes: 25 additions & 1 deletion docs/api-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ _Appears in:_
## datasciencecluster.opendatahub.io/datasciencepipelines

Package datasciencepipelines provides utility functions to config Data Science Pipelines:
Pipeline solution for end to end MLOps workflows that support the Kubeflow Pipelines SDK and Tekton
Pipeline solution for end to end MLOps workflows that support the Kubeflow Pipelines SDK, Tekton and Argo Workflows.



Expand Down Expand Up @@ -278,6 +278,30 @@ _Appears in:_



## datasciencecluster.opendatahub.io/trainingoperator

Package trainingoperator provides utility functions to config trainingoperator as part of the stack
which makes managing distributed compute infrastructure in the cloud easy and intuitive for Data Scientists



#### TrainingOperator



TrainingOperator struct holds the configuration for the TrainingOperator component.



_Appears in:_
- [Components](#components)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `Component` _[Component](#component)_ | | | |



## datasciencecluster.opendatahub.io/trustyai

Package trustyai provides utility functions to config TrustyAI, a bias/fairness and explainability toolkit
Expand Down
36 changes: 0 additions & 36 deletions pkg/cluster/const.go
Original file line number Diff line number Diff line change
@@ -1,41 +1,5 @@
package cluster

import "k8s.io/apimachinery/pkg/runtime/schema"

var (
KnativeServingGVK = schema.GroupVersionKind{
Group: "operator.knative.dev",
Version: "v1beta1",
Kind: "KnativeServing",
}

OpenshiftIngressGVK = schema.GroupVersionKind{
Group: "config.openshift.io",
Version: "v1",
Kind: "Ingress",
}

ServiceMeshControlPlaneGVK = schema.GroupVersionKind{
Group: "maistra.io",
Version: "v2",
Kind: "ServiceMeshControlPlane",
}

OdhApplication = schema.GroupVersionKind{
Group: "dashboard.opendatahub.io",
Version: "v1",
Kind: "OdhApplication",
}
OdhDocument = schema.GroupVersionKind{
Group: "dashboard.opendatahub.io",
Version: "v1", Kind: "OdhDocument",
}
OdhQuickStart = schema.GroupVersionKind{
Group: "console.openshift.io",
Version: "v1", Kind: "OdhQuickStart",
}
)

const (
// ManagedRhods defines expected addon catalogsource.
ManagedRhods Platform = "addon-managed-odh-catalog"
Expand Down
37 changes: 37 additions & 0 deletions pkg/cluster/gvk.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package cluster

import "k8s.io/apimachinery/pkg/runtime/schema"

var (
KnativeServingGVK = schema.GroupVersionKind{
Group: "operator.knative.dev",
Version: "v1beta1",
Kind: "KnativeServing",
}

OpenshiftIngressGVK = schema.GroupVersionKind{
Group: "config.openshift.io",
Version: "v1",
Kind: "Ingress",
}

ServiceMeshControlPlaneGVK = schema.GroupVersionKind{
Group: "maistra.io",
Version: "v2",
Kind: "ServiceMeshControlPlane",
}

OdhApplication = schema.GroupVersionKind{
Group: "dashboard.opendatahub.io",
Version: "v1",
Kind: "OdhApplication",
}
OdhDocument = schema.GroupVersionKind{
Group: "dashboard.opendatahub.io",
Version: "v1", Kind: "OdhDocument",
}
OdhQuickStart = schema.GroupVersionKind{
Group: "console.openshift.io",
Version: "v1", Kind: "OdhQuickStart",
}
)

0 comments on commit 290c874

Please sign in to comment.