Skip to content

Commit

Permalink
Specify Redis 7 image explicitly so that when we bump the version it …
Browse files Browse the repository at this point in the history
…will be intentional
  • Loading branch information
rooftopcellist committed Mar 11, 2024
1 parent 9fd1b62 commit 30b59ec
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
- name: RELATED_IMAGE_GALAXY_WEB
value: quay.io/ansible/galaxy-ui:latest
- name: RELATED_IMAGE_GALAXY_REDIS
value: redis:latest
value: redis:7
- name: RELATED_IMAGE_GALAXY_POSTGRES
value: quay.io/sclorg/postgresql-15-c9s:latest
- name: RELATED_IMAGE_GALAXY_INIT_GPG_CONTAINER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ spec:
- name: RELATED_IMAGE_GALAXY_WEB
value: quay.io/ansible/galaxy-ui:latest
- name: RELATED_IMAGE_GALAXY_REDIS
value: redis:latest
value: redis:7
- name: RELATED_IMAGE_GALAXY_POSTGRES
value: quay.io/sclorg/postgresql-15-c9s:latest
- name: RELATED_IMAGE_GALAXY_INIT_GPG_CONTAINER
Expand Down
2 changes: 1 addition & 1 deletion roles/postgres/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
_postgres_image: postgres
_postgres_image: quay.io/sclorg/postgresql-15-c9s:latest

postgres_storage_requirements:
requests:
Expand Down
12 changes: 0 additions & 12 deletions roles/postgres/tasks/upgrade_postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,6 @@
set_fact:
postgres_pod_name: "{{ postgres_pod['resources'][0]['metadata']['name'] }}"

- name: Get the name of the service for the old postgres pod
k8s_info:
kind: Service
namespace: "{{ ansible_operator_meta.namespace }}"
label_selectors:
- "app.kubernetes.io/component=database"
- "app.kubernetes.io/instance=postgres-{{ ansible_operator_meta.name }}"
- "app.kubernetes.io/version={{ supported_pg_version }}"
- "app.kubernetes.io/managed-by={{ deployment_type }}-operator"
register: old_postgres_svc

# TODO: The galaxy-operator labels are different. potential issue here.
- name: Get the name of the service for the old postgres pod
k8s_info:
kind: Service
Expand Down
2 changes: 1 addition & 1 deletion roles/redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A role to setup Galaxyredis, yielding the following objects:
Role Variables
--------------

* `redis_image`: The redis image name. Default: redis:latest
* `redis_image`: The redis image name. Default: redis:7

Requirements
------------
Expand Down
2 changes: 1 addition & 1 deletion roles/redis/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
_redis_image: redis:latest
_redis_image: redis:7

redis_storage_size: 1Gi
# Here we use _galaxy_ansible_com_galaxy to get un-modified cr
Expand Down

0 comments on commit 30b59ec

Please sign in to comment.