-
Notifications
You must be signed in to change notification settings - Fork 164
App page secrets error #4021
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
Merged
Merged
App page secrets error #4021
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
40f2b12
Do not check for secrets when retrieving hr inventory if spec kubecon…
AlinaGoaga 0b507db
Refactor getHelmReleaseInventory to use getHelmReleaseObjects
AlinaGoaga 266aa48
Merge branch 'main' into app-page-secrets-error
AlinaGoaga 6e0cf2d
Add test for spec kubeconfig scenario
AlinaGoaga 17e8771
Merge branch 'app-page-secrets-error' of github.com:weaveworks/weave-…
AlinaGoaga 4d57bb9
Add test for spec kubeconfig scenario - updated
AlinaGoaga 8c82265
Add test for spec kubeconfig scenario - updated2
AlinaGoaga 91b5f8f
Merge branch 'main' into app-page-secrets-error
AlinaGoaga 32e8b19
Show user info alert when spec kubeconfig is set
AlinaGoaga 70e767b
Merge branch 'app-page-secrets-error' of github.com:weaveworks/weave-…
AlinaGoaga 6aaf206
Merge branch 'main' into app-page-secrets-error
AlinaGoaga b841289
Solve linting warnings
AlinaGoaga 4f8c54c
Merge branch 'app-page-secrets-error' of github.com:weaveworks/weave-…
AlinaGoaga 83a2266
Merge branch 'main' into app-page-secrets-error
AlinaGoaga 58318c9
Merge branch 'main' into app-page-secrets-error
AlinaGoaga 4118bca
Merge branch 'main' into app-page-secrets-error
AlinaGoaga 239da17
Merge branch 'main' into app-page-secrets-error
AlinaGoaga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ import { createCanaryCondition, useGetInventory } from "../hooks/inventory"; | |
| import { Condition, Kind, ObjectRef } from "../lib/api/core/types.pb"; | ||
| import { Automation, HelmRelease } from "../lib/objects"; | ||
| import { automationLastUpdated } from "../lib/utils"; | ||
| import Alert from "./Alert"; | ||
| import Collapsible from "./Collapsible"; | ||
| import DependenciesView from "./DependenciesView"; | ||
| import EventsTable from "./EventsTable"; | ||
|
|
@@ -25,6 +26,9 @@ import Text from "./Text"; | |
| import Timestamp from "./Timestamp"; | ||
| import YamlView from "./YamlView"; | ||
|
|
||
| const hrInfoMessage = | ||
| "spec.Kubeconfig is set on this HelmRelease. Details about reconciled objects are not available."; | ||
|
|
||
| type Props = { | ||
| automation: Automation; | ||
| className?: string; | ||
|
|
@@ -87,10 +91,15 @@ function AutomationDetail({ | |
| component: () => { | ||
| return ( | ||
| <RequestStateHandler loading={isLoading} error={error}> | ||
| <ReconciledObjectsTable | ||
| className={className} | ||
| objects={data?.objects} | ||
| /> | ||
| {automation.type === "HelmRelease" && | ||
| (automation as HelmRelease).kubeConfig === "" ? ( | ||
|
Comment on lines
+94
to
+95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems that this change caused that only HelmRelease type can have detail now as reported in this bug. |
||
| <ReconciledObjectsTable | ||
| className={className} | ||
| objects={data?.objects} | ||
| /> | ||
| ) : ( | ||
| <Alert severity="info" title="Note" message={hrInfoMessage} /> | ||
| )} | ||
| </RequestStateHandler> | ||
| ); | ||
| }, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.