Skip to content

Commit

Permalink
Fixed bad syntax on the OC apply command.
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Good <[email protected]>
  • Loading branch information
nathanagood committed Feb 7, 2024
1 parent f66319a commit b33d873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commontasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const DefaultCatalogSourceNamespace: string = 'openshift-marketplace';
*/
export function ApplyObjectTask(scope: Construct, id: string, input: any): TaskBuilder {
return openshift_client(scope, id).withStringParam(new ParameterBuilder('SCRIPT').withValue(
['oc apply -f <<EOF', Yaml.stringify(input), 'EOF'].join('\n')),
['cat <<EOF | oc apply -f -', Yaml.stringify(input), 'EOF', ''].join('\n')),
);
}

Expand Down

0 comments on commit b33d873

Please sign in to comment.