-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add watcher target to deploy operator via olm
This pr adds two targets: * `make watcher`: It generates olm.yaml file and installs the watcher-operator using oc. * `make watcher_cleanup`: It generates the olm.yaml file and undeploy the watcher-operator using oc. * `make watcher_deploy`: To deploy the watcher service * `make watcher_deploy_cleanup`: To undeploy the watcher service It also provides $CATALOG_IMAGE var to pass custom watcher-operator index image. Jira: https://issues.redhat.com/browse/OSPRH-11419 Signed-off-by: Chandan Kumar <[email protected]>
- Loading branch information
Showing
4 changed files
with
98 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ CI_TOOLS_REPO | |
*.swp | ||
*.swo | ||
*~ | ||
|
||
# CI generated files | ||
ci/olm.yaml |
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 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 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,36 @@ | ||
cat > ci/olm.yaml <<EOF_CAT | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: openstack-operators | ||
labels: | ||
pod-security.kubernetes.io/enforce: privileged | ||
security.openshift.io/scc.podSecurityLabelSync: "false" | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: CatalogSource | ||
metadata: | ||
name: watcher-operator-index | ||
namespace: openstack-operators | ||
spec: | ||
image: ${CATALOG_IMG} | ||
sourceType: grpc | ||
--- | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: openstack | ||
namespace: openstack-operators | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: watcher-operator | ||
namespace: openstack-operators | ||
spec: | ||
name: watcher-operator | ||
channel: alpha | ||
source: watcher-operator-index | ||
sourceNamespace: openstack-operators | ||
EOF_CAT |