Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructured Chart #18

Merged
merged 8 commits into from
Nov 20, 2020

Conversation

nshankar13
Copy link
Contributor

@nshankar13 nshankar13 commented Nov 12, 2020

Separated this chart into two new ones: osm-arc and osm. OSM is a dependency of osm-arc, and osm-arc values will override those in the values.yaml of osm. Osm-arc will have templates, such as osm-label, that are specific for arc environments.

Now the workflow for installing the chart via helm will look something like this:

helm dependency update osm-arc
helm install osm osm-arc --namespace arc-osm-system

@@ -23,7 +23,8 @@ e2e-helm-deploy:
mkdir -p .staging/helm
curl https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz > .staging/helm/helmbin.tar.gz
cd .staging/helm && tar -xvf helmbin.tar.gz
./.staging/helm/linux-amd64/helm install osm ./charts/osm --namespace arc-osm-system
./.staging/helm/linux-amd64/helm dependency update ./charts/osm-arc
./.staging/helm/linux-amd64/helm install osm ./charts/osm-arc --namespace arc-osm-system

test-e2e:
Copy link
Member

Choose a reason for hiding this comment

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

We should add a new Makefile target similar to this example. We can run this target before cutting a release of osm-arc to ensure the osm chart has been updated and included as part of the new release of osm-arc chart.

Copy link
Contributor

Choose a reason for hiding this comment

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

we should create an issue for this... called create helm-lint Makefile target which does a helm dep update before linting the osm-arc chart.

Copy link
Member

Choose a reason for hiding this comment

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

created #21

dependencies:
- name: osm
version: "0.5.0-rc.1"
repository: "file://../../charts/osm"
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@michelleN I noticed we dont have index.yaml in https://github.com/openservicemesh/osm/tree/main/charts/osm is that going to be an issue finding older versions of the osm chart?

Copy link
Contributor

Choose a reason for hiding this comment

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

The serve the osm chart repository via github pages so the index file lives here. If folks want to see a chart for a particular version of helm, they can checkout the tag for that version of osm. If folks want to see a chart at a particular version, they can check out the tag called chart/vX.Y.Z where X.Y.Z is the version they're looking for.

@ritazh ritazh requested a review from michelleN November 13, 2020 00:53
Copy link
Contributor

@michelleN michelleN left a comment

Choose a reason for hiding this comment

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

Could you split this into separate PRs? The first PR being the one that creates the osm-arc chart with no dependency so we can review that separately.

michelleN
michelleN previously approved these changes Nov 19, 2020
@@ -23,7 +23,8 @@ e2e-helm-deploy:
mkdir -p .staging/helm
curl https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz > .staging/helm/helmbin.tar.gz
cd .staging/helm && tar -xvf helmbin.tar.gz
./.staging/helm/linux-amd64/helm install osm ./charts/osm --namespace arc-osm-system
./.staging/helm/linux-amd64/helm dependency update ./charts/osm-arc
./.staging/helm/linux-amd64/helm install osm ./charts/osm-arc --namespace arc-osm-system

test-e2e:
Copy link
Contributor

Choose a reason for hiding this comment

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

we should create an issue for this... called create helm-lint Makefile target which does a helm dep update before linting the osm-arc chart.

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

lgtm

@ritazh
Copy link
Member

ritazh commented Nov 20, 2020

cc @snehachhabria @SanyaKochhar PTAL

@nshankar13 nshankar13 merged commit 9d05e81 into Azure:main Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants