Skip to content

Commit 430c6ce

Browse files
committed
crd changes for creds secret
1 parent 8485559 commit 430c6ce

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

helm-charts/seldon-core-operator/templates/crd.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,7 @@ spec:
19521952
type:
19531953
enum: [REST, GRPC]
19541954
type: string
1955+
envSecretRefName: {type: string}
19551956
modelUri: {type: string}
19561957
serviceAccountName: {type: string}
19571958
type: {type: string}
@@ -1974,6 +1975,7 @@ spec:
19741975
type:
19751976
enum: [REST, GRPC]
19761977
type: string
1978+
envSecretRefName: {type: string}
19771979
implementation:
19781980
enum: [UNKNOWN_IMPLEMENTATION, SIMPLE_MODEL, SIMPLE_ROUTER,
19791981
RANDOM_ABTEST, AVERAGE_COMBINER, SKLEARN_SERVER,

proto/seldon_deployment.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ message Explainer {
4646
optional string type = 1; // Type of explainer
4747
optional string modelUri = 2; // Bucket or PVC location of explainer model
4848
optional string serviceAccountName = 3; // Service account for pulling from bucket
49-
optional k8s.io.api.core.v1.Container containerSpec = 4; // Custom spec for explainer
49+
optional string envSecretRefName = 4; // Secret for pulling from bucket
50+
optional k8s.io.api.core.v1.Container containerSpec = 5; // Custom spec for explainer
5051
}
5152

5253
message PredictorSpec {
@@ -127,6 +128,7 @@ message PredictiveUnit {
127128
repeated Parameter parameters = 7; // Customer parameter to pass to the unit.
128129
optional string modelUri = 8; // Location of saved model
129130
optional string serviceAccountName = 9; // Service account for pulling model bucket
131+
optional string envSecretRefName = 10; // Secret for pulling from bucket
130132
}
131133

132134
message Endpoint {

util/custom-resource-definitions/crd.tpl.json

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@
7979
"serviceAccountName": {
8080
"type": "string"
8181
},
82+
"envSecretRefName": {
83+
"type": "string"
84+
},
8285
"implementation": {
8386
"enum": [
8487
"UNKNOWN_IMPLEMENTATION",
@@ -291,6 +294,9 @@
291294
"serviceAccountName": {
292295
"type": "string"
293296
},
297+
"envSecretRefName": {
298+
"type": "string"
299+
},
294300
"type": {
295301
"type": "string"
296302
},

0 commit comments

Comments
 (0)