diff --git a/modules/osdk-ansible-k8s-local.adoc b/modules/osdk-ansible-k8s-local.adoc index 656b198556..43b9062230 100644 --- a/modules/osdk-ansible-k8s-local.adoc +++ b/modules/osdk-ansible-k8s-local.adoc @@ -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: <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//defaults/main.yml` file to set `state` to `present` by default: diff --git a/modules/osdk-crd-templates.adoc b/modules/osdk-crd-templates.adoc index 01e4542829..0403a197a0 100644 --- a/modules/osdk-crd-templates.adoc +++ b/modules/osdk-crd-templates.adoc @@ -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":"","awsSecret":""}}},{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdBackup","metadata":{"name":"example-etcd-cluster-backup"},"spec":{"etcdEndpoints":[""],"storageType":"S3","s3":{"path":"","awsSecret":""}}}] + [{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdCluster","metadata":{"name":"example","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":"","awsSecret":""}}},{"apiVersion":"etcd.database.coreos.com/v1beta2","kind":"EtcdBackup","metadata":{"name":"example-etcd-cluster-backup"},"spec":{"etcdEndpoints":[""],"storageType":"S3","s3":{"path":"","awsSecret":""}}}] ---- diff --git a/modules/osdk-pruning-utility-config.adoc b/modules/osdk-pruning-utility-config.adoc index fc4b9364e1..3b70195c92 100644 --- a/modules/osdk-pruning-utility-config.adoc +++ b/modules/osdk-pruning-utility-config.adoc @@ -19,7 +19,7 @@ cfg = Config{ Resources: []schema.GroupVersionKind{ {Group: "", Version: "", Kind: PodKind}, }, - Namespaces: []string{"default"}, + Namespaces: []string{""}, Strategy: StrategyConfig{ Mode: MaxCountStrategy, MaxCountSetting: 1, diff --git a/modules/osdk-publish-catalog.adoc b/modules/osdk-publish-catalog.adoc index 439e1a02f1..001b9fb765 100644 --- a/modules/osdk-publish-catalog.adoc +++ b/modules/osdk-publish-catalog.adoc @@ -73,7 +73,7 @@ apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: cs-memcached - namespace: default + 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: spec: targetNamespaces: - - default + - ---- .. 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: spec: channel: "alpha" installPlanApproval: Manual name: catalog source: cs-memcached - sourceNamespace: default + sourceNamespace: startingCSV: memcached-operator.v0.0.1 ---- diff --git a/modules/osdk-run-deployment.adoc b/modules/osdk-run-deployment.adoc index 803b806cd1..5c7ce89784 100644 --- a/modules/osdk-run-deployment.adoc +++ b/modules/osdk-run-deployment.adoc @@ -84,7 +84,7 @@ metadata: subjects: - kind: ServiceAccount name: memcached-quarkus-operator-operator - namespace: default + namespace: roleRef: kind: ClusterRole name: cluster-admin @@ -180,4 +180,4 @@ ifeval::["{context}" == "osdk-golang-tutorial"] endif::[] ifeval::["{context}" == "osdk-java-tutorial"] :!java: -endif::[] \ No newline at end of file +endif::[] diff --git a/modules/osdk-run-locally.adoc b/modules/osdk-run-locally.adoc index 590caa167d..b90a3580f3 100644 --- a/modules/osdk-run-locally.adoc +++ b/modules/osdk-run-locally.adoc @@ -112,7 +112,7 @@ metadata: subjects: - kind: ServiceAccount name: memcached-quarkus-operator-operator - namespace: default + namespace: roleRef: kind: ClusterRole name: cluster-admin