-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c8ce8a
commit 18d6ba3
Showing
7 changed files
with
112 additions
and
2 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
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: nova-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: nova-operator | ||
namespace: openstack-operators | ||
spec: | ||
name: nova-operator | ||
channel: alpha | ||
source: nova-operator-index | ||
sourceNamespace: openstack-operators | ||
EOF_CAT |
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,34 @@ | ||
--- | ||
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: nova-operator-index | ||
namespace: openstack-operators | ||
spec: | ||
image: quay.io/openstack-k8s-operators/nova-operator-index:latest | ||
sourceType: grpc | ||
--- | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: openstack | ||
namespace: openstack-operators | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: nova-operator | ||
namespace: openstack-operators | ||
spec: | ||
name: nova-operator | ||
channel: alpha | ||
source: nova-operator-index | ||
sourceNamespace: openstack-operators |
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,24 @@ | ||
- name: Deploy Nova service | ||
hosts: "{{ cifmw_target_hook_host | default('localhost') }}" | ||
gather_facts: false | ||
environment: | ||
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}" | ||
PATH: "{{ cifmw_path }}" | ||
tasks: | ||
- name: Collect general openshift cr info | ||
ansible.builtin.shell: | | ||
oc patch csv -n openstack-operators openstack-operator.v0.0.1 --type json -p="[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/replicas", "value": "0"}]" | ||
- name: Install Nova Operator | ||
cifmw.general.ci_script: | ||
output_dir: "{{ cifmw_basedir }}/artifacts" | ||
chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/nova-operator" | ||
script: make nova | ||
extra_args: | ||
CATALOG_IMAGE: "{{ nova_catalog_image | default('quay.io/openstack-k8s-operators/nova-operator-index:latest') }}" | ||
|
||
# - name: Deploy nova service | ||
# when: deploy_nova_service | default('true') | bool | ||
# cifmw.general.ci_script: | ||
# output_dir: "{{ cifmw_basedir }}/artifacts" | ||
# chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/nova-operator" | ||
# script: make nova_deploy |
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 |
---|---|---|
|
@@ -19,5 +19,3 @@ spec: | |
manilaShares: {} | ||
horizon: | ||
enabled: false | ||
nova: | ||
enabled: true |
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 |
---|---|---|
|
@@ -40,3 +40,4 @@ patches: | |
- path: infra.yaml | ||
- path: keystone.yaml | ||
- path: placement.yaml | ||
- path: nova.yaml |