Skip to content

Commit

Permalink
Merge pull request #443 from manala/lazy.kubernetes/argocd
Browse files Browse the repository at this point in the history
[Lazy - Kubernetes] ArgoCD
  • Loading branch information
nervo authored Sep 24, 2024
2 parents 0b05e31 + c5af829 commit 09d8181
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lazy.kubernetes/.manala.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,7 @@ system:
# @schema {"enum": [null, "1.2.0"]}
# @option {"label": "Age version"}
version: ~
argocd:
# @schema {"enum": [null, "2.12.3"]}
# @option {"label": "ArgoCD version"}
version: ~
4 changes: 4 additions & 0 deletions lazy.kubernetes/.manala.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ system:
age:
version: {{ .Vars.system.age.version | toYaml }}
{{- end }}
{{- if .Vars.system.argocd.version }}
argocd:
version: {{ .Vars.system.argocd.version | toYaml }}
{{- end }}
11 changes: 11 additions & 0 deletions lazy.kubernetes/.manala/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,17 @@ RUN \
RUN \
curl -sSLf "https://github.com/FiloSottile/age/releases/download/v{{ $age.version }}/age-v{{ $age.version }}-linux-{{ include "arch_map" (dict "amd64" "amd64" "arm64" "arm64") }}.tar.gz" \
| bsdtar -xvf - -C /usr/local/bin --strip-components=1 age/age age/age-keygen

{{ end -}}

{{ $argocd := .Vars.system.argocd -}}
{{ if $argocd.version -}}
# ArgoCD
RUN \
curl -sSL "https://github.com/argoproj/argo-cd/releases/download/v{{ $argocd.version }}/argocd-linux-{{ include "arch_map" (dict "amd64" "amd64" "arm64" "arm64") }}" \
--output /usr/local/bin/argocd \
&& chmod +x /usr/local/bin/argocd

{{ end -}}

# Run
Expand Down
4 changes: 4 additions & 0 deletions lazy.kubernetes/.manala/etc/profile.d/message.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ printf " \033[36m‣ gcloud \033[35m{{ $gcloud.version }}\033[0m\n"
{{- if $age.version }}
printf " \033[36m‣ age \033[35m{{ $age.version }}\033[0m\n"
{{- end }}
{{- $argocd := .Vars.system.argocd }}
{{- if $argocd.version }}
printf " \033[36m‣ argocd \033[35m{{ $argocd.version }}\033[0m\n"
{{- end }}

{{- $help := .Vars.project.help }}
{{- if $help }}
Expand Down
2 changes: 2 additions & 0 deletions lazy.kubernetes/test/.manala.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ system:
- gke-gcloud-auth-plugin
age:
version: 1.2.0
argocd:
version: 2.12.3
5 changes: 5 additions & 0 deletions lazy.kubernetes/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,8 @@ command:
exit-status: 0
stdout:
- v{{ .Vars.system.age.version }}
# ArgoCD
argocd version --client:
exit-status: 0
stdout:
- "argocd: v{{ .Vars.system.argocd.version }}"

0 comments on commit 09d8181

Please sign in to comment.