Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
a57aa49538 |
2
.github/workflows/release-pr.yml
vendored
2
.github/workflows/release-pr.yml
vendored
@ -13,6 +13,6 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
actions: read
|
actions: read
|
||||||
contents: write
|
contents: write
|
||||||
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@a705b2ab6a3ee889f2b0d925ad0bd2f9eb733ce6
|
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@v1
|
||||||
with:
|
with:
|
||||||
changelogPath: ./CHANGELOG.md
|
changelogPath: ./CHANGELOG.md
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -331,3 +331,4 @@ node_modules
|
|||||||
coverage
|
coverage
|
||||||
|
|
||||||
# Transpiled JS
|
# Transpiled JS
|
||||||
|
lib/
|
||||||
|
@ -19,7 +19,7 @@ Refer to the [action metadata file](./action.yml) for details about inputs. Note
|
|||||||
### Kubeconfig approach
|
### Kubeconfig approach
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: azure/k8s-set-context@v3
|
- uses: azure/k8s-set-context@v4
|
||||||
with:
|
with:
|
||||||
method: kubeconfig
|
method: kubeconfig
|
||||||
kubeconfig: <your kubeconfig>
|
kubeconfig: <your kubeconfig>
|
||||||
@ -50,7 +50,7 @@ Please refer to documentation on fetching [kubeconfig for any generic K8s cluste
|
|||||||
### Service account approach
|
### Service account approach
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: azure/k8s-set-context@v3
|
- uses: azure/k8s-set-context@v4
|
||||||
with:
|
with:
|
||||||
method: service-account
|
method: service-account
|
||||||
k8s-url: <URL of the cluster's API server>
|
k8s-url: <URL of the cluster's API server>
|
||||||
@ -74,7 +74,7 @@ kubectl get secret <service-account-secret-name> -n <namespace> -o yaml
|
|||||||
### Service account approach for arc cluster
|
### Service account approach for arc cluster
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: azure/k8s-set-context@v3
|
- uses: azure/k8s-set-context@v4
|
||||||
with:
|
with:
|
||||||
method: service-account
|
method: service-account
|
||||||
cluster-type: arc
|
cluster-type: arc
|
||||||
@ -86,7 +86,7 @@ kubectl get secret <service-account-secret-name> -n <namespace> -o yaml
|
|||||||
### Service principal approach for arc cluster
|
### Service principal approach for arc cluster
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: azure/k8s-set-context@v3
|
- uses: azure/k8s-set-context@v4
|
||||||
with:
|
with:
|
||||||
method: service-principal
|
method: service-principal
|
||||||
cluster-type: arc
|
cluster-type: arc
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
if (require.main !== module) {
|
|
||||||
throw new Error('This file should not be required');
|
|
||||||
}
|
|
||||||
|
|
||||||
var childProcess = require('child_process');
|
|
||||||
var fs = require('fs');
|
|
||||||
|
|
||||||
var paramFilePath = process.argv[2];
|
|
||||||
|
|
||||||
var serializedParams = fs.readFileSync(paramFilePath, 'utf8');
|
|
||||||
var params = JSON.parse(serializedParams);
|
|
||||||
|
|
||||||
var cmd = params.command;
|
|
||||||
var execOptions = params.execOptions;
|
|
||||||
var pipe = params.pipe;
|
|
||||||
var stdoutFile = params.stdoutFile;
|
|
||||||
var stderrFile = params.stderrFile;
|
|
||||||
|
|
||||||
var c = childProcess.exec(cmd, execOptions, function (err) {
|
|
||||||
if (!err) {
|
|
||||||
process.exitCode = 0;
|
|
||||||
} else if (err.code === undefined) {
|
|
||||||
process.exitCode = 1;
|
|
||||||
} else {
|
|
||||||
process.exitCode = err.code;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var stdoutStream = fs.createWriteStream(stdoutFile);
|
|
||||||
var stderrStream = fs.createWriteStream(stderrFile);
|
|
||||||
|
|
||||||
c.stdout.pipe(stdoutStream);
|
|
||||||
c.stderr.pipe(stderrStream);
|
|
||||||
c.stdout.pipe(process.stdout);
|
|
||||||
c.stderr.pipe(process.stderr);
|
|
||||||
|
|
||||||
if (pipe) {
|
|
||||||
c.stdin.end(pipe);
|
|
||||||
}
|
|
192191
lib/index.js
192191
lib/index.js
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user