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

[patch] Aibroker update playbook for install specific ODH version #1588

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6065154
[patch] update playbook with odh specific version
karol-czarnecki Dec 5, 2024
4e9a292
[patch] fix indent
karol-czarnecki Dec 5, 2024
5c1c0c6
[patch] final commit
karol-czarnecki Dec 5, 2024
7d8be9c
[patch] add comment to alternative ODH deployment
karol-czarnecki Dec 5, 2024
68c3c3c
[patch] add alternate way to install openshift serverless
karol-czarnecki Dec 5, 2024
055bf21
[patch] restored servermesh operator deployment
karol-czarnecki Dec 5, 2024
c116b7c
[patch] restore alternative install serverless
karol-czarnecki Dec 5, 2024
57567d6
[patch] update controller version
karol-czarnecki Dec 5, 2024
c5afd1c
[patch] update controller version
karol-czarnecki Dec 5, 2024
5a3be95
[patch] update version
karol-czarnecki Dec 5, 2024
f4defbe
[patch] added OG
karol-czarnecki Dec 5, 2024
401db3f
[patch] fix subscription and add OG
karol-czarnecki Dec 5, 2024
e4b042d
[patch] update OG name
karol-czarnecki Dec 5, 2024
478a920
Squashed commit of the following:
karol-czarnecki Dec 9, 2024
1505519
[patch] merge with master
karol-czarnecki Dec 9, 2024
9e0a4e6
Merge branch 'master' into mashp2787
karol-czarnecki Dec 11, 2024
7bdf09e
[patch] added dev version km components
karol-czarnecki Dec 11, 2024
ad72a4c
[patch] update kmodels
karol-czarnecki Dec 11, 2024
a844332
Squashed commit of the following:
karol-czarnecki Dec 12, 2024
65d84b6
[patch] added maint10xdev versions for kmodels
karol-czarnecki Dec 13, 2024
a36f081
[patch] add wx secret to tenant
karol-czarnecki Dec 13, 2024
6be8f60
[patch] update secrets
karol-czarnecki Dec 13, 2024
3373423
[patch] add wx copy to tenant namespace
karol-czarnecki Dec 16, 2024
3ee9043
[patch] remove wx secret from tenant part
karol-czarnecki Dec 16, 2024
d5318dc
[patch] update kmodels components to version 1.0.2
karol-czarnecki Dec 16, 2024
057f830
Squashed commit of the following:
karol-czarnecki Dec 16, 2024
c0c8167
Merge branch 'master' into mashp2787
karol-czarnecki Dec 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@
script: "{{ role_path }}/files/create_wx.sh {{ tenantNamespace }} {{ aibroker_namespace }} {{ mas_aibroker_watsonxai_apikey }} {{ mas_aibroker_watsonxai_url }} {{ mas_aibroker_watsonxai_project_id }}"
when:
- wx_apikey_secret_info.resources | length == 0

# Copy wx secret to tenant namespace
- name: 'Copy secrets to namespace: {{ tenantNamespace }}'
shell: 'oc get secret {{ item }} -n mas-{{ mas_instance_id }}-aibroker -o yaml | sed "s/namespace: .*/namespace: {{ tenantNamespace }}/" | oc apply --force -f -'
with_items:
- '{{ tenantNamespace }}----wx-secret'
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ data:
WATCHER_SENDER_DELAY: "5"
EXCLUDE_JOB_NAMESPACES: "ibm-cpd"
PIPELINES: mas-{{ mas_instance_id }}-aibroker
TENANTS: {{ tenantNamespace }}
CONTROLLER_URL: "https://km-controller:8443"
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ spec:
envFrom:
- configMapRef:
name: km-watcher
- secretRef:
name: km-s3-secret
6 changes: 3 additions & 3 deletions ibm/mas_devops/roles/kmodels/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# vars file for kmodels
pullSecretName: "ibm-entitlement"
# controller
mas_aibroker_controller_tag: 1.0.1
mas_aibroker_controller_tag: 1.0.2
controller: "aibroker/controller:{{ mas_aibroker_controller_tag }}"
# store
mas_aibroker_store_tag: 1.0.1
mas_aibroker_store_tag: 1.0.2
store: "aibroker/store:{{ mas_aibroker_store_tag }}"
# watcher
mas_aibroker_watcher_tag: 1.0.1
mas_aibroker_watcher_tag: 1.0.2
watcher: "aibroker/watcher:{{ mas_aibroker_watcher_tag }}"

mas_aibroker_connector_tag: 1.0.0
Expand Down
8 changes: 4 additions & 4 deletions ibm/mas_devops/roles/odh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
- dsci_lookup.resources[0].status is defined
- dsci_lookup.resources[0].status.phase is defined
- dsci_lookup.resources[0].status.phase == 'Ready'
retries: 10
retries: 20
delay: 30

# Create Data Science Cluster
Expand All @@ -73,7 +73,7 @@
- dsc_lookup.resources[0].status is defined
- dsc_lookup.resources[0].status.phase is defined
- dsc_lookup.resources[0].status.phase == 'Ready'
retries: 10
retries: 30
delay: 30

# Create Data Science Pipelines Applications
Expand All @@ -93,7 +93,7 @@
- dspa_lookup.resources is defined
- dspa_lookup.resources | length > 0
- dspa_lookup.resources | json_query('[*].status.conditions[?type==`Ready`][].status') | select ('match','True') | list | length == 1
retries: 10
retries: 20
delay: 30

# Wait until the pipeline-runner-instance service account is available
Expand All @@ -105,7 +105,7 @@
name: pipeline-runner-instance
namespace: "{{ aibroker_namespace }}"
register: pipelinerunner_sa_lookup
retries: 10 # Up to 10 minutes
retries: 20 # Up to 10 minutes
delay: 60 # Every 1 minute
until:
- pipelinerunner_sa_lookup.resources is defined
Expand Down
36 changes: 21 additions & 15 deletions ibm/mas_devops/roles/odh/tasks/odh-operator.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
---
# Install Operator & create entitlement openshift-odh
# -----------------------------------------------------------------------------
- name: "Install Openshift odh Operator"
ibm.mas_devops.apply_subscription:
namespace: "{{ openshift_namespace }}"
package_name: "opendatahub-operator"
package_channel: "{{ odh_channel }}"
catalog_source: "{{ odh_catalog_source }}"
register: subscription
# # Install Operator & create entitlement openshift-odh
# # -----------------------------------------------------------------------------
# - name: "Install Openshift odh Operator"
# ibm.mas_devops.apply_subscription:
# namespace: "{{ openshift_namespace }}"
# package_name: "opendatahub-operator"
# package_channel: "{{ odh_channel }}"
# catalog_source: "{{ odh_catalog_source }}"
# register: subscription


# # Wait until the Opendata Hub CRD is available
# # -----------------------------------------------------------------------------
# - name: "Wait until the Opendata Hub CRD is available"
# include_tasks: "{{ role_path }}/../../common_tasks/wait_for_crd.yml"
# vars:
# crd_name: knativeservings.operator.knative.dev

# Wait until the Opendata Hub CRD is available
# -----------------------------------------------------------------------------
- name: "Wait until the Opendata Hub CRD is available"
include_tasks: "{{ role_path }}/../../common_tasks/wait_for_crd.yml"
vars:
crd_name: knativeservings.operator.knative.dev
# enable following role temporary until find a way to use latest ODH versions and switch to apply_subscription role
- name: "Install Openshift odh Operator specific version"
kubernetes.core.k8s:
apply: yes
definition: "{{ lookup('template', 'templates/odh/subscription.yml.j2') }}"

- name: Await availability of ODH Install Plans
pause:
Expand Down
36 changes: 21 additions & 15 deletions ibm/mas_devops/roles/odh/tasks/serverless-operator.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
---
# 1. Install Operator & create entitlement openshift-serverless
# -----------------------------------------------------------------------------
- name: "Install Openshift Serverless Operator"
ibm.mas_devops.apply_subscription:
namespace: "{{ serverless_namespace }}"
package_name: "serverless-operator"
package_channel: "{{ serverless_channel }}"
catalog_source: "{{ serverless_catalog_source }}"
register: subscription
# # 1. Install Operator & create entitlement openshift-serverless
# # -----------------------------------------------------------------------------
# - name: "Install Openshift Serverless Operator"
# ibm.mas_devops.apply_subscription:
# namespace: "{{ serverless_namespace }}"
# package_name: "serverless-operator"
# package_channel: "{{ serverless_channel }}"
# catalog_source: "{{ serverless_catalog_source }}"
# register: subscription


# # 2. Wait until the Serverless CRD is available
# # -----------------------------------------------------------------------------
# - name: "Wait until the Serverless CRD is available"
# include_tasks: "{{ role_path }}/../../common_tasks/wait_for_crd.yml"
# vars:
# crd_name: knativeservings.operator.knative.dev

# 2. Wait until the Serverless CRD is available
# -----------------------------------------------------------------------------
- name: "Wait until the Serverless CRD is available"
include_tasks: "{{ role_path }}/../../common_tasks/wait_for_crd.yml"
vars:
crd_name: knativeservings.operator.knative.dev
# # enable following role temporary until find a way to use openshift-serverless and switch to apply_subscription role
- name: "Install Openshift Serverless Operator"
kubernetes.core.k8s:
apply: yes
definition: "{{ lookup('template', 'templates/serverless/subscription.yml.j2') }}"
12 changes: 12 additions & 0 deletions ibm/mas_devops/roles/odh/templates/odh/subscription.yml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: opendatahub-operator
namespace: openshift-operators
spec:
channel: "{{ odh_channel }}"
installPlanApproval: Manual
name: opendatahub-operator
source: "{{ odh_catalog_source }}"
sourceNamespace: openshift-marketplace
startingCSV: "{{ odh_operator_version }}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: operatorgroup
namespace: openshift-serverless
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: serverless-operator
namespace: openshift-serverless
spec:
channel: stable
installPlanApproval: Automatic
name: serverless-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
Loading