Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing with the new diff workflow :) #87

Closed
wants to merge 1 commit into from
Closed

Conversation

bo0tzz
Copy link
Member

@bo0tzz bo0tzz commented Apr 12, 2024

No description provided.

Copy link

Changes in Final Manifest

  • manifest.yaml

manifest.yaml

--- a/main/charts/immich/build/manifest.yaml
+++ b/charts/immich/build/manifest.yaml
@@ -1,4 +1,24 @@
 ---
+# Source: immich/templates/immich-config.yml
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: immich-immich-config
+  labels:
+    app.kubernetes.io/instance: immich
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: immich
+    app.kubernetes.io/version: v1.100.0
+    helm.sh/chart: immich-0.6.0
+data:
+  immich-config.yaml: |
+    storageTemplate:
+      enabled: true
+      template: '{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}'
+    trash:
+      days: 30
+      enabled: false
+---
 # Source: immich/templates/machine-learning.yaml
 apiVersion: v1
 kind: Service
@@ -147,6 +167,9 @@ spec:
       app.kubernetes.io/instance: immich
   template:
     metadata:
+      annotations:
+        
+        checksum/config: d0309716f7ae5f57b408fecccd7e0d95ae4116b83737c2c36dbe0110b0b42a3c
       labels:
         app.kubernetes.io/name: microservices
         app.kubernetes.io/instance: immich
@@ -174,15 +197,22 @@ spec:
               value: immich
             - name: DB_USERNAME
               value: immich
+            - name: IMMICH_CONFIG_FILE
+              value: /config/immich-config.yaml
             - name: IMMICH_MACHINE_LEARNING_URL
               value: http://immich-machine-learning:3003
             - name: REDIS_HOSTNAME
               value: immich-redis-master
           volumeMounts:
+            - name: config
+              mountPath: /config
             - name: library
               mountPath: /usr/src/app/upload
           
       volumes:
+        - name: config
+          configMap:
+            name: immich-immich-config
         - name: library
           persistentVolumeClaim:
             claimName: test-pvc
@@ -209,6 +239,9 @@ spec:
       app.kubernetes.io/instance: immich
   template:
     metadata:
+      annotations:
+        
+        checksum/config: d0309716f7ae5f57b408fecccd7e0d95ae4116b83737c2c36dbe0110b0b42a3c
       labels:
         app.kubernetes.io/name: server
         app.kubernetes.io/instance: immich
@@ -236,6 +269,8 @@ spec:
               value: immich
             - name: DB_USERNAME
               value: immich
+            - name: IMMICH_CONFIG_FILE
+              value: /config/immich-config.yaml
             - name: IMMICH_MACHINE_LEARNING_URL
               value: http://immich-machine-learning:3003
             - name: REDIS_HOSTNAME
@@ -245,6 +280,8 @@ spec:
               containerPort: 3001
               protocol: TCP
           volumeMounts:
+            - name: config
+              mountPath: /config
             - name: library
               mountPath: /usr/src/app/upload
           livenessProbe:
@@ -264,6 +301,9 @@ spec:
             periodSeconds: 10
             timeoutSeconds: 1
       volumes:
+        - name: config
+          configMap:
+            name: immich-immich-config
         - name: library
           persistentVolumeClaim:
             claimName: test-pvc

See the workflow run

@bo0tzz
Copy link
Member Author

bo0tzz commented Apr 12, 2024

Neat :D

@bo0tzz bo0tzz closed this Apr 12, 2024
@bo0tzz bo0tzz deleted the play/diff-workflow branch August 27, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant