Skip to content

Commit

Permalink
Add short names to CRDs (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox committed May 17, 2022
1 parent 4e4c863 commit 22f5a4b
Show file tree
Hide file tree
Showing 15 changed files with 8,368 additions and 2,121 deletions.
12 changes: 12 additions & 0 deletions k8s/helm-charts/seldon-core-v2-crds/templates/seldon-v2-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: Experiment
listKind: ExperimentList
plural: experiments
shortNames:
- mlx
singular: experiment
scope: Namespaced
versions:
Expand Down Expand Up @@ -140,6 +142,8 @@ spec:
kind: Explainer
listKind: ExplainerList
plural: explainers
shortNames:
- mle
singular: explainer
scope: Namespaced
versions:
Expand Down Expand Up @@ -288,6 +292,8 @@ spec:
kind: Model
listKind: ModelList
plural: models
shortNames:
- mlm
singular: model
scope: Namespaced
versions:
Expand Down Expand Up @@ -450,6 +456,8 @@ spec:
kind: Pipeline
listKind: PipelineList
plural: pipelines
shortNames:
- mlp
singular: pipeline
scope: Namespaced
versions:
Expand Down Expand Up @@ -621,6 +629,8 @@ spec:
kind: ServerConfig
listKind: ServerConfigList
plural: serverconfigs
shortNames:
- mlc
singular: serverconfig
scope: Namespaced
versions:
Expand Down Expand Up @@ -7370,6 +7380,8 @@ spec:
kind: Server
listKind: ServerList
plural: servers
shortNames:
- mls
singular: server
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,34 @@ subjects:
---
apiVersion: v1
data:
agent.yaml: "rclone: \n config_secrets: [\"seldon-rclone-gs-public\"]\nkafka:\n
\ active: true\n broker: \"seldon-kafka-plain-bootstrap.kafka:9092\""
agent.yaml: "rclone: \n config_secrets: [\"seldon-rclone-gs-public\"]"
kind: ConfigMap
metadata:
name: seldon-agent
namespace: seldon-mesh
---
apiVersion: v1
data:
kafka.json: |-
{
"bootstrap.servers": "seldon-kafka-plain-bootstrap.kafka:9092",
"consumer":{
"session.timeout.ms":6000,
"auto.offset.reset":"earliest"
},
"producer":{
"linger.ms":0,
"message.max.bytes":1000000000
},
"streams":{
}
}
kind: ConfigMap
metadata:
name: seldon-kafka
namespace: seldon-mesh
---
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
Expand Down Expand Up @@ -704,6 +724,7 @@ spec:
- --scheduler-port=9004
- --envoy-host=seldon-mesh
- --envoy-port=80
- --config-path=/mnt/config/kafka.json
command:
- /bin/modelgateway
env:
Expand All @@ -726,7 +747,7 @@ spec:
terminationGracePeriodSeconds: 5
volumes:
- configMap:
name: seldon-agent
name: seldon-kafka
name: config-volume
---
apiVersion: apps/v1
Expand All @@ -750,7 +771,7 @@ spec:
- args:
- --http-port=9010
- --grpc-port=9011
- --config-path=/mnt/config
- --config-path=/mnt/config/kafka.json
command:
- /bin/pipelinegateway
env:
Expand Down Expand Up @@ -780,7 +801,7 @@ spec:
terminationGracePeriodSeconds: 5
volumes:
- configMap:
name: seldon-agent
name: seldon-kafka
name: config-volume
---
apiVersion: apps/v1
Expand Down
10,428 changes: 8,312 additions & 2,116 deletions k8s/yaml/seldon-v2-crds.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions operator/apis/mlops/v1alpha1/experiment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type ExperimentStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=mlx

// Experiment is the Schema for the experiments API
type Experiment struct {
Expand Down
1 change: 1 addition & 0 deletions operator/apis/mlops/v1alpha1/explainer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ type ExplainerStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=mle

// Explainer is the Schema for the explainers API
type Explainer struct {
Expand Down
1 change: 1 addition & 0 deletions operator/apis/mlops/v1alpha1/model_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type ModelStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=mlm

// Model is the Schema for the models API
type Model struct {
Expand Down
1 change: 1 addition & 0 deletions operator/apis/mlops/v1alpha1/pipeline_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type PipelineStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=mlp

// Pipeline is the Schema for the pipelines API
type Pipeline struct {
Expand Down
1 change: 1 addition & 0 deletions operator/apis/mlops/v1alpha1/server_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ type ServerStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=mls

// Server is the Schema for the servers API
type Server struct {
Expand Down
1 change: 1 addition & 0 deletions operator/apis/mlops/v1alpha1/serverconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type ServerConfigStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=mlc

// ServerConfig is the Schema for the serverconfigs API
type ServerConfig struct {
Expand Down
2 changes: 2 additions & 0 deletions operator/config/crd/bases/mlops.seldon.io_experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Experiment
listKind: ExperimentList
plural: experiments
shortNames:
- mlx
singular: experiment
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions operator/config/crd/bases/mlops.seldon.io_explainers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Explainer
listKind: ExplainerList
plural: explainers
shortNames:
- mle
singular: explainer
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions operator/config/crd/bases/mlops.seldon.io_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Model
listKind: ModelList
plural: models
shortNames:
- mlm
singular: model
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions operator/config/crd/bases/mlops.seldon.io_pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Pipeline
listKind: PipelineList
plural: pipelines
shortNames:
- mlp
singular: pipeline
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions operator/config/crd/bases/mlops.seldon.io_serverconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: ServerConfig
listKind: ServerConfigList
plural: serverconfigs
shortNames:
- mlc
singular: serverconfig
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions operator/config/crd/bases/mlops.seldon.io_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: Server
listKind: ServerList
plural: servers
shortNames:
- mls
singular: server
scope: Namespaced
versions:
Expand Down

0 comments on commit 22f5a4b

Please sign in to comment.