Skip to content

Commit

Permalink
feat(ui): json-update promotion directive support
Browse files Browse the repository at this point in the history
Signed-off-by: Faeka Ansari <[email protected]>
  • Loading branch information
fykaa committed Dec 19, 2024
1 parent 8b92db0 commit 7c00799
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import helmUpdateImageConfig from '@ui/gen/directives/helm-update-image-config.j
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 jsonUpdateConfig from '@ui/gen/directives/json-update-config.json';

Check failure on line 18 in ui/src/features/promotion-directives/registry/use-discover-registries.ts

View workflow job for this annotation

GitHub Actions / lint-and-typecheck-ui

`@ui/gen/directives/json-update-config.json` import should occur before import of `@ui/gen/directives/kustomize-build-config.json`
import yamlUpdateConfig from '@ui/gen/directives/yaml-update-config.json';

import { PromotionDirectivesRegistry } from './types';
Expand Down Expand Up @@ -57,6 +58,10 @@ export const useDiscoverPromotionDirectivesRegistries = (): PromotionDirectivesR
identifier: 'yaml-update',
config: yamlUpdateConfig as unknown as JSONSchema7
},
{
identifier: 'json-update',
config: jsonUpdateConfig as unknown as JSONSchema7
},
{
identifier: 'git-push',
config: gitPushConfig as unknown as JSONSchema7
Expand Down

0 comments on commit 7c00799

Please sign in to comment.