-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backup-restore - Enable functional testing
This change: - updates the cli/restore tool to make it delete the Deployments and StatefulSets Resources that will require a respawn from the sf-operator reconcile. - adds a high-level functional test to simulate the backup/restore process. - removes provious in-depth backup and restore role in order to only keep the high-level test. - updates the CLI documenation Change-Id: I385c83c959f8bc06097b1415f7711097889be79e
- Loading branch information
Showing
23 changed files
with
273 additions
and
387 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
doc/reference/CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Backup and Restore | ||
|
||
The sf-operator CLI provides commands to perform a backup and a restore of a deployment managed by the sf-operator. | ||
|
||
The [backup command](../reference/cli/index.md#backup) can be run periodically to perform a backup of a Software Factory deployment. | ||
The command should be couple with a proper backup system to safely store the backuped data. | ||
|
||
Restoring a backup must be done via the [restore command](../reference/cli/index.md#restore) and by following a specific process: | ||
|
||
1. Deploy a Software Factory CR resource without `ConfigLocation` and Zuul connections definition. | ||
2. Restore the backup with the `restore` command | ||
3. Apply your final Software Factory CR | ||
|
||
## The backup archive | ||
|
||
The archive contains: | ||
|
||
- Some k8s Secret resources (like the Zuul Keystore Secret and Zuul SSH private key Secret) | ||
- The Zuul SQL database content (history of builds) | ||
- The Zuul projects' private keys (the keys stored into Zookeeper and used to encrypt/decrypt in-repo Zuul Secrets) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [in development] | ||
|
||
### Added | ||
|
||
- CLI: restore command and documentation. | ||
- Dev CLI - Add command "go run ./main.go dev getImagesSecurityIssues" to ease getting a small report of HIGH | ||
and CRITICAL Security issues reported by quay.io on container images used by the sf-operator. | ||
|
||
### Changed | ||
|
||
- Zookeeper version bumped to 3.8.4 | ||
- The Operator handles only one Route resource as a 'gateway' pod dispatches incoming connections. | ||
|
||
### Deprecated | ||
### Removed | ||
|
||
- The LogsServer CRD and controller. As there is no identified need for a proper CRD and Controller. | ||
|
||
### Fixed | ||
### Security | ||
|
||
- UBI9/Zookeeper image rebuid to address reported security issues | ||
|
||
## [v0.0.27] - 2024-03-27 | ||
|
||
🐰🔔 Easter release 🐰🔔 | ||
|
||
### Added | ||
|
||
- "Debug" toggle for fluent bit sidecars | ||
- A support for running zuul-executor component external to the cluster (see ADR#014). | ||
- The standalone deployment mode exits 1 when the reconcile is not possible after 300 seconds | ||
- A bundled YAML file containing information about container images used by the operator `controllers/libs/base/static/images.yaml` | ||
|
||
### Changed | ||
|
||
- zookeeper: update liveness and readyness probes to only check SSL access and remove superfluous Service resource called | ||
zookeeper-headless. | ||
- nodepool: update version to 10.0.0 | ||
- zuul: update version to 10.0.0 | ||
- CLI: simplified `SF backup` options to streamline the backup process. | ||
|
||
### Deprecated | ||
### Removed | ||
### Fixed | ||
|
||
- nodepool-builder: fixed the log path configuration when using the fluent bit log forwarder, resulting in much less file access errors appearing in fluent bit logs. | ||
|
||
### Security | ||
|
||
## [v0.0.26] - 2024-03-08 | ||
|
||
### Added | ||
|
||
- CLI: Add the `SF backup` subcommand. This subcommand dumps a Software Factory's most important data for safekeeping. | ||
|
||
### Changed | ||
### Deprecated | ||
### Removed | ||
### Fixed | ||
### Security | ||
|
||
## [alpha] - not released | ||
|
||
- Initial alpha version. Please consult the commit log for detailed information. | ||
- From now on all changes will be referenced into this changelog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: sf.softwarefactory-project.io/v1 | ||
kind: SoftwareFactory | ||
metadata: | ||
name: my-sf | ||
spec: | ||
fqdn: "sfop.me" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.