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 22, 2024
1 parent 3fa4c20 commit 0985042
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 36 deletions.
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/gvik.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 0985042

Please sign in to comment.