mirror of
https://github.com/ansible/awx-operator.git
synced 2026-04-14 21:01:17 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72bf56946f | ||
|
|
a62487b58b | ||
|
|
aa78813d73 | ||
|
|
a08c9104a9 | ||
|
|
5da4b697f1 | ||
|
|
f99a83c137 |
26
.github/workflows/publish-helm.yml
vendored
Normal file
26
.github/workflows/publish-helm.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
name: Re-publish helm chart
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: 'Release tag'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
jobs:
|
||||||
|
promote:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
depth: 0
|
||||||
|
|
||||||
|
- name: Release Helm chart
|
||||||
|
run: |
|
||||||
|
ansible-playbook ansible/helm-release.yml -v \
|
||||||
|
-e operator_image=quay.io/${{ github.repository }} \
|
||||||
|
-e chart_owner=${{ github.repository_owner }} \
|
||||||
|
-e tag=${{ inputs.tag }} \
|
||||||
|
-e gh_token=${{ secrets.GITHUB_TOKEN }} \
|
||||||
|
-e gh_user=${{ github.actor }} \
|
||||||
|
-e repo_type=https
|
||||||
@@ -93,6 +93,13 @@
|
|||||||
args:
|
args:
|
||||||
chdir: "{{ playbook_dir }}/.."
|
chdir: "{{ playbook_dir }}/.."
|
||||||
|
|
||||||
|
- name: Set url base swap in gitconfig
|
||||||
|
command:
|
||||||
|
cmd: "git config --global url.https://{{ gh_user }}:{{ gh_token }}@github.com/.insteadOf https://github.com/"
|
||||||
|
args:
|
||||||
|
chdir: "{{ temp_dir.path }}/"
|
||||||
|
no_log: true
|
||||||
|
|
||||||
- name: Stage and Push commit to gh-pages branch
|
- name: Stage and Push commit to gh-pages branch
|
||||||
command:
|
command:
|
||||||
cmd: "{{ item }}"
|
cmd: "{{ item }}"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'
|
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'
|
||||||
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
||||||
{{ lookup("template", "../common/templates/labels//version.yaml.j2") | indent(width=4) | trim }}
|
{{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=4) | trim }}
|
||||||
spec:
|
spec:
|
||||||
{% if web_replicas %}
|
{% if web_replicas %}
|
||||||
replicas: {{ web_replicas }}
|
replicas: {{ web_replicas }}
|
||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'
|
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'
|
||||||
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=8) | trim }}
|
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=8) | trim }}
|
||||||
{{ lookup("template", "../common/templates/labels//version.yaml.j2") | indent(width=8) | trim }}
|
{{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=8) | trim }}
|
||||||
annotations:
|
annotations:
|
||||||
{% for template in [
|
{% for template in [
|
||||||
"configmaps/config",
|
"configmaps/config",
|
||||||
@@ -277,7 +277,6 @@ spec:
|
|||||||
mountPath: "/var/run/redis"
|
mountPath: "/var/run/redis"
|
||||||
- name: rsyslog-socket
|
- name: rsyslog-socket
|
||||||
mountPath: "/var/run/awx-rsyslog"
|
mountPath: "/var/run/awx-rsyslog"
|
||||||
resources: {{ rsyslog_resource_requirements }}
|
|
||||||
{% if bundle_ca_crt %}
|
{% if bundle_ca_crt %}
|
||||||
- name: "ca-trust-extracted"
|
- name: "ca-trust-extracted"
|
||||||
mountPath: "/etc/pki/ca-trust/extracted"
|
mountPath: "/etc/pki/ca-trust/extracted"
|
||||||
@@ -297,6 +296,7 @@ spec:
|
|||||||
- name: AWX_KUBE_DEVEL
|
- name: AWX_KUBE_DEVEL
|
||||||
value: "1"
|
value: "1"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
resources: {{ rsyslog_resource_requirements }}
|
||||||
{% if web_node_selector %}
|
{% if web_node_selector %}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ web_node_selector | indent(width=8) }}
|
{{ web_node_selector | indent(width=8) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user