Skip to content

Commit fe4ecbf

Browse files
authored
Merge pull request #380 from open-edge-platform/upgrade_issue
Upgrade issue
2 parents a899df9 + bdf06b9 commit fe4ecbf

File tree

106 files changed

+175
-1506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+175
-1506
lines changed

attestation-verifier/src/build/image/tagent/entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ if [ ! -z "$TA_SERVICE_MODE" ] && [ "$TA_SERVICE_MODE" == "outbound" ]; then
3737
fi
3838

3939
if [ ! -f $CONFIG_DIR/.setup_done ]; then
40+
echo "*** Performing initial setup for tagent ***"
4041
for directory in $PRODUCT_BIN_DIR $CA_CERTS_DIR $CERTDIR_TRUSTEDJWTCERTS $CREDENTIALS_DIR $CONSTANTS_VAR_DIR $SYSTEM_INFO_DIR $RAMFS_DIR; do
4142
mkdir -p $directory
4243
if [ $? -ne 0 ]; then
@@ -53,6 +54,7 @@ if [ ! -f $CONFIG_DIR/.setup_done ]; then
5354
fi
5455

5556
touch $CONFIG_DIR/.setup_done
57+
echo "*** Initial setup for tagent completed ***"
5658
fi
5759

5860
# Create /opt/ima_policy

helm/Makefile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ HELM_REPOSITORY ?= edge-orch/trusted-compute
1515
HELM_REGISTRY ?= oci://080137407410.dkr.ecr.us-west-2.amazonaws.com/
1616
HELM_CHART_BUILD_DIR ?= build/_output/
1717

18-
HELM_TARGETS := attestation-manager attestation-verifier trustagent trusted-workload
18+
HELM_TARGETS := attestation-verifier trusted-workload
1919

2020
all: build lint test unittest
2121
@# Help: Runs build, lint, test stages for all subprojects
@@ -70,11 +70,6 @@ docker-build:
7070
docker-push: ## Push docker images.
7171
@echo "This is a dummy docker-push target."
7272

73-
.update-version-attestation-manager:
74-
@echo "Updating the version of attestation-manager to ${ATTESTATION_MANAGER_VERSION}"
75-
yq eval -i '.appVersion = "${ATTESTATION_MANAGER_VERSION}"' attestation-manager/Chart.yaml
76-
yq eval -i '.version = "${ATTESTATION_MANAGER_VERSION}"' attestation-manager/Chart.yaml
77-
7873
.update-version-attestation-verifier:
7974
@echo "Updating the version of attestation-verifier to ${ATTESTATION_VERIFIER_VERSION}"
8075
yq eval -i '.appVersion = "${ATTESTATION_VERIFIER_VERSION}"' attestation-verifier/Chart.yaml
@@ -86,12 +81,8 @@ docker-push: ## Push docker images.
8681
sed -i "s/^version:.*/version: ${ATTESTATION_VERIFIER_VERSION}/" "$$file"; \
8782
sed -i "s/^\(\s*version:\).*/\1 ${ATTESTATION_VERIFIER_VERSION}/" "$$file"; \
8883
done; \
84+
yq eval -i '.config.imaAllowlist |= sub("<ATTESTATION_VERIFIER_VERSION>", "${ATTESTATION_VERIFIER_VERSION}")' attestation-verifier/charts/trustagent/values.yaml
8985

90-
.update-version-trustagent:
91-
@echo "Updating the version of trustagent to ${ATTESTATION_VERIFIER_VERSION}"
92-
yq eval -i '.appVersion = "${ATTESTATION_VERIFIER_VERSION}"' trustagent/Chart.yaml
93-
yq eval -i '.version = "${ATTESTATION_VERIFIER_VERSION}"' trustagent/Chart.yaml
94-
yq eval -i '.config.imaAllowlist |= sub("<ATTESTATION_VERIFIER_VERSION>", "${ATTESTATION_VERIFIER_VERSION}")' trustagent/values.yaml
9586

9687
.update-version-trusted-workload:
9788
@echo "Updating the version of trusted-workload to ${TRUSTED_WORKLOAD_VERSION}"

helm/attestation-verifier/Chart.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ dependencies:
3737
- name: cleanup-jobs
3838
repository: file://./charts/cleanup-jobs/
3939
version: 0.0.8
40-
- name: trustagent-aas-manager
41-
repository: file://./charts/trustagent-aas-manager
42-
version: 0.0.8
40+
- name: attestation-manager
41+
repository: file://./charts/attestation-manager/
42+
version: 0.0.8
43+
- name: trustagent
44+
repository: file://./charts/trustagent/
45+
version: 0.0.8
4346
description: A Helm chart for Deploying Attestation Verifier
4447
name: attestation-verifier
4548
type: application

helm/attestation-verifier/charts/aas/templates/backup-volumes.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

helm/attestation-verifier/charts/aas/templates/base-pv.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
{{- if .Values.global }}
33
---
44
{{ include "factory.pvBaseCommonSpec" . }}
5-
storageClassName: manual
65
hostPath:
76
path: {{ .Values.global.storage.hostPath.path }}/verifier/{{ .Values.service.directoryName }}/
87
{{- else }}
98
---
109
{{ include "factory.pvBaseCommonSpec" . }}
11-
storageClassName: manual
1210
hostPath:
1311
path: {{ .Values.storage.hostPath.path }}/verifier/{{ .Values.service.directoryName }}/
1412
{{- end }}

helm/attestation-verifier/charts/aas/templates/base-pvc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ metadata:
66
name: {{ include "factory.name" . }}-base
77
namespace: {{ .Release.Namespace }}
88
spec:
9-
storageClassName: manual
109
accessModes:
1110
{{ toYaml .Values.storage.hostPath.accessModes | indent 4 }}
1211
resources:

helm/attestation-verifier/charts/aas/templates/config-pv.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
{{- if .Values.global }}
33
---
44
{{ include "factory.pvConfigCommonSpec" . }}
5-
storageClassName: manual
65
hostPath:
76
path: {{ .Values.global.storage.hostPath.path }}/verifier/{{ .Values.service.directoryName }}/config
87
{{- else }}
98
---
109
{{ include "factory.pvConfigCommonSpec" . }}
11-
storageClassName: manual
1210
hostPath:
1311
path: {{ .Values.storage.hostPath.path }}/verifier/{{ .Values.service.directoryName }}/config
1412
{{- end }}

helm/attestation-verifier/charts/aas/templates/config-pvc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{- include "factory.headers" . }}
22
---
33
{{ include "factory.pvcConfigCommonSpec" . }}
4-
storageClassName: manual
54
accessModes:
65
{{ toYaml .Values.storage.hostPath.accessModes | nindent 4 | trim}}
76
resources:

helm/attestation-verifier/charts/aas/templates/db-deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
fsGroup: {{ .Values.securityContext.aasdbInit.fsGroup }}
88
initContainers:
99
{{- include "factory.initCommonSpecLinkDBVolumes" . | nindent 8 }}
10-
securityContext:
11-
{{- toYaml .Values.securityContext.aasdb | nindent 12 }}
1210
containers:
1311
- name: {{ include "factory.name" . }}db
1412
{{ include "factory.imageDb" . | nindent 10 | trim }}

helm/attestation-verifier/charts/aas/templates/db-pv.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
{{- if .Values.global }}
33
---
44
{{ include "factory.pvDbCommonSpec" . }}
5-
storageClassName: manual
65
hostPath:
76
path: {{ .Values.global.storage.hostPath.path }}/verifier/{{ .Values.service.directoryName }}/db/
87
{{- else }}
98
---
109
{{ include "factory.pvDbCommonSpec" . }}
11-
storageClassName: manual
1210
hostPath:
1311
path: {{ .Values.storage.hostPath.path }}/verifier/{{ .Values.service.directoryName }}/db
1412
{{- end }}

0 commit comments

Comments
 (0)