|
|
@@ -56,6 +56,7 @@ import Anser, { AnserJsonEntry } from "anser";
|
|
|
import GHALogsModal from "./status/GHALogsModal";
|
|
|
import _ from "lodash";
|
|
|
import AnimateHeight from "react-animate-height";
|
|
|
+import EventsTab from "./EventsTab";
|
|
|
|
|
|
type Props = RouteComponentProps & {};
|
|
|
|
|
|
@@ -746,6 +747,8 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
|
|
|
</Button>
|
|
|
</>
|
|
|
);
|
|
|
+ case "events":
|
|
|
+ return <EventsTab currentChart={appData.chart} />;
|
|
|
case "activity":
|
|
|
return (
|
|
|
<ActivityFeed
|
|
|
@@ -773,6 +776,35 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
|
|
|
clearStatus={() => setButtonStatus("")}
|
|
|
/>
|
|
|
);
|
|
|
+ case "pre-deploy":
|
|
|
+ return (
|
|
|
+ <>
|
|
|
+ {!isLoading && !services.some(Service.isRelease) && (
|
|
|
+ <>
|
|
|
+ <Fieldset>
|
|
|
+ <Container row>
|
|
|
+ <PlaceholderIcon src={notFound} />
|
|
|
+ <Text color="helper">
|
|
|
+ No pre-deploy jobs were found. You can add a pre-deploy
|
|
|
+ job in the Overview tab to perform an operation before
|
|
|
+ your application services deploy, like a database
|
|
|
+ migration.
|
|
|
+ </Text>
|
|
|
+ </Container>
|
|
|
+ </Fieldset>
|
|
|
+ <Spacer y={0.5} />
|
|
|
+ </>
|
|
|
+ )}
|
|
|
+ {services.some(Service.isRelease) && (
|
|
|
+ <JobRuns
|
|
|
+ lastRunStatus="all"
|
|
|
+ namespace={appData.chart?.namespace}
|
|
|
+ sortType="Newest"
|
|
|
+ releaseName={appData.app.name + "-r"}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </>
|
|
|
+ );
|
|
|
default:
|
|
|
return <div>Tab not found</div>;
|
|
|
}
|
|
|
@@ -1014,9 +1046,14 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
|
|
|
options={[
|
|
|
{ label: "Overview", value: "overview" },
|
|
|
featurePreview && { label: "Activity", value: "activity" },
|
|
|
+ hasBuiltImage && { label: "Events", value: "events" },
|
|
|
hasBuiltImage && { label: "Logs", value: "logs" },
|
|
|
hasBuiltImage && { label: "Metrics", value: "metrics" },
|
|
|
hasBuiltImage && { label: "Debug", value: "status" },
|
|
|
+ appData.app.git_repo_id && {
|
|
|
+ label: "Pre-deploy logs",
|
|
|
+ value: "pre-deploy",
|
|
|
+ },
|
|
|
{
|
|
|
label: "Environment",
|
|
|
value: "environment-variables",
|