-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for OpenShift DeploymentConfig (#714)
Fix: #161
- Loading branch information
1 parent
8c2b81b
commit 47cf2dd
Showing
52 changed files
with
1,802 additions
and
2,184 deletions.
There are no files selected for viewing
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
23 changes: 23 additions & 0 deletions
23
docs/examples/workloads/deploymentconfig/backupconfiguration.yaml
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,23 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: BackupConfiguration | ||
metadata: | ||
name: deploymentconfig-backup | ||
namespace: demo | ||
spec: | ||
repository: | ||
name: local-repo | ||
schedule: "* * * * *" | ||
target: | ||
ref: | ||
apiVersion: apps.openshift.io/v1 | ||
kind: DeploymentConfig | ||
name: stash-demo | ||
volumeMounts: | ||
- name: source-data | ||
mountPath: /source/data | ||
directories: | ||
- /source/data | ||
retentionPolicy: | ||
name: 'keep-last-5' | ||
keepLast: 5 | ||
prune: true |
45 changes: 45 additions & 0 deletions
45
docs/examples/workloads/deploymentconfig/deploymentconfig.yaml
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,45 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: stash-sample-data | ||
namespace: demo | ||
data: | ||
file1.txt: "This test file 1" | ||
file2.txt: "This is file 2" | ||
--- | ||
apiVersion: apps.openshift.io/v1 | ||
kind: DeploymentConfig | ||
metadata: | ||
labels: | ||
app: stash-demo | ||
name: stash-demo | ||
namespace: demo | ||
spec: | ||
replicas: 3 | ||
selector: | ||
app: stash-demo | ||
template: | ||
metadata: | ||
labels: | ||
app: stash-demo | ||
name: busybox | ||
spec: | ||
containers: | ||
- args: | ||
- sleep | ||
- "3600" | ||
image: busybox | ||
imagePullPolicy: IfNotPresent | ||
name: busybox | ||
volumeMounts: | ||
- mountPath: /source/data | ||
name: source-data | ||
restartPolicy: Always | ||
volumes: | ||
- name: source-data | ||
configMap: | ||
name: stash-sample-data | ||
triggers: | ||
- type: "ConfigChange" | ||
strategy: | ||
type: Rolling |
49 changes: 49 additions & 0 deletions
49
docs/examples/workloads/deploymentconfig/recovered_deploymentconfig.yaml
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,49 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: demo-pvc | ||
namespace: demo | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
|
||
--- | ||
apiVersion: apps.openshift.io/v1 | ||
kind: DeploymentConfig | ||
metadata: | ||
labels: | ||
app: stash-demo | ||
name: stash-recovered | ||
namespace: demo | ||
spec: | ||
replicas: 3 | ||
selector: | ||
app: stash-demo | ||
template: | ||
metadata: | ||
labels: | ||
app: stash-demo | ||
name: busybox | ||
spec: | ||
containers: | ||
- args: | ||
- sleep | ||
- "3600" | ||
image: busybox | ||
imagePullPolicy: IfNotPresent | ||
name: busybox | ||
volumeMounts: | ||
- mountPath: /source/data | ||
name: source-data | ||
restartPolicy: Always | ||
volumes: | ||
- name: source-data | ||
persistentVolumeClaim: | ||
claimName: demo-pvc | ||
triggers: | ||
- type: "ConfigChange" | ||
strategy: | ||
type: Rolling |
19 changes: 19 additions & 0 deletions
19
docs/examples/workloads/deploymentconfig/restoresession.yaml
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,19 @@ | ||
apiVersion: stash.appscode.com/v1beta1 | ||
kind: RestoreSession | ||
metadata: | ||
name: deploymentconfig-restore | ||
namespace: demo | ||
spec: | ||
repository: | ||
name: local-repo | ||
rules: | ||
- paths: | ||
- /source/data | ||
target: # target indicates where the recovered data will be stored | ||
ref: | ||
apiVersion: apps.openshift.io/v1 | ||
kind: DeploymentConfig | ||
name: stash-recovered | ||
volumeMounts: | ||
- name: source-data | ||
mountPath: /source/data |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.