Skip to content

Commit bc31229

Browse files
committed
Uninstall cleanup for trustagent and attestaion manager
Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
1 parent 5777099 commit bc31229

3 files changed

Lines changed: 48 additions & 1 deletion

File tree

attestation-verifier/utils/tools/containers/init-wait/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-FileCopyrightText: 2025 Intel Corporation
33
# SPDX-License-Identifier: BSD-3-Clause
44

5-
export WAIT_INTERVAL=${WAIT_INTERVAL:-2}
5+
export WAIT_INTERVAL=${WAIT_INTERVAL:-5}
66
export ITERATIONS=${ITERATIONS:-30}
77
i=0
88

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# templates/cleanup-job.yaml
2+
apiVersion: batch/v1
3+
kind: Job
4+
metadata:
5+
name: cleanup-job-am
6+
namespace: {{ .Release.Namespace }}
7+
annotations:
8+
"helm.sh/hook": post-uninstall
9+
"helm.sh/hook-delete-policy": hook-succeeded
10+
spec:
11+
template:
12+
spec:
13+
containers:
14+
- name: cleanup-am
15+
image: debian:bullseye-slim
16+
command: ["sh", "-c", "rm -rf /tmp/attestation-manager"]
17+
volumeMounts:
18+
- name: host-volume
19+
mountPath: /tmp/attestation-manager
20+
restartPolicy: Never
21+
volumes:
22+
- name: host-volume
23+
hostPath:
24+
path: /tmp/attestation-manager
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# templates/cleanup-job.yaml
2+
apiVersion: batch/v1
3+
kind: Job
4+
metadata:
5+
name: cleanup-job-trustagent
6+
namespace: {{ .Release.Namespace }}
7+
annotations:
8+
"helm.sh/hook": post-uninstall
9+
"helm.sh/hook-delete-policy": hook-succeeded
10+
template:
11+
spec:
12+
containers:
13+
- name: cleanup-trustagent
14+
image: debian:bullseye-slim
15+
command: ["sh", "-c", "rm -rf /tmp/trustagent"]
16+
volumeMounts:
17+
- name: host-volume
18+
mountPath: /tmp/trustagent
19+
restartPolicy: Never
20+
volumes:
21+
- name: host-volume
22+
hostPath:
23+
path: /opt/trustagent

0 commit comments

Comments
 (0)