From 7ddf03ece068d1cedc22a3e06f15dc52d1756c3a Mon Sep 17 00:00:00 2001 From: Jianbo Sun Date: Fri, 4 Nov 2022 16:11:10 +0800 Subject: [PATCH] fix apiversion (#1056) Signed-off-by: Jianbo Sun Signed-off-by: Jianbo Sun --- docs/platform-engineers/components/custom-component.md | 2 +- docs/platform-engineers/traits/patch-trait.md | 4 ++-- .../current/platform-engineers/components/custom-component.md | 2 +- .../current/platform-engineers/traits/patch-trait.md | 4 ++-- .../platform-engineers/components/custom-component.md | 2 +- .../version-v1.6/platform-engineers/traits/patch-trait.md | 4 ++-- .../platform-engineers/components/custom-component.md | 2 +- .../version-v1.6/platform-engineers/traits/patch-trait.md | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/platform-engineers/components/custom-component.md b/docs/platform-engineers/components/custom-component.md index af070cc3..2801b9ef 100644 --- a/docs/platform-engineers/components/custom-component.md +++ b/docs/platform-engineers/components/custom-component.md @@ -246,7 +246,7 @@ Now let's use the `stateless` and `task` component type. The `ComponentDefinition` can be instantiated in `Application` abstraction as below: ```yaml - apiVersion: core.oam.dev/v1alpha2 + apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: website diff --git a/docs/platform-engineers/traits/patch-trait.md b/docs/platform-engineers/traits/patch-trait.md index 45871ef1..3cdec120 100644 --- a/docs/platform-engineers/traits/patch-trait.md +++ b/docs/platform-engineers/traits/patch-trait.md @@ -159,7 +159,7 @@ to tell users that applying this trait will cause the pod to restart. Now the users could declare they want to add node affinity rules to the component instance as below: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp @@ -214,7 +214,7 @@ The patch trait above assumes that the component it binds has other traits which We can deploy the following application: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/components/custom-component.md b/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/components/custom-component.md index fbc75337..896e9b5c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/components/custom-component.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/components/custom-component.md @@ -249,7 +249,7 @@ ComponentDefinition task created in namespace vela-system. 然后把它们编写到应用部署计划中,如下所示: ```yaml - apiVersion: core.oam.dev/v1alpha2 + apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: website diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/traits/patch-trait.md b/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/traits/patch-trait.md index b29ac721..ab71a1c8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/traits/patch-trait.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/platform-engineers/traits/patch-trait.md @@ -156,7 +156,7 @@ spec: 现在用户只需要,声明他们希望增加一个节点亲和性的规则到组件实例当中: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp @@ -206,7 +206,7 @@ spec: 我们可以部署如下应用来查看: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/components/custom-component.md b/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/components/custom-component.md index fbc75337..896e9b5c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/components/custom-component.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/components/custom-component.md @@ -249,7 +249,7 @@ ComponentDefinition task created in namespace vela-system. 然后把它们编写到应用部署计划中,如下所示: ```yaml - apiVersion: core.oam.dev/v1alpha2 + apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: website diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/traits/patch-trait.md b/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/traits/patch-trait.md index b29ac721..ab71a1c8 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/traits/patch-trait.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v1.6/platform-engineers/traits/patch-trait.md @@ -156,7 +156,7 @@ spec: 现在用户只需要,声明他们希望增加一个节点亲和性的规则到组件实例当中: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp @@ -206,7 +206,7 @@ spec: 我们可以部署如下应用来查看: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp diff --git a/versioned_docs/version-v1.6/platform-engineers/components/custom-component.md b/versioned_docs/version-v1.6/platform-engineers/components/custom-component.md index af070cc3..2801b9ef 100644 --- a/versioned_docs/version-v1.6/platform-engineers/components/custom-component.md +++ b/versioned_docs/version-v1.6/platform-engineers/components/custom-component.md @@ -246,7 +246,7 @@ Now let's use the `stateless` and `task` component type. The `ComponentDefinition` can be instantiated in `Application` abstraction as below: ```yaml - apiVersion: core.oam.dev/v1alpha2 + apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: website diff --git a/versioned_docs/version-v1.6/platform-engineers/traits/patch-trait.md b/versioned_docs/version-v1.6/platform-engineers/traits/patch-trait.md index 45871ef1..3cdec120 100644 --- a/versioned_docs/version-v1.6/platform-engineers/traits/patch-trait.md +++ b/versioned_docs/version-v1.6/platform-engineers/traits/patch-trait.md @@ -159,7 +159,7 @@ to tell users that applying this trait will cause the pod to restart. Now the users could declare they want to add node affinity rules to the component instance as below: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp @@ -214,7 +214,7 @@ The patch trait above assumes that the component it binds has other traits which We can deploy the following application: ```yaml -apiVersion: core.oam.dev/v1alpha2 +apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: testapp