From ddfb3c69187896414be8804fc1d0555f2a75cdab Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Tue, 6 Feb 2024 20:10:53 +0100 Subject: [PATCH] fix linting --- .yamllint.yml | 3 +++ charts/cr.yaml | 1 + charts/palworld/Chart.yaml | 25 ++++++++++++++----------- charts/palworld/values.yaml | 17 +++++++++-------- docker-compose.yml | 9 +++++---- k8s/examples/cronjob-reboot/cm.yaml | 2 +- 6 files changed, 33 insertions(+), 24 deletions(-) diff --git a/.yamllint.yml b/.yamllint.yml index 1699589aa..aae4012c5 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -33,3 +33,6 @@ rules: trailing-spaces: enable truthy: level: warning + +ignore: + - charts/palworld/templates/*.yaml diff --git a/charts/cr.yaml b/charts/cr.yaml index e3130a809..d7790b91a 100644 --- a/charts/cr.yaml +++ b/charts/cr.yaml @@ -1 +1,2 @@ +--- release-name-template: "chart-{{ .Version }}" diff --git a/charts/palworld/Chart.yaml b/charts/palworld/Chart.yaml index e7a8e9055..4bac46cd0 100644 --- a/charts/palworld/Chart.yaml +++ b/charts/palworld/Chart.yaml @@ -1,22 +1,23 @@ +--- apiVersion: v2 name: palworld version: 0.1.0 description: This chart will provide a Palworld server installation on a kubernetes cluster type: application keywords: -- palworld -- server -- kubernetes -- helm + - palworld + - server + - kubernetes + - helm home: https://github.com/thijsvanloef/palworld-server-docker sources: -- https://github.com/thijsvanloef/palworld-server-docker + - https://github.com/thijsvanloef/palworld-server-docker maintainers: -- name: Filipe Souza - email: filipe.souza@mestre8d.com - url: https://github.com/Filipe-Souza -- name: Twinki - url: https://github.com/Twinki14 + - name: Filipe Souza + email: filipe.souza@mestre8d.com + url: https://github.com/Filipe-Souza + - name: Twinki + url: https://github.com/Twinki14 icon: https://cdn.akamai.steamstatic.com/steam/apps/1623730/header.jpg appVersion: "latest" deprecated: false @@ -31,4 +32,6 @@ annotations: artifacthub.io/images: | - name: palworld-server-docker image: thijsvanloef/palworld-server-docker:latest - artifacthub.io/screenshots: https://cdn.akamai.steamstatic.com/steam/apps/1623730/header.jpg + artifacthub.io/screenshots: | + - title: PalWorld + url: https://cdn.akamai.steamstatic.com/steam/apps/1623730/header.jpg diff --git a/charts/palworld/values.yaml b/charts/palworld/values.yaml index f456d834d..7831bff44 100644 --- a/charts/palworld/values.yaml +++ b/charts/palworld/values.yaml @@ -1,12 +1,13 @@ +--- # -- Namespace where the resources will be created namespace: palworld # -- (dict) The server configuration # @notationType -- bigValue server: # -- Additional annotations to the resources - annotations: { } + annotations: {} # -- Additional labels to the resources - labels: { } + labels: {} # -- (dict) Resources limits for the container. resources: limits: @@ -66,9 +67,9 @@ server: # -- (bool) Enables the creation of the service component. enabled: true # -- Additional annotations to the resources - annotations: { } + annotations: {} # -- Additional labels to the resources - labels: { } + labels: {} # -- (string) The type of service to be created. # For minikube, set this to NodePort, elsewhere use LoadBalancer # Use ClusterIP if your setup includes ingress controller @@ -109,9 +110,9 @@ server: # @notationType -- bigValue config: # -- Additional annotations to the resources - annotations: { } + annotations: {} # -- Additional labels to the resources - labels: { } + labels: {} puid: 1000 pgid: 1000 port: 8211 @@ -154,8 +155,8 @@ server: # THIS HAS TO BE ENABLED THE FIRST TIME YOU RUN THE CONTAINER update_on_boot: true daily_reboot: - # -- (bool) Enable daily reboot. - # Disabled by default + # -- (bool) Enable daily reboot. + # Disabled by default enable: false # -- (string) The time (UTC) the server will perform the reboot. # By default, this schedules the restart at 9:30am UTC. Please note, this is using cron syntax. diff --git a/docker-compose.yml b/docker-compose.yml index d0b0937e5..55c077beb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,17 +1,18 @@ +--- services: palworld: image: thijsvanloef/palworld-server-docker:latest restart: unless-stopped container_name: palworld-server - stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop + stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop ports: - 8211:8211/udp - - 27015:27015/udp # Required if you want your server to show up in the community servers tab + - 27015:27015/udp # Required if you want your server to show up in the community servers tab environment: - PUID=1000 - PGID=1000 - - PORT=8211 # Optional but recommended - - PLAYERS=16 # Optional but recommended + - PORT=8211 # Optional but recommended + - PLAYERS=16 # Optional but recommended - SERVER_PASSWORD=worldofpals # Optional but recommended - MULTITHREADING=true - RCON_ENABLED=true diff --git a/k8s/examples/cronjob-reboot/cm.yaml b/k8s/examples/cronjob-reboot/cm.yaml index bc5e1061b..c41c72e75 100644 --- a/k8s/examples/cronjob-reboot/cm.yaml +++ b/k8s/examples/cronjob-reboot/cm.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: ConfigMap metadata: @@ -27,4 +28,3 @@ data: exec_rcon_cmd "Shutdown 1" sleep 30 kubectl -n palworld rollout restart deployment/palworld-server -