Florian Forster
f455ff0b1f
Merge a3fc5a92e4
into d13dec297a
9 months ago
Florian Forster
a3fc5a92e4
flux diff artifact: Add (and fix) unit tests.
...
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
672b759f2e
flux diff artifact: Add support for the `--ignore-paths` flag.
...
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
72d32a248b
flux diff artifact: Compute a unified diff internally by default.
...
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
a45a0ee7c5
flux diff artifact: Use the `tar.Untar()` convenience function.
...
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
ba36b37ac1
flux diff artifact: Provide a non-semantic diff option.
...
Artifacts may contain other files types, not just YAML files, meaning the
semantic YAML diff provided by `dyff` is not a safe default.
This change implements purely textual diffing using the `diff` command line
tool. This tool can be overridden by users using the `FLUX_EXTERNAL_DIFF`
environment variable.
Users that store Kubernetes resource manifests in the artifact can re-enable
the semantic YAML diff behavior using the `--semantic-diff yaml` flag.
The arguments to the diff subcommand may be:
* A directory
* A .tar.gz or .tgz file
* An OCI url
* An individual file
The two arguments to the command are treated the same way, allowing users to
diff in either direction.
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
506a44d740
flux diff artifact: Use `cmd.Print()` instead of `fmt.Print()`.
...
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
0a56dabf2d
flux diff artifact: Fix and document `--path=-` which reads from STDIN.
...
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
d28d9ff58d
Use `printers.DyffPrinter` to format the output.
...
Also updates the list of options passed to `dyff.CompareInputFiles` to be the
same as in the internal `build` package.
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
2c4194e0a5
flux diff artifact: Check for an expected error using `errors.Is`.
...
This fixes the `TestDiffArtifact` unit test.
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Florian Forster
72a948e8a9
flux diff artifact: Print the differences in human readable form.
...
I was hoping to use `flux diff artifact` as part of a CI pipeline to show the
difference between the merge request and the currently deployed artifact. The
existing implementation doesn't work for us, since it only compares the
checksums.
This commit changes the output produced by `flux diff artifact` to a list of
changes in human readable form. The code is using the `dyff` package to produce
a semantic diff of the YAML files. That means, for example, that changes in the
order of map fields are ignored, while changes in the order of lists are not.
Example output:
```
$ ./bin/flux diff artifact "oci://${IMAGE}" --path=example-service/
spec.replicas (apps/v1/Deployment/example-service-t205j6/backend-production)
± value change
- 1
+ 7
✗ "oci://registry.gitlab.com/${REDACTED}/example-service-t205j6/deploy:production" and "example-service/" differ
```
The new `--brief` / `-q` flag enables users to revert to the previous behavior
of only printing a has changed/has not changed line.
Signed-off-by: Florian Forster <fforster@gitlab.com>
9 months ago
Stefan Prodan
d13dec297a
Merge pull request #4939 from bkreitch/resursive-diff
...
Recursively diff Kustomizations
9 months ago
Boris Kreitchman
2d37544b06
Recursively build and diff Kustomizations
...
Signed-off-by: Boris Kreitchman <bkreitch@gmail.com>
9 months ago
Stefan Prodan
1b4de026dd
Merge pull request #4970 from JasonTheDeveloper/notation-go-1.2.1
...
Update notaryproject/notation-go to 1.2.1
9 months ago
Jason
9af1e85b93
build(deps): bump notation-go to v1.2.1
...
Signed-off-by: Jason <jagoodse@microsoft.com>
9 months ago
Stefan Prodan
cb327a793e
Merge pull request #4967 from mxtw/use-tempdir
...
tests: use tempdir to avoid manual gc
9 months ago
Max Tantow
82671cfd24
tests: use tempdir to avoid manual gc
...
Signed-off-by: Max Tantow <max@macks.cloud>
10 months ago
Stefan Prodan
69964519e7
Merge pull request #4959 from fluxcd/fix-github-bootstrap
...
Fix GitHub bootstrap for repositories with custom properties
10 months ago
Stefan Prodan
1ac06fd859
Update `go-git-providers` to v0.21.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
10 months ago
Stefan Prodan
1563d2b81b
Merge pull request #4952 from fluxcd/dependabot/github_actions/ci-bba31507db
...
build(deps): bump the ci group with 2 updates
10 months ago
dependabot[bot]
285495a0e7
build(deps): bump the ci group with 2 updates
...
Bumps the ci group with 2 updates: [fluxcd/pkg](https://github.com/fluxcd/pkg ) and [github/codeql-action](https://github.com/github/codeql-action ).
Updates `fluxcd/pkg` from 11195c91e5e1898cfa5840267a7fd0aa462cd040 to e40e7ed2bc31c6b6e36d263b6299e5082d9fef12
- [Commits](11195c91e5...e40e7ed2bc
)
Updates `github/codeql-action` from 3.26.4 to 3.26.5
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](f0f3afee80...2c779ab0d0
)
---
updated-dependencies:
- dependency-name: fluxcd/pkg
dependency-type: direct:production
dependency-group: ci
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
...
Signed-off-by: dependabot[bot] <support@github.com>
10 months ago
Stefan Prodan
16e30439b7
Merge pull request #4950 from fluxcd/dependabot/github_actions/ci-d30b57bcb7
...
build(deps): bump the ci group across 1 directory with 4 updates
10 months ago
dependabot[bot]
36dec31fd7
build(deps): bump the ci group across 1 directory with 4 updates
...
Bumps the ci group with 4 updates in the / directory: [korthout/backport-action](https://github.com/korthout/backport-action ), [google-github-actions/auth](https://github.com/google-github-actions/auth ), [github/codeql-action](https://github.com/github/codeql-action ) and [anchore/sbom-action](https://github.com/anchore/sbom-action ).
Updates `korthout/backport-action` from 3.0.2 to 3.1.0
- [Release notes](https://github.com/korthout/backport-action/releases )
- [Commits](bd410d37cd...be567af183
)
Updates `google-github-actions/auth` from 2.1.4 to 2.1.5
- [Release notes](https://github.com/google-github-actions/auth/releases )
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md )
- [Commits](f112390a2d...62cf5bd3e4
)
Updates `github/codeql-action` from 3.26.1 to 3.26.4
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](29d86d22a3...f0f3afee80
)
Updates `anchore/sbom-action` from 0.17.1 to 0.17.2
- [Release notes](https://github.com/anchore/sbom-action/releases )
- [Commits](ab9d16d4b4...61119d458a
)
---
updated-dependencies:
- dependency-name: korthout/backport-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: google-github-actions/auth
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
- dependency-name: anchore/sbom-action
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
...
Signed-off-by: dependabot[bot] <support@github.com>
10 months ago
Stefan Prodan
bd1ff8f771
Merge pull request #4948 from harshitasao/scorecard-checks-fix
...
fix: fixed GHA token-permission and pinned dependencies issue
10 months ago
harshitasao
83402e8834
fix: fixed the token-permission and pinned dependencies issue
...
Signed-off-by: harshitasao <harshitasao@gmail.com>
10 months ago
Stefan Prodan
cc87ffd66e
Merge pull request #4936 from fluxcd/go-1.23
...
Build with Go 1.23
10 months ago
Stefan Prodan
c39af08b47
Update alpine to 3.20 for flux-cli
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
10 months ago
Stefan Prodan
18e0087439
Build with Go 1.23
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
10 months ago
Stefan Prodan
1b0eecd145
Merge pull request #4934 from fluxcd/k8s-1.31
...
Update dependencies to Kubernetes v1.31.0
10 months ago
Stefan Prodan
2694dfd489
Update dependencies to Kubernetes v1.31.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
10 months ago
Stefan Prodan
466d30047a
Merge pull request #4930 from fluxcd/dependabot/github_actions/ci-289148a3ce
...
build(deps): bump the ci group across 1 directory with 13 updates
10 months ago
dependabot[bot]
2281013050
build(deps): bump the ci group across 1 directory with 13 updates
...
Bumps the ci group with 13 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout ) | `4.1.6` | `4.1.7` |
| [actions/setup-go](https://github.com/actions/setup-go ) | `5.0.1` | `5.0.2` |
| [google-github-actions/auth](https://github.com/google-github-actions/auth ) | `2.1.3` | `2.1.4` |
| [google-github-actions/setup-gcloud](https://github.com/google-github-actions/setup-gcloud ) | `2.1.0` | `2.1.1` |
| [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action ) | `3.0.0` | `3.2.0` |
| [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) | `3.3.0` | `3.6.1` |
| [docker/login-action](https://github.com/docker/login-action ) | `3.2.0` | `3.3.0` |
| [ossf/scorecard-action](https://github.com/ossf/scorecard-action ) | `2.3.3` | `2.4.0` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact ) | `4.3.3` | `4.3.6` |
| [github/codeql-action](https://github.com/github/codeql-action ) | `3.25.8` | `3.26.1` |
| [anchore/sbom-action](https://github.com/anchore/sbom-action ) | `0.16.0` | `0.17.1` |
| [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer ) | `3.5.0` | `3.6.0` |
| [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request ) | `6.0.5` | `6.1.0` |
Updates `actions/checkout` from 4.1.6 to 4.1.7
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](a5ac7e51b4...692973e3d9
)
Updates `actions/setup-go` from 5.0.1 to 5.0.2
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](cdcb360436...0a12ed9d6a
)
Updates `google-github-actions/auth` from 2.1.3 to 2.1.4
- [Release notes](https://github.com/google-github-actions/auth/releases )
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md )
- [Commits](71fee32a0b...f112390a2d
)
Updates `google-github-actions/setup-gcloud` from 2.1.0 to 2.1.1
- [Release notes](https://github.com/google-github-actions/setup-gcloud/releases )
- [Changelog](https://github.com/google-github-actions/setup-gcloud/blob/main/CHANGELOG.md )
- [Commits](98ddc00a17...f0990588f1
)
Updates `docker/setup-qemu-action` from 3.0.0 to 3.2.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases )
- [Commits](68827325e0...49b3bc8e6b
)
Updates `docker/setup-buildx-action` from 3.3.0 to 3.6.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](d70bba72b1...988b5a0280
)
Updates `docker/login-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](0d4c9c5ea7...9780b0c442
)
Updates `ossf/scorecard-action` from 2.3.3 to 2.4.0
- [Release notes](https://github.com/ossf/scorecard-action/releases )
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md )
- [Commits](dc50aa9510...62b2cac7ed
)
Updates `actions/upload-artifact` from 4.3.3 to 4.3.6
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](65462800fd...834a144ee9
)
Updates `github/codeql-action` from 3.25.8 to 3.26.1
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](2e230e8fe0...29d86d22a3
)
Updates `anchore/sbom-action` from 0.16.0 to 0.17.1
- [Release notes](https://github.com/anchore/sbom-action/releases )
- [Commits](e8d2a6937e...ab9d16d4b4
)
Updates `sigstore/cosign-installer` from 3.5.0 to 3.6.0
- [Release notes](https://github.com/sigstore/cosign-installer/releases )
- [Commits](59acb6260d...4959ce089c
)
Updates `peter-evans/create-pull-request` from 6.0.5 to 6.1.0
- [Release notes](https://github.com/peter-evans/create-pull-request/releases )
- [Commits](6d6857d369...c5a7806660
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
- dependency-name: google-github-actions/auth
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
- dependency-name: google-github-actions/setup-gcloud
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: ci
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: anchore/sbom-action
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: sigstore/cosign-installer
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
- dependency-name: peter-evans/create-pull-request
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ci
...
Signed-off-by: dependabot[bot] <support@github.com>
10 months ago
Stefan Prodan
e06e561150
Merge pull request #4892 from fluxcd/conformance-tests-k8s-1.31
...
Run conformance tests for Kubernetes v1.31
10 months ago
Stefan Prodan
41bdb88be2
Run conformance tests for Kubernetes v1.31
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
10 months ago
Stefan Prodan
52512a94a8
Merge pull request #4922 from bkreitch/stop-spinner-on-cancel
...
Stop spinner on cancel of flux diff kustomization
10 months ago
Boris Kreitchman
170e4f6f57
Stop spinner on cancel
...
Signed-off-by: Boris Kreitchman <bkreitch@gmail.com>
10 months ago
Stefan Prodan
b8bf44e0ae
Merge pull request #4918 from matheuscscp/fix-copy-paste-mistake
...
Fix reconcile helmrelease command description
10 months ago
Matheus Pimenta
f6a0250712
Fix reconcile helmrelease command description
...
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
10 months ago
Stefan Prodan
31d160b309
Merge pull request #4866 from nagyv/Introduce-visibility-flag-for-bootstrap-gitlab
...
Introduce visibility flag for bootstrap gitlab
11 months ago
Viktor Nagy
fabdbaaf92
Introduce visibility flag for bootstrap gitlab
...
Signed-off-by: Viktor Nagy <vnagy@gitlab.com>
11 months ago
Stefan Prodan
a9017239b7
Merge pull request #4871 from harshitasao/scorecard-badge-link
...
changed the scorecard badge link to the standard format
12 months ago
harshitasao
9f873c0a07
changed the scorecard badge link to the standard format
...
Signed-off-by: harshitasao <harshitasao@gmail.com>
12 months ago
Stefan Prodan
0720935fb4
Merge pull request #4863 from fluxcd/conform-e2e-k8s-update
...
Update conformance tests to Kubernetes v1.30.2
12 months ago
Stefan Prodan
298e28b63e
Update conformance tests to Kubernetes v1.30.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
12 months ago
Stefan Prodan
ec141c63c4
Merge pull request #4845 from fluxcd/conformance-arm64-gh
...
Run ARM64 e2e tests on GitHub runners
1 year ago
Stefan Prodan
b45cd59b7c
Run ARM64 e2e tests on GitHub runners
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 year ago
Stefan Prodan
e42aa8e448
Merge pull request #4842 from fluxcd/base-part-of-flux
...
Add `part-of` label to controllers base
1 year ago
Stefan Prodan
a5447e4c77
Add `part-of` label to controllers base
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 year ago
souleb
638e537b40
Merge pull request #4806 from dipti-pai/rfc-git-passwordless-auth
...
[RFC] Passwordless authentication for Git repositories
1 year ago
Sanskar Jaiswal
d95e8b63e0
RFC: Add passswordless auth for git repos
...
Signed-off-by: Dipti Pai <diptipai89@outlook.com>
Signed-off-by: Soule BA <bah.soule@gmail.com>
Signed-off-by: Sunny <github@darkowlzz.space>
Co-authored-by: Dipti Pai <diptipai89@outlook.com>
Co-authored-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
Co-authored-by: Soule BA <bah.soule@gmail.com>
Co-authored-by: Sunny <github@darkowlzz.space>
Co-authored-by: Viktor Nagy <126671+nagyv@users.noreply.github.com>
1 year ago