-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: updating Helm templates to include release metadata (#304)
* ci: updating Helm templates to include release metadata Signed-off-by: SRIKUMAR VENUGOPAL <srikumarv@ie.ibm.com> * chore: update Makefile to separate plugin from component tags Signed-off-by: SRIKUMAR VENUGOPAL <srikumarv@ie.ibm.com> * fix: update main Makefile to create namespace Signed-off-by: SRIKUMAR VENUGOPAL <srikumarv@ie.ibm.com> --------- Signed-off-by: SRIKUMAR VENUGOPAL <srikumarv@ie.ibm.com>
- Loading branch information
1 parent
8ec79a3
commit 4ea7e88
Showing
9 changed files
with
1,098 additions
and
614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
DATASET_OPERATOR_NAMESPACE=dlf | ||
|
||
COMMON_IMAGE_TAG ?= latest | ||
COMPONENT_TAG ?= latest | ||
CSI_PLUGIN_TAG ?= latest | ||
|
||
HELM_IMAGE_TAGS = --set global.namespaceYaml="true" --set csi-nfs-chart.csinfs.tag=$(COMMON_IMAGE_TAG) --set csi-s3-chart.csis3.tag=$(COMMON_IMAGE_TAG) --set dataset-operator-chart.generatekeys.tag=$(COMMON_IMAGE_TAG) --set dataset-operator-chart.datasetoperator.tag=$(COMMON_IMAGE_TAG) | ||
HELM_CSI_OPTIONS = --set csi-nfs-chart.csinfs.tag=$(CSI_PLUGIN_TAG) --set csi-s3-chart.csis3.tag=$(CSI_PLUGIN_TAG) | ||
HELM_OPERATOR_OPTIONS = --set dataset-operator-chart.generatekeys.tag=$(COMPONENT_TAG) --set dataset-operator-chart.datasetoperator.tag=$(COMPONENT_TAG) | ||
|
||
manifests: | ||
helm template $(HELM_IMAGE_TAGS) --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default --set csi-h3-chart.enabled="false" chart/ > release-tools/manifests/dlf.yaml | ||
helm template $(HELM_IMAGE_TAGS) --set global.sidecars.kubeletPath="/var/data/kubelet" --set global.sidecars.kubeletPath="/var/data/kubelet" --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default chart/ > release-tools/manifests/dlf-ibm-k8s.yaml | ||
helm template $(HELM_IMAGE_TAGS) --set global.type="oc" --set csi-h3-chart.enabled="false" --set global.sidecars.kubeletPath="/var/data/kubelet" --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default chart/ > release-tools/manifests/dlf-ibm-oc.yaml | ||
helm template $(HELM_IMAGE_TAGS) --set global.type="oc" --set csi-h3-chart.enabled="false" --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default chart/ > release-tools/manifests/dlf-oc.yaml | ||
helm template $(HELM_CSI_OPTIONS) $(HELM_OPERATOR_OPTIONS) --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default --set csi-h3-chart.enabled="false" chart/ > release-tools/manifests/dlf.yaml | ||
helm template $(HELM_CSI_OPTIONS) $(HELM_OPERATOR_OPTIONS) --set global.sidecars.kubeletPath="/var/data/kubelet" --set global.sidecars.kubeletPath="/var/data/kubelet" --set csi-h3-chart.enabled="false" --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default chart/ > release-tools/manifests/dlf-ibm-k8s.yaml | ||
helm template $(HELM_CSI_OPTIONS) $(HELM_OPERATOR_OPTIONS) --set global.type="oc" --set csi-h3-chart.enabled="false" --set global.sidecars.kubeletPath="/var/data/kubelet" --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default chart/ > release-tools/manifests/dlf-ibm-oc.yaml | ||
helm template $(HELM_CSI_OPTIONS) $(HELM_OPERATOR_OPTIONS) --set global.type="oc" --set csi-h3-chart.enabled="false" --namespace=$(DATASET_OPERATOR_NAMESPACE) --name-template=default chart/ > release-tools/manifests/dlf-oc.yaml | ||
undeployment: | ||
kubectl delete -f ./release-tools/manifests/dlf.yaml | ||
kubectl delete ns $(DATASET_OPERATOR_NAMESPACE) | ||
kubectl label namespace default monitor-pods-datasets- | ||
deployment: | ||
kubectl create ns $(DATASET_OPERATOR_NAMESPACE) | ||
kubectl apply -f ./release-tools/manifests/dlf.yaml | ||
kubectl label namespace default monitor-pods-datasets=enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{{- define "common.labels" -}} | ||
app.kubernetes.io/name: "dlf" | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/name: datashim | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
meta.helm.sh/release-name: {{ .Release.Name }} | ||
meta.helm.sh/release-namespace: {{ .Release.Namespace }} | ||
{{- end -}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.