From e42e4a2d218642995ef0857466d8b76ef9826dd6 Mon Sep 17 00:00:00 2001 From: ACoolName Date: Sat, 5 Apr 2025 02:00:09 +0300 Subject: [PATCH] seperated tag and name from name in image --- api/v1alpha1/image_types.go | 1 + config/crd/bases/server-manager.acooldomain.co_images.yaml | 3 +++ config/samples/server-manager_v1alpha1_image.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/api/v1alpha1/image_types.go b/api/v1alpha1/image_types.go index 7f7e93c..4a93f4a 100644 --- a/api/v1alpha1/image_types.go +++ b/api/v1alpha1/image_types.go @@ -34,6 +34,7 @@ type ImageSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file Name string `json:"name"` + Tag string `json:"tag"` Location string `json:"location"` WorkingDir string `json:"working_dir"` Command []string `json:"command,omitempty"` diff --git a/config/crd/bases/server-manager.acooldomain.co_images.yaml b/config/crd/bases/server-manager.acooldomain.co_images.yaml index d44f138..b2a9157 100644 --- a/config/crd/bases/server-manager.acooldomain.co_images.yaml +++ b/config/crd/bases/server-manager.acooldomain.co_images.yaml @@ -83,12 +83,15 @@ spec: type: string type: object type: array + tag: + type: string working_dir: type: string required: - location - name - ports + - tag - working_dir type: object type: object diff --git a/config/samples/server-manager_v1alpha1_image.yaml b/config/samples/server-manager_v1alpha1_image.yaml index 9459032..d7740d2 100644 --- a/config/samples/server-manager_v1alpha1_image.yaml +++ b/config/samples/server-manager_v1alpha1_image.yaml @@ -8,6 +8,7 @@ metadata: spec: location: git.acooldomain.co/server-manager/minecraft:paper-1.21.4 name: minecraft:paper-1.21.4 + tag: paper-1.21.4 working_dir: /opt/server ports: - port: 25565