v1.7.0 Release Notes
Zadig v1.7.0 was released on November 16, 2021.
# Feature List
- Support user management
- Support project permission management
- Support external system common links management
- Managed project workflows support Webhook triggered service updates
# Version Upgrade Process
Background Information
- Kubernetes cluster version: v1.16~v1.21.
- Cross-version upgrades are not supported. If the current Zadig system version < v1.6.0, please first refer to v1.6.0 Upgrade Method to upgrade to v1.6.0, then follow the method below to upgrade to v1.7.0.
- User account information is not retained in v1.7.0. After installation, use the built-in account and password provided by the system to create new accounts in user management.
# Upgrade Process for Existing K8s Cluster - High Availability Database
# Step 1: Backup Data
For high availability databases, configure MongoDB full backup through cloud provider.
# Step 2: Uninstall Zadig
- Download uninstall script(opens new window)
- Set the namespace to uninstall and execute the uninstall script
export NAMESPACE=<Namespace where Zadig is located>
bash uninstall.sh
1
2
2
# Step 3: Install Zadig v1.7.0
- Download installation script(opens new window), execute the installation script.
export ENCRYPTION_KEY=<ENCRYPTION_KEY obtained during first installation>
# Configure necessary parameters, refer to [Installation on Existing Kubernetes](/v1.7.1/install/install-on-k8s/)
./install.sh
1
2
3
2
3
- Download data synchronization tool(opens new window), execute upgrade Job.
- Modify the last line script
value: {{ default "http" .Values.protocol }}://{{- include "zadig.endpoint" . }}to the actual system access domain/IP - Modify
mongodb://zadig-mongodb:27017to the corresponding connection string - Modify
zadigin the line below-dto the corresponding dbname - Execute the following command
kubectl apply -f 1.7.0-upgrade.yaml -n <Zadig namespace>1 - Modify the last line script
- Ensure Job executes successfully
# Step 4: Verify Installation Results
- Version information confirmation
- Access
<Zadig address after installation>/signin - Check the info prompt in the bottom right corner of the login interface, Version information should be 1.7.0
- Access
- New version correctness check, recommended validation points
- Administrator accesses any normally used project in the system
- Execute workflow to deploy and update services in specified environment
- Create integration environment, delete integration environment, update integration environment
- Submit code changes, confirm whether workflows with Webhook configured are triggered as expected
# Failure Rollback Process
- Uninstall Zadig (method Step 2)
- Reinstall Zadig v1.6.0
Note: Do not enter the system after installation completion, wait for data recovery
- Rollback data to backup version
# Ensure the operating machine has MongoDB client
# Execute the following command for port forwarding
kubectl port-forward svc/zadig-MongoDB -n <Namespace where Zadig is located> 27090:27017
# Restore data
mongorestore mongodb://localhost:27090 <backup data file/directory>
1
2
3
4
5
2
3
4
5
- Execute rollback Job
- Download data rollback tool(opens new window)
- Modify the last line of YAML to actual system access domain/IP
- Execute the following command
kubectl apply -f 1.7.0-revert.yaml -n <Zadig namespace>1
# Upgrade Process for Existing K8s Cluster - Using Zadig Built-in MongoDB
# Step 1: Backup Data
Backup of MongoDB installed by Zadig
# Ensure the operating machine has MongoDB client
# Find Pod name starting with zadig-mongodb, execute the following command for port forwarding
kubectl port-forward svc/zadig-mongodb -n <Namespace where Zadig is located> 27090:27017
# Backup data
mongodump --out=<desired path> --db=zadig mongodb://localhost:27090
1
2
3
4
5
2
3
4
5
# Step 2: Uninstall Zadig
- Download uninstall script(opens new window)
- Set the namespace to uninstall and execute the uninstall script
export NAMESPACE=<Namespace where Zadig is located>
bash uninstall.sh
1
2
2
# Step 3: Install Zadig v1.7.0
- Download installation script(opens new window), execute the installation script.
export ENCRYPTION_KEY=<ENCRYPTION_KEY obtained during first installation>
# Configure necessary parameters, refer to [Installation on Existing Kubernetes](/v1.7.1/install/install-on-k8s/)
./install.sh
1
2
3
2
3
- Ensure Pod status is normal after installation completion (if abnormal, resolve yourself)
- Restore data to backup version
# Ensure the operating machine has MongoDB client
# Execute the following command to get MongoDB Pod name
kubectl get pods -n <Namespace where Zadig is located>
# Find Pod name starting with zadig-mongodb, execute the following command for port forwarding
kubectl port-forward pod/<Pod name obtained in previous step> -n <Namespace where Zadig is located> 27090:27017
# If using MongoDB installed by Zadig, restore data
mongorestore mongodb://localhost:27090 <backup data file/directory>
1
2
3
4
5
6
7
2
3
4
5
6
7
- Download data synchronization tool(opens new window), execute upgrade Job.
- Modify the last line script in YAML
value: {{ default "http" .Values.protocol }}://{{- include "zadig.endpoint" . }}to actual system access domain/IP - Execute the following command.
kubectl apply -f 1.7.0-upgrade.yaml -n <Zadig namespace>1 - Modify the last line script in YAML
- Ensure Job executes successfully.
# Step 4: Verify Installation Results
- Version information confirmation
- Access
<Zadig address after installation>/signin - Check the info prompt in the bottom right corner of the login interface, Version information should be 1.7.0
- Access
- New version correctness check, recommended validation points
- Administrator accesses any normally used project in the system
- Execute workflow to deploy and update services in specified environment
- Create integration environment, delete integration environment, update integration environment
- Submit code changes, confirm whether workflows with Webhook configured are triggered as expected
# Failure Rollback Process
- Uninstall Zadig (method Step 2)
- Reinstall Zadig v1.6.0
Note: Do not enter the system after installation completion, wait for data recovery
- Rollback data to backup version
# Ensure the operating machine has MongoDB client
# Execute the following command for port forwarding
kubectl port-forward svc/zadig-mongodb -n <Namespace where Zadig is located> 27090:27017
# Restore data
mongorestore mongodb://localhost:27090 <backup data file/directory>
1
2
3
4
5
2
3
4
5
- Execute rollback Job
- Download data rollback tool(opens new window)
- Modify YAML content according to your Zadig installation method:
- Modify the last line to actual system access domain/IP
- Modify
mongodb://zadig-mongodb:27017to corresponding connection string - Modify
zadigin the line below-dto corresponding dbname
- Execute the following command
kubectl apply -f 1.7.0-revert.yaml -n <Zadig namespace>1
# Upgrade Process for Helm Command - High Availability Database
# Step 1: Backup Data
For high availability databases, configure MongoDB full backup through cloud provider.
# Step 2: Uninstall Zadig
helm list -n <Namespace where Zadig is located> # Get Zadig release name
helm uninstall <release name> -n <Namespace where Zadig is located>
1
2
2
# Step 3: Install Zadig v1.7.0
- Generate installation command according to Helm Command Generator(opens new window)
(Execute generated Helm installation command) helm install ...
1
- Download data synchronization tool(opens new window), execute upgrade Job.
- Modify the last line script
value: {{ default "http" .Values.protocol }}://{{- include "zadig.endpoint" . }}to actual system access domain/IP - Modify
mongodb://zadig-mongodb:27017to corresponding connection string - Modify
zadigin the line below-dto corresponding dbname - Execute the following command
kubectl apply -f 1.7.0-upgrade.yaml -n <Zadig namespace>1 - Modify the last line script
- Ensure Job executes successfully
# Step 4: Verify Installation Results
- Version information confirmation
- Access
<Zadig address after installation>/signin - Check the info prompt in the bottom right corner of the login interface, Version information should be 1.7.0
- Access
- New version correctness check, recommended validation points
- Administrator accesses any normally used project in the system
- Execute workflow to deploy and update services in specified environment
- Create integration environment, delete integration environment, update integration environment
- Submit code changes, confirm whether workflows with Webhook configured are triggered as expected
# Failure Rollback Process
- Uninstall Zadig (method Step 2)
- Reinstall Zadig v1.6.0
Note: Do not enter the system after installation completion, wait for data recovery
- Rollback data to backup version
# Ensure the operating machine has MongoDB client
# Execute the following command for port forwarding
kubectl port-forward svc/zadig-MongoDB -n <Namespace where Zadig is located> 27090:27017
# Restore data
mongorestore mongodb://localhost:27090 <backup data file/directory>
1
2
3
4
5
2
3
4
5
- Execute rollback Job
- Download data rollback tool(opens new window)
- Modify the last line of YAML to actual system access domain/IP
- Execute the following command
kubectl apply -f 1.7.0-revert.yaml -n <Zadig namespace>1
# Upgrade Process for Helm Command - Using Zadig Built-in MongoDB
# Step 1: Backup Data
Backup of MongoDB installed by Zadig
# Ensure the operating machine has MongoDB client
# Find Pod name starting with zadig-mongodb, execute the following command for port forwarding
kubectl port-forward svc/zadig-mongodb -n <Namespace where Zadig is located> 27090:27017
# Backup data
mongodump --out=<desired path> --db=zadig mongodb://localhost:27090
1
2
3
4
5
2
3
4
5
# Step 2: Uninstall Zadig
helm list -n <Namespace where Zadig is located> # Get Zadig release name
helm uninstall <release name> -n <Namespace where Zadig is located>
1
2
2
# Step 3: Install Zadig v1.7.0
- Generate installation command according to Helm Command Generator(opens new window)
(Execute generated Helm installation command) helm install ...
1
- Ensure Pod status is normal after installation completion (if abnormal, resolve yourself)
- Restore data to backup version
# Ensure the operating machine has MongoDB client
# Execute the following command to get MongoDB Pod name
kubectl get pods -n <Namespace where Zadig is located>
# Find Pod name starting with zadig-mongodb, execute the following command for port forwarding
kubectl port-forward pod/<Pod name obtained in previous step> -n <Namespace where Zadig is located> 27090:27017
# If using MongoDB installed by Zadig, restore data
mongorestore mongodb://localhost:27090 <backup data file/directory>
1
2
3
4
5
6
7
2
3
4
5
6
7
- Download data synchronization tool(opens new window), execute upgrade Job.
- Modify the last line script in YAML
value: {{ default "http" .Values.protocol }}://{{- include "zadig.endpoint" . }}to actual system access domain/IP - Execute the following command.
kubectl apply -f 1.7.0-upgrade.yaml -n <Zadig namespace>1 - Modify the last line script in YAML
- Ensure Job executes successfully.
# Step 4: Verify Installation Results
- Version information confirmation
- Access
<Zadig address after installation>/signin - Check the info prompt in the bottom right corner of the login interface, Version information should be 1.7.0
- Access
- New version correctness check, recommended validation points
- Administrator accesses any normally used project in the system
- Execute workflow to deploy and update services in specified environment
- Create integration environment, delete integration environment, update integration environment
- Submit code changes, confirm whether workflows with Webhook configured are triggered as expected
# Failure Rollback Process
- Uninstall Zadig (method Step 2)
- Reinstall Zadig v1.6.0
Note: Do not enter the system after installation completion, wait for data recovery
- Rollback data to backup version
# Ensure the operating machine has MongoDB client
# Execute the following command for port forwarding
kubectl port-forward svc/zadig-mongodb -n <Namespace where Zadig is located> 27090:27017
# Restore data
mongorestore mongodb://localhost:27090 <backup data file/directory>
1
2
3
4
5
2
3
4
5
- Execute rollback Job
- Download data rollback tool(opens new window)
- Modify YAML content according to your Zadig installation method:
- Modify the last line to actual system access domain/IP
- Modify
mongodb://zadig-mongodb:27017to corresponding connection string - Modify
zadigin the line below-dto corresponding dbname
- Execute the following command
kubectl apply -f 1.7.0-revert.yaml -n <Zadig namespace>1


