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

feat: Upgrade Cloud Pak for AIOps to 4.4.0 #328

Merged
merged 1 commit into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/close-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
destroy:
if: ${{ !contains( github.event.pull_request.labels.*.name, 'skip ci' ) }}
runs-on: ubuntu-latest
container: icr.io/continuous-delivery/pipeline/pipeline-base-ubi:3.6
container: icr.io/continuous-delivery/pipeline/pipeline-base-ubi:3.40

env:
HOME: /root
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- id: setup-action
uses: actions/setup-node@v3
with:
node-version: 20.x

# Runs a single command using the runners shell
- name: Run a one-line script
run: tests/prebuild/lint.sh
2 changes: 1 addition & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
if: ${{ !contains( github.event.pull_request.labels.*.name, 'skip ci' ) }}
runs-on: ubuntu-latest
container: icr.io/continuous-delivery/pipeline/pipeline-base-ubi:3.6
container: icr.io/continuous-delivery/pipeline/pipeline-base-ubi:3.40

env:
HOME: /root
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Supported versions:
| Cloud Pak for Data | [4.8.4](https://www.ibm.com/docs/en/cloud-paks/cp-data/4.8.x?topic=overview) | Online, specialized installation |
| Cloud Pak for Integration | [2023.4](https://www.ibm.com/docs/en/cloud-paks/cp-integration/2023.4) | Online installation |
| Cloud Pak for Security | [1.10.15](https://www.ibm.com/docs/en/cloud-paks/cp-security/1.10) | Online installation |
| Cloud Pak for AIOps\* | [4.3.0](https://www.ibm.com/docs/en/cloud-paks/cloud-pak-watson-aiops/4.3.0) | Starter Installation |
| Cloud Pak for AIOps\* | [4.4.0](https://www.ibm.com/docs/en/cloud-paks/cloud-pak-watson-aiops/4.4.0) | Starter Installation |

\* Starting with release 4.2.0, Cloud Pak for Watson AIOps was renamed Cloud Pak for AIOps, which required renaming several folders and labels from `cp4waiops` to `cp4aiops`. You can see all changes in [pull request #281](https://github.com/IBM/cloudpak-gitops/pull/281).

Expand Down
4 changes: 2 additions & 2 deletions config/cloudpaks/cp-shared/operators/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.2
version: 0.6.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "1.2.1"
appVersion: "1.2.2"
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ spec:
value: {{.Values.metadata.ibm_cert_manager_operator_group}}
- name: IBM_CERT_MANAGER_CHANNEL
value: {{.Values.metadata.ibm_cert_manager_channel}}
- name: IBM_LICENSE_MANAGER_NAMESPACE
value: {{.Values.metadata.ibm_license_manager_namespace}}
- name: IBM_LICENSE_MANAGER_OPERATOR_GROUP
value: {{.Values.metadata.ibm_license_manager_operator_group}}
- name: IBM_LICENSE_MANAGER_CHANNEL
value: {{.Values.metadata.ibm_license_manager_channel}}
command:
- /bin/sh
- -c
Expand Down Expand Up @@ -90,13 +96,74 @@ spec:
-A
fi
else
echo "ERROR: Unable to ascertain status of cert managers in the cluster."
echo "ERROR: Unable to get status of cert managers in the cluster."
fi

if [ "${result}" -eq 1 ] ; then
echo "ERROR: Unable to locate a running IBM Cert Manager and to install one afterwards."
fi

ibm_license_manager_count=$(oc get Subscription.operators.coreos.com \
-l operators.coreos.com/ibm-cert-manager-operator.ibm-cert-manager \
-A \
-o name | wc -l || result=1)
if [ "${result}" == 0 ]; then
if [ "${ibm_license_manager_count}" == "0" ]; then
echo "INFO: Installing IBM Cert Manager."
cat << EOF | oc apply -f -
---
kind: Namespace
apiVersion: v1
metadata:
name: ${IBM_LICENSE_MANAGER_NAMESPACE:?}
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: ibm-licensing-operator-app
namespace: ${IBM_LICENSE_MANAGER_NAMESPACE:?}
spec:
targetNamespaces:
- ${IBM_LICENSE_MANAGER_NAMESPACE:?}
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: ibm-licensing-operator-app
namespace: ${IBM_LICENSE_MANAGER_NAMESPACE:?}
spec:
channel: v4.2
installPlanApproval: Automatic
name: ibm-licensing-operator-app
source: ibm-licensing-catalog
sourceNamespace: openshift-marketplace
EOF

while [ $SECONDS -lt 300 ]; do
oc wait Subscription.operators.coreos.com ibm-licensing-operator-app \
-n ${IBM_LICENSE_MANAGER_NAMESPACE:?} \
--for=condition=CatalogSourcesUnhealthy=False \
&& oc wait Subscription.operators.coreos.com ibm-licensing-operator-app \
-n ${IBM_LICENSE_MANAGER_NAMESPACE:?} \
--for=jsonpath='{.status.state}'="AtLatestKnown" \
&& echo "INFO: Successfully installed IBM License Manager." \
&& result=0 \
&& break \
|| result=1

echo "INFO: Waiting for the subscription to be ready."
sleep 20
done
else
echo "INFO: IBM License Manager already installed."
oc get Subscription.operators.coreos.com \
-l operators.coreos.com/ibm-licensing-operator-app.ibm-licensing \
-A
fi
else
echo "ERROR: Unable to get status of cert managers in the cluster."
fi

exit "${result}"

restartPolicy: Never
Expand Down
3 changes: 3 additions & 0 deletions config/cloudpaks/cp-shared/operators/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
ibm_cert_manager_channel: v4.2
ibm_cert_manager_namespace: ibm-cert-manager
ibm_cert_manager_operator_group: ibm-cert-manager-operator-group
ibm_license_manager_channel: v4.2
ibm_license_manager_namespace: ibm-licensing
ibm_license_manager_operator_group: ibm-licensing-operator-app
redhat_cert_manager_namespace: cert-manager-operator
redhat_cert_manager_operator_group: cert-manager-operator-group
serviceaccount:
Expand Down
4 changes: 2 additions & 2 deletions config/cloudpaks/cp4aiops/install-aimgr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ description: Cloud Pak for AIOps - AI Manager
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

version: 0.18.0
version: 0.19.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 4.3.0
appVersion: 4.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
enabled: true
- name: connection
enabled: false
size: small
size: {{ .Values.spec.size }}
storageClass: {{ .Values.storageclass.rwx }}
storageClassLargeBlock: {{ .Values.storageclass.rwo }}
topologyModel: application
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: ibm-aiops-orchestrator
namespace: "{{.Values.metadata.argocd_app_namespace}}"
spec:
channel: v4.3
channel: v4.4
installPlanApproval: Automatic
name: ibm-aiops-orchestrator
source: ibm-operator-catalog
Expand Down
2 changes: 2 additions & 0 deletions config/cloudpaks/cp4aiops/install-aimgr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
serviceaccount:
argocd_application_controller: openshift-gitops-argocd-application-controller
ibm_cloudpaks_installer: ibm-cloudpaks-installer
spec:
size: small
metadata:
argocd_app_namespace: ibm-cloudpaks
argocd_namespace: openshift-gitops
Expand Down
4 changes: 2 additions & 2 deletions config/cloudpaks/cp4aiops/install-ia/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.17.0
version: 0.18.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 4.3.0
appVersion: 4.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: ibm-infrastructure-automation-operator
namespace: "{{.Values.metadata.argocd_app_namespace}}"
spec:
channel: v4.2
channel: v4.4
installPlanApproval: Automatic
name: ibm-infrastructure-automation-operator
source: ibm-operator-catalog
Expand Down
4 changes: 2 additions & 2 deletions tests/postbuild/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ oc_cmd=$(type -p oc)

: "${NEW_CLUSTER_TYPE:=fyre-quick-burn}"
: "${WORKER_FLAVOR:=medium}"
: "${OCP_VERSION:=4.12}"
: "${OCP_VERSION:=4.14}"

# In hours
: "${CLUSTER_EXPIRATION:=12}"
Expand Down Expand Up @@ -910,7 +910,7 @@ function create_fyre_cluster() {
return 1
else
ocp_version=$(jq -r '.ocp_versions[]' "${ocp_contents}" \
| grep "${ROF_VERSION}" \
| grep "^${ROF_VERSION}" \
| sort --version-sort -r \
| head -n 1)

Expand Down
Loading