mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
OSDOCS#4429: Scrub the OpFrame docs for default namespaces
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
e628ecab88
commit
60dd3d738f
@@ -27,11 +27,11 @@ The following example creates and deletes a config map based on the value of a v
|
||||
api_version: v1
|
||||
kind: ConfigMap
|
||||
name: example-config
|
||||
namespace: default <1>
|
||||
namespace: <operator_namespace> <1>
|
||||
state: "{{ state }}"
|
||||
ignore_errors: true <2>
|
||||
----
|
||||
<1> Change this value if you want the config map to be created in a different namespace from `default`.
|
||||
<1> Specify the namespace where you want the config map created.
|
||||
<2> Setting `ignore_errors: true` ensures that deleting a nonexistent config map does not fail.
|
||||
|
||||
. Modify the `roles/<kind>/defaults/main.yml` file to set `state` to `present` by default:
|
||||
|
||||
@@ -16,5 +16,5 @@ The following full example provides templates for `EtcdCluster`, `EtcdBackup` an
|
||||
metadata:
|
||||
annotations:
|
||||
alm-examples: >-
|
||||
[{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdCluster","metadata":{"name":"example","namespace":"default"},"spec":{"size":3,"version":"3.2.13"}},{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdRestore","metadata":{"name":"example-etcd-cluster"},"spec":{"etcdCluster":{"name":"example-etcd-cluster"},"backupStorageType":"S3","s3":{"path":"<full-s3-path>","awsSecret":"<aws-secret>"}}},{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdBackup","metadata":{"name":"example-etcd-cluster-backup"},"spec":{"etcdEndpoints":["<etcd-cluster-endpoints>"],"storageType":"S3","s3":{"path":"<full-s3-path>","awsSecret":"<aws-secret>"}}}]
|
||||
[{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdCluster","metadata":{"name":"example","namespace":"<operator_namespace>"},"spec":{"size":3,"version":"3.2.13"}},{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdRestore","metadata":{"name":"example-etcd-cluster"},"spec":{"etcdCluster":{"name":"example-etcd-cluster"},"backupStorageType":"S3","s3":{"path":"<full-s3-path>","awsSecret":"<aws-secret>"}}},{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdBackup","metadata":{"name":"example-etcd-cluster-backup"},"spec":{"etcdEndpoints":["<etcd-cluster-endpoints>"],"storageType":"S3","s3":{"path":"<full-s3-path>","awsSecret":"<aws-secret>"}}}]
|
||||
----
|
||||
|
||||
@@ -19,7 +19,7 @@ cfg = Config{
|
||||
Resources: []schema.GroupVersionKind{
|
||||
{Group: "", Version: "", Kind: PodKind},
|
||||
},
|
||||
Namespaces: []string{"default"},
|
||||
Namespaces: []string{"<operator_namespace>"},
|
||||
Strategy: StrategyConfig{
|
||||
Mode: MaxCountStrategy,
|
||||
MaxCountSetting: 1,
|
||||
|
||||
@@ -73,7 +73,7 @@ apiVersion: operators.coreos.com/v1alpha1
|
||||
kind: CatalogSource
|
||||
metadata:
|
||||
name: cs-memcached
|
||||
namespace: default
|
||||
namespace: <operator_namespace>
|
||||
spec:
|
||||
displayName: My Test
|
||||
publisher: Company
|
||||
@@ -115,10 +115,10 @@ apiVersion: operators.coreos.com/v1
|
||||
kind: OperatorGroup
|
||||
metadata:
|
||||
name: my-test
|
||||
namespace: default
|
||||
namespace: <operator_namespace>
|
||||
spec:
|
||||
targetNamespaces:
|
||||
- default
|
||||
- <operator_namespace>
|
||||
----
|
||||
|
||||
.. Define a `Subscription` object and create it by using the `oc apply` command or web console:
|
||||
@@ -130,13 +130,13 @@ spec:
|
||||
kind: Subscription
|
||||
metadata:
|
||||
name: catalogtest
|
||||
namespace: default
|
||||
namespace: <catalog_namespace>
|
||||
spec:
|
||||
channel: "alpha"
|
||||
installPlanApproval: Manual
|
||||
name: catalog
|
||||
source: cs-memcached
|
||||
sourceNamespace: default
|
||||
sourceNamespace: <operator_namespace>
|
||||
startingCSV: memcached-operator.v0.0.1
|
||||
----
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ metadata:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: memcached-quarkus-operator-operator
|
||||
namespace: default
|
||||
namespace: <operator_namespace>
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
@@ -180,4 +180,4 @@ ifeval::["{context}" == "osdk-golang-tutorial"]
|
||||
endif::[]
|
||||
ifeval::["{context}" == "osdk-java-tutorial"]
|
||||
:!java:
|
||||
endif::[]
|
||||
endif::[]
|
||||
|
||||
@@ -112,7 +112,7 @@ metadata:
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: memcached-quarkus-operator-operator
|
||||
namespace: default
|
||||
namespace: <operator_namespace>
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
|
||||
Reference in New Issue
Block a user