Skip to content

Commit

Permalink
Ezswitch Helm Release: 1.0.4 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
GitLab CI committed Jan 9, 2025
1 parent ffbced6 commit ac7c8df
Showing 11 changed files with 36 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: ezswitch
description: A Helm chart for ezswitch-controller
version: 1.0.3
version: 1.0.4
43 changes: 21 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
**Table of Contents**
- [Overview](#overview)
- [Prerequisites](#prerequisites)
- [Quickstart](#quickstart)
- [Installation](#installation)
- [Kubectl-Zesty Plugin (Quickstart)](#kubectl-zesty-plugin-quickstart)
- [Manual Installation](#manual-installation)
- [Add the Zesty repository to Helm](#add-the-zesty-ezswitch-repository-to-helm)
@@ -16,14 +16,14 @@
- [The EZSwitch Custom Resource](#the-ezswitch-custom-resource)
- [Migration Phases (.status.status)](#migration-phases-statusstatus)
- [Commands](#commands)
- [start](#start-stsname)
- [migrate](#migrate-stsname)
- [pause](#pause-stsname)
- [resume](#resume-stsname)
- [abort](#abort-stsname)
- [rollback](#rollback-stsname)
- [status](#status-stsname)
- [set](#set-stsname)
- [start](#start)
- [migrate](#migrate)
- [pause](#pause)
- [resume](#resume)
- [abort](#abort)
- [rollback](#rollback)
- [status](#status)
- [set](#set)
- [Logging and Monitoring](#logging-and-monitoring)
- [GitOps and Version Control](#gitops-and-version-control)
- [Troubleshooting](#troubleshooting)
@@ -58,7 +58,7 @@ This is best for quick, streamlined migrations via a set of helpful commands. Th
Make sure kubectl zesty plugin is installed and up to date by following the kubectl zesty plugin installation steps: [kubectl-zesty plugin](https://github.com/zesty-co/kubectl-plugin)

```bash
kubectl zesty ezswitch start <stsName> [--autoMigrate=<true|false>] [--set key=value ...]
kubectl zesty ezswitch start <stsName> [--autoMigrate=<true|false>] [--helm-namespace=<namespace>] [--set key=value ...]
```
For example:
```bash
@@ -80,9 +80,7 @@ helm repo update
```
#### Install the chart
```bash
helm install zesty-ezswitch \
[-n <NAMESPACE>] \
zestyezswitchrepo/zesty-ezswitch-helm
helm install zesty-ezswitch [-n <NAMESPACE>] zestyezswitchrepo/zesty-ezswitch-helm --create-namespace
```

#### Helm installation flags
@@ -159,19 +157,20 @@ Below are the available commands, their flags, and descriptions.

### start <stsName>

Starts the migration process, installing EZSwitch components (including the Helm chart if not already installed via the CLI approach) and creating the EZSwitch CR.
Starts the migration process, installing EZSwitch components (including the Helm chart if not already installed) and creating the EZSwitch CR. By default all ezswitch resources will be on the `zesty-ezswitch` namespace

| Flag | Default | Description |
|------------------|-------------------|------------------------------------------------------------------------|
| --autoMigrate | true | Run process automatically to completion if true. |
| --stsNamespace | default | Namespace of the original STS. |
| --set key=value | (none) | Override Helm chart values during installation. |
| --logLevel int | 4 | Set the log level of ezswitch-controller. |
| --zestyStsName | <stsName>-zesty | Name of the new Zesty-based STS. |
| Flag | Default | Description |
|--------------------|-------------------|------------------------------------------------------------------------|
| --autoMigrate | true | Run process automatically to completion if true. |
| --stsNamespace | default | Namespace of the original STS. |
| --set key=value | (none) | Override Helm chart values during installation. |
| --logLevel int | 4 | Set the log level of ezswitch-controller. |
| --zestyStsName | <stsName>-zesty | Name of the new Zesty-based STS. |
| --helm-namespace | zesty-ezswitch | Namespace where ezswitch resources will be created |

**Example**:
```bash
kubectl zesty ezswitch start myapp-sts --autoMigrate=false --set logLevel=4
kubectl zesty ezswitch start myapp-sts --autoMigrate=false --helm-namespace=custom-namespace --set logLevel=4
```
### migrate <stsName>

10 changes: 5 additions & 5 deletions index.yaml
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@ apiVersion: v1
entries:
ezswitch:
- apiVersion: v2
created: "2025-01-08T16:13:09.936602403Z"
created: "2025-01-09T09:29:54.632466901Z"
description: A Helm chart for ezswitch-controller
digest: 088ece3c2be4937ad55b91ba7656bbbd33222915dbc6b88c81a1fe073fc14e92
digest: 290149c780efe2a7176bf198828be649fb80953d9ce51908dc5c14dd4a51955f
name: ezswitch
urls:
- https://raw.githubusercontent.com/zesty-co/zesty-ezswitch-helm/main/ezswitch-1.0.3.tgz
version: 1.0.3
generated: "2025-01-08T16:13:09.935225825Z"
- https://raw.githubusercontent.com/zesty-co/zesty-ezswitch-helm/main/ezswitch-1.0.4.tgz
version: 1.0.4
generated: "2025-01-09T09:29:54.631147516Z"
Original file line number Diff line number Diff line change
@@ -12,4 +12,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: zesty-ezswitch-ezswitch-controller
namespace: ezswitch
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: zesty-ezswitch-ezswitch-controller
namespace: ezswitch
namespace: '{{ .Release.Namespace }}'
2 changes: 1 addition & 1 deletion templates/deployment-zesty-ezswitch-controller.yaml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ metadata:
app.kubernetes.io/name: ezswitch-controller
control-plane: ezswitch-controller
name: zesty-ezswitch-controller
namespace: ezswitch
namespace: '{{ .Release.Namespace }}'
spec:
replicas: 1
selector:
4 changes: 0 additions & 4 deletions templates/namespace-ezswitch.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion templates/role-zesty-ezswitch-leader-election-role.yaml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ metadata:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: ezswitch-controller
name: zesty-ezswitch-leader-election-role
namespace: ezswitch
namespace: '{{ .Release.Namespace }}'
rules:
- apiGroups:
- ""
Original file line number Diff line number Diff line change
@@ -5,12 +5,12 @@ metadata:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: ezswitch-controller
name: zesty-ezswitch-leader-election-rolebinding
namespace: ezswitch
namespace: '{{ .Release.Namespace }}'
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: zesty-ezswitch-leader-election-role
subjects:
- kind: ServiceAccount
name: zesty-ezswitch-ezswitch-controller
namespace: ezswitch
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
@@ -5,4 +5,4 @@ metadata:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: ezswitch-controller
name: zesty-ezswitch-ezswitch-controller
namespace: ezswitch
namespace: '{{ .Release.Namespace }}'
4 changes: 2 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
logLevel: 6
controller:
image: 672188301118.dkr.ecr.eu-west-1.amazonaws.com/zd/k8s/ezswitch-controller
tag: 1.0.3
tag: 1.0.4
syncJob:
image: 672188301118.dkr.ecr.eu-west-1.amazonaws.com/zd/k8s/sync-pvcs
tag: 1.0.3
tag: 1.0.4

0 comments on commit ac7c8df

Please sign in to comment.