Skip to content

Commit 68aba71

Browse files
authored
Merge pull request #497 from validatedpatterns/main
sync: main to rhdp-deploy
2 parents 5586a1f + 48fefff commit 68aba71

38 files changed

+180
-1573
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010

1111
steps:
1212
# Important: This sets up your GITHUB_WORKSPACE environment variable
13-
- uses: actions/checkout@v5
13+
- uses: actions/checkout@v6
1414
with:
1515
persist-credentials: false
1616

1717
- name: Lint Ansible Playbook
18-
uses: ansible/ansible-lint@d7cd7cfa2469536527aceaef9ef2ec6f2fb331cb
18+
uses: ansible/ansible-lint@43e758bad47344f1ce7b699c0020299f486a8026

.github/workflows/jsonschema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout Code
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1919
with:
2020
persist-credentials: false
2121

.github/workflows/superlinter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout Code
18-
uses: actions/checkout@v5
18+
uses: actions/checkout@v6
1919
with:
2020
# Full git history is needed to get a proper list of changed files within `super-linter`
2121
fetch-depth: 0

.github/workflows/sync-rhdp-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
pull-requests: write
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@v6
2222
with:
2323
persist-credentials: false
2424
- name: Set up Node

Makefile

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
1-
.PHONY: default
2-
default: help
1+
# Generated by patternizer
2+
# This Makefile includes the common pattern targets from Makefile-common
3+
# You can add custom targets above or below the include line
34

4-
.PHONY: help
5-
##@ Pattern tasks
6-
7-
# No need to add a comment here as help is described in common/
8-
help:
9-
@make -f common/Makefile MAKEFILE_LIST="Makefile common/Makefile" help
10-
11-
%:
12-
make -f common/Makefile $*
13-
14-
.PHONY: install
15-
install: operator-deploy post-install ## installs the pattern and loads the secrets
16-
@echo "Installed"
17-
18-
.PHONY: post-install
19-
post-install: ## Post-install tasks
20-
make load-secrets
21-
@echo "Done"
22-
23-
.PHONY: test
24-
test:
25-
@make -f common/Makefile PATTERN_OPTS="-f values-global.yaml -f values-hub.yaml" test
5+
include Makefile-common

Makefile-common

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
MAKEFLAGS += --no-print-directory
2+
ANSIBLE_STDOUT_CALLBACK ?= null # null silences all ansible output. Override this with default, minimal, oneline, etc. when debugging.
3+
ANSIBLE_RUN := ANSIBLE_STDOUT_CALLBACK=$(ANSIBLE_STDOUT_CALLBACK) ansible-playbook $(EXTRA_PLAYBOOK_OPTS)
4+
DOCS_URL := https://validatedpatterns.io/blog/2025-08-29-new-common-makefile-structure/
5+
6+
.PHONY: help
7+
help: ## Print this help message
8+
@echo "For a complete guide to these targets and the available overrides, please visit $(DOCS_URL)"
9+
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^(\s|[a-zA-Z_0-9-])+:.*?##/ { printf " \033[36m%-35s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
10+
11+
##@ Pattern Install Tasks
12+
.PHONY: show
13+
show: ## Shows the template that would be applied by the `make install` target
14+
@$(ANSIBLE_RUN) rhvp.cluster_utils.show
15+
16+
.PHONY: operator-deploy
17+
operator-deploy operator-upgrade: ## Installs/updates the pattern on a cluster (DOES NOT load secrets)
18+
@$(ANSIBLE_RUN) rhvp.cluster_utils.operator_deploy
19+
20+
.PHONY: install
21+
install: pattern-install ## Installs the pattern onto a cluster (Loads secrets as well if configured)
22+
23+
.PHONY: uninstall ## Prints a notice that patterns cannot currently be uninstalled
24+
uninstall:
25+
@echo "Uninstall is not possible at the moment so this target is empty. We are working to implement it as well as we can."
26+
27+
.PHONY: pattern-install
28+
pattern-install:
29+
@$(ANSIBLE_RUN) rhvp.cluster_utils.install
30+
31+
.PHONY: load-secrets
32+
load-secrets: ## Loads secrets onto the cluster (unless explicitly disabled in values-global.yaml)
33+
@$(ANSIBLE_RUN) rhvp.cluster_utils.load_secrets
34+
35+
##@ Validation Tasks
36+
.PHONY: validate-prereq
37+
validate-prereq: ## verify pre-requisites
38+
@$(ANSIBLE_RUN) rhvp.cluster_utils.validate_prereq
39+
40+
.PHONY: validate-origin
41+
validate-origin: ## verify the git origin is available
42+
@$(ANSIBLE_RUN) rhvp.cluster_utils.validate_origin
43+
44+
.PHONY: validate-cluster
45+
validate-cluster: ## Do some cluster validations before installing
46+
@$(ANSIBLE_RUN) rhvp.cluster_utils.validate_cluster
47+
48+
.PHONY: validate-schema
49+
validate-schema: ## validates values files against schema in common/clustergroup
50+
@$(ANSIBLE_RUN) rhvp.cluster_utils.validate_schema
51+
52+
.PHONY: argo-healthcheck
53+
argo-healthcheck: ## Checks if all argo applications are synced
54+
@$(ANSIBLE_RUN) rhvp.cluster_utils.argo_healthcheck

common/.ansible-lint

Lines changed: 0 additions & 21 deletions
This file was deleted.

common/.github/dependabot.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

common/.github/linters/.gitleaks.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

common/.github/linters/.markdown-lint.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)