Skip to content

Commit

Permalink
pass required parameters to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Oct 31, 2024
1 parent ce07906 commit cba4d6f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class K8s {
* returns list of k8s objects matching provided selector
* @param {String} selector kubernetes selector, like 'app=teraslice'
* @param {ResourceType} objType Type of k8s object to get, valid options:
* 'deployments', 'jobs', 'pods', 'replicasets', 'services'
* 'deployment', 'job', 'pod', 'replicaset', 'service'
* @param {String} ns namespace to search, this will override the default
* @return {k8s.V1PodList
* | k8s.V1DeploymentList
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from 'lodash';
import * as k8s from '@kubernetes/client-node';
import { isNumber, Logger } from '@terascope/utils';
import type { TerasliceConfig, ExecutionConfig } from '@terascope/job-components';
import type { Config, ExecutionConfig } from '@terascope/types';
import { safeEncode } from '../../../../../utils/encoding_utils.js';
import { isService, makeTemplate, setMaxOldSpaceViaEnv } from './utils.js';
import { K8sConfig, NodeType } from './interfaces.js';
Expand All @@ -13,7 +13,7 @@ export class K8sResource {
logger: Logger;
nodeType: NodeType;
nameInfix: string;
terasliceConfig: TerasliceConfig;
terasliceConfig: Config;
templateGenerator: (config: K8sConfig) => k8s.V1Deployment | k8s.V1Job | k8s.V1Service;
templateConfig: K8sConfig;
resource: k8s.V1Deployment | k8s.V1Job | k8s.V1Service;
Expand All @@ -35,7 +35,7 @@ export class K8sResource {
constructor(
resourceType: 'deployment' | 'job' | 'service',
resourceName: NodeType,
terasliceConfig: TerasliceConfig,
terasliceConfig: Config,
execution: ExecutionConfig,
logger: Logger,
exName?: string,
Expand Down
Loading

0 comments on commit cba4d6f

Please sign in to comment.