-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #731 from IBM/cpd500
Add support for Cloud Pak for Data 5.0+
- Loading branch information
Showing
53 changed files
with
933 additions
and
222 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
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
51 changes: 51 additions & 0 deletions
51
automation-roles/40-configure-infra/openshift-ai/tasks/install-opernshift-ai.yml
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,51 @@ | ||
--- | ||
- name: Generate OpenShift AI operator {{ status_dir }}/openshift/openshift-{{ _p_openshift_cluster.name }}-openshift-ai-operator.yaml | ||
template: | ||
src: openshift-ai-operator.j2 | ||
dest: "{{ status_dir }}/openshift/openshift-{{ _p_openshift_cluster.name }}-openshift-ai-operator.yaml" | ||
|
||
- name: Apply yaml for OpenShift AI operator | ||
shell: | | ||
oc apply -f {{ status_dir }}/openshift/openshift-{{ _p_openshift_cluster.name }}-openshift-ai-operator.yaml | ||
- name: Wait until OpenShift AI operator CSV has status Succeeded | ||
shell: | | ||
oc get csv -n redhat-ods-operator \ | ||
-l operators.coreos.com/rhods-operator.redhat-ods-operator \ | ||
--no-headers \ | ||
-o custom-columns='name:metadata.name,phase:status.phase' | \ | ||
grep -i succeeded | wc -l | ||
register: _openshift_ai_csv_status | ||
retries: 30 | ||
delay: 30 | ||
until: _openshift_ai_csv_status.stdout == "1" | ||
vars: | ||
ansible_callback_diy_runner_retry_msg: >- | ||
{%- set result = ansible_callback_diy.result.output -%} | ||
{%- set retries_left = result.retries - result.attempts -%} | ||
Retrying: {{ ansible_callback_diy.task.name }} ({{ retries_left }} Retries left) ... | ||
- name: Generate OpenShift AI DataScienceCluster {{ status_dir }}/openshift/openshift-{{ _p_openshift_cluster.name }}-openshift-ai-dsc.yaml | ||
template: | ||
src: datasciencecluster.j2 | ||
dest: "{{ status_dir }}/openshift/openshift-{{ _p_openshift_cluster.name }}-openshift-ai-dsc.yaml" | ||
|
||
- name: Apply yaml for OpenShift AI DataScienceCluster | ||
shell: | | ||
oc apply -f {{ status_dir }}/openshift/openshift-{{ _p_openshift_cluster.name }}-openshift-ai-dsc.yaml | ||
- name: Wait until OpenShift AI DataScienceCluster default-dsc is ready | ||
shell: | | ||
oc get DataScienceCluster default-dsc \ | ||
--no-headers \ | ||
-o custom-columns='name:metadata.name,phase:status.phase' | \ | ||
grep -i ready | wc -l | ||
register: _openshift_ai_dsc_status | ||
retries: 30 | ||
delay: 30 | ||
until: _openshift_ai_dsc_status.stdout == "1" | ||
vars: | ||
ansible_callback_diy_runner_retry_msg: >- | ||
{%- set result = ansible_callback_diy.result.output -%} | ||
{%- set retries_left = result.retries - result.attempts -%} | ||
Retrying: {{ ansible_callback_diy.task.name }} ({{ retries_left }} Retries left) ... |
3 changes: 3 additions & 0 deletions
3
automation-roles/40-configure-infra/openshift-ai/tasks/main.yml
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,3 @@ | ||
--- | ||
- include_tasks: install-opernshift-ai.yml | ||
when: _p_openshift_cluster.openshift_ai.install | default(False) | bool |
35 changes: 35 additions & 0 deletions
35
automation-roles/40-configure-infra/openshift-ai/templates/datasciencecluster.j2
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,35 @@ | ||
--- | ||
apiVersion: datasciencecluster.opendatahub.io/v1 | ||
kind: DataScienceCluster | ||
metadata: | ||
name: default-dsc | ||
labels: | ||
app.kubernetes.io/name: datasciencecluster | ||
app.kubernetes.io/instance: default-dsc | ||
app.kubernetes.io/part-of: rhods-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: rhods-operator | ||
spec: | ||
components: | ||
codeflare: | ||
managementState: Managed | ||
kserve: | ||
serving: | ||
ingressGateway: | ||
certificate: | ||
type: SelfSigned | ||
managementState: Managed | ||
name: knative-serving | ||
managementState: Managed | ||
ray: | ||
managementState: Managed | ||
kueue: | ||
managementState: Managed | ||
workbenches: | ||
managementState: Managed | ||
dashboard: | ||
managementState: Managed | ||
modelmeshserving: | ||
managementState: Managed | ||
datasciencepipelines: | ||
managementState: Managed |
42 changes: 42 additions & 0 deletions
42
automation-roles/40-configure-infra/openshift-ai/templates/openshift-ai-operator.j2
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,42 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: redhat-ods-operator | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: redhat-ods-monitoring | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: redhat-ods-applications | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: rhods-notebooks | ||
--- | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: redhat-ods-operator | ||
namespace: redhat-ods-operator | ||
spec: | ||
upgradeStrategy: Default | ||
--- | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
labels: | ||
operators.coreos.com/rhods-operator.redhat-ods-operator: "" | ||
name: rhods-operator | ||
namespace: redhat-ods-operator | ||
spec: | ||
channel: {{ _p_openshift_cluster.openshift_ai.channel | default('stable') }} | ||
installPlanApproval: Automatic | ||
name: rhods-operator | ||
source: redhat-operators | ||
sourceNamespace: openshift-marketplace |
8 changes: 8 additions & 0 deletions
8
...ion-roles/50-install-cloud-pak/cp4d/cp4d-cartridge-install/tasks/cp4d-prep-watsonx-ai.yml
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,8 @@ | ||
--- | ||
- name: Insert wkc options into {{ status_dir }}/cp4d/{{ _p_current_cp4d_cluster.project }}-install-options.yml | ||
blockinfile: | ||
path: "{{ status_dir }}/cp4d/{{ _p_current_cp4d_cluster.project }}-install-options.yml" | ||
marker: "# {mark} watsonx_ai options #" | ||
block: |2 | ||
watsonx_ai: | ||
tuning_disabled: {{ _current_cp4d_cartridge.installation_options.tuning_disabled | default(false) }} |
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
10 changes: 6 additions & 4 deletions
10
automation-roles/50-install-cloud-pak/cp4d/cp4d-catalog-source/tasks/main.yml
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
--- | ||
- include_role: | ||
name: cp4d-variables | ||
- set_fact: | ||
_catsrc_cartridges_to_install_list: "{{ _cartridges_to_install_list }}" | ||
|
||
- set_fact: | ||
_catsrc_cartridges_to_install_list: "cpfs,cpd_platform" | ||
when: _p_catsrc_scope == 'platform' | ||
|
||
- include_tasks: create-catalog-source-olm-utils.yml | ||
when: | ||
- _p_current_cp4d_cluster.cp4d_version >= "4.5.0" | ||
|
||
- include_tasks: wait-catalog-sources-ready.yml |
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
Oops, something went wrong.