Skip to content

Commit 76df7e1

Browse files
author
Luke Goodfellow
authored
Yaml Output (#1)
* updated links * Yaml output instead of JSON, updated versions for support.
1 parent d03fc06 commit 76df7e1

File tree

8 files changed

+10
-204
lines changed

8 files changed

+10
-204
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json.
22
{
33
"name": "Codefresh Support Package",
4-
"image": "denoland/deno:1.39.1",
4+
"image": "denoland/deno:1.39.2",
55
"onCreateCommand": "apt-get update && apt-get install git zip -y",
66
"mounts": [
77
"type=bind,source=${localEnv:HOME}/.ssh,target=/root/.ssh,readonly"

CONTRIBUTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ We love your input! We want to make contributing to this project as easy and tra
77
- Correct misspellings
88
- etc.
99

10-
## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
10+
## We Use [Github Flow](https://docs.github.com/en/get-started/quickstart/github-flow), So All Code Changes Happen Through Pull Requests
1111

1212
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
1313

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ This project is designed to gather data from Hybrid Runtimes for Codefresh SaaS
1313

1414
## Usage
1515

16-
1. Download the latest release of the tool for your platform.
16+
1. Download the [latest release](https://github.com/codefresh-support/codefresh-support-package/releases) of the tool for your platform.
1717
1. Execute the file via the CLI and follow the prompts.
1818
1. Redact any sensitive contents and upload the package to the support ticket.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.1.0

ci/codefresh.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ steps:
2020
title: Compiling
2121
stage: Build
2222
arguments:
23-
image: denoland/deno:alpine-1.39.1
23+
image: denoland/deno:alpine-1.39.2
2424
commands:
2525
- cf_export VERSION=$(cat VERSION)
2626
- deno task compile

deno.lock

Lines changed: 0 additions & 195 deletions
This file was deleted.

src/codefresh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
import { parse } from 'https://deno.land/std@0.208.0/yaml/mod.ts';
2+
import { parse } from 'https://deno.land/std@0.211.0/yaml/mod.ts';
33

44
class Codefresh {
55
async init() {

src/main.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
'use strict';
22

33
import { Codefresh } from './codefresh.js';
4-
import { autoDetectClient } from 'https://deno.land/x/[email protected].0/mod.ts';
4+
import { autoDetectClient } from 'https://deno.land/x/[email protected].2/mod.ts';
55
import { BatchV1Api } from 'https://deno.land/x/[email protected]/builtin/batch@v1/mod.ts';
66
import { CoreV1Api } from 'https://deno.land/x/[email protected]/builtin/core@v1/mod.ts';
77
import { StorageV1Api } from 'https://deno.land/x/[email protected]/builtin/storage.k8s.io@v1/mod.ts';
88
import { ArgoprojIoV1alpha1Api } from 'https://deno.land/x/[email protected]/argo-cd/argoproj.io@v1alpha1/mod.ts';
99
import { compress } from 'https://deno.land/x/[email protected]/mod.ts';
10+
import { stringify as toYaml } from 'https://deno.land/[email protected]/yaml/mod.ts';
1011

1112
console.log('Initializing \n');
1213
const kubeConfig = await autoDetectClient();
@@ -20,7 +21,7 @@ const dirPath = `./codefresh-support-${timestamp}`;
2021
async function saveItems(resources, dir) {
2122
await Deno.mkdir(`${dirPath}/${dir}/`, { recursive: true });
2223
return Promise.all(resources.map((item) => {
23-
return Deno.writeTextFile(`${dirPath}/${dir}/${item.metadata.name}.json`, JSON.stringify(item, null, 2));
24+
return Deno.writeTextFile(`${dirPath}/${dir}/${item.metadata.name}.yaml`, toYaml(item, {skipInvalid: true}));
2425
}));
2526
}
2627

@@ -64,7 +65,7 @@ async function gatherClassic() {
6465
}
6566
}
6667

67-
Deno.writeTextFile(`${dirPath}/runtimeSpec.json`, JSON.stringify(reSpec, null, 2));
68+
Deno.writeTextFile(`${dirPath}/runtimeSpec.yaml`, toYaml(reSpec, {skipInvalid: true}));
6869
}
6970

7071
async function gatherGitOps() {

0 commit comments

Comments
 (0)