Move all serving stuff to v1beta1 apiVersion (#1483)

* Clean up some stragglers to the beta shape.

* Migrate all serving apiVersion to v1beta1.
This commit is contained in:
Matt Moore 2019-06-18 15:31:46 -07:00 committed by Knative Prow Robot
parent 7de9fe79f4
commit 7ad28abafb
74 changed files with 148 additions and 168 deletions

View File

@ -82,7 +82,7 @@ recreate the source files from this folder.
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-clojure

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-clojure

View File

@ -81,7 +81,7 @@ be created using the following instructions.
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-dart

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-dart

View File

@ -93,7 +93,7 @@ When asked, if you want to `Fetch and install dependencies? [Yn]` select `y`
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-elixir

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-elixir

View File

@ -108,7 +108,7 @@ recreate the source files from this folder.
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-haskell

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-haskell

View File

@ -189,18 +189,16 @@ To create and configure the source files in the root of your working directory:
the `Micronaut Sample v1` value.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java-micronaut
namespace: default
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: docker.io/{username}/helloworld-java-micronaut
containers:
- image: docker.io/{username}/helloworld-java-micronaut
env:
- name: TARGET
value: "Micronaut Sample v1"

View File

@ -1,14 +1,12 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java-micronaut
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: docker.io/{username}/helloworld-java-micronaut
containers:
- image: docker.io/{username}/helloworld-java-micronaut
env:
- name: TARGET
value: "Micronaut Sample v1"

View File

@ -181,17 +181,15 @@ which you update and create the necessary build and configuration files:
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java-quarkus
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: docker.io/{username}/helloworld-java-quarkus
containers:
- image: docker.io/{username}/helloworld-java-quarkus
env:
- name: TARGET
value: "Quarkus Sample v1"

View File

@ -1,14 +1,12 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java-quarkus
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: docker.io/saturnism/helloworld-java-quarkus
containers:
- image: docker.io/saturnism/helloworld-java-quarkus
env:
- name: TARGET
value: "Quarkus Sample v1"

View File

@ -106,7 +106,7 @@ recreate the source files from this folder.
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-rust

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-rust

View File

@ -89,7 +89,7 @@ source files from this folder.
into the file. Replace `{username}` with your Docker Hub username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-swift

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-swift

View File

@ -156,7 +156,7 @@ To create and configure the source files in the root of your working directory:
the `Eclipse Vert.x Sample v1` value.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-vertx

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-vertx

View File

@ -25,7 +25,7 @@ spec:
name: camel-test
subscriber:
ref:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: camel-event-display
@ -33,14 +33,12 @@ spec:
# This is a very simple Knative Service that prints the input event to its log.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: camel-event-display
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display@sha256:bf45b3eb1e7fc4cb63d6a5a6416cf696295484a7662e0cf9ccdf5c080542c21d
containers:
- image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display@sha256:bf45b3eb1e7fc4cb63d6a5a6416cf696295484a7662e0cf9ccdf5c080542c21d

View File

@ -39,17 +39,15 @@ In order to verify `ContainerSource` is working, we will create a Event Display
Service that dumps incoming messages to its log.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: event-display
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display
containers:
- image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display
```
Use following command to create the service from `service.yaml`:
@ -75,7 +73,7 @@ metadata:
spec:
image: <heartbeats_image_uri>
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: event-display
args:

View File

@ -9,7 +9,7 @@ spec:
args:
- --period=1
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: event-display
env:

View File

@ -12,14 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: event-display
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display
containers:
- image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display

View File

@ -14,7 +14,7 @@ In order to verify `CronJobSource` is working, we will create a simple Knative
Service that dumps incoming messages to its log.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: event-display
@ -47,7 +47,7 @@ spec:
schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}'
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: event-display
```

View File

@ -6,6 +6,6 @@ spec:
schedule: "*/2 * * * *"
data: '{"message": "Hello world!"}'
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: event-display

View File

@ -1,6 +1,6 @@
# This is a very simple Knative Service that writes the input request to its log.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: event-display

View File

@ -1,6 +1,6 @@
# This is a very simple Knative Service that writes the input request to its log.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: event-display
@ -24,7 +24,7 @@ metadata:
spec:
subscriber:
ref:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: event-display

View File

@ -27,7 +27,7 @@ To verify the `GitHubSource` is working, we will create a simple Knative
defines this basic service.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: github-event-display
@ -118,7 +118,7 @@ spec:
name: githubsecret
key: secretToken
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: github-event-display
```

View File

@ -15,7 +15,7 @@ spec:
name: githubsecret
key: secretToken
sink:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: github-message-dumper
# To use GitHub Enterprise you would need to add an entry for your githubAPIURL similar to the example below

View File

@ -1,5 +1,5 @@
# This is a very simple Knative Service that writes the input request to its log.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: github-message-dumper

View File

@ -6,14 +6,14 @@ metadata:
spec:
subscriber:
ref:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: event-display
---
# This is a very simple Knative Service that writes the input request to its log.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: event-display

View File

@ -6,7 +6,7 @@ metadata:
spec:
subscriber:
ref:
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
name: event-display
@ -14,7 +14,7 @@ spec:
# This is a very simple Knative Service that writes the input request to its log.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: event-display

View File

@ -188,7 +188,7 @@ autoscaler classes built into Knative:
Example of a Service scaled on CPU:
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: autoscale-go
@ -209,7 +209,7 @@ autoscaler classes built into Knative:
annotations. Example of a Service with custom targets and scale bounds:
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: autoscale-go

View File

@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: autoscale-go

View File

@ -31,20 +31,19 @@ First, create a new file called `blue-green-demo-config.yaml`and copy this into
it:
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Configuration
metadata:
name: blue-green-demo
namespace: default
spec:
revisionTemplate:
template:
metadata:
labels:
knative.dev/type: container
spec:
container:
image: gcr.io/knative-samples/knative-route-demo:blue # The URL to the sample app docker image
imagePullPolicy: Always
containers:
- image: gcr.io/knative-samples/knative-route-demo:blue # The URL to the sample app docker image
env:
- name: T_VERSION
value: "blue"
@ -76,7 +75,7 @@ called `blue-green-demo-route.yaml` and copy the following YAML manifest into it
(do not forget to edit the revision name):
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Route
metadata:
name: blue-green-demo # The name of our route; appears in the URL to access the app
@ -121,20 +120,19 @@ background. To create the new revision, we'll edit our existing configuration in
`blue-green-demo-config.yaml` with an updated image and environment variables:
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Configuration
metadata:
name: blue-green-demo # Configuration name is unchanged, since we're updating an existing Configuration
namespace: default
spec:
revisionTemplate:
template:
metadata:
labels:
knative.dev/type: container
spec:
container:
image: gcr.io/knative-samples/knative-route-demo:green # URL to the new version of the sample app docker image
imagePullPolicy: Always
containers:
- image: gcr.io/knative-samples/knative-route-demo:green # URL to the new version of the sample app docker image
env:
- name: T_VERSION
value: "green" # Updated value for the T_VERSION environment variable
@ -165,7 +163,7 @@ revision while still sending all other traffic to the first revision. Edit
`blue-green-demo-route.yaml`:
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Route
metadata:
name: blue-green-demo # Route name is unchanged, since we're updating an existing Route
@ -207,7 +205,7 @@ We'll once again update our existing route to begin shifting traffic away from
the first revision and toward the second. Edit `blue-green-demo-route.yaml`:
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Route
metadata:
name: blue-green-demo # Updating our existing route
@ -243,7 +241,7 @@ Lastly, we'll update our existing route to finally shift all traffic to the
second revision. Edit `blue-green-demo-route.yaml`:
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Route
metadata:
name: blue-green-demo # Updating our existing route

View File

@ -68,7 +68,7 @@ webhook.
image from step 1.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: gitwebhook

View File

@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: gitwebhook

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: grpc-ping

View File

@ -102,7 +102,7 @@ cd knative-docs/serving/samples/hello-world/helloworld-csharp
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-csharp

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-csharp

View File

@ -93,7 +93,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-go
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-go

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-go

View File

@ -73,18 +73,16 @@ recreate the source files from this folder.
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java
namespace: default
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: docker.io/{username}/helloworld-java
containers:
- image: docker.io/{username}/helloworld-java
```
## Building and deploying the sample

View File

@ -1,15 +1,13 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java
namespace: default
spec:
runLatest:
configuration:
revisionTemplate:
template:
spec:
container:
image: docker.io/{username}/helloworld-java
containers:
- image: docker.io/{username}/helloworld-java
env:
- name: TARGET
value: "SparkJava Sample v1"

View File

@ -120,7 +120,7 @@ knative-docs/serving/samples/hello-world/helloworld-java-spring
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java-spring

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-java-spring

View File

@ -141,7 +141,7 @@ cd knative-docs/serving/samples/hello-world/helloworld-kotlin
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-kotlin

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-kotlin

View File

@ -125,7 +125,7 @@ cd knative-docs/serving/samples/hello-world/helloworld-nodejs
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-nodejs

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-nodejs

View File

@ -71,7 +71,7 @@ cd knative-docs/serving/samples/hello-world/helloworld-php
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-php

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-php

View File

@ -87,7 +87,7 @@ cd knative-docs/serving/samples/hello-world/helloworld-python
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-python

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-python

View File

@ -84,7 +84,7 @@ cd knative-docs/serving/samples/hello-world/helloworld-ruby
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-ruby

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-ruby

View File

@ -63,7 +63,7 @@ image reference to match up with the repository**, name, and version specified
in the [build.sbt](./build.sbt) in the previous section.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-scala

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-scala

View File

@ -84,7 +84,7 @@ cd knative-docs/serving/samples/hello-world/helloworld-shell
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-shell

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: helloworld-shell

View File

@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: search-service
@ -33,7 +33,7 @@ spec:
initialDelaySeconds: 3
periodSeconds: 3
---
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: login-service

View File

@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -156,7 +156,7 @@ cd knative-docs/serving/samples/secrets-go
username.
```yaml
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: secrets-go

View File

@ -1,4 +1,4 @@
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: secrets-go

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Route
metadata:
name: telemetrysample-route

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Configuration
metadata:
name: telemetrysample-configuration
@ -20,12 +20,12 @@ metadata:
labels:
app: telemetrysample
spec:
revisionTemplate:
template:
metadata:
labels:
knative.dev/type: app
spec:
container:
# This is the Go import path for the binary to containerize
containers:
- # This is the Go import path for the binary to containerize
# and substitute here.
image: github.com/knative/docs/docs/serving/samples/telemetry-go

View File

@ -32,7 +32,7 @@ us in the previous sample:
```shell
$ kubectl get ksvc -oyaml stock-service-example
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: serving.knative.dev/v1alpha1
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: stock-service-example