-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #799 from mamercad/helm
Add Helm functionality
- Loading branch information
Showing
10 changed files
with
340 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ on: | |
branches: [devel] | ||
|
||
jobs: | ||
pull_request: | ||
molecule: | ||
runs-on: ubuntu-18.04 | ||
name: pull_request | ||
name: molecule | ||
env: | ||
DOCKER_API_VERSION: "1.38" | ||
steps: | ||
|
@@ -39,3 +39,28 @@ jobs: | |
sudo rm -f $(which kustomize) | ||
make kustomize | ||
KUSTOMIZE_PATH=$(readlink -f bin/kustomize) molecule test -s kind | ||
helm: | ||
runs-on: ubuntu-18.04 | ||
name: helm | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Build operator image and load into kind | ||
run: | | ||
IMG=awx-operator-ci make docker-build | ||
kind load docker-image --name chart-testing awx-operator-ci | ||
- name: Patch pull policy for tests | ||
run: | | ||
kustomize edit add patch --path ../testing/pull_policy/Never.yaml | ||
working-directory: config/default | ||
|
||
- name: Build and install helm chart | ||
run: | | ||
IMG=awx-operator-ci make helm-chart | ||
helm install --wait my-awx-operator ./charts/awx-operator |
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 |
---|---|---|
|
@@ -8,6 +8,8 @@ jobs: | |
promote: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Log in to GHCR | ||
run: | | ||
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
@@ -23,3 +25,16 @@ jobs: | |
docker tag ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} quay.io/${{ github.repository }}:latest | ||
docker push quay.io/${{ github.repository }}:${{ github.event.release.tag_name }} | ||
docker push quay.io/${{ github.repository }}:latest | ||
- name: Configure git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- 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=${{ github.event.release.tag_name }} \ | ||
-e gh_token=${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
/bundle | ||
/bundle_tmp* | ||
/bundle.Dockerfile | ||
/charts | ||
/.cr-release-packages |
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,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,7 @@ | ||
--- | ||
apiVersion: v2 | ||
appVersion: 0.1.0 | ||
description: A Helm chart for Kubernetes | ||
name: starter | ||
type: application | ||
version: 0.1.0 |
Empty file.
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
Oops, something went wrong.