-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add strategy none to routing-action (#1645)
* add strategy none to routing-action Signed-off-by: Michael Kalantar <[email protected]> * allow null strategy Signed-off-by: Michael Kalantar <[email protected]> * fix comment Signed-off-by: Michael Kalantar <[email protected]> --------- Signed-off-by: Michael Kalantar <[email protected]>
- Loading branch information
Showing
9 changed files
with
115 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
charts/routing-actions/templates/_deployment.routemap-none.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- define "deployment.routemap-none" }} | ||
{{- $versions := include "resolve.appVersions" . | mustFromJson }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Values.appName }}-routemap | ||
labels: | ||
app.kubernetes.io/managed-by: iter8 | ||
iter8.tools/kind: routemap | ||
iter8.tools/version: {{ .Values.iter8Version }} | ||
data: | ||
strSpec: | | ||
versions: | ||
{{- range $i, $v := $versions }} | ||
- resources: | ||
- gvrShort: svc | ||
name: {{ $v.name }} | ||
namespace: {{ $v.namespace }} | ||
- gvrShort: deploy | ||
name: {{ $v.name }} | ||
namespace: {{ $v.namespace }} | ||
{{- end }} | ||
immutable: true | ||
{{- end }} |
21 changes: 21 additions & 0 deletions
21
charts/routing-actions/templates/_kserve.routemap-none.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- define "kserve.routemap-none" }} | ||
{{- $versions := include "resolve.appVersions" . | mustFromJson }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Values.appName }}-routemap | ||
labels: | ||
app.kubernetes.io/managed-by: iter8 | ||
iter8.tools/kind: routemap | ||
iter8.tools/version: {{ .Values.iter8Version }} | ||
data: | ||
strSpec: | | ||
versions: | ||
{{- range $i, $v := $versions }} | ||
- resources: | ||
- gvrShort: isvc | ||
name: {{ default (printf "%s-%d" $.Values.appName $i) $v.name }} | ||
namespace: {{ default "modelmesh-serving" $v.namespace }} | ||
{{- end }} | ||
immutable: true | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- define "mm.routemap-none" }} | ||
{{- $versions := include "resolve.appVersions" . | mustFromJson }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Values.appName }}-routemap | ||
labels: | ||
app.kubernetes.io/managed-by: iter8 | ||
iter8.tools/kind: routemap | ||
iter8.tools/version: {{ .Values.iter8Version }} | ||
data: | ||
strSpec: | | ||
versions: | ||
{{- range $i, $v := $versions }} | ||
- resources: | ||
- gvrShort: isvc | ||
name: {{ default (printf "%s-%d" $.Values.appName $i) $v.name }} | ||
namespace: {{ default "modelmesh-serving" $v.namespace }} | ||
{{- end }} | ||
immutable: true | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters