-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathmigration.feature
More file actions
33 lines (32 loc) · 1.29 KB
/
migration.feature
File metadata and controls
33 lines (32 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: Helm chart to Redpanda Operator migration
@skip:gke @skip:aks @skip:eks
Scenario: Migrate from a Helm chart release to a Redpanda custom resource
Given I helm install "redpanda-migration-example" "../charts/redpanda" with values:
"""
# tag::helm-values[]
fullnameOverride: name-override
# end::helm-values[]
# Without the below values, the operator would have to modify the cluster after the migration.
# As this is test specific because we use a local version of the operator, this block is excluded from the helm-values tag above.
statefulset:
sideCars:
image:
repository: localhost/redpanda-operator
tag: dev
"""
When I apply Kubernetes manifest:
"""
# tag::redpanda-custom-resource-manifest[]
---
apiVersion: cluster.redpanda.com/v1alpha2
kind: Redpanda
metadata:
name: redpanda-migration-example
spec:
# This manifest is a copy of Redpanda release Helm values
clusterSpec:
fullnameOverride: name-override
# end::redpanda-custom-resource-manifest[]
"""
Then cluster "redpanda-migration-example" is available
And the cluster "redpanda-migration-example" is healthy