migrate(rickroll) migrate rickroll to new common. (#9317)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [X] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [X] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [X] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Xstar97TheNoob
2023-06-01 23:55:38 +03:00
committed by GitHub
parent 6350715250
commit ac527c4810
9 changed files with 82 additions and 79 deletions
+7 -7
View File
@@ -1,15 +1,11 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- Other
apiVersion: v2 apiVersion: v2
appVersion: "latest" appVersion: "latest"
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 11.1.2 version: 12.10.4
deprecated: false deprecated: false
description: Self-hosted Rickrolls. Image is based on Nginx stable alpine, and all the content is local to the Chart. description: Self-hosted Rick Roll chart.
home: https://truecharts.org/charts/incubator/rickroll home: https://truecharts.org/charts/incubator/rickroll
icon: https://truecharts.org/img/hotlink-ok/chart-icons/rickroll.png icon: https://truecharts.org/img/hotlink-ok/chart-icons/rickroll.png
keywords: keywords:
@@ -25,4 +21,8 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/rickroll - https://github.com/truecharts/charts/tree/master/charts/incubator/rickroll
- https://github.com/modem7/docker-rickroll - https://github.com/modem7/docker-rickroll
type: application type: application
version: 2.0.12 version: 3.0.0
annotations:
truecharts.org/catagories: |
- Other
truecharts.org/SCALE-support: "true"
@@ -1 +0,0 @@
imageSelector: "imagefhd"
@@ -1 +0,0 @@
imageSelector: "imagefhdgame"
@@ -1 +0,0 @@
imageSelector: "imagefhdonclick"
@@ -1 +0,0 @@
imageSelector: "imageonclick"
+42 -34
View File
@@ -4,52 +4,60 @@ portals:
# Include{portalLink} # Include{portalLink}
questions: questions:
# Include{global} # Include{global}
- variable: imageSelector
group: "Container Image"
label: "Select Image"
schema:
type: string
default: "image"
enum:
- value: "image"
description: "Auto starts, but muted | SD quality"
- value: "fhdImage"
description: "Auto starts, but muted | 1080p quality"
- value: "fhdgameImage"
description: "Lost the game onClick | 1080p quality"
- value: "fhdonclickImage"
description: "Uses an onClick method with a poster image | 1080p quality"
- value: "fhdonclickImage"
description: "Uses an onClick method with a poster image | SD quality"
# Include{workload} # Include{workload}
# Include{workloadDeployment} # Include{workloadDeployment}
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
- variable: env
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: TITLE
label: Title
description: Changes the title of the webpage.
schema:
type: string
default: ""
- variable: HEIGHT
label: Height
description: Changes the height of the video.
schema:
type: string
default: "100vh"
- variable: WIDTH
label: Width
description: Changes the width of the video.
schema:
type: string
default: "100%"
- variable: HEADLINE
label: HeadLine
description: Allows for a custom body tag.
schema:
type: string
default: ""
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main # Include{serviceMain}
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: main - variable: main
label: "Main Service Port Configuration" label: Main Service Port Configuration
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: port - variable: port
label: "Port" label: Port
description: "This port exposes the container port on the service" description: This port exposes the container port on the service
schema: schema:
type: int type: int
default: 10289 default: 10289
@@ -60,7 +68,7 @@ questions:
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot} # Include{ingressRoot}
- variable: main - variable: main
label: "Main Ingress" label: Main Ingress
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -73,14 +81,14 @@ questions:
# Include{securityContextRoot} # Include{securityContextRoot}
- variable: runAsUser - variable: runAsUser
label: "runAsUser" label: runAsUser
description: "The UserID of the user running the application" description: The UserID of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
- variable: runAsGroup - variable: runAsGroup
label: "runAsGroup" label: runAsGroup
description: "The groupID this App of the user running the application" description: The groupID this App of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
@@ -88,8 +96,8 @@ questions:
# Include{securityContextAdvanced} # Include{securityContextAdvanced}
# Include{securityContextPod} # Include{securityContextPod}
- variable: fsGroup - variable: fsGroup
label: "fsGroup" label: fsGroup
description: "The group that should own ALL storage." description: The group that should own ALL storage.
schema: schema:
type: int type: int
default: 568 default: 568
@@ -1,2 +1 @@
{{/* Render the templates */}} {{ include "tc.v1.common.loader.all" . }}
{{ include "tc.common.loader.all" . }}
+24 -24
View File
@@ -1,41 +1,41 @@
image: image:
repository: tccr.io/truecharts/rickroll repository: tccr.io/truecharts/rickroll
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: latest@sha256:7e44d66152b7a24d0ff41480992dcfbe24ae320c0d1bbed364726af86b26152e tag: vlatest@sha256:0a74da4a4f146236124e2e1826d96e2ea6a3422401cf10da2152011c6832e634
fhdImage:
repository: tccr.io/truecharts/rickroll-fhd
pullPolicy: IfNotPresent
tag: latest@sha256:bc833e52ed8bb0e0abbd110c2afbb94a8ac794f8d5c758ad9ba992f2f75b1e14
fhdgameImage:
repository: tccr.io/truecharts/rickroll-fhd-game
pullPolicy: IfNotPresent
tag: latest@sha256:ab13300ce0913219cd2f5bf4a390901185c4e51411e1be9fb25280c028f7af25
fhdonclickImage:
repository: tccr.io/truecharts/rickroll-fhd-onclick
pullPolicy: IfNotPresent
tag: latest@sha256:a55428843ae3de037b1b346b1200eb6bc58fb661acc970e8dbffe7a255a45048
onclickImage:
repository: tccr.io/truecharts/rickroll-onclick
pullPolicy: IfNotPresent
tag: latest@sha256:c01c92f2acf2a939802ea76732f931f2f07705a282422ba43fb3db2f96293cd5
imageSelector: "image"
securityContext: securityContext:
container:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
runAsNonRoot: false runAsNonRoot: false
podSecurityContext:
runAsGroup: 0
runAsUser: 0 runAsUser: 0
runAsGroup: 0
service: service:
main: main:
ports: ports:
main: main:
protocol: HTTP protocol: http
targetPort: 8080
port: 10289 port: 10289
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: http
readiness:
type: http
startup:
type: http
env:
PORT: "{{ .Values.service.main.ports.main.port }}"
TITLE: "Rickroll"
HEIGHT: "100vh"
WIDTH: "100%"
HEADLINE: ""
portal: portal:
open:
enabled: true enabled: true