Skip to content

Commit

Permalink
feat(ui): 'http' and 'yaml-update' promotion directives support (#2987)
Browse files Browse the repository at this point in the history
Signed-off-by: Mayursinh Sarvaiya <[email protected]>
  • Loading branch information
Marvin9 authored Nov 23, 2024
1 parent cc293f0 commit 384c547
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ import {
faCodePullRequest,
faCopy,
faDraftingCompass,
faEdit,
faExchangeAlt,
faFileCode,
faFileEdit,
faFileImage,
faGlobe,
faHammer,
faHeart,
faNetworkWired,
faRedoAlt,
faSyncAlt,
faUpDown,
Expand All @@ -34,8 +38,10 @@ import gitWaitForPR from '@ui/gen/directives/git-wait-for-pr-config.json';
import helmTemplateConfig from '@ui/gen/directives/helm-template-config.json';
import helmUpdateChartConfig from '@ui/gen/directives/helm-update-chart-config.json';
import helmUpdateImageConfig from '@ui/gen/directives/helm-update-image-config.json';
import httpConfig from '@ui/gen/directives/http-config.json';
import kustomizeBuildConfig from '@ui/gen/directives/kustomize-build-config.json';
import kustomizeSetImageConfig from '@ui/gen/directives/kustomize-set-image-config.json';
import yamlUpdateConfig from '@ui/gen/directives/yaml-update-config.json';

import { PromotionDirectivesRegistry } from './types';

Expand Down Expand Up @@ -80,6 +86,11 @@ export const useDiscoverPromotionDirectivesRegistries = (): PromotionDirectivesR
unstable_icons: [faClock, faCodePullRequest],
config: gitWaitForPR as unknown as JSONSchema7
},
{
identifier: 'yaml-update',
config: yamlUpdateConfig as unknown as JSONSchema7,
unstable_icons: [faFileCode, faSyncAlt, faEdit]
},
{
identifier: 'git-push',
unstable_icons: [faArrowUp, faCloudUploadAlt],
Expand Down Expand Up @@ -114,6 +125,11 @@ export const useDiscoverPromotionDirectivesRegistries = (): PromotionDirectivesR
identifier: 'kustomize-set-image',
unstable_icons: [faFileImage, faFileEdit],
config: kustomizeSetImageConfig as JSONSchema7
},
{
identifier: 'http',
unstable_icons: [faGlobe, faNetworkWired, faExchangeAlt],
config: httpConfig as JSONSchema7
}
]
};
Expand Down

0 comments on commit 384c547

Please sign in to comment.