Commit Graph

70 Commits (05d6794d439951caf7165251f2f069fceadc78ff)

Author SHA1 Message Date
Lucas Machado 8afd14e4fe
[dev-v2.9] Fix validations script to loop over all required annotations (#3692)
Co-authored-by: Venkata Krishna Rohit Sakala <rohitsakala@gmail.com>
2024-03-25 17:15:19 -03:00
Josh Meranda b98495acaf
Remove accidentally added rebase script (#3469) 2024-02-14 16:49:17 -05:00
Josh Meranda 7f981c3b3e
Logging rebase to 4.4.0 (#3284) 2024-02-14 16:21:38 -05:00
Lucas Machado 261a4b94f2
Bumping charts-build-scripts version to v0.5.5 (#3412) 2024-02-06 18:51:46 -03:00
Lucas Lopes 31086ba95d Bumping charts-build-scripts version to v0.5.4 2024-01-17 16:36:00 -03:00
Lucas Lopes 2487e039e6 Bumping charts-build-scripts version to v0.5.3-rc.1 2024-01-09 15:16:49 +00:00
Venkata Krishna Rohit Sakala 0be938def4 Update branch reference for dev-v2.9 2023-12-22 03:01:06 +05:30
Venkata Krishna Rohit Sakala 3e1ee74998 Move ruby script to scripts folder 2023-10-24 09:27:29 -03:00
Lucas Lopes bfa964a84e Removing checpoint 3 from pr review template 2023-10-23 21:45:13 -03:00
Lucas Lopes 8a4b55b08f Updating the upstream branch in the validate-annotations script 2023-10-23 21:45:13 -03:00
Lucas Lopes 9669a4261d Updating the upstream branch in the diff-with-released script 2023-10-23 21:45:13 -03:00
Lucas Lopes 73bcc9a240 Bumping scripts version to v0.5.2 2023-10-23 19:11:13 -03:00
Lucas Machado d9bce0e7c8 Adding check for empty release.yaml before checking style 2023-10-10 19:55:16 -03:00
Lucas Lopes 05c97ec52b Upgrading charts-build-scripts to v0.5.1 2023-10-10 19:53:41 -03:00
Lucas Lopes 6ffc36e92d Bumping scripts version to v0.5.0 2023-10-10 19:50:19 -03:00
Lucas Lopes 7342e1aa11 Adding check RC step to pull request wworkflow running on release branches 2023-10-10 19:49:58 -03:00
Lucas Lopes e5bd4164f1 Bumping scripts version 2023-10-10 19:48:32 -03:00
Sakala Venkata Krishna Rohit cd7c60abd6
Merge pull request #2600 from rancher/rohit_github_action
Add github action for regsync config generation
2023-05-17 09:25:12 +05:30
Venkata Krishna Rohit Sakala c93290ad71 Add github action for regsync config generation 2023-05-16 20:07:01 -07:00
Steven Crespo a809042ff9 Fix release index validation script 2023-04-07 10:47:28 -07:00
Steven Crespo caafd16b2d Fix release validation scripts 2023-03-15 15:44:38 -07:00
Steven Crespo bad6cbf8b2 Remove superfluous continue statement 2023-03-06 15:53:09 -08:00
Steven Crespo 4e8b2ab57c Add release validation scripts 2023-02-28 16:24:41 -08:00
Mauren Berti 67ca9d30bc
Add hardcoded folder name for clone.
* Clone rancher/charts-build-scripts to a hardcoded folder name to make sure it always works regardless of the name of the fork.
2022-12-16 10:58:31 -05:00
Arvind Iyengar a6601fb349
Add forward-port script 2022-03-07 13:06:46 -08:00
Arvind Iyengar 9b15779371
Bump scripts/version 2022-03-07 11:39:15 -08:00
Arvind Iyengar b09c01410f
Bump scripts version to v0.3.1 2022-01-05 17:14:18 -08:00
Arvind Iyengar b78f0c2784
make template 2022-01-04 13:30:33 -08:00
Arvind Iyengar e7259e7127
Bump charts-build-scripts version to v0.3.0 2022-01-03 16:07:33 -08:00
Arvind Iyengar 7b3d868ac7
Delete old README.mds and old scripts 2022-01-03 16:06:32 -08:00
Arvind Iyengar e8d80d248c
Regenerate template based on v0.2.0 release
```bash
make template
```
2021-05-17 15:54:09 -07:00
Arvind Iyengar b58090455d
Update pull-scripts and version
(cherry picked from commit 81d438ab55)
2021-05-17 15:53:08 -07:00
Arvind Iyengar d0a006101b
Point to dev-v2.6 and run make docs 2021-03-30 16:35:01 -07:00
Arvind Iyengar 740f7c76fe
Bump version to v0.0.4 2021-02-08 13:36:36 -08:00
Arvind Iyengar d96f2ea01d
Bump scripts version to v0.0.3 2021-02-01 13:16:59 -08:00
Arvind Iyengar 8873620b68
Use rancher/charts-build-scripts 2021-01-22 08:58:20 -08:00
Arvind Iyengar 43eddc361b
Bump scripts to v0.0.2 2021-01-22 08:52:17 -08:00
Arvind Iyengar 5d7c4c2acd
Migrate to the new docs and scripts
This commit just adds new files for the new scripts and modifies the README.md.

Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com>
2021-01-14 22:58:53 -08:00
Caleb Bron 2087de28b5 clean up main 2020-09-30 16:45:24 -07:00
Arvind Iyengar d52f614415 Add securityContext to assumeOwnership CRD charts 2020-09-20 16:38:26 -07:00
Arvind Iyengar b36f8abacf Allow trailing slashes in dependency repos
Related Issue: https://github.com/rancher/rancher/issues/28981
2020-09-17 18:32:04 -07:00
Arvind Iyengar 8dabbb441c Validate that CRDs exist only on a helm install
This commit introduces a slight change to the CRD chart templates in order to only run the check for whether CRDs exist in the cluster when a user uses `helm install`. On a `helm template`, no error will ever be thrown and on a `helm install --dry-run`, an error will only be thrown if the CRD is required as part of the chart installation (which is the default behavior of --dry-run either way).

The way it accomplishes this is by using the Helm lookup function; based on the [Helm 3 docs](https://helm.sh/docs/chart_template_guide/functions_and_pipelines/), the lookup function never gets called on a `helm install --dry-run` or a `helm template`, so the output of the lookup function will always be nil for those requests (i.e. the number of ClusterRoles returned will always be 0).

However, Kubernetes clusters have default ClusterRoles, so this ensures that CRDs are installed if at least one ClusterRole is returned (i.e. the most common setup).
2020-09-16 10:32:12 -07:00
Caleb Bron 68a1dfa588
Revert "Generate asset on different branch" 2020-09-10 15:12:51 -07:00
Daishan Peng 65b9bc61c1
Merge pull request #605 from StrongMonkey/branch-asset
Generate asset on different branch
2020-09-10 12:22:29 -07:00
Daishan 15924a6862 Generate assets on ${branch}-assets branch 2020-09-10 10:50:00 -07:00
aiyengar2 7d32212d2c
Merge pull request #595 from aiyengar2/change_crd_ownership
Add generateCRDChart.assumeOwnershipOfCRDs flag
2020-09-09 16:08:08 -07:00
Arvind Iyengar 9b28515507 Add generateCRDChart.assumeOwnershipOfCRDs flag
This commit adds a new flag to the experimental feature of generating a CRD chart for charts that need to be able to assume the ownership of any existing CRDs within a cluster. It also modifies the existing `prepare-crd` script to use template files stored in the `./scripts/chart-templates/` directory instead of utilizing numerous `cat` commands in order to achieve the same result.

Feature charts with this flag enabled will differ from the normal CRD chart in the following ways:
- Instead of having CRDs from `crd/` in `templates/`, they will be relocated to `crd-manifest/`.
- On render, the CRDs in `crd-manifest` are placed into a ConfigMap that will be deployed on the cluster.
- On install / upgrade / rollback, a pre-install / pre-upgrade / pre-rollback hook Job that does a `kubectl apply -f` on the manifest within the crd-manifest ConfigMap (with appropriate RBAC credentials via a ServiceAccount, CRB, and ClusterRole) will install the CRDs onto the cluster.
- On uninstall, a delete hook Job does a `kubectl delete -f` on the manifest within the crd-manifest ConfigMap (with the same RBAC credentials) to remove the CRDs from the cluster.

At the moment, this will only be used by the `rancher-monitoring` chart.

Related Issue: https://github.com/rancher/rancher/issues/28326
2020-09-09 15:25:13 -07:00
Arvind Iyengar 746bac1d78 Add clean to end of validate script 2020-09-09 15:05:46 -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