Skip to content

Commit

Permalink
Merge pull request #782 from ryandawsonuk/749-credsassecret
Browse files Browse the repository at this point in the history
crd changes for creds secret
  • Loading branch information
ryandawsonuk authored Aug 12, 2019
2 parents d55064d + 430c6ce commit 4726648
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helm-charts/seldon-core-operator/templates/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,7 @@ spec:
type:
enum: [REST, GRPC]
type: string
envSecretRefName: {type: string}
modelUri: {type: string}
serviceAccountName: {type: string}
type: {type: string}
Expand All @@ -1974,6 +1975,7 @@ spec:
type:
enum: [REST, GRPC]
type: string
envSecretRefName: {type: string}
implementation:
enum: [UNKNOWN_IMPLEMENTATION, SIMPLE_MODEL, SIMPLE_ROUTER,
RANDOM_ABTEST, AVERAGE_COMBINER, SKLEARN_SERVER,
Expand Down
4 changes: 3 additions & 1 deletion proto/seldon_deployment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ message Explainer {
optional string type = 1; // Type of explainer
optional string modelUri = 2; // Bucket or PVC location of explainer model
optional string serviceAccountName = 3; // Service account for pulling from bucket
optional k8s.io.api.core.v1.Container containerSpec = 4; // Custom spec for explainer
optional string envSecretRefName = 4; // Secret for pulling from bucket
optional k8s.io.api.core.v1.Container containerSpec = 5; // Custom spec for explainer
}

message PredictorSpec {
Expand Down Expand Up @@ -128,6 +129,7 @@ message PredictiveUnit {
repeated Parameter parameters = 7; // Customer parameter to pass to the unit.
optional string modelUri = 8; // Location of saved model
optional string serviceAccountName = 9; // Service account for pulling model bucket
optional string envSecretRefName = 10; // Secret for pulling from bucket
}

message Endpoint {
Expand Down
6 changes: 6 additions & 0 deletions util/custom-resource-definitions/crd.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
"serviceAccountName": {
"type": "string"
},
"envSecretRefName": {
"type": "string"
},
"implementation": {
"enum": [
"UNKNOWN_IMPLEMENTATION",
Expand Down Expand Up @@ -293,6 +296,9 @@
"serviceAccountName": {
"type": "string"
},
"envSecretRefName": {
"type": "string"
},
"type": {
"type": "string"
},
Expand Down

0 comments on commit 4726648

Please sign in to comment.