From 8cff4056e8e54227ed7f4cd7184b17a0aca82d99 Mon Sep 17 00:00:00 2001 From: xxxvik-xakerxxx Date: Mon, 24 Jun 2024 08:40:14 +0000 Subject: [PATCH] :bug: add apple-app-site-association --- .helm/templates/configmap.yam | 47 +++++++++++++++++++++++++++++++++ .helm/templates/deployment.yaml | 8 ++++++ 2 files changed, 55 insertions(+) create mode 100644 .helm/templates/configmap.yam diff --git a/.helm/templates/configmap.yam b/.helm/templates/configmap.yam new file mode 100644 index 0000000..052c6ed --- /dev/null +++ b/.helm/templates/configmap.yam @@ -0,0 +1,47 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "template.fullname" . }}-config + labels: + {{- include "template.labels" . | nindent 4 }} +data: + apple-app-site-association: |- + { + "applinks": { + "details": [ + { + "appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ], + "components": [ + { + "#": "no_universal_links", + "exclude": true, + "comment": "Matches any URL with a fragment that equals no_universal_links and instructs the system not to open it as a universal link." + }, + { + "/": "/buy/*", + "comment": "Matches any URL with a path that starts with /buy/." + }, + { + "/": "/help/website/*", + "exclude": true, + "comment": "Matches any URL with a path that starts with /help/website/ and instructs the system not to open it as a universal link." + }, + { + "/": "/help/*", + "?": { "articleNumber": "????" }, + "comment": "Matches any URL with a path that starts with /help/ and that has a query item with name 'articleNumber' and a value of exactly four characters." + } + ] + } + ] + }, + "webcredentials": { + "apps": [ "ABCDE12345.com.example.app" ] + }, + + + "appclips": { + "apps": ["ABCED12345.com.example.MyApp.Clip"] + } + } + \ No newline at end of file diff --git a/.helm/templates/deployment.yaml b/.helm/templates/deployment.yaml index b657d6e..6c0e59e 100644 --- a/.helm/templates/deployment.yaml +++ b/.helm/templates/deployment.yaml @@ -29,6 +29,10 @@ spec: serviceAccountName: {{ include "template.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + volumes: + - name: association + configMap: + name: {{ include "template.fullname" . }}-config {{- if .Values.config.create }} volumes: - name: config @@ -41,6 +45,10 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + volumeMounts: + - name: association + mountPath: "/usr/share/nginx/html/.well-known/apple-app-site-association" + subPath: apple-app-site-association {{- if .Values.config.create }} volumeMounts: - name: config