Skip to content

Commit

Permalink
Blueprint delete on Namespace object: helm apps (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhamilton authored May 19, 2020
1 parent 8a32f11 commit 730d5e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ actions:
host_name="{{ .Object.metadata.labels.release }}-kanister-elasticsearch-client.{{ .StatefulSet.Namespace }}.svc.cluster.local"
kando location pull --profile '{{ toJson .Profile }}' --path '{{ .ArtifactsIn.cloudObject.KeyValue.backupLocation }}' - | gunzip | elasticdump --bulk=true --input=$ --output=http://${host_name}:9200
delete:
type: StatefulSet
type: Namespace
inputArtifactNames:
- cloudObject
phases:
- func: KubeTask
name: deleteFromObjectStore
args:
namespace: "{{ .StatefulSet.Namespace }}"
image: "kanisterio/es-sidecar:0.29.0"
namespace: "{{ .Namespace.Name }}"
image: kanisterio/kanister-tools:0.29.0
command:
- bash
- -o
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,15 @@ actions:
fi
kando location pull --profile '{{ toJson .Profile }}' --path '{{ .ArtifactsIn.cloudObject.KeyValue.path }}' - | ${restore_cmd[@]}
delete:
type: StatefulSet
type: Namespace
inputArtifactNames:
- cloudObject
phases:
- func: KubeExec
- func: KubeTask
name: deleteFromBlobStore
args:
namespace: "{{ .StatefulSet.Namespace }}"
pod: "{{ index .StatefulSet.Pods 0 }}"
container: kanister-sidecar
namespace: "{{ .Namespace.Name }}"
image: kanisterio/kanister-tools:0.29.0
command:
- bash
- -o
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,15 @@ actions:
s3_path="{{ .ArtifactsIn.mysqlCloudDump.KeyValue.path }}"
kando location pull --profile '{{ toJson .Profile }}' --path ${s3_path} - | gunzip | mysql -h 127.0.0.1 -u root --password="${MYSQL_ROOT_PASSWORD}"
delete:
type: Deployment
type: Namespace
inputArtifactNames:
- mysqlCloudDump
phases:
- func: KubeExec
- func: KubeTask
name: deleteFromBlobStore
args:
namespace: "{{ .Deployment.Namespace }}"
pod: "{{ index .Deployment.Pods 0 }}"
container: kanister-sidecar
namespace: "{{ .Namespace.Name }}"
image: kanisterio/kanister-tools:0.29.0
command:
- bash
- -o
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,14 @@ actions:
kind: deployment
replicas: 1
delete:
type: Deployment
type: Namespace
inputArtifactNames:
- manifest
phases:
- func: KubeTask
name: deleteArtifact
args:
namespace: "{{ .Deployment.Namespace }}"
namespace: "{{ .Namespace.Name }}"
image: "kanisterio/postgres:v0.3.0"
command:
- bash
Expand Down

0 comments on commit 730d5e8

Please sign in to comment.