Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development dil streaming #6119

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ef8e10f
upgrade to ocp 4.10 (2022-Q2)
hguerrero May 24, 2022
5d752a3
fix commented
hguerrero May 24, 2022
eb404f8
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero May 25, 2022
b4bc5c6
remove install plan
hguerrero May 26, 2022
f2fb9ae
Merge branch 'development-dil-streaming' of github.com:RedHat-Middlew…
hguerrero May 26, 2022
e747c3a
Merge branch 'development' of https://github.com/redhat-cop/agnosticd…
hguerrero May 26, 2022
8117757
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Jun 9, 2022
8876625
use auth admin user
hguerrero Jun 9, 2022
8d6c886
use che instead of codeready
hguerrero Jun 13, 2022
a247b1a
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Jun 13, 2022
a1997dc
use latest tools container
hguerrero Jun 21, 2022
72e1c50
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Jun 21, 2022
675294f
Merge branch 'development' of https://github.com/redhat-cop/agnosticd…
hguerrero Aug 4, 2022
128580a
update catalog
hguerrero Aug 4, 2022
48ac5cd
use latest operator
hguerrero Aug 5, 2022
6ce7d08
Merge branch 'development' of https://github.com/redhat-cop/agnosticd…
hguerrero Aug 5, 2022
ebc0d07
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Jan 17, 2023
32a73bb
replace online with broker
hguerrero Jan 17, 2023
6ec86a7
update to dev spaces
hguerrero Jan 18, 2023
8bf2968
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Jan 18, 2023
96c8dde
use template for workspaces
hguerrero Jan 19, 2023
29857e8
use subdomain
hguerrero Jan 19, 2023
7bfa336
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Jan 19, 2023
2d66a47
fix che namespace
hguerrero Jan 23, 2023
47f2edd
Merge branch 'development-dil-streaming' of github.com:RedHat-Middlew…
hguerrero Jan 23, 2023
9aca24c
wait for operator to deploy
hguerrero Jan 23, 2023
6966904
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Jan 27, 2023
045107a
Merge branch 'redhat-cop:development' into development-dil-streaming
hguerrero Mar 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions ansible/roles/ocp4-workload-dil-streaming/readme.adoc
Expand Up @@ -102,10 +102,17 @@ ansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \
-e"guid=${GUID}" \
-e"num_users=${USER_COUNT}" \
-e"ocp_workload_test=true" \
-e"ocp_user_needs_quota=true" \
-e"ocp_apps_domain=apps.dev311.openshift.opentlc.com" \
-e"ACTION=create"

# run on an existing OpenShift cluster from local laptop
ansible-playbook --connection=local --limit 127.0.0.1 -i 127.0.0.1, \
./configs/ocp-workloads/ocp-workload.yml \
-e"ocp_username=${OCP_USERNAME}" \
-e"ocp_workload=${WORKLOAD}" \
-e"guid=${GUID}" \
-e"num_users=${USER_COUNT}" \
-e"ocp_workload_test=true" \
-e"ACTION=create"
----

=== To Delete an environment
Expand Down
@@ -0,0 +1,29 @@
---
- name: Evaluate {{ operators_project }} namespace if not exists
k8s:
api_version: v1
kind: Namespace
name: '{{ operators_project }}'
state: present

- name: Evaluate Operator Group
k8s:
api_version: operators.coreos.com/v1alpha2
kind: OperatorGroup
name: workshop-operators
namespace: '{{ operators_project }}'

- name: Evaluate AMQ Broker Subscription
k8s:
state: present
resource_definition: "{{ lookup('template', 'broker-subscription.yaml.j2') }}"

- name: Wait for AMQ Broker operator to install
k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: activemqartemises.broker.amq.io
register: crd_broker
until: crd_broker.resources | list | length == 1
retries: 10
delay: 30
125 changes: 0 additions & 125 deletions ansible/roles/ocp4-workload-dil-streaming/tasks/provision_crw.yaml

This file was deleted.

@@ -0,0 +1,68 @@
---

- name: Evaluate {{ operators_project }} namespace if not exists
k8s:
api_version: v1
kind: Namespace
name: '{{ operators_project }}'
state: present

- name: Evaluate Operator Group
k8s:
api_version: operators.coreos.com/v1alpha2
kind: OperatorGroup
name: workshop-operators
namespace: '{{ operators_project }}'

- name: Evaluate OpenShift Dev Spaces Subscription
k8s:
state: present
resource_definition: "{{ lookup('template', 'devspaces-subscription.yaml.j2') }}"

- name: Wait for OpenShift Dev Spaces operator to install
k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: checlusters.org.eclipse.che
register: crd_che
until: crd_che.resources | list | length == 1
retries: 10
delay: 30

- name: Wait until devspaces-operator is up
k8s_info:
api_version: v1
kind: Deployment
name: devspaces-operator
namespace: '{{ operators_project }}'
register: pod_list
until: pod_list|json_query('resources[*].status.readyReplicas')|unique == [1]
retries: 10
delay: 30

- name: Evaluate {{ che_project }} namespace if not exists
k8s:
api_version: v1
kind: Namespace
name: '{{ che_project }}'
state: present

- name: Evaluate OpenShift Dev Spaces Cluster
k8s:
state: present
resource_definition: "{{ lookup('template', 'devspaces-cluster.yaml.j2') }}"

- name: Wait for OpenShift Dev Spaces to be running
uri:
url: https://devspaces.{{ route_subdomain }}/devfile-registry
status_code: '200'
register: result
until: result.status == 200
retries: 90
delay: 30

- name: Add users and create workspaces
include_tasks: user_workspace.yaml
loop: "{{ range(1, 1 + num_users | int) | list }}"
when:
- num_users|int > 0

This file was deleted.

Expand Up @@ -40,7 +40,7 @@
resource_definition: "{{ lookup('template', 'mssql-server-linux.yaml.j2') }}"

- name: Wait for Database to Start
k8s_facts:
k8s_info:
kind: Deployment
name: mssql-server-linux
namespace: '{{ db_earth_namespace }}'
Expand Down Expand Up @@ -71,7 +71,7 @@
shell: "oc adm policy add-scc-to-user anyuid -z default -n {{ app_earth_namespace }}"

- name: Check if App has been deployed
k8s_facts:
k8s_info:
kind: DeploymentConfig
name: my-apache-php-app
namespace: '{{ app_earth_namespace }}'
Expand Down
Expand Up @@ -19,7 +19,7 @@
resource_definition: "{{ lookup('template', 'streams-subscription.yaml.j2') }}"

- name: Wait for Streams operator to install
k8s_facts:
k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: kafkas.kafka.strimzi.io
Expand Down
Expand Up @@ -6,7 +6,6 @@
vars:
__namespaces:
- "user"
- "user-che"
- "fuse-user"
retries: 10
delay: 30
Expand All @@ -24,8 +23,6 @@
bindings:
- namespace: 'user'
role: 'admin'
- namespace: 'user-che'
role: 'admin'
- namespace: 'fuse-user'
role: 'admin'
- namespace: '{{ kafka_earth_namespace }}'
Expand Down
Expand Up @@ -21,7 +21,7 @@
name: messaging-streams
namespace: openshift-marketplace
- name: Collect CustomResourceDefintions
k8s_facts:
k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
label_selectors:
Expand Down Expand Up @@ -52,7 +52,7 @@
name: messaging-online
namespace: openshift-marketplace
- name: Collect CustomResourceDefintions
k8s_facts:
k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
label_selectors:
Expand All @@ -76,7 +76,7 @@
name: camel-k
namespace: '{{ operators_project }}'
- name: Collect CustomResourceDefintions
k8s_facts:
k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
label_selectors:
Expand Down
Expand Up @@ -3,7 +3,7 @@
user_fuse_project: '{{ fuse_project }}-user{{ item }}'

- name: Wait for Syndesis operator to install
k8s_facts:
k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: syndesises.syndesis.io
Expand Down