diff --git a/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts b/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts index e9c27af0372..fe6aeb1379f 100644 --- a/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts +++ b/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts @@ -8,6 +8,7 @@ import { KUBERNETES_MANIFEST_BASIC_SETTINGS } from './manifest/wizard/basicSetti import { KUBERNETES_V2_SERVER_GROUP_COMMAND_BUILDER } from './serverGroup/serverGroupCommandBuilder.service'; import { KUBERNETES_MANIFEST_CTRL } from './manifest/wizard/manifestWizard.controller'; import { KUBERNETES_MANIFEST_ENTRY } from './manifest/wizard/manifestEntry.component'; +import { KUBERNETES_V2_SERVER_GROUP_TRANSFORMER } from './serverGroup/serverGroupTransformer.service'; // load all templates into the $templateCache const templates = require.context('./', true, /\.html$/); @@ -20,6 +21,7 @@ export const KUBERNETES_V2_MODULE = 'spinnaker.kubernetes.v2'; module(KUBERNETES_V2_MODULE, [ CLOUD_PROVIDER_REGISTRY, KUBERNETES_V2_SERVER_GROUP_COMMAND_BUILDER, + KUBERNETES_V2_SERVER_GROUP_TRANSFORMER, KUBERNETES_MANIFEST_BASIC_SETTINGS, KUBERNETES_MANIFEST_COMMAND_BUILDER, KUBERNETES_MANIFEST_CTRL, @@ -35,6 +37,7 @@ module(KUBERNETES_V2_MODULE, [ commandBuilder: 'kubernetesV2ServerGroupCommandBuilder', cloneServerGroupController: 'kubernetesManifestWizardCtrl', cloneServerGroupTemplateUrl: require('./manifest/wizard/manifestWizard.html'), + transformer: 'kubernetesV2ServerGroupTransformer', } }); }); diff --git a/app/scripts/modules/kubernetes/v2/serverGroup/serverGroupTransformer.service.ts b/app/scripts/modules/kubernetes/v2/serverGroup/serverGroupTransformer.service.ts new file mode 100644 index 00000000000..41617972cc5 --- /dev/null +++ b/app/scripts/modules/kubernetes/v2/serverGroup/serverGroupTransformer.service.ts @@ -0,0 +1,16 @@ +import { IQService, module } from 'angular'; + +export class KubernetesV2ServerGroupTransformer { + constructor(private $q: IQService) { + 'ngInject'; + } + + public normalizeServerGroup(serverGroup: any) { + return this.$q.when(serverGroup); + } +} + +export const KUBERNETES_V2_SERVER_GROUP_TRANSFORMER = 'spinnaker.kubernetes.v2.serverGroup.transformer.service'; + +module(KUBERNETES_V2_SERVER_GROUP_TRANSFORMER, [ +]).service('kubernetesV2ServerGroupTransformer', KubernetesV2ServerGroupTransformer);