Skip to content

Commit

Permalink
Remove deprecated type field (#1056)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
pavannd1 and mergify[bot] committed Jul 28, 2021
1 parent 3632575 commit 41638e2
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion examples/aws-rds/postgresql/rds-postgres-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ actions:
aws rds restore-db-instance-from-db-snapshot --db-instance-identifier="{{ index .Object.data "postgres.instanceid" }}" --db-snapshot-identifier="{{ .ArtifactsIn.snapshot.KeyValue.id }}" --vpc-security-group-ids "{{ .ArtifactsIn.snapshot.KeyValue.sgid }}" --region "{{ .Profile.Location.Region }}"
aws rds wait db-instance-available --region "{{ .Profile.Location.Region }}" --db-instance-identifier="{{ index .Object.data "postgres.instanceid" }}"
delete:
type: Namespace
inputArtifactNames:
- snapshot
phases:
Expand Down
3 changes: 1 addition & 2 deletions examples/aws-rds/postgresql/rds-postgres-dump-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ actions:
inputArtifactNames:
- backupInfo
phases:
- func: RestoreRDSSnapshot
- func: RestoreRDSSnapshot
name: restoreSnapshots
objects:
dbsecret:
Expand All @@ -59,7 +59,6 @@ actions:
dbEngine: "PostgreSQL"

delete:
type: Namespace
phases:
- func: KubeTask
name: deleteBackup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ actions:
kubectl exec -it -n {{ .Phases.takeSnapshot.Output.etcdNS }} {{ .Phases.takeSnapshot.Output.etcdPod }} -c etcd -- sh -c "rm -rf /tmp/etcd-backup.db"
delete:
type: Namespace
inputArtifactNames:
- cloudObject
phases:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ actions:
kubectl exec -it -n {{ .Phases.takeSnapshot.Output.etcdNS }} "{{ .Phases.takeSnapshot.Output.etcdPod }}" -c etcd -- sh -c "rm -rf /tmp/etcd-backup.db"
delete:
type: Namespace
inputArtifactNames:
- cloudObject
phases:
Expand Down
3 changes: 0 additions & 3 deletions examples/kafka/adobe-s3-connector/kafka-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: kafka-blueprint
actions:
backup:
type: Deployment
outputArtifacts:
s3Dump:
keyValue:
Expand Down Expand Up @@ -62,7 +61,6 @@ actions:
sh monitorconnect.sh
exit 0
restore:
type: Deployment
inputArtifactNames:
- s3Dump
phases:
Expand Down Expand Up @@ -181,7 +179,6 @@ actions:
sh monitorconnect.sh
exit 0
delete:
type: Namespace
inputArtifactNames:
- s3Dump
phases:
Expand Down
2 changes: 0 additions & 2 deletions examples/kafka/confluent-s3-connector/kafka-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
namespace: kasten-io
actions:
backup:
type: Deployment
outputArtifacts:
s3Dump:
keyValue:
Expand Down Expand Up @@ -66,7 +65,6 @@ actions:
sh monitorconnect.sh
exit 0
restore:
type: Deployment
inputArtifactNames:
- s3Dump
phases:
Expand Down
3 changes: 0 additions & 3 deletions examples/mongo-sidecar/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
namespace: kanister
actions:
backup:
type: StatefulSet
configMapNames:
- "location"
secretNames:
Expand Down Expand Up @@ -41,7 +40,6 @@ actions:
fi
${cmd[@]} ${file} "{{ .ConfigMaps.location.Data.bucket }}/backups/{{ .StatefulSet.Name }}/{{ toDate "2006-01-02T15:04:05.999999999Z07:00" .Time | date "2006-01-02T15-04-05" }}/rs0.tar"
restore:
type: StatefulSet
inputArtifactNames:
- cloudObject
phases:
Expand Down Expand Up @@ -76,7 +74,6 @@ actions:
--drop --oplogReplay \
--dir ./rs0/dump
delete:
type: StatefulSet
inputArtifactNames:
- cloudObject
phases:
Expand Down
3 changes: 0 additions & 3 deletions examples/picture-gallery-pvc-snapshot/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
namespace: kanister
actions:
backup:
type: Deployment
outputArtifacts:
backupInfo:
keyValue:
Expand All @@ -16,7 +15,6 @@ actions:
args:
namespace: "{{ .Deployment.Namespace }}"
restore:
type: Deployment
inputArtifactNames:
- backupInfo
phases:
Expand All @@ -40,7 +38,6 @@ actions:
kind: Deployment
replicas: 1
delete:
type: Deployment
inputArtifactNames:
- backupInfo
phases:
Expand Down
2 changes: 0 additions & 2 deletions examples/postgres-basic-pgdump/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: postgres-task
actions:
backup:
type: StatefulSet
configMapNames:
- location
secretNames:
Expand Down Expand Up @@ -34,7 +33,6 @@ actions:
pg_dumpall -U postgres -c -f backup.tar
aws s3 cp backup.tar "{{ .ConfigMaps.location.Data.bucket }}/backups/{{ .StatefulSet.Namespace }}/{{ .StatefulSet.Name }}/{{ toDate "2006-01-02T15:04:05.999999999Z07:00" .Time | date "2006-01-02T15-04-05" }}/pg_backup.tar"
restore:
type: StatefulSet
secretNames:
- aws
- postgres
Expand Down
2 changes: 0 additions & 2 deletions examples/time-log/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
namespace: kanister
actions:
backup:
type: Deployment
outputArtifacts:
timeLog:
keyValue:
Expand All @@ -23,7 +22,6 @@ actions:
includePath: /var/log
backupArtifactPrefix: "{{ .Profile.Location.Bucket }}/time-log"
restore:
type: Deployment
inputArtifactNames:
- timeLog
- backupIdentifier
Expand Down

0 comments on commit 41638e2

Please sign in to comment.