Skip to content

Commit

Permalink
Remove ODH from skodjob infra system (#382)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys authored Jan 8, 2025
1 parent 9fdfcad commit ddb9fe0
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 479 deletions.
2 changes: 1 addition & 1 deletion install/ansible-navigator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ansible-navigator:
- "--platform linux/amd64"
environment-variables:
set:
ANSIBLE_RUN_TAGS: 'infra,strimzi-infra,odh'
ANSIBLE_RUN_TAGS: 'infra,strimzi-infra'

app: run
mode: stdout
Expand Down
34 changes: 0 additions & 34 deletions install/roles/automation-hub/tasks/infra-setup/prepare_access.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,37 +106,3 @@
verify_ssl: no
apply: true
src: "{{ quay_io_secret_path }}"

- name: "Create ODH data connection secret"
kubernetes.core.k8s:
state: present
kubeconfig: "{{ kubeconfig_path }}/{{ clusterName }}"
namespace: "default"
apply: true
definition:
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: "odh-s3-data-connection"
annotations:
replicator.v1.mittwald.de/replicate-to-matching: "app=open-data-hub"
opendatahub.io/connection-type: s3
openshift.io/display-name: "{{ bucketname }}"
labels:
app: open-data-hub
project: skodjob
opendatahub.io/dashboard: 'true'
opendatahub.io/managed: 'true'
data:
AWS_ACCESS_KEY_ID: "{{ aws_access_key_id | b64encode }}"
AWS_SECRET_ACCESS_KEY: "{{ aws_access_key_secret | b64encode }}"
AWS_S3_ENDPOINT: "{{ aws_endpoint | b64encode }}"
AWS_DEFAULT_REGION: "{{ aws_region | b64encode }}"
AWS_S3_BUCKET: "{{ bucketname | b64encode }}"
vars:
bucketname: "tealc-models"
loop:
- "worker-03"
loop_control:
loop_var: clusterName
3 changes: 0 additions & 3 deletions install/roles/automation-hub/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@
- import_tasks: scenario-deployment/tekton/strimzi-tkn-pipelines.yaml
tags: [tekton-pipelines, strimzi-infra, never]

- import_tasks: scenario-deployment/tekton/odh-tkn-pipelines.yaml
tags: [tekton-pipelines, odh, never]

- import_tasks: scenario-deployment/workflows/infra-argo-workflows.yaml
tags: [workflow, infra, never]

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ data:
- container_cpu_usage_seconds_total
- container_memory_usage_bytes
matches:
- __name__=~".*(kafka|zookeeper|strimzi|jvm|argo|loki|tealc|thor|strimzi-e2e|odh-e2e).*"
- __name__=~".*(kafka|zookeeper|strimzi|jvm|argo|loki|tealc|thor|strimzi-e2e).*"
uwl_metrics_list.yaml: |
names:
- container_memory_usage_bytes
- container_cpu_usage_seconds_total
- process_open_fds
matches:
- __name__=~".*(kafka|zookeeper|strimzi|jvm|argo|loki|debezium|tealc|thor|strimzi-e2e|odh-e2e).*"
- __name__=~".*(kafka|zookeeper|strimzi|jvm|argo|loki|debezium|tealc|thor|strimzi-e2e).*"
- container=~".*(dmt|kafka|strimzi).*"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
git clone https://github.com/skodjob/automation-hub.git $CURRENT_DIR
echo $GIT_CRYPT_SECRET | base64 -d > "$CURRENT_DIR/crypt-key"
cd $CURRENT_DIR && git crypt unlock crypt-key
cd $CURRENT_DIR && ansible-playbook install/automation-hub-play.yaml --tags="infra,strimzi-infra,odh" -v
cd $CURRENT_DIR && ansible-playbook install/automation-hub-play.yaml --tags="infra,strimzi-infra" -v
env:
- name: GIT_CRYPT_SECRET
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,3 @@ spec:
server: '*'
sourceRepos:
- '*'

---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: open-data-hub
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- namespace: '*'
server: '*'
sourceRepos:
- '*'

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ spec:
- effect: NoSchedule
key: nodetype
value: connect
- effect: NoSchedule
key: nodetype
value: odh
- effect: NoSchedule
key: nodetype
value: logging
Expand Down

This file was deleted.

Loading

0 comments on commit ddb9fe0

Please sign in to comment.