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

Refactor createapp #63

Merged
merged 3 commits into from
Dec 17, 2021
Merged

Refactor createapp #63

merged 3 commits into from
Dec 17, 2021

Conversation

robertchoi80
Copy link
Contributor

@robertchoi80 robertchoi80 commented Dec 13, 2021

https://github.com/openinfradev/tks-issues/issues/55 관련 내용을 반영한 PR 입니다.
어디서든 공통의 create-application workflow를 사용하게 하였고, 다양한 케이스에 대처하기 위해 몇가지 parameter를 추가하였습니다.
자세한 내용은 위의 이슈 내용 참고하시면 됩니다.

한가지 의견을 구하고 싶은 점은, app_prefix 인자를 추가하였는데, 둘 중 어느 쪽이 나은지 의견 부탁드립니다. (현재는 1번 안으로 되어있음)

  1. 기본적으로는 argocd app 생성시 prefix 없이 app name을 사용하고, app_prefix를 입력한 경우에만 붙이도록 한다. (single cluster만 사용하는 경우도 있으므로)
  2. app_prefix 의 default 값을 'site_name'으로 지정하고, 사용자가 app_prefix를 명시적으로 입력한 경우에는 해당 prefix를 사용하게 한다 (https://github.com/openinfradev/decapod-flow/pull/63/files#diff-35d3da8a5cd700ba3b07ba314ec4a26708c0f4e5a1e8f1e6852e5c0344f74624R23 주석을 풀어야 함)

{ "path": "prometheus-operator", "namespace": "lma" },
{ "path": "eck-operator", "namespace": "elastic-system" },
{ "path": "fluentbit-operator", "namespace": "lma" }
{ "app_group": "lma", "path": "prometheus-operator", "namespace": "lma", },
Copy link
Contributor

Choose a reason for hiding this comment

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

여기 ,는 문법에러 안나나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

수정했습니다. (테스트는 usercluster 생성 시나리오로 해봤었네요)

@Jaesang
Copy link
Contributor

Jaesang commented Dec 15, 2021

이 부분은 1번에 동의합니다.

한가지 의견을 구하고 싶은 점은, app_prefix 인자를 추가하였는데, 둘 중 어느 쪽이 나은지 의견 부탁드립니다. (현재는 1번 안으로 되어있음)

  1. 기본적으로는 argocd app 생성시 prefix 없이 app name을 사용하고, app_prefix를 입력한 경우에만 붙이도록 한다. (single cluster만 사용하는 경우도 있으므로)
  2. app_prefix 의 default 값을 'site_name'으로 지정하고, 사용자가 app_prefix를 명시적으로 입력한 경우에는 해당 prefix를 사용하게 한다 (https://github.com/openinfradev/decapod-flow/pull/63/files#diff-35d3da8a5cd700ba3b07ba314ec4a26708c0f4e5a1e8f1e6852e5c0344f74624R23 주석을 풀어야 함)

@Jaesang Jaesang merged commit 47f3f54 into main Dec 17, 2021
@Jaesang Jaesang deleted the refactor_createapp branch December 17, 2021 00:45
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.

3 participants