Commit Graph

462 Commits (8e93f448d08ff24cf4eed3aac670db7b701778a1)

Author SHA1 Message Date
Brenda Rearden b395206a27 Add url check for package.yaml file, add to cleanup 2020-09-04 10:30:14 -07:00
Arvind Iyengar 3b6f47638d fix typos in alerting config 2020-09-03 15:15:36 -07:00
aiyengar2 4e030b0ca7 Generated changes 2020-09-03 21:53:04 +00:00
aiyengar2 31368b82f7
Merge pull request #579 from aiyengar2/patch_subcharts
Allow patches on remote deps with fixed versions
2020-09-03 14:52:23 -07:00
cbron 7ee082db63 Generated changes 2020-09-03 20:27:59 +00:00
Caleb Bron 6318b2d992
Merge pull request #609 from cbron/nuke-nginx-ingress
Remove nginx-ingress
2020-09-03 13:27:24 -07:00
Arvind Iyengar 804f97853c Allow patches on remote deps with fixed versions
This commit adds the ability to add patches on subcharts in `rancher/charts` that meet the following constraints:
- Must be a remote chart (i.e. the repo url cannot point to a `file://<path>`)
- Must have a fixed version number (since we need a consistent base to apply the patch on)

The following changes have been made to the scripts to faciliate this feature:

**prepare**

Only run the patch after preparing the subchart

**prepare-subcharts:**

Inital checks:
1. We only prepare the subcharts if the chart has a `requirements.yaml`.
2. Extract the patches that would be applied to the requirements.yaml and only apply that

Note: in the future, we need to add support for dependencies outlined in the Chart.yaml directory, which is currently the recommended approach for Helm 3 charts that use `apiVersion: v2`, but since none of our charts currently use that it is assumed that they will encode their dependencies in a `requirements.yaml` at the moment.

Generate special dependencies (overlay, package.yaml):
1. For dependencies that are mirrored (i.e. rancher-kiali-server, where the dependency itself is stored as a `package.yaml`) that have not generated a `charts/` directory yet, we recursively run the `prepare` script for them in order to generate the directories so that `helm dependency update` can pull them in. The assumption here is that there will be no circular dependencies, although there is no explicit check for this.
2. For dependencies that are overlaid, we perform the overlay so that `helm dependency update` operates as expected.

Pull in latest subcharts and update files:
1. Perform `helm dependency update` to update the `requirements.yaml` and `requirements.lock` with the latest subchart versions

Cleanup (overlay, package.yaml, patched requirements)
1. Remove overlaid dependencies since they won't be tracked in the patch
2. Run the `clean` script on the mirrored dependencies
3. Revert the patch on the requirements.yaml

Apply logic to enable / disable patching:
1. If a subchart is a local chart, leave it as a tgz so it will be ignored on patch
2. If a subchart does not have a fixed version number, leave it as a tgz so it will be ignored on patch
3. If neither of these are true, unarchive the tgz for the subchart and delete the tgz so it will be tracked by the patch

NOTE: since the dependency still exists as either a tgz or a directory, `generate-charts` will not break from this change.

**generate-patch:**

Loop through the local `charts/requirements.yaml` to update the `charts-original/charts` directory:
1. If a subchart is not a local chart, remove it as we don't need to check for patches against it
2. If a subchart does not have a fixed version number,  remove it as we don't need to check for patches against it
3. If neither of these are true, pull in the version number specified from the remote helm repo to track patches against it.

**Why does the version number need to be fixed?**:

In general, Helm chart owners can use wildcards within a `requirements.yaml` to specify the version of a subchart when a specific patch version does not necessarily need to be fixed. This is usually a great feature since that means that parent charts do not need to be updated in order for a `helm dependency update` to automatically pull in the latest versions of a dependency that do not break the parent chart; however, this causes an issue with patching subcharts since the base that the patch is applied on is not fixed.

Therefore, this commit only allows users to apply patches on subcharts that have a fixed subchart version specified in their `requirements.yaml`.

**Why can't we track local charts?**

If the chart is local to this repo, the assumption is that you should directly be making the changes to the chart.
2020-09-03 12:05:44 -07:00
Arvind Iyengar 013b9e0405 Split and reorder prepare for prepare-subcharts
This commit splits the subchart logic from the `prepare` script into a separate `prepare-subcharts` script and slightly modifies the prepare logic to generate CRD charts only after preparing subcharts and applying the patch file.
2020-09-03 12:05:44 -07:00
Caleb Bron 3bbde5f819 Remove nginx-ingress
It was part of rke2 and all of those charts have moved elsewhere
2020-09-03 10:50:24 -07:00
paynejacob 9afafe88b3 Generated changes 2020-09-03 17:48:35 +00:00
Jacob Payne ffa781597a
removed k3s syslog parser (#593) 2020-09-03 10:47:57 -07:00
PennyScissors 6293280499 Generated changes 2020-09-01 19:30:08 +00:00
Steven Crespo 4f583e6f46
Merge pull request #588 from PennyScissors/update-rancher-gatekeeper-readme
Update default value of `auditInterval` in README
2020-09-01 12:29:28 -07:00
ibuildthecloud 3a12e23e0e Generated changes 2020-09-01 06:56:32 +00:00
Darren Shepherd 1df56d0b1f
Merge pull request #602 from ibuildthecloud/dev-2.5
Update to fleet v0.3.0-alpha6
2020-08-31 23:55:51 -07:00
Darren Shepherd 6cddc8911f Update to fleet v0.3.0-alpha6 2020-08-31 23:53:18 -07:00
paynejacob d048f1173d Generated changes 2020-08-31 23:21:11 +00:00
Jacob Payne 96282022fa
added support for gathering rke1 container logs (#573) 2020-08-31 16:20:32 -07:00
paynejacob 058fa6168f Generated changes 2020-08-31 22:59:09 +00:00
Jacob Payne 4128861cb3
changed default operator image (#590) 2020-08-31 15:58:31 -07:00
aiyengar2 02e4b3414c Generated changes 2020-08-31 21:47:49 +00:00
aiyengar2 5825928eac
Merge pull request #599 from aiyengar2/update_default_alerting_template
Update default Alerting template for defaults set in UI
2020-08-31 14:47:14 -07:00
paynejacob 1dead47e95 Generated changes 2020-08-31 21:23:01 +00:00
Jacob Payne e8486d3953
removed logging output and flow configs (#587) 2020-08-31 14:22:23 -07:00
ibuildthecloud 95da9adcfa Generated changes 2020-08-31 05:12:22 +00:00
Darren Shepherd c3ea938eff
Merge pull request #600 from ibuildthecloud/dev-2.5
Fleet v0.3.0-alpha5
2020-08-30 22:11:35 -07:00
Darren Shepherd d3a7562fda Fleet v0.3.0-alpha5 2020-08-30 21:45:42 -07:00
Arvind Iyengar 6bc9f8c45f Update default Alerting template 2020-08-28 20:14:58 -07:00
Arvind Iyengar 267b8afc95 Rearrange patch
This commit is required due to patch flip-flops that will occur till https://github.com/rancher/rancher/issues/28627 is resolved.
2020-08-28 16:31:41 -07:00
paynejacob 6fbdb45f7c Generated changes 2020-08-28 18:45:48 +00:00
Jacob Payne 695110ff2b
Feature/logging/eks (#583)
* added eks support
2020-08-28 11:45:13 -07:00
aiyengar2 677dfada2e Generated changes 2020-08-27 17:40:05 +00:00
aiyengar2 d58cb88118
Merge pull request #596 from aiyengar2/fix_copy_certs_image
Remove tgz to absorb copyCert image changes
2020-08-27 10:39:24 -07:00
Arvind Iyengar b46cfa9b19 Remove tgz to absorb copyCert image changes 2020-08-27 10:35:42 -07:00
cbron b230d09672 Generated changes 2020-08-27 02:22:11 +00:00
Caleb Bron a8748de0f4
Merge pull request #544 from MonzElmasry/rke2-monitoring
rke2-monitoring
2020-08-26 19:21:32 -07:00
aiyengar2 a3a43dc184 Generated changes 2020-08-26 23:45:32 +00:00
aiyengar2 313221500a
Merge pull request #592 from aiyengar2/fix_copy_certs_image
Switch PushProx image to rancher/busybox
2020-08-26 16:44:57 -07:00
Arvind Iyengar eed107e725 remove tgz 2020-08-26 16:35:05 -07:00
Arvind Iyengar 23fbc636ab switch copyCerts image to rancher/busybox 2020-08-26 16:34:57 -07:00
brendarearden 1f1e11ae58 Generated changes 2020-08-26 23:13:18 +00:00
Brenda Rearden 95800e5bd0
Merge pull request #577 from brendarearden/kiali-fixes
Update kiali image conventions, remove release.name from naming convention
2020-08-26 16:12:36 -07:00
Brenda Rearden 5da19fc4a4 Remove release name, refactor image values, update web_root 2020-08-26 15:59:31 -07:00
Menna 7c63442e79 add rke2proxy toleration 2020-08-27 00:49:54 +02:00
Menna e5dfdc5c88 Adds support for monitoring the following k8s components in rke2 clusters:
- `rke2-scheduler`
- `rke2-controller-manager`
- `rke2-proxy`
- `rke2-etcd`

All exporters are created from the cattle-pushprox chart. This commit
also modifies the relevant Grafana Dashboard ConfigMaps and
PrometheusRules to deploy if the PushProx exporters are enabled.

See changes to `overlay/CHANGELOG.md` for details on what has been added/modified.
2020-08-26 22:16:37 +02:00
aiyengar2 ccb1f5bc86 Generated changes 2020-08-26 17:09:09 +00:00
aiyengar2 fa38366538
Merge pull request #576 from aiyengar2/private_registry
Update default images on monitoring charts to Rancher mirrors
2020-08-26 10:08:28 -07:00
Arvind Iyengar 1538ef2a9e remove tgz 2020-08-25 19:37:34 -07:00
Arvind Iyengar e0d3e6519b Use Rancher images for rancher-monitoring 2020-08-25 19:37:34 -07:00
Arvind Iyengar aa30c498ea Add private registry support to rancher-monitoring 2020-08-25 19:37:34 -07:00