Skip to content

Commit

Permalink
🚀 deploy snapshot controller
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiljha committed Mar 16, 2024
1 parent cb574ab commit b648757
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 4 deletions.
16 changes: 16 additions & 0 deletions apps/snapshot_controller.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from transpire import kustomize
from transpire.utils import get_versions

name = "snapshot-controller"
namespace = "kube-system"

def objects():
yield from kustomize.build_kustomization_from_versions(
name="snapshot-controller-crds",
versions=get_versions(__file__),
)

yield from kustomize.build_kustomization_from_versions(
name="snapshot-controller",
versions=get_versions(__file__),
)
31 changes: 27 additions & 4 deletions apps/velero.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from transpire import helm
from transpire.utils import get_versions

name = "velero"

values = {
# At least one plugin provider image is required.
"initContainers": [
Expand All @@ -27,18 +29,39 @@
},
],
},

],
"deployNodeAgent": "true",
"configuration": {
"backupStorageLocation": [],
"backupStorageLocation": [
{
"name": "default",
"provider": "velero.io/aws",
"bucket": "velero",
"credential": {"key": "aws-config", "name": "minio-credentials"},
"config": {
"region": "minio",
"s3ForcePathStyle": "true",
"s3Url": "http://hal.ocf.berkeley.edu:9000",
},
}
],
"volumeSnapshotLocation": [],
},
}

name = "velero"


def objects():
yield {
"apiVersion": "ricoberger.de/v1alpha1",
"kind": "VaultSecret",
"metadata": {"name": "minio-credentials"},
"spec": {
"keys": ["aws-config"],
"path": f"kvv2/{name}/minio-credentials",
"type": "Opaque",
},
}

yield from helm.build_chart_from_versions(
name="velero",
versions=get_versions(__file__),
Expand Down
10 changes: 10 additions & 0 deletions apps/versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ version = "1.13.6"
helm = "https://charts.rook.io/release"
chart = "rook-ceph"

[snapshot-controller]
version = "v7.0.1"
repo_url = "https://github.com/kubernetes-csi/external-snapshotter.git/"
path = "deploy/kubernetes/snapshot-controller"

[snapshot-controller-crds]
version = "v7.0.1"
repo_url = "https://github.com/kubernetes-csi/external-snapshotter.git/"
path = "client/config/crd"

[teleport]
version = "14.2.4"
helm = "https://charts.releases.teleport.dev"
Expand Down
1 change: 1 addition & 0 deletions cluster.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ postgres-operator = { path = "apps/postgres_operator.py" }
ocf-io = { path = "apps/ocf_io.py" }
rabbitmq = { path = "apps/rabbitmq.py" }
rook = { path = "apps/rook.py" }
snapshot-controller = { path = "apps/snapshot_controller.py" }
teleport = { path = "apps/teleport.py" }
vault = { path = "apps/vault.py" }
vault-secrets-operator = { path = "apps/vault_secrets_operator.py" }
Expand Down

0 comments on commit b648757

Please sign in to comment.