forked from rh-aiservices-bu/insurance-claim-processing
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create user projects in batches of 5 * remove rolling sync strategy
- Loading branch information
Showing
47 changed files
with
617 additions
and
205 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,32 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: check-rhoai-status | ||
namespace: redhat-ods-operator | ||
annotations: | ||
argocd.argoproj.io/hook: PreSync | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: phase-check | ||
image: 'image-registry.openshift-image-registry.svc:5000/openshift/tools:latest' | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
while true; do | ||
echo "Checking DSC and DSCi status..." | ||
DSC_PHASE=$(oc get DataScienceCluster -o jsonpath='{.items[0].status.phase}') | ||
DSCI_PHASE=$(oc get DSCInitialization -o jsonpath='{.items[0].status.phase}') | ||
if [[ "$DSC_PHASE" = "Ready" && "$DSCI_PHASE" = "Ready" ]]; then | ||
echo "DSCi and DSC are ready." | ||
exit 0 | ||
else | ||
echo "DSC is in $DSC_PHASE phase." | ||
echo "DSCi is in $DSCI_PHASE phase." | ||
fi | ||
sleep 5 | ||
done | ||
serviceAccountName: presync-monitoring-sa |
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,30 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: check-rhods-operator-status | ||
namespace: redhat-ods-operator | ||
annotations: | ||
argocd.argoproj.io/hook: PreSync | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: phase-check | ||
image: 'image-registry.openshift-image-registry.svc:5000/openshift/tools:latest' | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
while true; do | ||
echo "Checking Pod status.phase..." | ||
POD_PHASE=$(oc get pod -n redhat-ods-operator -l name=rhods-operator -o jsonpath='{.items[0].status.phase}') | ||
if [ "$POD_PHASE" = "Running" ]; then | ||
echo "Pod is in Running phase." | ||
exit 0 | ||
else | ||
echo "Pod is in $POD_PHASE phase." | ||
fi | ||
sleep 5 | ||
done | ||
serviceAccountName: presync-monitoring-sa |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: presync-monitoring-sa | ||
namespace: redhat-ods-operator | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "1" | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: presync-monitoring-cluster-role | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "1" | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["dscinitialization.opendatahub.io"] | ||
resources: ["dscinitializations"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["datasciencecluster.opendatahub.io"] | ||
resources: ["datascienceclusters"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["storageclasses"] | ||
verbs: ["get", "list", "watch"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: presync-monitoring-cluster-role-binding | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "1" | ||
subjects: | ||
- kind: ServiceAccount | ||
name: presync-monitoring-sa | ||
namespace: redhat-ods-operator | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: presync-monitoring-cluster-role |
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,6 @@ | ||
apiVersion: builtin | ||
kind: NamespaceTransformer | ||
metadata: | ||
name: notImportantHere | ||
namespace: ic-shared-app | ||
unsetOnly: 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: check-database-ready-app | ||
namespace: redhat-ods-operator | ||
annotations: | ||
argocd.argoproj.io/hook: PreSync | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: phase-check | ||
image: 'image-registry.openshift-image-registry.svc:5000/openshift/tools:latest' | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
while true; do | ||
echo "Checking Pod status.phase..." | ||
POD_PHASE=$(oc get pod -n ic-shared-db -l app=ic-shared-db -o jsonpath='{.items[0].status.phase}') | ||
if [ "$POD_PHASE" = "Running" ]; then | ||
echo "Pod is in Running phase." | ||
exit 0 | ||
else | ||
echo "Pod is in $POD_PHASE phase." | ||
fi | ||
sleep 5 | ||
done | ||
serviceAccountName: presync-monitoring-sa |
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,30 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: check-minio-ready-app | ||
namespace: redhat-ods-operator | ||
annotations: | ||
argocd.argoproj.io/hook: PreSync | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: phase-check | ||
image: 'image-registry.openshift-image-registry.svc:5000/openshift/tools:latest' | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
while true; do | ||
echo "Checking Pod status.phase..." | ||
POD_PHASE=$(oc get pod -n ic-shared-minio -l app=minio -o jsonpath='{.items[0].status.phase}') | ||
if [ "$POD_PHASE" = "Running" ]; then | ||
echo "Pod is in Running phase." | ||
exit 0 | ||
else | ||
echo "Pod is in $POD_PHASE phase." | ||
fi | ||
sleep 5 | ||
done | ||
serviceAccountName: presync-monitoring-sa |
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,6 @@ | ||
apiVersion: builtin | ||
kind: NamespaceTransformer | ||
metadata: | ||
name: notImportantHere | ||
namespace: ic-shared-db | ||
unsetOnly: 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: check-default-storageclass-db | ||
namespace: redhat-ods-operator | ||
annotations: | ||
argocd.argoproj.io/hook: PreSync | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: phase-check | ||
image: 'image-registry.openshift-image-registry.svc:5000/openshift/tools:latest' | ||
command: | ||
- /bin/sh | ||
- -c | ||
- | | ||
while true; do | ||
echo "Checking default StorageClass..." | ||
SC=$(oc get StorageClass ocs-storagecluster-ceph-rbd -o jsonpath='{.metadata.annotations.storageclass\.kubernetes\.io/is-default-class}') | ||
if [ "$SC" = "true" ]; then | ||
echo "Storage class is ready." | ||
exit 0 | ||
else | ||
echo "Storage class is not ready yet." | ||
fi | ||
sleep 5 | ||
done | ||
serviceAccountName: presync-monitoring-sa |
Oops, something went wrong.