[octoprint] Migrate to common v3 (#976)

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-06-11 19:28:07 +02:00 committed by GitHub
parent fe14d15444
commit 6766dae946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 72 additions and 48 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: 1.4.2 appVersion: 1.6.1
description: OctoPrint is the snappy web interface for your 3D printer description: OctoPrint is the snappy web interface for your 3D printer
name: octoprint name: octoprint
version: 4.4.0 version: 5.0.0
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- octoprint - octoprint
@ -19,4 +19,4 @@ maintainers:
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.k8s-at-home.com repository: https://library-charts.k8s-at-home.com
version: 2.5.0 version: 3.0.2

View File

@ -1,6 +1,6 @@
# octoprint # octoprint
![Version: 4.4.0](https://img.shields.io/badge/Version-4.4.0-informational?style=flat-square) ![AppVersion: 1.4.2](https://img.shields.io/badge/AppVersion-1.4.2-informational?style=flat-square) ![Version: 5.0.0](https://img.shields.io/badge/Version-5.0.0-informational?style=flat-square) ![AppVersion: 1.6.1](https://img.shields.io/badge/AppVersion-1.6.1-informational?style=flat-square)
OctoPrint is the snappy web interface for your 3D printer OctoPrint is the snappy web interface for your 3D printer
@ -19,7 +19,7 @@ Kubernetes: `>=1.16.0-0`
| Repository | Name | Version | | Repository | Name | Version |
|------------|------|---------| |------------|------|---------|
| https://library-charts.k8s-at-home.com | common | 2.5.0 | | https://library-charts.k8s-at-home.com | common | 3.0.2 |
## TL;DR ## TL;DR
@ -76,21 +76,19 @@ N/A
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| additionalVolumeMounts[0].mountPath | string | `"/dev/ttyACM0"` | | | env | object | See below | environment variables. |
| additionalVolumeMounts[0].name | string | `"printer"` | | | env.CAMERA_DEV | string | `nil` | MJPG Streamer camera device |
| additionalVolumes[0].hostPath.path | string | `"/dev/ttyACM0"` | | | env.ENABLE_MJPG_STREAMER | string | `"true"` | Enable MJPG Streamer Enable this to ensure camera streaming is enabled you add a video device. |
| additionalVolumes[0].name | string | `"printer"` | | | env.MJPG_STREAMER_INPUT | string | `nil` | MJPG Streamer input parameters |
| env | string | `nil` | | | env.TZ | string | `"UTC"` | Set the container timezone |
| image.pullPolicy | string | `"IfNotPresent"` | | | image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| image.repository | string | `"octoprint/octoprint"` | | | image.repository | string | `"octoprint/octoprint"` | image repository |
| image.tag | string | `"1.4.2"` | | | image.tag | string | `"1.6.1"` | image tag |
| ingress.enabled | bool | `false` | | | ingress.main | object | See values.yaml | Enable and configure ingress settings for the chart under this key. |
| persistence.data.emptyDir.enabled | bool | `false` | | | persistence | object | See values.yaml | Configure persistence settings for the chart under this key. |
| persistence.data.enabled | bool | `false` | | | persistence.printer | object | See values.yaml | Configure a hostPathMount to mount a USB device in the container. |
| persistence.data.mountPath | string | `"/octoprint"` | | | securityContext.privileged | bool | `true` | (bool) Privileged securityContext may be required if USB devics are accessed directly through the host machine |
| securityContext.privileged | bool | `true` | | | service | object | See values.yaml | Configures service settings for the chart. |
| service.port.port | int | `80` | |
| strategy.type | string | `"Recreate"` | |
## Changelog ## Changelog
@ -98,6 +96,14 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [5.0.0]
#### Changed
- **BREAKING**: Upgraded the common library dependency to version 3.0.2. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored).
Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.0.2/charts/stable/common/) for the up-to-date values.
- Changed image tag to `1.6.1`.
### [1.0.0] ### [1.0.0]
#### Added #### Added
@ -112,7 +118,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
[1.0.0]: #1.0.0 [5.0.0]: #500
[1.0.0]: #100
## Support ## Support

View File

@ -9,6 +9,14 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [5.0.0]
#### Changed
- **BREAKING**: Upgraded the common library dependency to version 3.0.2. This introduces several breaking changes (`service`, `ingress` and `persistence` keys have been refactored).
Be sure to check out the [library chart](https://github.com/k8s-at-home/library-charts/blob/common-3.0.2/charts/stable/common/) for the up-to-date values.
- Changed image tag to `1.6.1`.
### [1.0.0] ### [1.0.0]
#### Added #### Added
@ -23,5 +31,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A - N/A
[1.0.0]: #1.0.0 [5.0.0]: #500
[1.0.0]: #100
{{- end -}} {{- end -}}

View File

@ -6,45 +6,53 @@
# #
image: image:
# -- image repository
repository: octoprint/octoprint repository: octoprint/octoprint
# -- image tag
tag: 1.6.1
# -- image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: 1.4.2
strategy:
type: Recreate
# -- environment variables.
# @default -- See below
env: env:
# TZ: UTC # -- Set the container timezone
## uncomment the environment variables below to ensure camera streaming is enabled when TZ: UTC
## you add a video device # -- Enable MJPG Streamer
# ENABLE_MJPG_STREAMER: "true" # Enable this to ensure camera streaming is enabled you add a video device.
# MJPG_STREAMER_INPUT: "-y -n -r 640x480" ENABLE_MJPG_STREAMER: "true"
# CAMERA_DEV: /dev/video0 # -- MJPG Streamer input parameters
MJPG_STREAMER_INPUT: # "-y -n -r 640x480"
# -- MJPG Streamer camera device
CAMERA_DEV: # /dev/video0
# -- Configures service settings for the chart.
# @default -- See values.yaml
service: service:
port: main:
port: 80 ports:
http:
port: 80
ingress: ingress:
enabled: false # -- Enable and configure ingress settings for the chart under this key.
# @default -- See values.yaml
main:
enabled: false
securityContext: securityContext:
# -- (bool) Privileged securityContext may be required if USB devics are accessed directly through the host machine
privileged: true privileged: true
# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence: persistence:
data: data:
enabled: false enabled: false
emptyDir:
enabled: false
mountPath: /octoprint mountPath: /octoprint
# -- Configure a hostPathMount to mount a USB device in the container.
# Paths to your 3D printer and/or camera in the container # @default -- See values.yaml
additionalVolumeMounts: printer:
- name: printer enabled: false
mountPath: /dev/ttyACM0 type: hostPath
hostPath: /dev/ttyACM0
# Paths to your 3D printer and/or camera on the host
additionalVolumes:
- name: printer
hostPath:
path: /dev/ttyACM0