Skip to content

Commit efc2df5

Browse files
authored
Merge pull request #123 from mhjacks/aeg_modularity
Make the pattern more modular
2 parents 51dec2c + 2311347 commit efc2df5

File tree

362 files changed

+367
-98551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

362 files changed

+367
-98551
lines changed

.github/workflows/linter.yml

-3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,3 @@ jobs:
5151
- name: Run make test
5252
run: |
5353
make test
54-
- name: Run make helmlint
55-
run: |
56-
make helmlint

Changes.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
## Changes for v1.2 (February 9, 2023)
1616

17-
* Kiosk_mode improvements: kiosk_mode role now has a variable `kiosk_port` which influences the kiosk-mode script and controls which port firefox connects to. (Previously this was hard-coded to port 8088; the var defaults to 8088 so existing setups will continue to work. This will make it easier to tailor or customize the pattern to work with containers other than Ignition.
17+
* Kiosk_mode improvements: kiosk_mode role now has a variable `kiosk_port` which influences the kiosk-mode script and controls which port firefox connects to. (Previously this was hardcoded to port 8088; the var defaults to 8088 so existing setups will continue to work. This will make it easier to tailor or customize the pattern to work with containers other than Ignition.
1818

1919
* cloud-init changes: move the cloud-init configuration file, user, and password to secrets from edge-gitops-vms values. This was a regrettable oversight in v1.0 and v1.1.
2020

@@ -26,7 +26,7 @@
2626

2727
* No "visible" changes so not updating the branch pointer
2828

29-
* Updated ansible code to follow best practices and silent many linter warnings
29+
* Updated ansible code to follow best practices and silent many linting warnings
3030

3131
* Updated edge-gitops-vms chart to add SkipDryRunOnMissingResource annotations to prevent errors occuring due to race conditions with OpenShift Virtualization
3232

@@ -52,3 +52,15 @@
5252
* Update deploy_kubevirt_worker.yml Ansible playbook to copy securityGroups and blockDevices config from first machineSet. Tag naming schemes changed from OCP 4.15 to 4.16; this method ensures forward and backward compatibility.
5353
* Remove ODF overrides from OCP 4.12/3 that force storageClass to gp2; all released versions should use gp3-csi now.
5454
* Include overrides for OCP 4.12 and OCP 4.13 to use the older `ocs-storagecluster-ceph-rbd` storageClass.
55+
56+
## Changes for v2.0 (TBD)
57+
58+
* Split HMI Demo Project out to separate [repository](https://github.com/validatedpatterns-demos/rhvp.ansible_edge_hmi)
59+
* Split HMI Config out to separate [repository](https://github.com/validatedpatterns-demos/ansible-edge-gitops-hmi-config-as-code.git)
60+
* Drop the custom execution environment because AAP can resolve these dependencies itself
61+
* Switch to modular common
62+
* Use the Validated Patterns ODF Chart (dropping our custom version)
63+
* Comment out portworx install and test, as the only OCP version that supports is 4.12, which is now past
64+
the end of its maintenance support lifecycle.
65+
* Refactor installation mechannism to use standard configuration-as-code approach, which will make it easier to drop
66+
in a new config-as-code repository.

Makefile

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CHART_OPTS=-f values-secret.yaml.template -f values-global.yaml -f values-hub.yaml --set global.targetRevision=main --set global.valuesDirectoryURL="https://github.com/hybrid-cloud-patterns/ansible-edge-gitops/raw/main/" --set global.pattern="$(NAME)" --set global.namespace="$(NAME)" --set global.hubClusterDomain=example.com --set global.localClusterDomain=local.example.com
2-
PATTERN_OPTS=-f common/examples/values-example.yaml
2+
3+
CHARTS=$(shell find . -type f -iname 'Chart.yaml' -exec dirname "{}" \; | grep -v examples | sed -e 's/.\///')
34

45
.PHONY: default
56
default: help
@@ -13,8 +14,8 @@ help:
1314
install upgrade deploy: operator-deploy post-install ## Install or upgrade the pattern via the operator
1415
echo "Installed/Upgraded"
1516

16-
portworx-install portworx-upgrade portworx-deploy: ## Install with portworx instead
17-
EXTRA_HELM_OPTS='-f values-portworx.yaml' make install
17+
#portworx-install portworx-upgrade portworx-deploy: ## Install with portworx instead
18+
# EXTRA_HELM_OPTS='-f values-portworx.yaml' make install
1819

1920
post-install: ## Post-install tasks - load-secrets
2021
make load-secrets
@@ -27,11 +28,11 @@ configure-controller: ## Configure AAP operator (from workstation). This is norm
2728
ansible-playbook ./scripts/ansible_load_controller.sh -e "aeg_project_repo=$(TARGET_REPO) aeg_project_branch=$(TARGET_BRANCH)"
2829

2930
test: ## Run tests
30-
make -f common/Makefile PATTERN_OPTS="$(CHART_OPTS)" test
31+
@set -e; for i in $(CHARTS); do echo "$${i}"; helm template "$${i}"; done
3132
echo Tests SUCCESSFUL
3233

33-
portworx-test:
34-
EXTRA_HELM_OPTS='-f values-portworx.yaml' make test
34+
#portworx-test:
35+
# EXTRA_HELM_OPTS='-f values-portworx.yaml' make test
3536

3637
update-tests: ## Update test results
3738
./scripts/update-tests.sh $(CHART_OPTS)

0 commit comments

Comments
 (0)