Files
openstack-helm/roles/ensure-chart-testing/tasks/main.yaml
Doug Goldstein dc1de268aa feat: build charts into sub dirs
As outlined in
https://lists.opendev.org/archives/list/service-discuss@lists.opendev.org/thread/VTMDDVSPM5HRUYWAATNMZOILT5OE57VR/
the current structure of building all the charts into one directory is
causing issues on the opendev infra due too many entries in one
directory. Switch away from using a Makefile to using an Ansible role to
build each chart and then use chart-testing to identify the charts that
need to be rebuilt and lastly build them build put the output into a
subdir matching the chart name.

Change-Id: I61f11950ba381c7897eb6bfff05a508ca4db9f06
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Vladimir Kozhukalov <kozhukalov@gmail.com>
2025-12-16 12:16:10 -06:00

39 lines
873 B
YAML

---
- name: Install pip
include_role:
name: ensure-pip
- name: Install Python dependencies
become: false
pip:
name:
- yamale
- yamllint
virtualenv: "{{ virtualenv }}"
virtualenv_command: python3 -m venv
- name: Install chart-testing
become: true
unarchive:
remote_src: true
src: "{{ ensure_chart_testing_repo_name_helm_chart }}/v{{ chart_testing_version }}/chart-testing_{{ chart_testing_version }}_linux_amd64.tar.gz"
dest: /usr/local/bin
- name: Setup /etc/ct
become: true
file:
path: /etc/ct
state: directory
mode: 0755
- name: Install configuration files
become: true
get_url:
url: "{{ ensure_chart_testing_repo_name_config }}/v{{ chart_testing_version }}/etc/{{ zj_item }}"
dest: "/etc/ct/{{ zj_item }}"
loop:
- chart_schema.yaml
- lintconf.yaml
loop_control:
loop_var: zj_item