-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workload controller for new design (#675)
**Requirements:** - [x] Merge stashed/stash#647 to master - [x] Merge stashed/stash#673 to master - [x] Merge stashed/stash#674 to master - [x] Merge stashed/stash#671 to master - [x] Rebase against master **Tasks:** - [x] Update Restore Logic - [x] Update Backup Logic - [x] Update Workload Controllers - [x] Deployment - [x] DaemonSet - [x] ReplicationControler - [x] ReplicaSet - [x] StatefulSet - [x] Fix ConfigMap lock deletion and RBAC stuff deletion logic - [x] Ensure sidecar/init-container according to new design - [x] Ensure Restore init-container injection - [x] Ensure Restore init-container deletion - [x] Ensure Backup sidecar injection - [x] Ensure Backup sidecar deletion - [x] Add new backup command (sagor is working) - [x] Add new restore command - [x] Add controller (possibly in different PR) - [x] PersistentVolumeClaim - [x] AppBinding
- Loading branch information
1 parent
30e1722
commit 886adaa
Showing
95 changed files
with
24,750 additions
and
4,909 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,10 +1,23 @@ | ||
package v1beta1 | ||
|
||
const ( | ||
BackupKey = "backup.appscode.com" | ||
LastAppliedConfiguration = BackupKey + "/last-applied-configuration" | ||
VersionTag = BackupKey + "/tag" | ||
VersionTag = BackupKey + "/tag" | ||
// ResourceVersion will be used to trigger restarts for ReplicaSet and RC pods | ||
ResourceHash = BackupKey + "/resource-hash" | ||
StashKey = "stash.appscode.com" | ||
StashKey = "stash.appscode.com" | ||
BackupKey = "backup.appscode.com" | ||
RestoreKey = "restore.appscode.com" | ||
SuffixLastAppliedConfiguration = "/last-applied-configuration" | ||
SuffixResourceHash = "/resource-hash" | ||
|
||
KeyBackupConfigurationTemplate = StashKey + "/backup-template" | ||
KeyTargetDirectories = StashKey + "/target-directories" | ||
KeyMountPath = StashKey + "/mountpath" | ||
KeyVolumeMounts = StashKey + "/volume-mounts" | ||
|
||
KeyLastAppliedRestoreSession = RestoreKey + SuffixLastAppliedConfiguration | ||
KeyLastAppliedBackupConfiguration = BackupKey + SuffixLastAppliedConfiguration | ||
|
||
AppliedBackupConfigurationSpecHash = BackupKey + SuffixResourceHash | ||
AppliedRestoreSessionSpecHash = RestoreKey + SuffixResourceHash | ||
ResourceHash = BackupKey + SuffixResourceHash | ||
) |
Oops, something went wrong.