Skip to content
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

feat(ui): 'http' and 'yaml-update' promotion directives support #2987

Merged
merged 1 commit into from
Nov 23, 2024
Merged
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
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