replace all yaml by tmpl files

pull/9748/head
alonyb 2020-11-20 12:31:52 -05:00
parent 06cf8e8041
commit be1b24c08a
1 changed files with 22 additions and 22 deletions

View File

@ -307,7 +307,7 @@ var Addons = map[string]*Addon{
"gvisor-pod.yaml", "gvisor-pod.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/gvisor/gvisor-runtimeclass.yaml", "deploy/addons/gvisor/gvisor-runtimeclass.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"gvisor-runtimeclass.yaml", "gvisor-runtimeclass.yaml",
"0640"), "0640"),
@ -355,56 +355,56 @@ var Addons = map[string]*Addon{
}, false, "metallb"), }, false, "metallb"),
"ambassador": NewAddon([]*BinAsset{ "ambassador": NewAddon([]*BinAsset{
MustBinAsset( MustBinAsset(
"deploy/addons/ambassador/ambassador-operator-crds.yaml", "deploy/addons/ambassador/ambassador-operator-crds.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"ambassador-operator-crds.yaml", "ambassador-operator-crds.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/ambassador/ambassador-operator.yaml", "deploy/addons/ambassador/ambassador-operator.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"ambassador-operator.yaml", "ambassador-operator.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/ambassador/ambassadorinstallation.yaml", "deploy/addons/ambassador/ambassadorinstallation.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"ambassadorinstallation.yaml", "ambassadorinstallation.yaml",
"0640"), "0640"),
}, false, "ambassador"), }, false, "ambassador"),
"gcp-auth": NewAddon([]*BinAsset{ "gcp-auth": NewAddon([]*BinAsset{
MustBinAsset( MustBinAsset(
"deploy/addons/gcp-auth/gcp-auth-ns.yaml", "deploy/addons/gcp-auth/gcp-auth-ns.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"gcp-auth-ns.yaml", "gcp-auth-ns.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/gcp-auth/gcp-auth-service.yaml", "deploy/addons/gcp-auth/gcp-auth-service.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"gcp-auth-service.yaml", "gcp-auth-service.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/gcp-auth/gcp-auth-webhook.yaml.tmpl", "deploy/addons/gcp-auth/gcp-auth-webhook.yaml.tmpl.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"gcp-auth-webhook.yaml", "gcp-auth-webhook.yaml",
"0640"), "0640"),
}, false, "gcp-auth"), }, false, "gcp-auth"),
"volumesnapshots": NewAddon([]*BinAsset{ "volumesnapshots": NewAddon([]*BinAsset{
MustBinAsset( MustBinAsset(
"deploy/addons/volumesnapshots/snapshot.storage.k8s.io_volumesnapshotclasses.yaml", "deploy/addons/volumesnapshots/snapshot.storage.k8s.io_volumesnapshotclasses.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"snapshot.storage.k8s.io_volumesnapshotclasses.yaml", "snapshot.storage.k8s.io_volumesnapshotclasses.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/volumesnapshots/snapshot.storage.k8s.io_volumesnapshotcontents.yaml", "deploy/addons/volumesnapshots/snapshot.storage.k8s.io_volumesnapshotcontents.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"snapshot.storage.k8s.io_volumesnapshotcontents.yaml", "snapshot.storage.k8s.io_volumesnapshotcontents.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/volumesnapshots/snapshot.storage.k8s.io_volumesnapshots.yaml", "deploy/addons/volumesnapshots/snapshot.storage.k8s.io_volumesnapshots.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"snapshot.storage.k8s.io_volumesnapshots.yaml", "snapshot.storage.k8s.io_volumesnapshots.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/volumesnapshots/rbac-volume-snapshot-controller.yaml", "deploy/addons/volumesnapshots/rbac-volume-snapshot-controller.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"rbac-volume-snapshot-controller.yaml", "rbac-volume-snapshot-controller.yaml",
"0640"), "0640"),
@ -416,57 +416,57 @@ var Addons = map[string]*Addon{
}, false, "volumesnapshots"), }, false, "volumesnapshots"),
"csi-hostpath-driver": NewAddon([]*BinAsset{ "csi-hostpath-driver": NewAddon([]*BinAsset{
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/rbac/rbac-external-attacher.yaml", "deploy/addons/csi-hostpath-driver/rbac/rbac-external-attacher.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"rbac-external-attacher.yaml", "rbac-external-attacher.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/rbac/rbac-external-provisioner.yaml", "deploy/addons/csi-hostpath-driver/rbac/rbac-external-provisioner.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"rbac-external-provisioner.yaml", "rbac-external-provisioner.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/rbac/rbac-external-resizer.yaml", "deploy/addons/csi-hostpath-driver/rbac/rbac-external-resizer.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"rbac-external-resizer.yaml", "rbac-external-resizer.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/rbac/rbac-external-snapshotter.yaml", "deploy/addons/csi-hostpath-driver/rbac/rbac-external-snapshotter.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"rbac-external-snapshotter.yaml", "rbac-external-snapshotter.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-attacher.yaml", "deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-attacher.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"csi-hostpath-attacher.yaml", "csi-hostpath-attacher.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-driverinfo.yaml", "deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-driverinfo.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"csi-hostpath-driverinfo.yaml", "csi-hostpath-driverinfo.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-plugin.yaml", "deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-plugin.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"csi-hostpath-plugin.yaml", "csi-hostpath-plugin.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-provisioner.yaml", "deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-provisioner.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"csi-hostpath-provisioner.yaml", "csi-hostpath-provisioner.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-resizer.yaml", "deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-resizer.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"csi-hostpath-resizer.yaml", "csi-hostpath-resizer.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-snapshotter.yaml", "deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-snapshotter.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"csi-hostpath-snapshotter.yaml", "csi-hostpath-snapshotter.yaml",
"0640"), "0640"),
MustBinAsset( MustBinAsset(
"deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-storageclass.yaml", "deploy/addons/csi-hostpath-driver/deploy/csi-hostpath-storageclass.yaml.tmpl",
vmpath.GuestAddonsDir, vmpath.GuestAddonsDir,
"csi-hostpath-storageclass.yaml", "csi-hostpath-storageclass.yaml",
"0640"), "0640"),