Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions locales/en/plugin__gitops-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,26 @@
"App Project": "AppProject",
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
"Progressive Sync Step {{x}}": "Progressive Sync Step {{x}}",
"Applications": "Applications",
"Show all match expressions": "Show all match expressions",
"Edit ApplicationSet": "Edit ApplicationSet",
"Delete ApplicationSet": "Delete ApplicationSet",
"View Graph": "View Graph",
"Match Expressions": "Match Expressions",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"AppSet ownerReference Tree View": "AppSet ownerReference Tree View",
"Progressive Sync Flow View": "Progressive Sync Flow View",
"Expand or collapse all progressive sync step groups": "Expand or collapse all progressive sync step groups",
"No Applications In This Step": "No Applications In This Step",
"Edit ImageUpdater": "Edit ImageUpdater",
"Delete ImageUpdater": "Delete ImageUpdater",
"Error: Missing required route parameters": "Error: Missing required route parameters",
"True": "True",
"False": "False",
"ImageUpdater details": "ImageUpdater details",
"Ready": "Ready",
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
"True": "True",
"False": "False",
"Applications Matched": "Applications Matched",
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
"Images Managed": "Images Managed",
Expand Down Expand Up @@ -284,7 +288,6 @@
"Create Rollout": "Create Rollout",
"Pods": "Pods",
"Selector": "Selector",
"No labels": "No labels",
"Rollout Status": "Rollout Status",
"Revisions": "Revisions",
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
Expand Down Expand Up @@ -322,7 +325,7 @@
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
"ApplicationSets": "ApplicationSets",
"Create ApplicationSet": "Create ApplicationSet",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"No labels": "No labels",
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",
"Edit": "Edit",
Expand Down
11 changes: 7 additions & 4 deletions locales/ja/plugin__gitops-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,26 @@
"App Project": "AppProject",
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
"Progressive Sync Step {{x}}": "Progressive Sync Step {{x}}",
"Applications": "Applications",
"Show all match expressions": "Show all match expressions",
"Edit ApplicationSet": "Edit ApplicationSet",
"Delete ApplicationSet": "Delete ApplicationSet",
"View Graph": "View Graph",
"Match Expressions": "Match Expressions",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"AppSet ownerReference Tree View": "AppSet ownerReference Tree View",
"Progressive Sync Flow View": "Progressive Sync Flow View",
"Expand or collapse all progressive sync step groups": "Expand or collapse all progressive sync step groups",
"No Applications In This Step": "No Applications In This Step",
"Edit ImageUpdater": "Edit ImageUpdater",
"Delete ImageUpdater": "Delete ImageUpdater",
"Error: Missing required route parameters": "Error: Missing required route parameters",
"True": "True",
"False": "False",
"ImageUpdater details": "ImageUpdater details",
"Ready": "Ready",
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
"True": "True",
"False": "False",
"Applications Matched": "Applications Matched",
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
"Images Managed": "Images Managed",
Expand Down Expand Up @@ -284,7 +288,6 @@
"Create Rollout": "Create Rollout",
"Pods": "Pods",
"Selector": "Selector",
"No labels": "No labels",
"Rollout Status": "Rollout Status",
"Revisions": "Revisions",
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
Expand Down Expand Up @@ -322,7 +325,7 @@
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
"ApplicationSets": "ApplicationSets",
"Create ApplicationSet": "Create ApplicationSet",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"No labels": "No labels",
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",
"Edit": "Edit",
Expand Down
11 changes: 7 additions & 4 deletions locales/ko/plugin__gitops-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,26 @@
"App Project": "App Project",
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
"Progressive Sync Step {{x}}": "Progressive Sync Step {{x}}",
"Applications": "Applications",
"Show all match expressions": "Show all match expressions",
"Edit ApplicationSet": "Edit ApplicationSet",
"Delete ApplicationSet": "Delete ApplicationSet",
"View Graph": "View Graph",
"Match Expressions": "Match Expressions",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"AppSet ownerReference Tree View": "AppSet ownerReference Tree View",
"Progressive Sync Flow View": "Progressive Sync Flow View",
"Expand or collapse all progressive sync step groups": "Expand or collapse all progressive sync step groups",
"No Applications In This Step": "No Applications In This Step",
"Edit ImageUpdater": "Edit ImageUpdater",
"Delete ImageUpdater": "Delete ImageUpdater",
"Error: Missing required route parameters": "Error: Missing required route parameters",
"True": "True",
"False": "False",
"ImageUpdater details": "ImageUpdater details",
"Ready": "Ready",
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
"True": "True",
"False": "False",
"Applications Matched": "Applications Matched",
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
"Images Managed": "Images Managed",
Expand Down Expand Up @@ -284,7 +288,6 @@
"Create Rollout": "Create Rollout",
"Pods": "Pods",
"Selector": "Selector",
"No labels": "No labels",
"Rollout Status": "Rollout Status",
"Revisions": "Revisions",
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
Expand Down Expand Up @@ -322,7 +325,7 @@
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
"ApplicationSets": "ApplicationSets",
"Create ApplicationSet": "Create ApplicationSet",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"No labels": "No labels",
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",
"Edit": "Edit",
Expand Down
11 changes: 7 additions & 4 deletions locales/zh/plugin__gitops-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,26 @@
"App Project": "App Project",
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
"Progressive Sync Step {{x}}": "Progressive Sync Step {{x}}",
"Applications": "Applications",
"Show all match expressions": "Show all match expressions",
"Edit ApplicationSet": "Edit ApplicationSet",
"Delete ApplicationSet": "Delete ApplicationSet",
"View Graph": "View Graph",
"Match Expressions": "Match Expressions",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"AppSet ownerReference Tree View": "AppSet ownerReference Tree View",
"Progressive Sync Flow View": "Progressive Sync Flow View",
"Expand or collapse all progressive sync step groups": "Expand or collapse all progressive sync step groups",
"No Applications In This Step": "No Applications In This Step",
"Edit ImageUpdater": "Edit ImageUpdater",
"Delete ImageUpdater": "Delete ImageUpdater",
"Error: Missing required route parameters": "Error: Missing required route parameters",
"True": "True",
"False": "False",
"ImageUpdater details": "ImageUpdater details",
"Ready": "Ready",
"Whether the last reconciliation completed without errors.": "Whether the last reconciliation completed without errors.",
"True": "True",
"False": "False",
"Applications Matched": "Applications Matched",
"Number of applications matched by this ImageUpdater.": "Number of applications matched by this ImageUpdater.",
"Images Managed": "Images Managed",
Expand Down Expand Up @@ -284,7 +288,6 @@
"Create Rollout": "Create Rollout",
"Pods": "Pods",
"Selector": "Selector",
"No labels": "No labels",
"Rollout Status": "Rollout Status",
"Revisions": "Revisions",
"There was an error retrieving the rollout. Check your connection and reload the page.": "There was an error retrieving the rollout. Check your connection and reload the page.",
Expand Down Expand Up @@ -322,7 +325,7 @@
"There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.",
"ApplicationSets": "ApplicationSets",
"Create ApplicationSet": "Create ApplicationSet",
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
"No labels": "No labels",
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",
"Map of string keys and values that can be used to organize and categorize (scope and select) objects.": "Map of string keys and values that can be used to organize and categorize (scope and select) objects.",
"Edit": "Edit",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
"react-redux": "7.2.9",
"react-router-dom-v5-compat": "^6.30.0",
"react-router-hash-link": "2.4.3",
"redux": "4.0.1"
"redux": "4.0.1",
"yaml": "^2.9.0"
},
"//TODO": [
"For @patternfly/react-icons: find another solution for icons from older react-icons version and remove this dependency."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@

.pf-topology__node__label__background {
fill: var(--pf-t--global--background--color--floating--default);
stroke: var(--pf-t--global--border--color--default);
stroke-width: 1;
}

.pf-topology__node__action-icon:hover svg{
Expand Down
4 changes: 4 additions & 0 deletions src/gitops/components/application/graph/graph-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ const createApplicationNode = (
height: APP_NODE_HEIGHT,
data: {
name: application?.metadata?.name,
namespace: application?.metadata?.namespace,
kind: application?.kind,
version: ApplicationModel.apiVersion || 'v1alpha1',
group: ApplicationModel.apiGroup || 'argoproj.io',
badge: 'A',
badgeColor: RESOURCE_COLORS.get(
RESOURCE_BADGE_COLORS.get('.co-m-resource-' + application?.kind.toLowerCase()),
Expand Down
58 changes: 58 additions & 0 deletions src/gitops/components/appset/AppSetMatchExpressionsTab.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import * as React from 'react';
import { RouteComponentProps } from 'react-router';
import * as YamlFormatter from 'yaml';

import { SidebarSectionHeading } from '@gitops/topology/sidebar/DeploymentSideBarDetails';
import { Card, CardBody, Flex, FlexItem, PageSection } from '@patternfly/react-core';

import { ApplicationSetKind } from '../../models/ApplicationSetModel';
import { useGitOpsTranslation } from '../../utils/hooks/useGitOpsTranslation';

import './AppSetDetailsTab.scss';

type AppSetMatchExpressionsTabProps = RouteComponentProps<{ ns: string; name: string }> & {
obj?: ApplicationSetKind;
customData?: object;
};

const AppSetMatchExpressionsTab: React.FC<AppSetMatchExpressionsTabProps> = ({
obj,
customData,
}) => {
const { t } = useGitOpsTranslation();
const index = customData.step !== undefined ? parseInt(customData?.step) - 1 : -1;
if (index >= 0) {
const yaml = obj?.spec?.strategy?.rollingSync?.steps[index] || {};
return (
<>
<PageSection>
<Flex
justifyContent={{ default: 'justifyContentSpaceEvenly' }}
direction={{ default: 'column', lg: 'row' }}
>
<Flex flex={{ default: 'flex_2' }}>
<FlexItem fullWidth={{ default: 'fullWidth' }}>
<div>
<div>
<SidebarSectionHeading
text={t('Progressive Sync Step {{x}}', { x: customData?.step })}
/>
</div>
</div>
<Card>
<CardBody>
<pre>{YamlFormatter.stringify(yaml, null, 2)}</pre>
</CardBody>
</Card>
</FlexItem>
</Flex>
</Flex>
</PageSection>
</>
);
} else {
return <div></div>;
}
};

export default AppSetMatchExpressionsTab;
Loading
Loading