| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a0cebc4 commit 3e6de55
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -220,3 +220,54 @@ Also, you can blow everything away with | |||
| 220 | 220 | $ bin/operator-sdk-1.9.0 olm uninstall | |
| 221 | 221 | $ kubectl delete ns bundle-test | |
| 222 | 222 | ``` | |
| 223 | + | ||
| 224 | + ### Launch the Operator with OLM and Index | ||
| 225 | + | ||
| 226 | + ```bash | ||
| 227 | + kubectl create ns index-test | ||
| 228 | + | ||
| 229 | + ../deploy/common/pull-secret.sh my-opm-image-pull-secrets docker.io | kubectl -n index-test apply -f - | ||
| 230 | + | ||
| 231 | + echo "apiVersion: operators.coreos.com/v1alpha1 | ||
| 232 | + kind: CatalogSource | ||
| 233 | + metadata: | ||
| 234 | + name: rhacs-operator-test-index | ||
| 235 | + namespace: index-test | ||
| 236 | + spec: | ||
| 237 | + sourceType: grpc | ||
| 238 | + secrets: | ||
| 239 | + - my-opm-image-pull-secrets | ||
| 240 | + image: docker.io/stackrox/stackrox-operator-index:v$(make --quiet tag) | ||
| 241 | + displayName: RHACS Operator Test index" | kubectl -n index-test apply -f - | ||
| 242 | + | ||
| 243 | + echo 'apiVersion: operators.coreos.com/v1alpha2 | ||
| 244 | + kind: OperatorGroup | ||
| 245 | + metadata: | ||
| 246 | + name: all-namespaces-operator-group | ||
| 247 | + namespace: index-test' | kubectl -n index-test apply -f - | ||
| 248 | + | ||
| 249 | + echo 'apiVersion: operators.coreos.com/v1alpha1 | ||
| 250 | + kind: Subscription | ||
| 251 | + metadata: | ||
| 252 | + name: rhacs-operator-test-subscription | ||
| 253 | + namespace: index-test | ||
| 254 | + spec: | ||
| 255 | + channel: preview | ||
| 256 | + name: rhacs-operator | ||
| 257 | + source: rhacs-operator-test-index | ||
| 258 | + sourceNamespace: index-test | ||
| 259 | + installPlanApproval: Automatic' | kubectl -n index-test apply -f - | ||
| 260 | + | ||
| 261 | + kubectl -n index-test patch clusterserviceversions.operators.coreos.com rhacs-operator.v$(make --quiet tag) --type json -p '[ { "op": "add", "path": "/spec/install/spec/deployments/0/spec/template/spec/imagePullSecrets", "value": [{"name": "my-opm-image-pull-secrets"}] } ]' | ||
| 262 | + | ||
| 263 | + kubectl -n index-test delete deployments.apps rhacs-operator-controller-manager | ||
| 264 | + | ||
| 265 | + # undeploy | ||
| 266 | + | ||
| 267 | + kubectl -n index-test delete clusterserviceversions.operators.coreos.com -l operators.coreos.com/rhacs-operator.index-test | ||
| 268 | + | ||
| 269 | + kubectl -n index-test delete subscriptions.operators.coreos.com rhacs-operator-test-subscription | ||
| 270 | + | ||
| 271 | + kubectl -n index-test delete catalogsources.operators.coreos.com rhacs-operator-test-index | ||
| 272 | + | ||
| 273 | + ``` | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments