sparse-intern-71089
04/07/2020, 2:40 PMcool-egg-852
04/07/2020, 2:40 PMtransformations: [
(resource: any) => {
if (resource.metadata.name === 'kong-external-kong' && resource.kind === 'Deployment') {
resource.spec.template.spec.containers[0].securityContext = {
capabilities: {
drop: ['ALL'],
add: ['NET_BIND_SERVICE'],
},
allowPrivilegeEscalation: true,
};
}
},
],
cool-egg-852
04/07/2020, 2:40 PMcool-egg-852
04/07/2020, 2:40 PMTSError: ⨯ Unable to compile TypeScript:
chart.ts(58,7): error TS2322: Type '(resource: any) => void' is not assignable to type 'ResourceTransformation'.
Type 'void' is not assignable to type 'ResourceTransformationResult'.
chart.ts(122,7): error TS2322: Type '(resource: any) => void' is not assignable to type 'ResourceTransformation'.
Type 'void' is not assignable to type 'ResourceTransformationResult'.
clean-eve-27532
04/07/2020, 2:45 PMcool-egg-852
04/07/2020, 2:45 PMcool-egg-852
04/07/2020, 2:46 PMlimited-rainbow-51650
04/07/2020, 2:47 PMargs
and returning ResourceTransformationResult
or undefined
. Your signature differs from that
type ResourceTransformation = (args: ResourceTransformationArgs) => ResourceTransformationResult | undefined;
cool-egg-852
04/07/2020, 2:47 PMcool-egg-852
04/07/2020, 2:48 PMcool-egg-852
04/07/2020, 2:48 PMcool-egg-852
04/07/2020, 2:48 PMcool-egg-852
04/07/2020, 2:48 PMcool-egg-852
04/07/2020, 2:49 PMbusy-umbrella-36067
04/07/2020, 2:49 PMlimited-rainbow-51650
04/07/2020, 2:49 PMbusy-umbrella-36067
04/07/2020, 2:49 PMbusy-umbrella-36067
04/07/2020, 2:50 PMcool-egg-852
04/07/2020, 2:50 PM