Red Hat OpenShift on IBM Cloud(VPC): デフォルトで用意されるBuilder Imageが利用できるように構成変更する

#はじめに

Red Hat OpenShift on IBM Cloud(VPC)の管理コンソールにて、`From Git`を選択し
<img width="1276" alt="image.png" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/62127/995d5852-a791-4116-50fa-2c33cc2998a2.png">
`Builder Image`を選択しようとおもったら・・・出てこない！？
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/62127/feb7c8a9-e595-3b77-8e8d-c66962d69dde.png)

実際、imageStream一覧を出力してみると、、、明らかに少ない。。。

```
$ oc get is -A
NAMESPACE   NAME                  IMAGE REPOSITORY                                                                 TAGS           UPDATED
openshift   cli                   image-registry.openshift-image-registry.svc:5000/openshift/cli                   latest         2 weeks ago
openshift   cli-artifacts         image-registry.openshift-image-registry.svc:5000/openshift/cli-artifacts         latest         2 weeks ago
openshift   installer             image-registry.openshift-image-registry.svc:5000/openshift/installer             latest         2 weeks ago
openshift   installer-artifacts   image-registry.openshift-image-registry.svc:5000/openshift/installer-artifacts   latest         2 weeks ago
openshift   must-gather           image-registry.openshift-image-registry.svc:5000/openshift/must-gather           latest         2 weeks ago
openshift   oauth-proxy           image-registry.openshift-image-registry.svc:5000/openshift/oauth-proxy           v4.4           2 weeks ago
openshift   tests                 image-registry.openshift-image-registry.svc:5000/openshift/tests                 latest         2 weeks ago
```

#原因

Samples Operatorsの`managementState`のStatusが`Removed`になっているのが原因のように思える。
https://access.redhat.com/documentation/ja-jp/openshift_container_platform/4.5/html/images/samples-operator-configuration_configuring-samples-operator

>Removed: Samples Operator は OpenShift namespace の一連の Managed 状態のイメージストリームおよびテンプレートを除去します。これは、クラスター管理者によって作成される新規サンプルや、省略一覧にあるサンプルを無視します。除去が完了すると、Samples Operator は Unmanaged 状態にあるかのように機能し、サンプルリソース、イメージストリーム、またはテンプレートに対する監視イベントを無視します。 

```
$ oc get configs.samples.operator.openshift.io/cluster -o yaml |grep "spec" -A 6
spec:
  architectures:
  - x86_64
  managementState: Removed
status:
  conditions:
  - lastTransitionTime: "2020-07-01T05:54:59Z"

```

#解決策

`Removed`になっているので、`oc edit configs.samples.operator.openshift.io/cluster`で`managementState`を`Managed`に変更する。

```
$ oc get configs.samples.operator.openshift.io/cluster -o yaml |grep "spec" -A 6
spec:
  architectures:
  - x86_64
  managementState: Managed
status:
  architectures:
  - x86_64
```

そうすると、、、ちゃんと出てくるようになりました。

<img width="1279" alt="image.png" src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/62127/65745fc4-e864-5811-e1ff-618594b8f7ed.png">


```
$ oc get is -A
NAMESPACE   NAME                                           IMAGE REPOSITORY                                                                                          TAGS                                                  UPDATED
openshift   apicast-gateway                                image-registry.openshift-image-registry.svc:5000/openshift/apicast-gateway                                2.1.0.GA,2.2.0.GA,2.3.0.GA,2.4.0.GA + 3 more...       3 minutes ago
openshift   apicurito-ui                                   image-registry.openshift-image-registry.svc:5000/openshift/apicurito-ui                                   1.2,1.3,1.4                                           3 minutes ago
openshift   cli                                            image-registry.openshift-image-registry.svc:5000/openshift/cli                                            latest                                                2 weeks ago
openshift   cli-artifacts                                  image-registry.openshift-image-registry.svc:5000/openshift/cli-artifacts                                  latest                                                2 weeks ago
openshift   dotnet                                         image-registry.openshift-image-registry.svc:5000/openshift/dotnet                                         2.1,2.2,3.0,latest                                    4 minutes ago
openshift   dotnet-runtime                                 image-registry.openshift-image-registry.svc:5000/openshift/dotnet-runtime                                 2.1,2.2,3.0,latest                                    4 minutes ago
openshift   eap-cd-openshift                               image-registry.openshift-image-registry.svc:5000/openshift/eap-cd-openshift                               12,12.0,13,13.0,14,14.0,15,15.0,16,16.0 + 3 more...   2 minutes ago
openshift   fis-java-openshift                             image-registry.openshift-image-registry.svc:5000/openshift/fis-java-openshift                             1.0,2.0                                               3 minutes ago
openshift   fis-karaf-openshift                            image-registry.openshift-image-registry.svc:5000/openshift/fis-karaf-openshift                            1.0,2.0                                               2 minutes ago
openshift   fuse-apicurito-generator                       image-registry.openshift-image-registry.svc:5000/openshift/fuse-apicurito-generator                       1.2,1.3,1.4                                           3 minutes ago
openshift   fuse7-console                                  image-registry.openshift-image-registry.svc:5000/openshift/fuse7-console                                  1.0,1.1,1.2,1.3,1.4                                   3 minutes ago
openshift   fuse7-eap-openshift                            image-registry.openshift-image-registry.svc:5000/openshift/fuse7-eap-openshift                            1.0,1.1,1.2,1.3,1.4                                   2 minutes ago
openshift   fuse7-java-openshift                           image-registry.openshift-image-registry.svc:5000/openshift/fuse7-java-openshift                           1.0,1.1,1.2,1.3,1.4                                   2 minutes ago
openshift   fuse7-karaf-openshift                          image-registry.openshift-image-registry.svc:5000/openshift/fuse7-karaf-openshift                          1.0,1.1,1.2,1.3,1.4                                   3 minutes ago
openshift   golang                                         image-registry.openshift-image-registry.svc:5000/openshift/golang                                         1.11.5,latest                                         2 minutes ago
openshift   httpd                                          image-registry.openshift-image-registry.svc:5000/openshift/httpd                                          2.4,latest                                            3 minutes ago
openshift   installer                                      image-registry.openshift-image-registry.svc:5000/openshift/installer                                      latest                                                2 weeks ago
openshift   installer-artifacts                            image-registry.openshift-image-registry.svc:5000/openshift/installer-artifacts                            latest                                                2 weeks ago
openshift   java                                           image-registry.openshift-image-registry.svc:5000/openshift/java                                           11,8,latest                                           4 minutes ago
openshift   jboss-amq-62                                   image-registry.openshift-image-registry.svc:5000/openshift/jboss-amq-62                                   1.1,1.2,1.3,1.4,1.5,1.6,1.7                           3 minutes ago
openshift   jboss-amq-63                                   image-registry.openshift-image-registry.svc:5000/openshift/jboss-amq-63                                   1.0,1.1,1.2,1.3,1.4                                   3 minutes ago
openshift   jboss-datagrid65-client-openshift              image-registry.openshift-image-registry.svc:5000/openshift/jboss-datagrid65-client-openshift              1.0,1.1                                               3 minutes ago
openshift   jboss-datagrid65-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/jboss-datagrid65-openshift                     1.2,1.3,1.4,1.5,1.6                                   3 minutes ago
openshift   jboss-datagrid71-client-openshift              image-registry.openshift-image-registry.svc:5000/openshift/jboss-datagrid71-client-openshift              1.0                                                   3 minutes ago
openshift   jboss-datagrid71-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/jboss-datagrid71-openshift                     1.0,1.1,1.2,1.3                                       2 minutes ago
openshift   jboss-datagrid72-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/jboss-datagrid72-openshift                     1.0,1.1,1.2                                           3 minutes ago
openshift   jboss-datagrid73-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/jboss-datagrid73-openshift                     1.0,1.1                                               3 minutes ago
openshift   jboss-datavirt64-driver-openshift              image-registry.openshift-image-registry.svc:5000/openshift/jboss-datavirt64-driver-openshift              1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7                       3 minutes ago
openshift   jboss-datavirt64-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/jboss-datavirt64-openshift                     1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7                       2 minutes ago
openshift   jboss-decisionserver64-openshift               image-registry.openshift-image-registry.svc:5000/openshift/jboss-decisionserver64-openshift               1.0,1.1,1.2,1.3,1.4,1.5,1.6                           3 minutes ago
openshift   jboss-eap64-openshift                          image-registry.openshift-image-registry.svc:5000/openshift/jboss-eap64-openshift                          1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9 + 1 more...       2 minutes ago
openshift   jboss-eap70-openshift                          image-registry.openshift-image-registry.svc:5000/openshift/jboss-eap70-openshift                          1.3,1.4,1.5,1.6,1.7                                   3 minutes ago
openshift   jboss-eap71-openshift                          image-registry.openshift-image-registry.svc:5000/openshift/jboss-eap71-openshift                          1.1,1.2,1.3,1.4,latest                                2 minutes ago
openshift   jboss-eap72-openshift                          image-registry.openshift-image-registry.svc:5000/openshift/jboss-eap72-openshift                          1.0,1.1,latest                                        3 minutes ago
openshift   jboss-fuse70-console                           image-registry.openshift-image-registry.svc:5000/openshift/jboss-fuse70-console                           1.0                                                   3 minutes ago
openshift   jboss-fuse70-eap-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/jboss-fuse70-eap-openshift                     1.0                                                   3 minutes ago
openshift   jboss-fuse70-java-openshift                    image-registry.openshift-image-registry.svc:5000/openshift/jboss-fuse70-java-openshift                    1.0                                                   3 minutes ago
openshift   jboss-fuse70-karaf-openshift                   image-registry.openshift-image-registry.svc:5000/openshift/jboss-fuse70-karaf-openshift                   1.0                                                   3 minutes ago
openshift   jboss-processserver64-openshift                image-registry.openshift-image-registry.svc:5000/openshift/jboss-processserver64-openshift                1.0,1.1,1.2,1.3,1.4,1.5,1.6                           2 minutes ago
openshift   jboss-webserver30-tomcat7-openshift            image-registry.openshift-image-registry.svc:5000/openshift/jboss-webserver30-tomcat7-openshift            1.1,1.2,1.3                                           2 minutes ago
openshift   jboss-webserver30-tomcat8-openshift            image-registry.openshift-image-registry.svc:5000/openshift/jboss-webserver30-tomcat8-openshift            1.1,1.2,1.3                                           3 minutes ago
openshift   jboss-webserver31-tomcat7-openshift            image-registry.openshift-image-registry.svc:5000/openshift/jboss-webserver31-tomcat7-openshift            1.0,1.1,1.2,1.3,1.4                                   2 minutes ago
openshift   jboss-webserver31-tomcat8-openshift            image-registry.openshift-image-registry.svc:5000/openshift/jboss-webserver31-tomcat8-openshift            1.0,1.1,1.2,1.3,1.4                                   3 minutes ago
openshift   jboss-webserver50-tomcat9-openshift            image-registry.openshift-image-registry.svc:5000/openshift/jboss-webserver50-tomcat9-openshift            1.0,1.1,1.2,latest                                    3 minutes ago
openshift   jenkins                                        image-registry.openshift-image-registry.svc:5000/openshift/jenkins                                        2,latest                                              3 minutes ago
openshift   jenkins-agent-maven                            image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-maven                            latest,v4.0                                           2 minutes ago
openshift   jenkins-agent-nodejs                           image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-nodejs                           latest,v4.0                                           3 minutes ago
openshift   mariadb                                        image-registry.openshift-image-registry.svc:5000/openshift/mariadb                                        10.2,latest                                           2 minutes ago
openshift   modern-webapp                                  image-registry.openshift-image-registry.svc:5000/openshift/modern-webapp                                  10.x,latest                                           2 minutes ago
openshift   mongodb                                        image-registry.openshift-image-registry.svc:5000/openshift/mongodb                                        3.2,3.4,3.6,latest                                    3 minutes ago
openshift   must-gather                                    image-registry.openshift-image-registry.svc:5000/openshift/must-gather                                    latest                                                2 weeks ago
openshift   mysql                                          image-registry.openshift-image-registry.svc:5000/openshift/mysql                                          5.7,8.0,latest                                        2 minutes ago
openshift   nginx                                          image-registry.openshift-image-registry.svc:5000/openshift/nginx                                          1.10,1.12,latest                                      2 minutes ago
openshift   nodejs                                         image-registry.openshift-image-registry.svc:5000/openshift/nodejs                                         10,10-SCL,8,8-RHOAR,latest                            2 minutes ago
openshift   oauth-proxy                                    image-registry.openshift-image-registry.svc:5000/openshift/oauth-proxy                                    v4.4                                                  2 weeks ago
openshift   openjdk-11-rhel7                               image-registry.openshift-image-registry.svc:5000/openshift/openjdk-11-rhel7                               1.0                                                   2 minutes ago
openshift   perl                                           image-registry.openshift-image-registry.svc:5000/openshift/perl                                           5.24,5.26,latest                                      3 minutes ago
openshift   php                                            image-registry.openshift-image-registry.svc:5000/openshift/php                                            7.0,7.1,7.2,latest                                    2 minutes ago
openshift   postgresql                                     image-registry.openshift-image-registry.svc:5000/openshift/postgresql                                     10,9.6,latest                                         4 minutes ago
openshift   python                                         image-registry.openshift-image-registry.svc:5000/openshift/python                                         2.7,3.5,3.6,latest                                    3 minutes ago
openshift   redhat-openjdk18-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/redhat-openjdk18-openshift                     1.0,1.1,1.2,1.3,1.4,1.5                               2 minutes ago
openshift   redhat-sso70-openshift                         image-registry.openshift-image-registry.svc:5000/openshift/redhat-sso70-openshift                         1.3,1.4                                               3 minutes ago
openshift   redhat-sso71-openshift                         image-registry.openshift-image-registry.svc:5000/openshift/redhat-sso71-openshift                         1.0,1.1,1.2,1.3                                       3 minutes ago
openshift   redhat-sso72-openshift                         image-registry.openshift-image-registry.svc:5000/openshift/redhat-sso72-openshift                         1.0,1.1,1.2,1.3,1.4                                   3 minutes ago
openshift   redhat-sso73-openshift                         image-registry.openshift-image-registry.svc:5000/openshift/redhat-sso73-openshift                         1.0,latest                                            3 minutes ago
openshift   redis                                          image-registry.openshift-image-registry.svc:5000/openshift/redis                                          3.2,latest                                            3 minutes ago
openshift   rhdm74-decisioncentral-openshift               image-registry.openshift-image-registry.svc:5000/openshift/rhdm74-decisioncentral-openshift               1.0,1.1                                               2 minutes ago
openshift   rhdm74-kieserver-openshift                     image-registry.openshift-image-registry.svc:5000/openshift/rhdm74-kieserver-openshift                     1.0,1.1                                               3 minutes ago
openshift   rhdm74-optaweb-employee-rostering-openshift    image-registry.openshift-image-registry.svc:5000/openshift/rhdm74-optaweb-employee-rostering-openshift    1.0,1.1                                               2 minutes ago
openshift   rhpam74-businesscentral-monitoring-openshift   image-registry.openshift-image-registry.svc:5000/openshift/rhpam74-businesscentral-monitoring-openshift   1.0,1.1                                               2 minutes ago
openshift   rhpam74-businesscentral-openshift              image-registry.openshift-image-registry.svc:5000/openshift/rhpam74-businesscentral-openshift              1.0,1.1                                               3 minutes ago
openshift   rhpam74-kieserver-openshift                    image-registry.openshift-image-registry.svc:5000/openshift/rhpam74-kieserver-openshift                    1.0,1.1                                               2 minutes ago
openshift   rhpam74-smartrouter-openshift                  image-registry.openshift-image-registry.svc:5000/openshift/rhpam74-smartrouter-openshift                  1.0,1.1                                               3 minutes ago
openshift   ruby                                           image-registry.openshift-image-registry.svc:5000/openshift/ruby                                           2.3,2.4,2.5,latest                                    3 minutes ago
openshift   tests                                          image-registry.openshift-image-registry.svc:5000/openshift/tests                                          latest                                                2 weeks ago
```