Fix: archrepo lint
All checks were successful
Lint yaml / build-package (push) Successful in 8s

This commit is contained in:
2024-11-06 09:47:21 +00:00
parent 1c6c639c91
commit 53154bb702
4 changed files with 31 additions and 33 deletions

View File

@@ -16,21 +16,21 @@ spec:
app: archrepo app: archrepo
spec: spec:
containers: containers:
- name: repo - name: repo
image: gitea.konchin.com/service/archrepo:latest image: gitea.konchin.com/service/archrepo:latest
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
env: env:
- name: MINIO_ACCESSKEY - name: MINIO_ACCESSKEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: archrepo name: archrepo
key: MINIO_ACCESSKEY key: MINIO_ACCESSKEY
- name: MINIO_SECRETKEY - name: MINIO_SECRETKEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: archrepo name: archrepo
key: MINIO_SECRETKEY key: MINIO_SECRETKEY
imagePullSecrets: imagePullSecrets:
- name: regcred - name: regcred

View File

@@ -5,13 +5,13 @@ metadata:
name: archrepo name: archrepo
spec: spec:
rules: rules:
- host: "repo.konchin.com" - host: "repo.konchin.com"
http: http:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
name: archrepo name: archrepo
port: port:
number: 80 number: 80

View File

@@ -1,11 +1,9 @@
--- ---
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: archrepo namespace: archrepo
generatorOptions: generatorOptions:
disableNameSuffixHash: true disableNameSuffixHash: true
resources: resources:
- ns.archrepo.yaml - ns.archrepo.yaml
- deploy.archrepo.yaml - deploy.archrepo.yaml

View File

@@ -10,6 +10,6 @@ spec:
selector: selector:
app: archrepo app: archrepo
ports: ports:
- name: http - name: http
port: 80 port: 80
targetPort: 80 targetPort: 80