Commit Graph

547 Commits (2bdbe9d888daf43635e98a3e83fd5059d4e36eb0)

Author SHA1 Message Date
aiyengar2 d7f04d180f Generated changes 2020-09-09 19:48:49 +00:00
aiyengar2 af76c27d3e
Merge pull request #620 from aiyengar2/fix_local_split_crd_validate
Deprecate providesGVR flag and update validate script
2020-09-09 12:48:12 -07:00
Arvind Iyengar b3f18ae356 Fix url check when package.yaml does not exist 2020-09-09 12:27:17 -07:00
Arvind Iyengar fb3fe857d4 Update validate and clean script to use clean-crds
By utilizing the `clean-crds` script, both `validate` and `clean` can cleanly deal with issues related to annotations added and files overlaid as part of the CRD chart process.
2020-09-09 12:26:01 -07:00
Arvind Iyengar a84d714801 Deprecate providesGVR flag
This commit deprecates the providesGVR flag used by charts in favor of charts adding this annotation directly to the patch of their chart (or their Chart.yaml).
2020-09-09 12:25:16 -07:00
Arvind Iyengar e7b2a3934b Move revert_crd_changes into a new script
Before, the logic for reverting a CRD chart was located in `generate-patch` since it was the only script that required these changes. Now that the same logic is required on a `make clean` in order to support reverting just the generateCRDChart changes from local charts, this commit moves that logic out to its own script `clean-crds`.

Based on discussion in https://github.com/rancher/charts/pull/607#discussion_r483288658.
2020-09-09 12:05:15 -07:00
cbron b6710d7846 Generated changes 2020-09-09 05:16:58 +00:00
Caleb Bron 5a7ccc9fc8
Merge pull request #622 from cbron/singular-crd-names
Make monitoring gvr singular
2020-09-08 22:16:19 -07:00
Caleb Bron f223cb6b6d Make monitoring gvr singular 2020-09-08 22:13:09 -07:00
cbron 167e041e07 Generated changes 2020-09-09 04:24:57 +00:00
Caleb Bron fcf4f3347b
Merge pull request #618 from brendarearden/fix-annotations
Update provides/requires gvr, added keywords
2020-09-08 21:24:17 -07:00
Brenda Rearden aa13a90e13 Update provides/requires gvr, added keywords 2020-09-08 21:12:11 -07:00
brendarearden cfa4f64f48 Generated changes 2020-09-08 23:44:53 +00:00
Brenda Rearden ab87fef1dd
Merge pull request #610 from brendarearden/kiali
Update to rancher image, remove extra end in helper
2020-09-08 16:43:48 -07:00
Brenda Rearden e6d0c9c8bf Add hidden annotation to kiali-server chart 2020-09-08 15:43:08 -07:00
Brenda Rearden 9808ea00df Update to rancher image, remove extra end in helper 2020-09-08 15:43:08 -07:00
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