-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: Troubleshooting failure to get information when an application has multiple sources #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
케이스가
- source.repoURL 이 존재할 때
- source.repoURL 이 없고 sources 배열이 있을 때
이렇게 두 가지인 것 같아요.
템플릿에 이 두 가지를 분기칠 수 있는 방법이 있을까요?
아하.. 그렇네요 다시 생각해보고 커밋 올리겠습니다 |
엇 @eogns47 님 생각해보니
이런 식으로 하면 더 안전할 것 같습니다! |
@daengdaengLee 넵 한번 작성해보겠습니다! |
…as multiple sources Signed-off-by: KangManJoo <[email protected]>
0a9ab64
to
2953ad9
Compare
Signed-off-by: KangManJoo <[email protected]>
2953ad9
to
029bc17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notifications_catalog/install.yaml 파일에서 |
나 |-
를 사용해서 멀티 라인 문자열을 읽기 쉽게 표현하는 부분은 그대로 유지되면 좋을 것 같아요. 혹시 뭔가 포멧터같은 게 잘못 돈 걸까요?
@@ -44,7 +53,7 @@ teams: | |||
}, | |||
{ | |||
"name": "Repository", | |||
"value": "{{.app.spec.source.repoURL}}" | |||
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 처리해야 하지 않을까요?
@@ -40,7 +49,7 @@ teams: | |||
}, | |||
{ | |||
"name": "Repository", | |||
"value": "{{.app.spec.source.repoURL}}" | |||
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 처리해야 하지 않을까요?
@@ -44,7 +53,7 @@ teams: | |||
}, | |||
{ | |||
"name": "Repository", | |||
"value": "{{.app.spec.source.repoURL}}" | |||
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 처리해야 하지 않을까요?
@@ -43,7 +52,7 @@ teams: | |||
}, | |||
{ | |||
"name": "Repository", | |||
"value": "{{.app.spec.source.repoURL}}" | |||
"value": "{{range .app.spec.sources}}{{.repoURL}} {{end}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 처리해야 하지 않을까요?
수동으로 일일이 바꾸느라 빠트린게 있었네요 😅 수정하겠습니다! |
Signed-off-by: KangManJoo <[email protected]>
@daengdaengLee 빠트린 부분 수정 완료했습니다 ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
related issue #10
❓AS-IS: Failure to get information when an application has multiple sources
📝TO-BE: Change code that handled only a single source to handle arrays
🤔REASON: No alerts at all for multiple sources. This is a serious bug