Skip to content

Commit

Permalink
Merge pull request #45 from phillc/newlinefix
Browse files Browse the repository at this point in the history
Wrapping cat in an echo with double quotes normalizes end of file CRLF
  • Loading branch information
phillc authored Mar 30, 2020
2 parents f13fe4f + 210c423 commit 09c7e6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions hack/release-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ last="$(ls -dq "${manifests}"* | tail -n 1)"
# Build release manifest
for manifest in "${manifests}"*; do
echo "# ${manifest}"
cat "${manifest}" | sed -e "s|{{ .Values.image.tag }}|"${TAG}"|"
echo "$(cat ${manifest})" | sed -e "s|{{ .Values.image.tag }}|"${TAG}"|"

# Don't add the separator if it's the last manifest
if [[ "${manifest}" != "${last}" ]]; then
echo -e "\n---"
echo -e "---"
fi
done > "${RELEASES}/${TAGGED_RELEASE}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ spec:
to use for any in-tree plugins replaced by this driver.
pattern: in-tree|csi
type: string

---
# pkg/linode-bs/deploy/kubernetes/02-csi-driver.yaml
# Requires CSIDriverRegistry feature gate (alpha in 1.12)
Expand Down Expand Up @@ -88,7 +87,6 @@ spec:
description: Indicates this CSI volume driver requires additional pod
information (like podName, podUID, etc.) during mount operations.
type: string

---
# pkg/linode-bs/deploy/kubernetes/03-accounts-roles-bindings.yaml
##### Node Service Account, Roles, RoleBindings
Expand Down Expand Up @@ -251,7 +249,6 @@ roleRef:
kind: ClusterRole
name: external-snapshotter-role
apiGroup: rbac.authorization.k8s.io

---
# pkg/linode-bs/deploy/kubernetes/04-csi-driver-instance.yaml
apiVersion: csi.storage.k8s.io/v1alpha1
Expand All @@ -261,7 +258,6 @@ metadata:
spec:
attachRequired: true
podInfoOnMountVersion: "v1"

---
# pkg/linode-bs/deploy/kubernetes/05-csi-storageclass.yaml
kind: StorageClass
Expand All @@ -280,7 +276,6 @@ metadata:
namespace: kube-system
provisioner: linodebs.csi.linode.com
reclaimPolicy: Retain

---
# pkg/linode-bs/deploy/kubernetes/06-ss-csi-linode-controller.yaml
kind: StatefulSet
Expand Down Expand Up @@ -386,7 +381,6 @@ spec:
name: get-linode-id
# octal mode 755
defaultMode: 493

---
# pkg/linode-bs/deploy/kubernetes/07-ds-csi-linode-node.yaml
kind: DaemonSet
Expand Down Expand Up @@ -530,7 +524,6 @@ spec:
hostPath:
path: /sys
type: Directory

---
# pkg/linode-bs/deploy/kubernetes/08-cm-get-linode-id.yaml
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ spec:
to use for any in-tree plugins replaced by this driver.
pattern: in-tree|csi
type: string

---
# pkg/linode-bs/deploy/kubernetes/02-csi-driver.yaml
# Requires CSIDriverRegistry feature gate (alpha in 1.12)
Expand Down Expand Up @@ -88,7 +87,6 @@ spec:
description: Indicates this CSI volume driver requires additional pod
information (like podName, podUID, etc.) during mount operations.
type: string

---
# pkg/linode-bs/deploy/kubernetes/03-accounts-roles-bindings.yaml
##### Node Service Account, Roles, RoleBindings
Expand Down Expand Up @@ -251,7 +249,6 @@ roleRef:
kind: ClusterRole
name: external-snapshotter-role
apiGroup: rbac.authorization.k8s.io

---
# pkg/linode-bs/deploy/kubernetes/04-csi-driver-instance.yaml
apiVersion: csi.storage.k8s.io/v1alpha1
Expand All @@ -261,7 +258,6 @@ metadata:
spec:
attachRequired: true
podInfoOnMountVersion: "v1"

---
# pkg/linode-bs/deploy/kubernetes/05-csi-storageclass.yaml
kind: StorageClass
Expand All @@ -280,7 +276,6 @@ metadata:
namespace: kube-system
provisioner: linodebs.csi.linode.com
reclaimPolicy: Retain

---
# pkg/linode-bs/deploy/kubernetes/06-ss-csi-linode-controller.yaml
kind: StatefulSet
Expand Down Expand Up @@ -386,7 +381,6 @@ spec:
name: get-linode-id
# octal mode 755
defaultMode: 493

---
# pkg/linode-bs/deploy/kubernetes/07-ds-csi-linode-node.yaml
kind: DaemonSet
Expand Down Expand Up @@ -530,7 +524,6 @@ spec:
hostPath:
path: /sys
type: Directory

---
# pkg/linode-bs/deploy/kubernetes/08-cm-get-linode-id.yaml
apiVersion: v1
Expand Down

0 comments on commit 09c7e6a

Please sign in to comment.