Skip to content

Commit 5b09f67

Browse files
committed
Fix non-groupified API references
Use of non-groupified non-core objects was deprecated in OCP 4.7.
1 parent 38dec7f commit 5b09f67

35 files changed

+51
-51
lines changed

modules/builds-chaining-builds.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The first build takes the application source and produces an image containing a
2323

2424
[source,yaml]
2525
----
26-
apiVersion: v1
26+
apiVersion: build.openshift.io/v1
2727
kind: BuildConfig
2828
metadata:
2929
name: artifact-build
@@ -47,7 +47,7 @@ The second build uses image source with a path to the WAR file inside the output
4747

4848
[source,yaml]
4949
----
50-
apiVersion: v1
50+
apiVersion: build.openshift.io/v1
5151
kind: BuildConfig
5252
metadata:
5353
name: image-build

modules/builds-use-custom-builder-image.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can define a `BuildConfig` object that uses the custom strategy in conjuncti
2020
[source,yaml]
2121
----
2222
kind: BuildConfig
23-
apiVersion: v1
23+
apiVersion: build.openshift.io/v1
2424
metadata:
2525
name: sample-custom-build
2626
labels:
@@ -55,7 +55,7 @@ $ oc create -f buildconfig.yaml
5555
[source,yaml]
5656
----
5757
kind: ImageStream
58-
apiVersion: v1
58+
apiVersion: image.openshift.io/v1
5959
metadata:
6060
name: sample-custom
6161
spec: {}

modules/builds-using-secrets-as-environment-variables.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This method shows the secrets as plain text in the output of the build pod conso
1818
+
1919
[source,yaml]
2020
----
21-
apiVersion: v1
21+
apiVersion: build.openshift.io/v1
2222
kind: BuildConfig
2323
metadata:
2424
name: secret-example-bc

modules/builds-using-secrets.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ spec:
103103
.YAML of a Build Config Populating Environment Variables with Secret Data
104104
[source,yaml]
105105
----
106-
apiVersion: v1
106+
apiVersion: build.openshift.io/v1
107107
kind: BuildConfig
108108
metadata:
109109
name: secret-example-bc

modules/cluster-logging-eventrouter-deploy.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following Template object creates the service account, cluster role, and clu
2222
[source,yaml]
2323
----
2424
kind: Template
25-
apiVersion: v1
25+
apiVersion: template.openshift.io/v1
2626
metadata:
2727
name: eventrouter-template
2828
annotations:
@@ -35,15 +35,15 @@ objects:
3535
name: eventrouter
3636
namespace: ${NAMESPACE}
3737
- kind: ClusterRole <2>
38-
apiVersion: v1
38+
apiVersion: rbac.authorization.k8s.io/v1
3939
metadata:
4040
name: event-reader
4141
rules:
4242
- apiGroups: [""]
4343
resources: ["events"]
4444
verbs: ["get", "watch", "list"]
4545
- kind: ClusterRoleBinding <3>
46-
apiVersion: v1
46+
apiVersion: rbac.authorization.k8s.io/v1
4747
metadata:
4848
name: event-reader-binding
4949
subjects:

modules/deployments-deploymentconfigs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ replication controller, scaling up the new one, and running hooks). The deployme
3535
.Example `DeploymentConfig` definition
3636
[source,yaml]
3737
----
38-
apiVersion: v1
38+
apiVersion: apps.openshift.io/v1
3939
kind: DeploymentConfig
4040
metadata:
4141
name: frontend

modules/deployments-lifecycle-hooks.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following simplified example deployment uses the rolling strategy. Triggers
4343
[source,yaml]
4444
----
4545
kind: DeploymentConfig
46-
apiVersion: v1
46+
apiVersion: apps.openshift.io/v1
4747
metadata:
4848
name: frontend
4949
spec:

modules/how-to-plan-your-environment-according-to-application-requirements.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ links in the deployment's service specification file to overcome this:
8383
[source,yaml]
8484
----
8585
---
86-
apiVersion: v1
86+
apiVersion: template.openshift.io/v1
8787
kind: Template
8888
metadata:
8989
name: deployment-config-template
@@ -92,7 +92,7 @@ metadata:
9292
description: This template will create a deploymentConfig with 1 replica, 4 env vars and a service.
9393
tags: ''
9494
objects:
95-
- apiVersion: v1
95+
- apiVersion: apps.openshift.io/v1
9696
kind: DeploymentConfig
9797
metadata:
9898
name: deploymentconfig${IDENTIFIER}

modules/images-imagestream-configure.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An `ImageStream` object file contains the following elements.
1111

1212
[source,yaml]
1313
----
14-
apiVersion: v1
14+
apiVersion: image.openshift.io/v1
1515
kind: ImageStream
1616
metadata:
1717
annotations:

modules/images-imagestream-mapping.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following image stream mapping example results in an image being tagged as `
1919

2020
[source,yaml]
2121
----
22-
apiVersion: v1
22+
apiVersion: image.openshift.io/v1
2323
kind: ImageStreamMapping
2424
metadata:
2525
creationTimestamp: null

0 commit comments

Comments
 (0)