-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9baf7cd
commit d15cff3
Showing
4 changed files
with
112 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
// This module is included in the following assembly: | ||
// | ||
// * installing/installing-openshift-builds.adoc | ||
|
||
:_mod-docs-content-type: PROCEDURE | ||
[id="installing-builds-using-CLI_{context}"] | ||
= Installing {builds-shortname} by using the CLI | ||
|
||
You can also install {builds-shortname} by using the command-line interface (CLI). | ||
|
||
.Procedure | ||
|
||
. Create a `sub.yaml` subscription object file to subscribe a namespace to the {builds-operator}, as shown in the following example: | ||
+ | ||
[source,yaml] | ||
---- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: openshift-builds-operator | ||
namespace: openshift-builds | ||
spec: | ||
channel: <channel-name> <1> | ||
name: openshift-builds-operator <2> | ||
source: redhat-operators <3> | ||
sourceNamespace: openshift-marketplace <4> | ||
---- | ||
<1> The channel name from where you want to subscribe the Operator. | ||
<2> Name of the Operator to subscribe to. | ||
<3> Name of the CatalogSource that provides the Operator. | ||
<4> Namespace of the CatalogSource. Use `openshift-marketplace` for the default OperatorHub CatalogSources. | ||
|
||
. Apply the subscription object by runninng the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc apply -f sub.yml | ||
---- | ||
+ | ||
The {builds-operator} is now installed in the default target namespace `openshift-builds`. | ||
|
||
.Verification | ||
|
||
After installing the Builds for Red Hat OpenShift Operator, you must verify that the following resources are created to ensure proper functioning of the Operator: | ||
|
||
. Run the following command to ensure that the `OpenshiftBuild` resource is created: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get openshiftbuilds | ||
---- | ||
+ | ||
. Run the following command to ensure that the `ShipwrightBuilds` resource is created: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get shipwrightbuilds | ||
---- | ||
+ | ||
. Run the following command to ensure that the following pods are created in the `openshift-builds` namespace: | ||
|
||
* `openshift-builds` operator pod | ||
* Build controller and build webhook pods | ||
* SharedResource daemonset and SharedResource webhook pods | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get pods -n openshift-builds | ||
---- | ||
+ | ||
The list of pods is displayed as shown in the following example: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get pods -n openshift-builds | ||
NAME READY STATUS RESTARTS AGE | ||
openshift-builds-operator-6f5c48c6b5-cvp2w 2/2 Running 0 13d | ||
openshift-pipelines-operator-64d8c4969c-952cc 2/2 Running 0 3d13h | ||
shared-resource-csi-driver-node-gbkqs 2/2 Running 0 13d | ||
shared-resource-csi-driver-node-kcqxc 2/2 Running 0 13d | ||
shared-resource-csi-driver-node-sbsvg 2/2 Running 0 13d | ||
shared-resource-csi-driver-webhook-9d9bd48f4-d5ln6 1/1 Running 0 13d | ||
shipwright-build-controller-5454475b85-mmm6w 1/1 Running 0 13d | ||
shipwright-build-webhook-7fbd49c6bb-2n77s 1/1 Running 0 13d | ||
tekton-operator-webhook-756f5dfdc7-c99mc 1/1 Running 0 3d13h | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters