Commit Graph

4381 Commits (e22b1ceebc2182182afe18677152e84bd5ad2e5a)

Author SHA1 Message Date
aiyengar2 d185ba5c3b Generated changes 2020-09-08 21:08:29 +00:00
aiyengar2 b6d3998bce
Merge pull request #617 from aiyengar2/fix_jettech_image
Use Rancher mirror for jettech/kube-webhook-certgen
2020-09-08 14:07:47 -07:00
Arvind Iyengar 45335710e1 remove tgz 2020-09-08 13:42:13 -07:00
Arvind Iyengar 30aa33a5b1 Use Rancher mirror for jettech/kube-webhook-certgen 2020-09-08 13:41:17 -07:00
paynejacob cd321b2456 Generated changes 2020-09-08 20:02:08 +00:00
Jacob Payne 0e21736bed
use cattle system registry (#613) 2020-09-08 13:01:27 -07:00
cbron ec3161501e Generated changes 2020-09-08 18:51:32 +00:00
Caleb Bron beec24aab6
Merge pull request #604 from cbron/update-dependency-annotations
Update how we manage dependency annotations
2020-09-08 11:50:51 -07:00
Caleb Bron be4446bbb4 Remove provides-gvr from readme
This flag has moved outside of the crd splitting flag.
Also it is documented elsewhere, so we want to avoid
duplicate docs.
2020-09-08 11:46:02 -07:00
Caleb Bron e290ba4d50 refresh assets 2020-09-04 20:48:26 -07:00
Caleb Bron 92211af12a update how we manage dependency annotations 2020-09-04 20:46:44 -07:00
aiyengar2 e09e5d97d4 Generated changes 2020-09-04 20:26:57 +00:00
aiyengar2 53dc624ee6
Merge pull request #582 from aiyengar2/monitoring_subcharts_private_registry
Add private registry support and use Rancher mirror images for Monitoring subcharts
2020-09-04 13:26:18 -07:00
Arvind Iyengar 3e3d488fd3 remove tgz 2020-09-04 12:07:58 -07:00
Arvind Iyengar 1b0deff7a9 Use Rancher images for monitoring subcharts 2020-09-04 12:07:58 -07:00
Arvind Iyengar bd24317ee8 Add private registry to monitoring subcharts 2020-09-04 12:07:58 -07:00
Arvind Iyengar 43efb64f82 Use fixed versions for subcharts of rancher-monitoring 2020-09-04 12:07:58 -07:00
brendarearden 6e7f4134cc Generated changes 2020-09-04 17:40:40 +00:00
Brenda Rearden 9fc0dd1ffd
Merge pull request #607 from brendarearden/script-changes
Add generate CRD for charts that don't have a url in package.yaml
2020-09-04 10:40:03 -07:00
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