File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
i18n/zh-CN/docusaurus-plugin-content-docs
version-0.10/reference/lang
versioned_docs/version-0.10/reference/lang Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -3114,7 +3114,7 @@ _model2 = Model {
31143114backend.k
31153115
31163116` ` ` python
3117- import yaml
3117+ import manifests
31183118
31193119schema Backend:
31203120 apiVersion: str = "v1"
@@ -3136,7 +3136,8 @@ _backends = [Backend {
31363136 spec.selector.matchLabels: model.labels
31373137 spec.replicas = model.replicas
31383138} for model in Model.instances()] # Schema Model is defined in model.k
3139- print("---\n ".join([yaml.encode(_b, ignore_private=True) for _b in _backends]))
3139+
3140+ manifests.yaml_stream(_backends)
31403141` ` `
31413142
31423143The command is
Original file line number Diff line number Diff line change @@ -3043,7 +3043,7 @@ _model2 = Model {
30433043backend.k
30443044
30453045` ` ` python
3046- import yaml
3046+ import manifests
30473047
30483048schema Backend:
30493049 apiVersion: str = "v1"
@@ -3065,7 +3065,8 @@ _backends = [Backend {
30653065 spec.selector.matchLabels: model.labels
30663066 spec.replicas = model.replicas
30673067} for model in Model.instances()] # Schema Model is defined in model.k
3068- print("---\n ".join([yaml.encode(_b, ignore_private=True) for _b in _backends]))
3068+
3069+ manifests.yaml_stream(_backends)
30693070` ` `
30703071
30713072命令为:
Original file line number Diff line number Diff line change @@ -3043,7 +3043,7 @@ _model2 = Model {
30433043backend.k
30443044
30453045` ` ` python
3046- import yaml
3046+ import manifests
30473047
30483048schema Backend:
30493049 apiVersion: str = "v1"
@@ -3065,7 +3065,8 @@ _backends = [Backend {
30653065 spec.selector.matchLabels: model.labels
30663066 spec.replicas = model.replicas
30673067} for model in Model.instances()] # Schema Model is defined in model.k
3068- print("---\n ".join([yaml.encode(_b, ignore_private=True) for _b in _backends]))
3068+
3069+ manifests.yaml_stream(_backends)
30693070` ` `
30703071
30713072命令为:
Original file line number Diff line number Diff line change @@ -3114,7 +3114,7 @@ _model2 = Model {
31143114backend.k
31153115
31163116` ` ` python
3117- import yaml
3117+ import manifests
31183118
31193119schema Backend:
31203120 apiVersion: str = "v1"
@@ -3136,7 +3136,8 @@ _backends = [Backend {
31363136 spec.selector.matchLabels: model.labels
31373137 spec.replicas = model.replicas
31383138} for model in Model.instances()] # Schema Model is defined in model.k
3139- print("---\n ".join([yaml.encode(_b, ignore_private=True) for _b in _backends]))
3139+
3140+ manifests.yaml_stream(_backends)
31403141` ` `
31413142
31423143The command is
You can’t perform that action at this time.
0 commit comments