Skip to content

Commit 55f2ddc

Browse files
authored
Merge pull request #2 from minmzzhang/externalizing-charts
feat: Externalize ZTVP charts: quay-registry
2 parents 6b12a1e + 3443e4e commit 55f2ddc

16 files changed

Lines changed: 440 additions & 19 deletions

.github/linters/.checkov.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@ directory:
55
skip-path:
66
- tests
77
skip-check:
8-
- CKV_K8S_49 # Minimize wildcard use in Roles and ClusterRoles
9-
- CKV_K8S_155 # Minimize ClusterRoles that grant control over validating or mutating admission webhook configurations
10-
- CKV_K8S_156 # Minimize ClusterRoles that grant permissions to approve CertificateSigningRequests
11-
- CKV_K8S_157 # Minimize Roles and ClusterRoles that grant permissions to bind RoleBindings or ClusterRoleBindings
12-
- CKV_K8S_158 # Minimize Roles and ClusterRoles that grant permissions to escalate Roles or ClusterRoles
8+
# CKV_K8S_49: Minimize wildcard use in Roles and ClusterRoles
9+
- CKV_K8S_49
10+
# CKV_K8S_155: ClusterRoles for admission webhook configurations
11+
- CKV_K8S_155
12+
# CKV_K8S_156: ClusterRoles to approve CertificateSigningRequests
13+
- CKV_K8S_156
14+
# CKV_K8S_157: Roles/ClusterRoles to bind RoleBindings or ClusterRoleBindings
15+
- CKV_K8S_157
16+
# CKV_K8S_158: Roles/ClusterRoles to escalate Roles or ClusterRoles
17+
- CKV_K8S_158
18+
# CKV_K8S_38: S3 setup job needs SA token for oc CLI
19+
- CKV_K8S_38
20+
# CKV_K8S_40: Job uses OpenShift namespace default UID (high UID assigned at runtime, no anyuid needed)
21+
- CKV_K8S_40
22+
# CKV_K8S_43: Image digest; chart uses tag, digest is deployment-specific
23+
- CKV_K8S_43
24+
# CKV_SECRET_6: False positives - templates use placeholders, script refs to cluster secrets only
25+
- CKV_SECRET_6

.github/workflows/superlinter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ jobs:
1414
with:
1515
sl_env: |
1616
VALIDATE_BIOME_FORMAT=false
17+
# Exclude Helm chart templates (contain {{ }}; not valid YAML)
18+
FILTER_REGEX_EXCLUDE=.*/templates/.*

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Helm template files contain {{ }} and are not plain YAML
2+
templates/

.trivyignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AVD-KSV-0125: registry.redhat.io trusted; S3 job uses ose-cli from Red Hat
2+
AVD-KSV-0125
3+
# AVD-KSV-0113: S3 setup Role intentionally needs secret get/create/patch for quay config bundle
4+
AVD-KSV-0113
5+
# AVD-KSV-0020: Job uses OpenShift namespace default UID at runtime (high UID, no anyuid needed)
6+
AVD-KSV-0020
7+
# AVD-KSV-0021: Job uses OpenShift namespace default GID at runtime
8+
AVD-KSV-0021

.yamllint

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extends: default
2+
ignore:
3+
- templates/
4+
- templates/**
5+
- "**/templates/**"
6+
rules:
7+
document-start: disable
8+
line-length:
9+
max: 80
10+
brackets:
11+
min-spaces-inside: 0
12+
max-spaces-inside: 1

Chart.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
apiVersion: v2
2-
description: A Helm chart to serve as the Validated Patterns Template
3-
keywords:
4-
- pattern
5-
name: vp-template
6-
version: 0.0.1
2+
name: quay-registry
3+
description: Red Hat Quay Registry Resources
4+
type: application
5+
version: 0.1.0
6+
appVersion: "3.9"
7+
home: https://github.com/validatedpatterns/quay-chart
8+
maintainers:
9+
- name: Zero Trust Validated Patterns Team
10+
email: ztvp-arch-group@redhat.com

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ test: helm-lint helm-unittest ## Runs helm lint and unit tests
3636
.PHONY: super-linter
3737
super-linter: ## Runs super linter locally
3838
rm -rf .mypy_cache
39-
podman run -e RUN_LOCAL=true -e USE_FIND_ALGORITHM=true \
40-
-e VALIDATE_BIOME_FORMAT=false \
41-
-v $(PWD):/tmp/lint:rw,z \
42-
-w /tmp/lint \
43-
ghcr.io/super-linter/super-linter:slim-v8
39+
podman run -e RUN_LOCAL=true -e USE_FIND_ALGORITHM=true \
40+
-e VALIDATE_BIOME_FORMAT=false \
41+
-e "FILTER_REGEX_EXCLUDE=.*/templates/.*" \
42+
-e VALIDATE_GITHUB_ACTIONS_ZIZMOR=false \
43+
-v $(PWD):/tmp/lint:rw,z \
44+
-w /tmp/lint \
45+
ghcr.io/super-linter/super-linter:slim-v8

README.md

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,58 @@
1-
# vp-template
1+
# quay-registry
22

3-
![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square)
3+
<!-- markdownlint-disable MD013 -->
44

5-
A Helm chart to serve as the Validated Patterns Template
5+
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9](https://img.shields.io/badge/AppVersion-3.9-informational?style=flat-square)
6+
7+
<!-- markdownlint-enable MD013 -->
8+
9+
<!-- markdownlint-disable MD013 -->
10+
11+
Red Hat Quay Registry Resources
12+
13+
<!-- markdownlint-enable MD013 -->
614

715
This chart is used to serve as the template for Validated Patterns Charts
816

917
## Notable changes
1018

19+
**Homepage:** <https://github.com/validatedpatterns/quay-chart>
20+
21+
## Maintainers
22+
23+
| Name | Email | Url |
24+
| ---------------------------------- | ---------------------------- | --- |
25+
| Zero Trust Validated Patterns Team | <ztvp-arch-group@redhat.com> | |
26+
27+
<!-- markdownlint-disable MD013 MD034 MD060 -->
28+
29+
## Values
30+
31+
| Key | Type | Default | Description |
32+
| -------------------------------------------- | ------ | ---------------------------------------------- | ----------- |
33+
| job.image | string | `"registry.redhat.io/openshift4/ose-cli:4.15"` | |
34+
| job.resources.limits.cpu | string | `"500m"` | |
35+
| job.resources.limits.memory | string | `"256Mi"` | |
36+
| job.resources.requests.cpu | string | `"50m"` | |
37+
| job.resources.requests.memory | string | `"128Mi"` | |
38+
| objectStorage.objectBucketClaim.bucketName | string | `"quay-datastore"` | |
39+
| objectStorage.objectBucketClaim.name | string | `"quay-bucket"` | |
40+
| objectStorage.objectBucketClaim.storageClass | string | `"openshift-storage.noobaa.io"` | |
41+
| quay.configBundleSecret.deploy | bool | `true` | |
42+
| quay.configBundleSecret.name | string | `"quay-init-config-bundle-secret"` | |
43+
| quay.namespace | string | `"quay-enterprise"` | |
44+
| quay.setup.admin.email | string | `"quayadmin@example.com"` | |
45+
| quay.setup.admin.name | string | `"quayadmin"` | |
46+
| quay.setup.user.email | string | `"developer1@myorg.com"` | |
47+
| quay.setup.user.name | string | `"developer1"` | |
48+
| quay.storage.clairpostgres.size | string | `"50Gi"` | |
49+
| quay.storage.postgres.size | string | `"50Gi"` | |
50+
| quay_config.org.email | string | `"devel@myorg.com"` | |
51+
| quay_config.org.name | string | `"devel"` | |
52+
| quay_config.repo | string | `"example"` | |
53+
54+
<!-- markdownlint-enable MD013 MD034 MD060 -->
55+
1156
---
1257

1358
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

README.md.gotmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{{ template "chart.header" . }}
22
{{ template "chart.deprecationWarning" . }}
33

4+
<!-- markdownlint-disable MD013 -->
45
{{ template "chart.badgesSection" . }}
6+
<!-- markdownlint-enable MD013 -->
57

8+
<!-- markdownlint-disable MD013 -->
69
{{ template "chart.description" . }}
10+
<!-- markdownlint-enable MD013 -->
711

812
This chart is used to serve as the template for Validated Patterns Charts
913

@@ -17,6 +21,8 @@ This chart is used to serve as the template for Validated Patterns Charts
1721

1822
{{ template "chart.requirementsSection" . }}
1923

24+
<!-- markdownlint-disable MD013 MD034 MD060 -->
2025
{{ template "chart.valuesSection" . }}
26+
<!-- markdownlint-enable MD013 MD034 MD060 -->
2127

2228
{{ template "helm-docs.versionFooter" . }}

templates/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)