Remove creationTimestamp leading spaces
This commit is contained in:
4
.github/workflows/bootstrap.yaml
vendored
4
.github/workflows/bootstrap.yaml
vendored
@@ -34,6 +34,7 @@ jobs:
|
|||||||
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
||||||
--owner=fluxcd-testing \
|
--owner=fluxcd-testing \
|
||||||
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
||||||
|
--branch=main \
|
||||||
--path=test-cluster
|
--path=test-cluster
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
||||||
@@ -42,6 +43,7 @@ jobs:
|
|||||||
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
||||||
--owner=fluxcd-testing \
|
--owner=fluxcd-testing \
|
||||||
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
||||||
|
--branch=main \
|
||||||
--path=test-cluster
|
--path=test-cluster
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
||||||
@@ -54,6 +56,7 @@ jobs:
|
|||||||
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
||||||
--owner=fluxcd-testing \
|
--owner=fluxcd-testing \
|
||||||
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
||||||
|
--branch=main \
|
||||||
--path=test-cluster
|
--path=test-cluster
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }}
|
||||||
@@ -62,6 +65,7 @@ jobs:
|
|||||||
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
./bin/gotk bootstrap github --manifests ./manifests/install/ \
|
||||||
--owner=fluxcd-testing \
|
--owner=fluxcd-testing \
|
||||||
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
--repository=gotk-test-${{ steps.vars.outputs.sha_short }} \
|
||||||
|
--branch=main \
|
||||||
--path=test-cluster \
|
--path=test-cluster \
|
||||||
--delete
|
--delete
|
||||||
env:
|
env:
|
||||||
|
|||||||
7
.github/workflows/e2e.yaml
vendored
7
.github/workflows/e2e.yaml
vendored
@@ -49,6 +49,13 @@ jobs:
|
|||||||
./bin/gotk create source git podinfo \
|
./bin/gotk create source git podinfo \
|
||||||
--url https://github.com/stefanprodan/podinfo \
|
--url https://github.com/stefanprodan/podinfo \
|
||||||
--tag-semver=">=3.2.3"
|
--tag-semver=">=3.2.3"
|
||||||
|
- name: gotk create source git export apply
|
||||||
|
run: |
|
||||||
|
./bin/gotk create source git podinfo-export \
|
||||||
|
--url https://github.com/stefanprodan/podinfo \
|
||||||
|
--tag-semver=">=3.2.3" \
|
||||||
|
--export | kubectl apply -f -
|
||||||
|
./bin/gotk delete source git podinfo-export --silent
|
||||||
- name: gotk get sources git
|
- name: gotk get sources git
|
||||||
run: |
|
run: |
|
||||||
./bin/gotk get sources git
|
./bin/gotk get sources git
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func resourceToString(data []byte) string {
|
func resourceToString(data []byte) string {
|
||||||
data = bytes.Replace(data, []byte("creationTimestamp: null\n"), []byte(""), 1)
|
data = bytes.Replace(data, []byte(" creationTimestamp: null\n"), []byte(""), 1)
|
||||||
data = bytes.Replace(data, []byte("status: {}\n"), []byte(""), 1)
|
data = bytes.Replace(data, []byte("status: {}\n"), []byte(""), 1)
|
||||||
return string(data)
|
return string(data)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user