-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common automatic update #36
common automatic update #36
Commits on Jan 18, 2024
-
Set the user's passwd entry inside the container
The reason for this is somewhat multi-faceted, but boils down to the fact that openssh does not consult the $HOME variable to find .ssh/* files but only relies to the home folder entry in /etc/passwd. So what might happen is the following scenario: 1. The remote is ssh based: `origin [email protected]:validatedpatterns/industrial-edge` 2. The main Makefile invokes `git remote show origin` which triggers an ssh connection 3. The ssh connection fails because ssh ignores the $HOME variable and instead relies on the home in `getent passwd`. Which is set to: ``` fedora:*:1000:1000:fedora Cloud User:/home/fedora/industrial-edge:/bin/sh ``` 4. Newer podmans set the user's home folder automagically to the folder that is passed as current working directory (in our case we pass `-w $(pwd)`) Under these circumstances ssh connection will fail because git+ssh will look for ssh files in the current folder (aka entry in /etc/passwd): debug1: identity file /home/fedora/industrial-edge/.ssh/id_rsa type -1 debug1: identity file /home/fedora/industrial-edge/.ssh/id_rsa-cert type -1 Fix this by making sure we force an /etc/passwd entry for the user running podman that points to the $HOME directory (aka /pattern-home inside the container).
Configuration menu - View commit details
-
Copy full SHA for c6ab55e - Browse repository at this point
Copy the full SHA c6ab55eView commit details -
Merge pull request #428 from mbaldessari/fix-ssh
Set the user's passwd entry inside the container
Configuration menu - View commit details
-
Copy full SHA for a77e700 - Browse repository at this point
Copy the full SHA a77e700View commit details -
This is the version we use in gitops-1.11 which is the new default
Configuration menu - View commit details
-
Copy full SHA for 23969cc - Browse repository at this point
Copy the full SHA 23969ccView commit details -
Merge pull request #430 from mbaldessari/fix-helm-version-ci
Upgrade helm to v3.13.2
Configuration menu - View commit details
-
Copy full SHA for a6d7dfc - Browse repository at this point
Copy the full SHA a6d7dfcView commit details -
Drop old patch around null subkeys
Now that we switched to gitops-1.11, the helm version is recent enough that we're not affected by the subkey null bug any longer.
Configuration menu - View commit details
-
Copy full SHA for e678328 - Browse repository at this point
Copy the full SHA e678328View commit details
Commits on Jan 22, 2024
-
Merge pull request #429 from mbaldessari/drop-unneeded-patches
Drop old patch around null subkeys
Configuration menu - View commit details
-
Copy full SHA for 350de51 - Browse repository at this point
Copy the full SHA 350de51View commit details
Commits on Jan 23, 2024
-
Do check for remote existance all the time
At the time we disabled the `validate-origin` target when running from inside the container as it apparently caused issues for some folks. I think now that we run as the user inside the container, the chances of this not working are reduced, so let's reenable this. Tested as follows: ❯ ./pattern.sh make TARGET_ORIGIN=upstream validate-origin Checking repository: https://github.com/hybrid-cloud-patterns/multicloud-gitops - branch 'nonexisting': NOT FOUND make: *** [Makefile:12: validate-origin] Error 2 ❯ ./pattern.sh make TARGET_ORIGIN=upstream validate-origin Checking repository: https://github.com/hybrid-cloud-patterns/multicloud-gitops - branch 'main': OK ❯ ./pattern.sh make validate-origin Checking repository: https://github.com/mbaldessari/multicloud-gitops.git - branch 'main': OK ❯ ./pattern.sh make validate-origin Checking repository: https://github.com/mbaldessari/multicloud-gitops.git - branch 'nonexisting': NOT FOUND make: *** [Makefile:12: validate-origin] Error 2
Configuration menu - View commit details
-
Copy full SHA for aa72a78 - Browse repository at this point
Copy the full SHA aa72a78View commit details -
Merge pull request #431 from mbaldessari/validate-origin
Validate origin inside podman as well
Configuration menu - View commit details
-
Copy full SHA for 7d9e66b - Browse repository at this point
Copy the full SHA 7d9e66bView commit details -
Run validate-prereq only when not in a container
There is no point in testing the requirements when we use the container, as we guarantee that those exist in there. Tested as follows: ❯ make validate-prereq make -f common/Makefile validate-prereq make[1]: Entering directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' Checking prerequisites: Check for 'git helm oc ansible': OK Check for python-kubernetes: OK Check for kubernetes.core collection: OK make[1]: Leaving directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' ❯ ./pattern.sh make validate-prereq make -f common/Makefile validate-prereq make[1]: Entering directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' Skipping prerequisites check as we're running inside a container make[1]: Leaving directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops'
Configuration menu - View commit details
-
Copy full SHA for 05c51c1 - Browse repository at this point
Copy the full SHA 05c51c1View commit details -
Merge pull request #432 from mbaldessari/validate-prereq
Run validate-prereq only when not in a container
Configuration menu - View commit details
-
Copy full SHA for b27dbfd - Browse repository at this point
Copy the full SHA b27dbfdView commit details
Commits on Jan 29, 2024
-
Bump dorny/paths-filter from 2 to 3
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 2 to 3. - [Release notes](https://github.com/dorny/paths-filter/releases) - [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md) - [Commits](dorny/paths-filter@v2...v3) --- updated-dependencies: - dependency-name: dorny/paths-filter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4eb4d9 - Browse repository at this point
Copy the full SHA b4eb4d9View commit details
Commits on Jan 30, 2024
-
Merge pull request #433 from validatedpatterns/dependabot/github_acti…
…ons/dorny/paths-filter-3 Bump dorny/paths-filter from 2 to 3
Configuration menu - View commit details
-
Copy full SHA for 415f681 - Browse repository at this point
Copy the full SHA 415f681View commit details
Commits on Feb 1, 2024
-
Add support for parsing secrets into intermediate structure and creating
k8s secret objects Ensure only push_secrets runs from vault_utils Update makefile - remove extra targets and make fix none Revert version bump as we only add fields Conditionalize check change output Start module to load parsed secrets into vault New machinery for vault secrets loading Make the linters pass again Inject policies Add some more code to test readiness to load Correct typo Add vault_hub Add vaultMount Rename new modules to v2 Update inject_field method Correct field typo Temporarily print command Add more logic Hopefully fix secret loading issue with counter Count per secret Pick stuff out of secret that we need Fix lint issue Refactor tests to use fixture constants Correctly spell exclusion for ansible-lint Provide a target to exercise legacy code path Add error exists for missing args and update docs Reverse test for override Also process base64 for generated secrets Be more explicit about what we load Test framework for loading parsed_secret data Fix linting errors Finish test suite Last linter stuff Change schema; code and tests to follow Add target_namespaces phase 1 more passing, but some still fail Passing again All pass Check the correct variable in golang-external-secrets chart Update YAML parsing to do decodes right Add tests and tighten up code for retrieving block yaml quotes Add test for kubernetes secret object and block yaml
Martin Jackson committedFeb 1, 2024 Configuration menu - View commit details
-
Copy full SHA for 4023800 - Browse repository at this point
Copy the full SHA 4023800View commit details
Commits on Feb 2, 2024
-
Merge pull request #408 from mhjacks/parse_secrets
Add support for kubernetes backend for ESO
Configuration menu - View commit details
-
Copy full SHA for 4d0774c - Browse repository at this point
Copy the full SHA 4d0774cView commit details
Commits on Feb 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 672da04 - Browse repository at this point
Copy the full SHA 672da04View commit details -
Merge pull request #434 from mbaldessari/eso-0.9.12
Upgrade ESO to v0.9.12
Configuration menu - View commit details
-
Copy full SHA for 6029db6 - Browse repository at this point
Copy the full SHA 6029db6View commit details
Commits on Feb 12, 2024
-
Update vault image to 1.15.5-ubi
This fixes a few CVEs. Tested on MCG.
Configuration menu - View commit details
-
Copy full SHA for 8157484 - Browse repository at this point
Copy the full SHA 8157484View commit details -
Merge pull request #435 from mbaldessari/vault-update
Update vault image to 1.15.5-ubi
Configuration menu - View commit details
-
Copy full SHA for d617257 - Browse repository at this point
Copy the full SHA d617257View commit details
Commits on Feb 15, 2024
-
Use gitops-1.11 in acm as well
This is mainly for consistency reasons as the value is taken from main.gitops anyways.
Configuration menu - View commit details
-
Copy full SHA for dde1055 - Browse repository at this point
Copy the full SHA dde1055View commit details -
Merge pull request #436 from mbaldessari/new-acm
Use gitops-1.11 in acm as well
Configuration menu - View commit details
-
Copy full SHA for 7877339 - Browse repository at this point
Copy the full SHA 7877339View commit details
Commits on Feb 20, 2024
-
Mainly for consistency reasons. gitops-1.11 is already the default
Configuration menu - View commit details
-
Copy full SHA for 947dd22 - Browse repository at this point
Copy the full SHA 947dd22View commit details -
Merge pull request #437 from mbaldessari/gitops-1.11-support2
Small gitops channel cleanups
Configuration menu - View commit details
-
Copy full SHA for 60332c6 - Browse repository at this point
Copy the full SHA 60332c6View commit details
Commits on Feb 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9614757 - Browse repository at this point
Copy the full SHA 9614757View commit details -
Merge pull request #438 from mbaldessari/argover
Upgrade namespaced argocd version to v1beta1
Configuration menu - View commit details
-
Copy full SHA for e8b2ec6 - Browse repository at this point
Copy the full SHA e8b2ec6View commit details
Commits on Feb 22, 2024
-
Stop using OpenShiftControllerManager lookups
When applying the policy to install the cluster-wide argo on regional clusters, we do some lookups() on the regional cluster in order to pass the version values, domain names, etc. To get the cluster version we were using the OpenShiftControllerManager which is problematic because it does not exist on hyper-shift clusters. Let's switch to use the ClusterVersion.status.history[0].version entry. The only smaller caveat is that due to limitations in go templates + sprig functions, we cannot really take the last version only when the state is "Completed", but we simply take the last version. This means that during a cluster upgrade on a regional cluster, we will include values of the version the cluster is upgrading to, which is less than ideal, but it should eventually converge in any case. For reference the function that guarantees that the ordering of the history status in ClusterVersion is preserved is here: https://pkg.go.dev/github.com/openshift/api/config/v1#ClusterVersionStatus Tested on Lester's cluster and on a local cluster of mine. Co-Authored-By: Lester Claudio <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f0b3d01 - Browse repository at this point
Copy the full SHA f0b3d01View commit details -
Merge pull request #439 from mbaldessari/fix-acm-hypershift
Stop using OpenShiftControllerManager lookups
Configuration menu - View commit details
-
Copy full SHA for a1cd985 - Browse repository at this point
Copy the full SHA a1cd985View commit details
Commits on Mar 4, 2024
-
Bump azure/setup-helm from 3 to 4
Bumps [azure/setup-helm](https://github.com/azure/setup-helm) from 3 to 4. - [Release notes](https://github.com/azure/setup-helm/releases) - [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md) - [Commits](Azure/setup-helm@v3...v4) --- updated-dependencies: - dependency-name: azure/setup-helm dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bd9efba - Browse repository at this point
Copy the full SHA bd9efbaView commit details
Commits on Mar 11, 2024
-
Merge pull request #440 from validatedpatterns/dependabot/github_acti…
…ons/azure/setup-helm-4 Bump azure/setup-helm from 3 to 4
Configuration menu - View commit details
-
Copy full SHA for acf7c70 - Browse repository at this point
Copy the full SHA acf7c70View commit details
Commits on Mar 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 48b2e11 - Browse repository at this point
Copy the full SHA 48b2e11View commit details -
Merge pull request #442 from mbaldessari/eso-0.9.13
Upgrade ESO to v0.9.13
Configuration menu - View commit details
-
Copy full SHA for 846893d - Browse repository at this point
Copy the full SHA 846893dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24c53e1 - Browse repository at this point
Copy the full SHA 24c53e1View commit details -
Merge pull request #443 from mbaldessari/vault-1.15.6
Upgrade vault to 1.15.6
Configuration menu - View commit details
-
Copy full SHA for 1d3e74e - Browse repository at this point
Copy the full SHA 1d3e74eView commit details
Commits on Mar 25, 2024
-
Bind mount /etc/pki in the wrapper
This is useful whenever a custom CA is installed on the system and is needed to connect to a remote cluster.
Configuration menu - View commit details
-
Copy full SHA for 399370f - Browse repository at this point
Copy the full SHA 399370fView commit details -
Merge pull request #444 from mbaldessari/pki-mount
Bind mount /etc/pki in the wrapper
Configuration menu - View commit details
-
Copy full SHA for 7b12604 - Browse repository at this point
Copy the full SHA 7b12604View commit details -
Properly error out in preview-all when we cannot connect to the cluster
Before: $ ./pattern.sh make preview-all make -f common/Makefile preview-all make[1]: Entering directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' error: Missing or incomplete configuration info. Please point to an existing, complete config file: 1. Via the command-line flag --kubeconfig 2. Via the KUBECONFIG environment variable 3. In your home directory as ~/.kube/config To view or setup config directly use the 'config' command. error: Missing or incomplete configuration info. Please point to an existing, complete config file: 1. Via the command-line flag --kubeconfig 2. Via the KUBECONFIG environment variable 3. In your home directory as ~/.kube/config To view or setup config directly use the 'config' command. ...This goes on for many more iterations... After: $ ./pattern.sh make preview-all make -f common/Makefile preview-all make[1]: Entering directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' Could not access the cluster: error: Missing or incomplete configuration info. Please point to an existing, complete config file: 1. Via the command-line flag --kubeconfig 2. Via the KUBECONFIG environment variable 3. In your home directory as ~/.kube/config To view or setup config directly use the 'config' command. make[1]: *** [common/Makefile:59: preview-all] Error 1 make[1]: Leaving directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' make: *** [Makefile:12: preview-all] Error 2
Configuration menu - View commit details
-
Copy full SHA for a88f040 - Browse repository at this point
Copy the full SHA a88f040View commit details -
Only include values files if they do exist in preview.sh
This is because in helm we use "ignoreMissingValueFiles: true". I.e. we just ignore non existing value files. Let's do the same for the preview.sh script. Before: ❯ make preview-all make -f common/Makefile preview-all make[1]: Entering directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' Error: open /home/michele/Engineering/cloud-patterns/multicloud-gitops/overrides/values-None.yaml: no such file or directory Error: open /home/michele/Engineering/cloud-patterns/multicloud-gitops/overrides/values-None.yaml: no such file or directory Error: open /home/michele/Engineering/cloud-patterns/multicloud-gitops/overrides/values-None.yaml: no such file or directory Error: open /home/michele/Engineering/cloud-patterns/multicloud-gitops/overrides/values-None.yaml: no such file or directory Error: open /home/michele/Engineering/cloud-patterns/multicloud-gitops/overrides/values-None.yaml: no such file or directory common/scripts/preview.sh: eval: line 79: unexpected EOF while looking for matching `"' common/scripts/preview.sh: eval: line 79: unexpected EOF while looking for matching `"' common/scripts/preview.sh: eval: line 79: unexpected EOF while looking for matching `"' make[1]: *** [common/Makefile:59: preview-all] Error 2 make[1]: Leaving directory '/home/michele/Engineering/cloud-patterns/multicloud-gitops' make: *** [Makefile:12: preview-all] Error 2 After: ❯ make preview-all > /dev/null ; echo $? 0
Configuration menu - View commit details
-
Copy full SHA for ffd421b - Browse repository at this point
Copy the full SHA ffd421bView commit details -
Merge pull request #445 from mbaldessari/proper-error-out
Properly error out in preview-all when we cannot connect to the cluster
Configuration menu - View commit details
-
Copy full SHA for f46fb17 - Browse repository at this point
Copy the full SHA f46fb17View commit details -
Merge pull request #446 from mbaldessari/ignore-preview-non-existing-…
…value-files Only include values files if they do exist in preview.sh
Configuration menu - View commit details
-
Copy full SHA for ce0c710 - Browse repository at this point
Copy the full SHA ce0c710View commit details -
Do not error out in preview when kustomize: true
When `kustomize: true` simply take the path and call `kustomize build <path>`. In any other case keep using helm for templating. Before: ... + common/scripts/preview.sh hub compliance-operator https://github.com/mbaldessari/multicloud-gitops.git preview-fixes Error: Chart.yaml file is missing After: ... + common/scripts/preview.sh hub compliance-operator https://github.com/mbaldessari/multicloud-gitops.git preview-fixes apiVersion: console.openshift.io/v1 kind: ConsoleNotification metadata: name: purpose-banner spec: backgroundColor: '#ff0000' color: '#fff' location: BannerTop text: HUBOPS
Configuration menu - View commit details
-
Copy full SHA for e6241d9 - Browse repository at this point
Copy the full SHA e6241d9View commit details -
Also pass EXTRA_PLAYBOOK_OPTS environment setting
Martin Jackson committedMar 25, 2024 Configuration menu - View commit details
-
Copy full SHA for 8dee997 - Browse repository at this point
Copy the full SHA 8dee997View commit details -
Merge pull request #448 from mhjacks/main
Also pass EXTRA_PLAYBOOK_OPTS environment setting
Configuration menu - View commit details
-
Copy full SHA for 879a300 - Browse repository at this point
Copy the full SHA 879a300View commit details
Commits on Mar 26, 2024
-
That is what we have inside the utility container, so let's just rely on that
Configuration menu - View commit details
-
Copy full SHA for dafd44b - Browse repository at this point
Copy the full SHA dafd44bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2c3a2e - Browse repository at this point
Copy the full SHA a2c3a2eView commit details -
Merge pull request #447 from mbaldessari/kustomize-preview
Do not error out in preview when kustomize: true
Configuration menu - View commit details
-
Copy full SHA for 5376d18 - Browse repository at this point
Copy the full SHA 5376d18View commit details
Commits on Mar 27, 2024
-
Add .global.secretStore.backend in the clustergroup schema
It is currently not there even though we mention it in the values files.
Configuration menu - View commit details
-
Copy full SHA for c634054 - Browse repository at this point
Copy the full SHA c634054View commit details
Commits on Mar 28, 2024
-
Fix check for secretStore.backend
The default function in helm is somewhat unintuitive: ❯ cat templates/test.yaml metadata: name: foo {{- if eq .Values.global.secretStore.backend "vault" | default "vault" }} label: vault_is_here {{- else }} labe: not_here {{- end }} ❯ helm template --set global.secretStore.backend=foo . metadata: name: foo label: vault_is_here No matter the value of .Values.global.secretStore.backend, the default branch takes over. So let's change this to something that is correct albeit somewhat less readable Tested as follows: # global.secretStore.backend unset ❯ helm template --set global.secretStore.backend=null common/clustergroup |grep unsealjob.yaml |wc -l 1 # global.secretStore.backend set to 'vault' ❯ helm template --set global.secretStore.backend=vault common/clustergroup |grep unsealjob.yaml |wc -l 1 # global.secretStore.backend set to 'kubernetes' ❯ helm template --set global.secretStore.backend=kubernetes common/clustergroup |grep unsealjob.yaml |wc -l 0 ❯ helm template --set global.secretStore.backend=vault golang-external-secrets |grep -- -backend name: vault-backend ❯ helm template --set global.secretStore.backend=null golang-external-secrets |grep -- -backend name: vault-backend ❯ helm template --set global.secretStore.backend=kubernetes golang-external-secrets |grep -- -backend name: kubernetes-backend
Configuration menu - View commit details
-
Copy full SHA for 5280f2c - Browse repository at this point
Copy the full SHA 5280f2cView commit details -
Merge pull request #451 from mbaldessari/clustergroup-schema-secretstore
Add .global.secretStore.backend in the clustergroup schema
Configuration menu - View commit details
-
Copy full SHA for 08cd952 - Browse repository at this point
Copy the full SHA 08cd952View commit details -
Introduce a generic parameter override via the EXTRA_ARGS env variable
This way a user can decide to modify the podman command line. For example to inject additional useful extra variables in the container. For example: export EXTRA_ARGS="-e OCP_DOMAIN" ./pattern-util.sh make preview-all.sh
Configuration menu - View commit details
-
Copy full SHA for 8869f11 - Browse repository at this point
Copy the full SHA 8869f11View commit details -
Allow overriding the oc lookups in preview.sh
This allows us to inject values to ease testing. Tested as follows: $ unset OCP_DOMAIN OCP_PLATFORM OCP_VERSION $ export EXTRA_ARGS="-e OCP_DOMAIN -e OCP_PLATFORM -e OCP_VERSION" $ ./pattern.sh make preview-all &> /tmp/1 $ export OCP_DOMAIN=adifferentdomain.foo $ ./pattern.sh make preview-all &> /tmp/2 # Templates have effectively changed the domain $ diff -u /tmp/1 /tmp/2 | wc -l 73 $ unset OCP_DOMAIN # Without the domain change the templates are unchanged $ ./pattern.sh make preview-all &> /tmp/3 $ diff -u /tmp/1 /tmp/3 | wc -l 0 Note: When using pattern.sh you will need to inject the env variables in the container via `export EXTRA_ARGS="-e OCP_PLATFORM -e OCP_VERSION -e OCP_DOMAIN"`
Configuration menu - View commit details
-
Copy full SHA for ba583f5 - Browse repository at this point
Copy the full SHA ba583f5View commit details
Commits on Mar 29, 2024
-
Always include values-global.yaml and values-.yaml
Those are the starting points for setting the values. Without this, for example, the rendering of common/acm on the hub is basically empty because clusterGroup.isHubCluster won't be true.
Configuration menu - View commit details
-
Copy full SHA for 66d426d - Browse repository at this point
Copy the full SHA 66d426dView commit details -
Merge pull request #453 from mbaldessari/preview-fixes2
Some more fixes for preview
Configuration menu - View commit details
-
Copy full SHA for 09da2c2 - Browse repository at this point
Copy the full SHA 09da2c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4de8385 - Browse repository at this point
Copy the full SHA 4de8385View commit details -
Merge pull request #454 from mbaldessari/preview-fixes3
Add help and message clarifying that preview has certain limits
Configuration menu - View commit details
-
Copy full SHA for 60dc2cc - Browse repository at this point
Copy the full SHA 60dc2ccView commit details -
Add clustergroup support to preview target
With this the preview all should be a lot more complete and useful. Closes: validatedpatterns/common#452
Configuration menu - View commit details
-
Copy full SHA for d7e913b - Browse repository at this point
Copy the full SHA d7e913bView commit details -
Merge pull request #455 from mbaldessari/preview-clustergroup
Add clustergroup support to preview target
Configuration menu - View commit details
-
Copy full SHA for 8123aa8 - Browse repository at this point
Copy the full SHA 8123aa8View commit details -
Fix preview when the application's index name is not the same as the …
…name attribute This covers the following case: foobar: name: foo namespace: foo project: foo path: charts/all/foo The preview.sh script is passed the name attribute of the application `foo`. So now we first find the key which corresponds to the attribute name `foo` and then use that when looking up the other attributes like path, etc. Closes: validatedpatterns/multicloud-gitops#351
Configuration menu - View commit details
-
Copy full SHA for dd25da0 - Browse repository at this point
Copy the full SHA dd25da0View commit details -
Merge pull request #456 from mbaldessari/preview-fixes4
Fix preview when the application's index name is not the same as the name attribute
Configuration menu - View commit details
-
Copy full SHA for cc1cf4f - Browse repository at this point
Copy the full SHA cc1cf4fView commit details
Commits on Apr 8, 2024
-
Force strings in extraParametersNested
Otherwise if we pass a boolean in the extraParametersNested we will get: spec.source.helm.parameters[10].value: Invalid value: "boolean": spec.source.helm.parameters[10].value in body must be of type string: "boolean"
Configuration menu - View commit details
-
Copy full SHA for 4ec9d3e - Browse repository at this point
Copy the full SHA 4ec9d3eView commit details -
Merge pull request #458 from mbaldessari/extra-nested
Force strings in extraParametersNested
Configuration menu - View commit details
-
Copy full SHA for c236989 - Browse repository at this point
Copy the full SHA c236989View commit details
Commits on Apr 10, 2024
-
In ACM policies do not use $ARGOCD_APP_SOURCE_* variables
The reason for this is the following: When changing the repo on the hub (by editing the pattern), the expectation is that the repo change will replicate from the hub to the spokes managed by ACM. Today this is very unlikely to happen because changing the repo on the hub will not change the policy and so ACM will not reapply it on the spokes. (I believe there is like a daily repush that happens even when the policy has not changed, but that is way too slow to be relied upon). By using the actual variable the policy will actually change, ACM will notice this and push the change on the spokes. Found while testing disconnected mode. I am not replacing them everywhere because I am not sure yet if there are additional semantics in common/clustergroup that I am unaware of.
Configuration menu - View commit details
-
Copy full SHA for cb77e12 - Browse repository at this point
Copy the full SHA cb77e12View commit details -
Merge pull request #460 from mbaldessari/repo-on-spokes
In ACM policies do not use $ARGOCD_APP_SOURCE_* variables
Configuration menu - View commit details
-
Copy full SHA for f674496 - Browse repository at this point
Copy the full SHA f674496View commit details
Commits on Apr 11, 2024
-
This feature relies on the VP operator version >= 0.0.44 in order to work. The way to enable this is to add a feature flag called 'initcontainers' in the VP operator. Once this is enabled, we will detect this and take over the all ArgoCD instances' definition and add initContainers which will inject the CAs contained in the trusted-bundle-ca configmap and also the openshift internal CA. Testing protocol: 1. (Operator 0.0.44) MCG deployment with experimentalCapabilities set to '' and using a github main upstream (i.e. without this PR) 2. (Operator 0.0.44) MCG deployment with experimentalCapabilities set to 'initcontainers' and using a github diconnected common upstream (requiring a custom CA) (i.e. with this PR) 3. (Operator 0.0.44) MCG deployment with experimentalCapabilities set to '' and using a github diconnected common upstream. (same as 1.2) and then set the initcontainer capability on the hub. Checked that the .global.experimentalCapabilities property replicated from hub to spoke and the initcontainers have been generated correctly 3.1 (Operator 0.0.44) Change the repo from github to an internal one that does need the custom ca to work 4. (Operator 0.0.43) Test an old operator with a newer common that contains this very branch Note: Once we will make initcontainers a default feature of the operator we will remove the ifs added in this PR and just make it the defaut behaviour.
Configuration menu - View commit details
-
Copy full SHA for 8dbb5ff - Browse repository at this point
Copy the full SHA 8dbb5ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e75d71 - Browse repository at this point
Copy the full SHA 4e75d71View commit details -
The changes here support the "Support for merging of namespaces, projects, subscriptions and application in overrides/values-common.yaml #459" issue that was opened by Northrop Grumman Files that were changed are: clustergroup/templates/_helpers.tpl clustergroup/templates/core/namespaces.yaml clustergroup/templates/core/operatorgroup.yaml clustergroup/templates/plumbing/projects.yaml clustergroup/values.schema.json examples/values-example.yaml The idea is that if you define the projects section, or the namespaces section, in two different values files using a map construct we will be able to merge both definition of projects into the final rendering of the manifests. The new structure for projects is as follows: ``` clusterGroup: ... projects: project1: ``` The new structure for namespaces is as follows: ``` clusterGroup: ... namespaces: namespace1: open-cluster-management: labels: openshift.io/node-selector: "" kubernetes.io/os: linux annotations: openshift.io/cluster-monitoring: "true" owner: "namespace owner" ``` The user would need to choose to use a list or a hashmap object. The user would not be able to use a mix of hashes and list to describe projects or namespaces.
Configuration menu - View commit details
-
Copy full SHA for 9b96555 - Browse repository at this point
Copy the full SHA 9b96555View commit details
Commits on Apr 12, 2024
-
Drop unused piece of schema json
Not entirely sure how this slipped in. Reported-by: Martin Jackson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7128a3f - Browse repository at this point
Copy the full SHA 7128a3fView commit details -
Merge pull request #464 from mbaldessari/cleanup
Drop unused piece of schema json
Configuration menu - View commit details
-
Copy full SHA for 6eb410a - Browse repository at this point
Copy the full SHA 6eb410aView commit details -
Merge pull request #461 from mbaldessari/disconnected
Custom CA support
Configuration menu - View commit details
-
Copy full SHA for 056c315 - Browse repository at this point
Copy the full SHA 056c315View commit details
Commits on Apr 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 36b2cb6 - Browse repository at this point
Copy the full SHA 36b2cb6View commit details -
Merge pull request #465 from mbaldessari/log-cleanup
Small cleanup to remove unneeded log messages
Configuration menu - View commit details
-
Copy full SHA for f5edc5b - Browse repository at this point
Copy the full SHA f5edc5bView commit details -
Support for cluster-wide proxy
If the clusterwide proxy object is configured, let's support it when we clone the git repos for the imperative framework.
Configuration menu - View commit details
-
Copy full SHA for 247ee65 - Browse repository at this point
Copy the full SHA 247ee65View commit details -
Merge pull request #466 from mbaldessari/cluster-proxy
Support for cluster-wide proxy
Configuration menu - View commit details
-
Copy full SHA for e6564a2 - Browse repository at this point
Copy the full SHA e6564a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86164c6 - Browse repository at this point
Copy the full SHA 86164c6View commit details -
Merge pull request #467 from mbaldessari/eso-0.9.14
Update ESO to 0.9.14
Configuration menu - View commit details
-
Copy full SHA for d5ba36a - Browse repository at this point
Copy the full SHA d5ba36aView commit details -
Merge pull request #462 from claudiol/helm-merge-values
feat: Support for issue #459
Configuration menu - View commit details
-
Copy full SHA for 4d2b43c - Browse repository at this point
Copy the full SHA 4d2b43cView commit details
Commits on Apr 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f4bed3a - Browse repository at this point
Copy the full SHA f4bed3aView commit details -
Merge pull request #468 from mbaldessari/crd-update
Update CRD from operator v0.0.44
Configuration menu - View commit details
-
Copy full SHA for a2e86c6 - Browse repository at this point
Copy the full SHA a2e86c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2319eea - Browse repository at this point
Copy the full SHA 2319eeaView commit details -
Merge pull request #469 from mbaldessari/expose-expcap
Expose main.experimentalCapabilities in operator-install
Configuration menu - View commit details
-
Copy full SHA for a0cad8d - Browse repository at this point
Copy the full SHA a0cad8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ffb55f - Browse repository at this point
Copy the full SHA 2ffb55fView commit details -
Merge pull request #470 from mbaldessari/clustergroup-0.8.3
Release clustergroup v0.8.3
Configuration menu - View commit details
-
Copy full SHA for 55db211 - Browse repository at this point
Copy the full SHA 55db211View commit details
Commits on Apr 17, 2024
-
Support remote repoURL when previewing templates
This allows us to have a remote repoURL + path kustomize combo and show the resulting templates in `make preview`. Tested with: web-terminal: name: web-terminal namespace: hello-world project: hub kustomize: true targetRevision: main repoURL: https://github.com/redhat-cop/gitops-catalog path: web-terminal/aggregate/overlays/default Closes: validatedpatterns/multicloud-gitops#356
Configuration menu - View commit details
-
Copy full SHA for aee5158 - Browse repository at this point
Copy the full SHA aee5158View commit details -
Merge pull request #473 from mbaldessari/preview-fixes5
Support remote repoURL when previewing templates
Configuration menu - View commit details
-
Copy full SHA for 23d35d6 - Browse repository at this point
Copy the full SHA 23d35d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 890ac2e - Browse repository at this point
Copy the full SHA 890ac2eView commit details -
Namespace argocd.argoproj.io/managed-by label issue
- Fixed issue in common/clustergroup/templates/_helpers.tpl to render correct label
Configuration menu - View commit details
-
Copy full SHA for e27624c - Browse repository at this point
Copy the full SHA e27624cView commit details -
Merge pull request #476 from claudiol/fix-namespace-issue
Namespace argocd.argoproj.io/managed-by label issue
Configuration menu - View commit details
-
Copy full SHA for 8855d6e - Browse repository at this point
Copy the full SHA 8855d6eView commit details -
Fixed indenting and duplicate entries in application-policies.yaml
This corrects Argo error: Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): `helm template . --name-template acm --namespace open-cluster-management --kube-version 1.25 --set global.privateRepo=false --set global.experimentalCapabilities=initcontainers --set global.repoURL=https://github.myrepo.com/EnterpriseKubernetes/multicloud-gitops.git --set global.clusterDomain=mydomain.azure.us --set global.clusterPlatform=Azure --set global.hubClusterDomain=mydomain.azure.us --set global.localClusterDomain=mydomain.azure.us --set global.targetRevision=prod --set global.namespace=open-cluster-management --set global.pattern=ekho --set global.clusterVersion=4.12 --values <path to cached source>/values-global.yaml --values <path to cached source>/values-hub.yaml <api versions removed> --include-crds` failed exit status 1: Error: YAML parse error on acm/templates/policies/application-policies.yaml: error converting YAML to JSON: yaml: line 50: did not find expected key Use --debug flag to render out invalid YAML Also corrects mapping error warning on make preview-acm
Configuration menu - View commit details
-
Copy full SHA for 13ee338 - Browse repository at this point
Copy the full SHA 13ee338View commit details
Commits on Apr 18, 2024
-
Add main.experimentalCapabilities to values.schema.json
This way it can be set straight from a values-*.yaml file Tested on MCG.
Configuration menu - View commit details
-
Copy full SHA for 50b2f55 - Browse repository at this point
Copy the full SHA 50b2f55View commit details -
Merge pull request #478 from mbaldessari/fix-schema-capabilities
Add main.experimentalCapabilities to values.schema.json
Configuration menu - View commit details
-
Copy full SHA for 3d38ce2 - Browse repository at this point
Copy the full SHA 3d38ce2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 866cd99 - Browse repository at this point
Copy the full SHA 866cd99View commit details -
Merge pull request #479 from mbaldessari/v0.8.4
ClusterGroup v0.8.4
Configuration menu - View commit details
-
Copy full SHA for 2d36b61 - Browse repository at this point
Copy the full SHA 2d36b61View commit details -
Merge pull request #474 from wadebee/feature/preview-%
Moved CLUSTERGROUP declaration to restore make preview-% functionality
Configuration menu - View commit details
-
Copy full SHA for 37c93b0 - Browse repository at this point
Copy the full SHA 37c93b0View commit details -
Move the CLUSTERGROUP env variable for previews inside its section
This way the code is a bit less confusing and it's more obvious when/where CLUSTERGROUP is used. make preview-% still keeps working as usual and you can override things via `make CLUSTERGROUP=group-one preview-hello-world` Gotta love Makefile's idiosyncrasies around per-target variables
Configuration menu - View commit details
-
Copy full SHA for 739a63b - Browse repository at this point
Copy the full SHA 739a63bView commit details -
Merge pull request #481 from mbaldessari/make-tweak
Small makefile tweak
Configuration menu - View commit details
-
Copy full SHA for 93fccbd - Browse repository at this point
Copy the full SHA 93fccbdView commit details -
Merge pull request #477 from wadebee/acm-app-policies-indenting-fix
bug: Fixes indenting and duplicate entries in application-policies.yaml
Configuration menu - View commit details
-
Copy full SHA for e8c9016 - Browse repository at this point
Copy the full SHA e8c9016View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65eab76 - Browse repository at this point
Copy the full SHA 65eab76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 444016b - Browse repository at this point
Copy the full SHA 444016bView commit details -
bug: Fix to generate OperatorGroup definition when namespaces definit…
…ion has labels - Added condition to check if operatorGroup key exists {{- if or $v.operatorGroup (not (hasKey $v "operatorGroup")) }} - Default behavior is that we generate an OperatorGroup for a Namespace definition.
Configuration menu - View commit details
-
Copy full SHA for 0283fc2 - Browse repository at this point
Copy the full SHA 0283fc2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a8870e - Browse repository at this point
Copy the full SHA 2a8870eView commit details -
Merge pull request #484 from claudiol/fix-for-operator-group
bug: Fix to generate OperatorGroup definition when namespaces definition has labels
Configuration menu - View commit details
-
Copy full SHA for 82d3e26 - Browse repository at this point
Copy the full SHA 82d3e26View commit details -
Configuration menu - View commit details
-
Copy full SHA for c35d124 - Browse repository at this point
Copy the full SHA c35d124View commit details -
Merge pull request #485 from mbaldessari/pki-missing-folder
Try fallbacks for /etc/pki when it does not exist
Configuration menu - View commit details
-
Copy full SHA for 6b5118f - Browse repository at this point
Copy the full SHA 6b5118fView commit details
Commits on Apr 19, 2024
-
Fix for multiple OperatorGroup rendering
- Fixed issue with rendering multiple OperatorGroup. Added the beginning (---) to signal document start. - Updated the applications.yaml to include beginning (---) to signal document start.
Configuration menu - View commit details
-
Copy full SHA for ae12274 - Browse repository at this point
Copy the full SHA ae12274View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ed1a05 - Browse repository at this point
Copy the full SHA 6ed1a05View commit details -
Merge pull request #486 from claudiol/helper-operatorgroup-fix
helper operatorgroup fix
Configuration menu - View commit details
-
Copy full SHA for e32c5fe - Browse repository at this point
Copy the full SHA e32c5feView commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 74a1f10 - Browse repository at this point
Copy the full SHA 74a1f10View commit details -
Merge pull request #487 from mbaldessari/eso-0.9.16
Update ESO to 0.9.16
Configuration menu - View commit details
-
Copy full SHA for 0ebc916 - Browse repository at this point
Copy the full SHA 0ebc916View commit details -
Configuration menu - View commit details
-
Copy full SHA for f34fd78 - Browse repository at this point
Copy the full SHA f34fd78View commit details -
Merge pull request #488 from mbaldessari/vault-helm-v0.28.0
Updated vault-helm to v0.28.0
Configuration menu - View commit details
-
Copy full SHA for 7f22447 - Browse repository at this point
Copy the full SHA 7f22447View commit details -
Use --recurse-submodules when cloning
In case a git repo has some things split over submodules, let's clone those too. The version of git in the imperative image is currently: sh-5.1# git version git version 2.39.3 Tested with: sh-5.1# git clone --recurse-submodules --single-branch --branch main --depth 1 -- "https://github.com/validatedpatterns/multicloud-gitops" /tmp/ Cloning into '/tmp'... remote: Enumerating objects: 426, done. remote: Counting objects: 100% (426/426), done. remote: Compressing objects: 100% (343/343), done. remote: Total 426 (delta 87), reused 221 (delta 40), pack-reused 0 Receiving objects: 100% (426/426), 545.98 KiB | 1.78 MiB/s, done. Resolving deltas: 100% (87/87), done. Co-Authored-By: Sergio Garcia Martinez <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd6be56 - Browse repository at this point
Copy the full SHA dd6be56View commit details -
Merge pull request #489 from mbaldessari/recursive-clone
Use --recurse-submodules when cloning
Configuration menu - View commit details
-
Copy full SHA for 4d04000 - Browse repository at this point
Copy the full SHA 4d04000View commit details -
Drop support for IIB on OCP 4.12
The last job we ran with that for IIB was more than 4 months ago.
Configuration menu - View commit details
-
Copy full SHA for 60600dc - Browse repository at this point
Copy the full SHA 60600dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for f50deb9 - Browse repository at this point
Copy the full SHA f50deb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5702167 - Browse repository at this point
Copy the full SHA 5702167View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84f7434 - Browse repository at this point
Copy the full SHA 84f7434View commit details -
Configuration menu - View commit details
-
Copy full SHA for 109027c - Browse repository at this point
Copy the full SHA 109027cView commit details -
Merge pull request #491 from mbaldessari/prereqs
Check for prereqs for IIB
Configuration menu - View commit details
-
Copy full SHA for 20cb31e - Browse repository at this point
Copy the full SHA 20cb31eView commit details
Commits on Apr 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3c853b7 - Browse repository at this point
Copy the full SHA 3c853b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4383b9 - Browse repository at this point
Copy the full SHA d4383b9View commit details