Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion 2025/helm/juanxiu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ FROM scratch
COPY --from=builder /app/main /main
CMD ["/main"]


18 changes: 18 additions & 0 deletions 2025/helm/juanxiu/charts/templates/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Values.application.metadata.name }}
namespace: {{ .Values.application.metadata.namespace }}
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: {{ .Values.application.metadata.name }}-project
source:
{{- toYaml .Values.application.spec.source | nindent 4 }}
destination:
namespace: {{ .Values.application.spec.destination.namespace }}
server: {{ (index .Values.project.destinations 0).server }}
syncPolicy:
automated:
prune: true
selfHeal: true
16 changes: 16 additions & 0 deletions 2025/helm/juanxiu/charts/templates/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: {{ .Values.application.metadata.name }}-project
namespace: {{ .Values.application.metadata.namespace }}
spec:
description: Project for the {{ .Values.application.metadata.name }} application
sourceRepos:
{{- toYaml .Values.project.sourceRepos | nindent 4 }}
destinations:
{{- toYaml .Values.project.destinations | nindent 4 }}
namespaceResourceWhitelist:
- group: ''
kind: Service
- group: 'apps'
kind: Deployment
21 changes: 20 additions & 1 deletion 2025/helm/juanxiu/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ service:
type: NodePort
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
port: 8080
nodePort: 30080
nodePort: 30081

# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress:
Expand Down Expand Up @@ -124,3 +124,22 @@ nodeSelector: {}
tolerations: []

affinity: {}

project:
sourceRepos:
- 'https://github.com/argoproj/argocd-example-apps.git'
destinations:
- namespace: helm-guestbook
server: https://kubernetes.default.svc

application:
metadata:
name: helm-guestbook
namespace: argocd
spec:
source:
repoURL: 'https://github.com/argoproj/argocd-example-apps.git'
path: helm-guestbook
targetRevision: HEAD
destination:
namespace: helm-guestbook
Loading