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 {
3114
3114
backend.k
3115
3115
3116
3116
` ` ` python
3117
- import yaml
3117
+ import manifests
3118
3118
3119
3119
schema Backend:
3120
3120
apiVersion: str = "v1"
@@ -3136,7 +3136,8 @@ _backends = [Backend {
3136
3136
spec.selector.matchLabels: model.labels
3137
3137
spec.replicas = model.replicas
3138
3138
} 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)
3140
3141
` ` `
3141
3142
3142
3143
The command is
Original file line number Diff line number Diff line change @@ -3043,7 +3043,7 @@ _model2 = Model {
3043
3043
backend.k
3044
3044
3045
3045
` ` ` python
3046
- import yaml
3046
+ import manifests
3047
3047
3048
3048
schema Backend:
3049
3049
apiVersion: str = "v1"
@@ -3065,7 +3065,8 @@ _backends = [Backend {
3065
3065
spec.selector.matchLabels: model.labels
3066
3066
spec.replicas = model.replicas
3067
3067
} 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)
3069
3070
` ` `
3070
3071
3071
3072
命令为:
Original file line number Diff line number Diff line change @@ -3043,7 +3043,7 @@ _model2 = Model {
3043
3043
backend.k
3044
3044
3045
3045
` ` ` python
3046
- import yaml
3046
+ import manifests
3047
3047
3048
3048
schema Backend:
3049
3049
apiVersion: str = "v1"
@@ -3065,7 +3065,8 @@ _backends = [Backend {
3065
3065
spec.selector.matchLabels: model.labels
3066
3066
spec.replicas = model.replicas
3067
3067
} 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)
3069
3070
` ` `
3070
3071
3071
3072
命令为:
Original file line number Diff line number Diff line change @@ -3114,7 +3114,7 @@ _model2 = Model {
3114
3114
backend.k
3115
3115
3116
3116
` ` ` python
3117
- import yaml
3117
+ import manifests
3118
3118
3119
3119
schema Backend:
3120
3120
apiVersion: str = "v1"
@@ -3136,7 +3136,8 @@ _backends = [Backend {
3136
3136
spec.selector.matchLabels: model.labels
3137
3137
spec.replicas = model.replicas
3138
3138
} 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)
3140
3141
` ` `
3141
3142
3142
3143
The command is
You can’t perform that action at this time.
0 commit comments