Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Add CRS for creating management package repository and for installing featuregates, core-management-plugins package#1046

Merged
yharish991 merged 5 commits intovmware-tanzu:mainfrom
yharish991:installMgmtPackages
Nov 12, 2021
Merged

Add CRS for creating management package repository and for installing featuregates, core-management-plugins package#1046
yharish991 merged 5 commits intovmware-tanzu:mainfrom
yharish991:installMgmtPackages

Conversation

@yharish991
Copy link
Copy Markdown
Contributor

@yharish991 yharish991 commented Nov 3, 2021

What this PR does / why we need it

This PR adds ClusterResourceSet custom resource to

  1. Create management package repository
  2. Install featuregates package
  3. Install core-management-plugins package

Which issue(s) this PR fixes

Fixes #1047, #1048 and #1110

Describe testing done for PR

Release note

Added ClusterResourceSet resources to create management package repository and to install featuregates package

PR Checklist

  • Squash the commits into one or a small number of logical commits
  • Use good commit messages
  • Ensure PR contains terms all contributors can understand and links all contributors can access

Additional information

Special notes for your reviewer

This PR needs to be tested after the management package repo entry is added to BOM. But wanted to get an initial review on the approach

@yharish991 yharish991 added kind/feature Categorizes issue or PR as related to a new feature area/lcm Related to Cluster Lifecycle management labels Nov 3, 2021
@yharish991 yharish991 requested a review from a team as a code owner November 3, 2021 02:34
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211103024734/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@rajathagasthya
Copy link
Copy Markdown

Just curious how this works on an upgrade. We want the latest packages from this repo to be installed when management cluster is upgraded (means the existing packages get upgraded). Is doing this via CRS able to ensure that?

@yharish991
Copy link
Copy Markdown
Contributor Author

yharish991 commented Nov 4, 2021

@rajathagasthya

Just curious how this works on an upgrade. We want the latest packages from this repo to be installed when management cluster is upgraded (means the existing packages get upgraded). Is doing this via CRS able to ensure that?

If the cluster is being upgraded, the PackageRepository and PackageInstall would be updated directly https://github.com/vmware-tanzu/tanzu-framework/pull/1046/files#diff-049262173b38704098ff511248bfd32198a383381dac188f4d201577d4744c17R166-R167 and https://github.com/vmware-tanzu/tanzu-framework/pull/1046/files#diff-fc81a8233b6918a916988000770b95adc92a1273d339d26cf653b9e422885207R20-R21

PacakgeRepository with upgraded repo bundle will make the latest packages available on the cluster and PackageInstall will pick the latest package and install it

@yharish991 yharish991 force-pushed the installMgmtPackages branch 2 times, most recently from ca0f972 to 1f58e93 Compare November 4, 2021 14:43
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211104144907/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211104145442/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

Copy link
Copy Markdown
Contributor

@vijaykatam vijaykatam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go through rbac rules for service account and remove the ones that are not needed.

- list
- watch
- apiGroups:
- cert-manager.io
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is cert-manager being used in feature gate package?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we need certificates for the featuregates webhook

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 4, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211104154107/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@yharish991 yharish991 requested a review from blc1996 November 4, 2021 18:12
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 5, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211105160034/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 5, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211105194154/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@yharish991 yharish991 force-pushed the installMgmtPackages branch 2 times, most recently from 3318e2e to c6bbbef Compare November 8, 2021 03:09
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 8, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211108031418/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 9, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211109180235/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@yharish991 yharish991 force-pushed the installMgmtPackages branch 3 times, most recently from 5c3f1bf to eae8b2b Compare November 9, 2021 19:39
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 9, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211109194504/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 9, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211109195002/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 9, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211109195541/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 9, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211109200448/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 9, 2021

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211109200755/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211110014138/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@anujc25 anujc25 changed the title Add CRS for creating management package repository and for installing featuregates package Add CRS for creating management package repository and for installing featuregates, core-management-plugins package Nov 10, 2021
@yharish991
Copy link
Copy Markdown
Contributor Author

//usebom:sandbox/v1.5.0-zshippable/380806556008107856/tkg-compatibility

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211110192958/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211110193745/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

yharish991 and others added 5 commits November 11, 2021 12:48
Signed-off-by: Harish Yayi <yharish991@gmail.com>
Signed-off-by: Harish Yayi <yharish991@gmail.com>
Signed-off-by: Harish Yayi <yharish991@gmail.com>
- This change adds core-management-plugins package
- It should get applied as part of management cluster creation and
  management cluster creation process
- Sync plugins after management-cluster creation and upgrade
Signed-off-by: Harish Yayi <yharish991@gmail.com>
@github-actions
Copy link
Copy Markdown

Cluster Generation A/B Results:
https://storage.googleapis.com/tkg-clustergen/1046/20211111180835/clustergen.diff.txt
Author/reviewers:
Please review to verify that the effects on the generated cluster configurations are exactly what the PR intended, and give a thumbs-up if so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/lcm Related to Cluster Lifecycle management cla-not-required kind/feature Categorizes issue or PR as related to a new feature ok-to-merge PRs should be labelled with this before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ClusterResourceSet to create management package repository

8 participants