Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add argocd #17

Merged
merged 8 commits into from
Sep 22, 2022
Merged

Add argocd #17

merged 8 commits into from
Sep 22, 2022

Conversation

kainlite
Copy link
Contributor

@kainlite kainlite commented Sep 7, 2022

Hi 👋,

I added argocd to the install script, tested on my cluster and everything worked fine, I wanted to migrate everything to helm but didn't want to change everything without knowing if you are planning to switch to helm at some point? if not that's ok as well, awesome module btw, it works great so far.

Regards.
Gabriel.

Copy link
Owner

@garutilorenzo garutilorenzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this piece of code:

%{ if install_argocd_image_updater }
if [[ "$first_last" == "first" ]]; then
  kubectl apply -n argocd -f
  https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/${argocd_image_updater_release}/manifests/install.yaml
fi
%{ endif }

argocd_image_updater can be installed without argo cd?
Maybe this if can be placed on line 205?

Comment on lines 211 to 216
if [[ "$first_last" == "first" ]]; then
kubectl apply -n argocd -f
https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/${argocd_image_updater_release}/manifests/install.yaml
fi
%{ endif }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this part is duplicated? The image updater is installed on line 206..
The argocd image updater can be installed without argocd?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah my bad, yeah, it can be installed and used to only update the image ref on the repo, but it probably doesn't make sense, let me move that

template.tf Outdated Show resolved Hide resolved
Copy link
Owner

@garutilorenzo garutilorenzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can save an If in files/k3s-install-server.sh

%{ if install_argocd }
if [[ "$first_last" == "first" ]]; then
  kubectl create namespace argocd
  kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/${argocd_release}/manifests/install.yaml
%{ if install_argocd_image_updater }
  kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/${argocd_image_updater_release}/manifests/install.yaml
%{ endif }
fi

For the lifecycle in template.tf, This is OK for the "always free account" but in a "on demand/paid account" if the metadata change I want that terraform update my template and then my running instances.

files/k3s-install-server.sh Show resolved Hide resolved
template.tf Outdated Show resolved Hide resolved
kainlite and others added 3 commits September 14, 2022 13:33
…hanges. This PR is going out of scope. To fix the template 'issue' in the always free account we need to open a new PR.
Copy link
Owner

@garutilorenzo garutilorenzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made some changes. Removed the template fix because this PR is going out of the scope (add argocd). If is ok for you I will merge the PR.

@kainlite
Copy link
Contributor Author

Made some changes. Removed the template fix because this PR is going out of the scope (add argocd). If is ok for you I will merge the PR.

Yup, feel free to merge it anytime 👍

@garutilorenzo garutilorenzo merged commit 40ca99f into garutilorenzo:master Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants