Skip to content

Commit 9d05e81

Browse files
authored
Restructured Chart (#18)
* Restructured Chart * Changed Makefile * Edited Makefile * Corrected Makefile again * Deleted osm and edited makefile * changed webhook * changed webhook * Changed values.yaml and gitignore
1 parent 7d28af2 commit 9d05e81

21 files changed

+60
-696
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,6 @@ MigrationBackup/
353353

354354
# Ionide (cross platform F# VS Code tools) working folder
355355
.ionide/
356+
357+
# Chart-tgzs generated by dependency update
358+
charts/osm-arc/charts

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ KIND_VERSION ?= 0.8.1
33
KUBERNETES_VERSION ?= v1.19.0
44
HELM_VERSION ?= 3.3.4
55

6+
package-osm-chart:
7+
helm dependency update osm-arc
8+
69
e2e-bootstrap:
710
# Download and install kind
811
curl -L https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-linux-amd64 --output ${GITHUB_WORKSPACE}/bin/kind && chmod +x ${GITHUB_WORKSPACE}/bin/kind
@@ -23,7 +26,7 @@ e2e-helm-deploy:
2326
mkdir -p .staging/helm
2427
curl https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz > .staging/helm/helmbin.tar.gz
2528
cd .staging/helm && tar -xvf helmbin.tar.gz
26-
./.staging/helm/linux-amd64/helm install osm ./charts/osm --namespace arc-osm-system
29+
./.staging/helm/linux-amd64/helm install osm ./charts/osm-arc --namespace arc-osm-system --dependency-update
2730

2831
test-e2e:
2932
bats -t test/bats/test.bats
File renamed without changes.

charts/osm-arc/Chart.lock

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: osm
3+
repository: https://openservicemesh.github.io/osm
4+
version: 0.5.0
5+
digest: sha256:343d510c411a72e9abe9b9a740b0105c206271b813024917969ba0f7ecd4d8a6
6+
generated: "2020-11-13T13:54:31.7602449-05:00"

charts/osm/Chart.yaml charts/osm-arc/Chart.yaml

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
2-
name: osm
3-
description: A Helm chart to install the OSM control plane on Kubernetes
2+
name: osm-arc
3+
description: A Helm chart to install the OSM control plane on Azure Arc enabled Kubernetes clusters.
44

55
# A chart can be either an 'application' or a 'library' chart.
66
#
@@ -14,8 +14,16 @@ type: application
1414

1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
17-
version: 0.4.2
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 0.5.0
1819

1920
# This is the version number of the application being deployed. This version number should be
20-
# incremented each time you make changes to the application.
21-
appVersion: v0.4.2
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
appVersion: v0.5.0
24+
25+
dependencies:
26+
- name: osm
27+
version: "0.5.0"
28+
repository: "https://openservicemesh.github.io/osm"
29+

charts/osm/templates/osm-label.yml charts/osm-arc/templates/osm-label.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apiVersion: v1
66
kind: ServiceAccount
77
metadata:
88
name: osm-label-account
9-
namespace: {{ .Values.OpenServiceMesh.namespace }}
9+
namespace: {{ .Release.Namespace }}
1010
annotations:
1111
"helm.sh/hook-weight": "20"
1212
"helm.sh/hook": pre-install
@@ -37,7 +37,7 @@ metadata:
3737
subjects:
3838
- kind: ServiceAccount
3939
name: osm-label-account
40-
namespace: {{ .Values.OpenServiceMesh.namespace }}
40+
namespace: {{ .Release.Namespace }}
4141
roleRef:
4242
kind: ClusterRole
4343
name: osm-label-cluster-role
@@ -55,7 +55,7 @@ metadata:
5555
subjects:
5656
- kind: ServiceAccount
5757
name: osm-label-account
58-
namespace: {{ .Values.OpenServiceMesh.namespace }}
58+
namespace: {{ .Release.Namespace }}
5959
roleRef:
6060
kind: ClusterRole
6161
name: osm-label-cluster-role
@@ -73,7 +73,7 @@ metadata:
7373
subjects:
7474
- kind: ServiceAccount
7575
name: osm-label-account
76-
namespace: {{ .Values.OpenServiceMesh.namespace }}
76+
namespace: {{ .Release.Namespace }}
7777
roleRef:
7878
kind: ClusterRole
7979
name: osm-label-cluster-role
@@ -83,7 +83,7 @@ apiVersion: batch/v1
8383
kind: Job
8484
metadata:
8585
name: osm-label
86-
namespace: {{ .Values.OpenServiceMesh.namespace }}
86+
namespace: {{ .Release.Namespace }}
8787
annotations:
8888
"helm.sh/hook-weight": "35"
8989
"helm.sh/hook": pre-install
@@ -109,7 +109,7 @@ spec:
109109
- name: labelnamespaces
110110
value: {{ .Values.OpenServiceMesh.ignoreNamespaces }}
111111
- name: osmnamespace
112-
value: {{ .Values.OpenServiceMesh.namespace }}
112+
value: {{ .Release.Namespace }}
113113
securityContext:
114114
allowPrivilegeEscalation: false
115115
command:

charts/osm-arc/values.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Default values for osm-arc.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
OpenServiceMesh:
5+
ignoreNamespaces: "kube-system azure-arc arc-osm-system"
6+
7+
osm:
8+
OpenServiceMesh:
9+
enableDebugServer: true
10+
enablePermissiveTrafficPolicy: true
11+
enableFluentbit: true
12+
image:
13+
registry: mcr.microsoft.com/oss/openservicemesh
14+
fluentBitImage:
15+
name: fluentbit-logger
16+
registry: "mcr.microsoft.com/oss/fluent"
17+
tag: "v1.6.2"
18+
pullPolicy: IfNotPresent
19+
enforceSingleMesh: true
20+
enablePrometheus: false
21+
deployJaeger: false
22+
sidecarImage: mcr.microsoft.com/oss/envoyproxy/envoy:v1.15.0
23+
24+
alpine:
25+
image:
26+
name: "mcr.microsoft.com/azure-policy/alpine"
27+
tag: "prod_20200505.1"

charts/osm/README.md

-44
This file was deleted.

charts/osm/crds/access.yaml

-90
This file was deleted.

charts/osm/crds/specs.yaml

-96
This file was deleted.

0 commit comments

Comments
 (0)