You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Max Jonas Werner cbdd71e44e
Make `flux logs` more lenient
UX changes:

- Only print an error when a pod doesn't have a matching container
  instead of exiting early.
- Return a non-zero status code when no pod is found at all.

Details:

In certain situations there might be 3rd-party pods running in the
Flux namespace that cause the command to fail streaming logs, e.g.
when they have multiple containers but none of them is called
`manager` (which all Flux-maintained pods do). An example of such a
situation is when Flux is installed with the 3rd-party Flux extension
on AKS.

The `logs` command is now more forgiving and merely logs an error in
these situations instead of completely bailing out. It still returns a
non-zero exit code.

For the parallel log streaming with `-f` the code is now a little more
complex so that errors are now written to stderr in parallel with all
other logs written to stdout. That's what `asyncCopy` is for.

refs #3944

Signed-off-by: Max Jonas Werner <mail@makk.es>
2 years ago
.github build(deps): bump github/codeql-action from 2.3.5 to 2.3.6 2 years ago
action Update `push artifact`'s `--revision` to RFC-0005 2 years ago
cmd/flux Make `flux logs` more lenient 2 years ago
docs update to new doc links structure 2 years ago
install Update install/README.md 2 years ago
internal fix some comments 2 years ago
manifests Update toolkit components 2 years ago
pkg Update Git packages 2 years ago
rfcs fix some comments 2 years ago
tests return clone error 2 years ago
.gitignore fix makefile envtest setup and usage 3 years ago
.goreleaser.yml build: update release workflow 2 years ago
CODE_OF_CONDUCT.md Add coc, dco and maintainers docs 5 years ago
CONTRIBUTING.md Update Go to 1.20 2 years ago
DCO Add coc, dco and maintainers docs 5 years ago
Dockerfile Update kubectl to v1.27.2 in flux-cli image 2 years ago
LICENSE Initial commit 5 years ago
MAINTAINERS Move MAINTAINERS to f/community 3 years ago
Makefile Update Go to 1.20 2 years ago
README.md Add OSSF Scorecard 2 years ago
go.mod Update github.com/fluxcd/pkg/git/gogit to v0.12.0 2 years ago
go.sum Update github.com/fluxcd/pkg/git/gogit to v0.12.0 2 years ago
netlify.toml explain where docs are 4 years ago

README.md

Flux version 2

release CII Best Practices OpenSSF Scorecard FOSSA Status Artifact HUB

Flux is a tool for keeping Kubernetes clusters in sync with sources of configuration (like Git repositories and OCI artifacts), and automating updates to configuration when there is new code to deploy.

Flux version 2 ("v2") is built from the ground up to use Kubernetes' API extension system, and to integrate with Prometheus and other core components of the Kubernetes ecosystem. In version 2, Flux supports multi-tenancy and support for syncing an arbitrary number of Git repositories, among other long-requested features.

Flux v2 is constructed with the GitOps Toolkit, a set of composable APIs and specialized tools for building Continuous Delivery on top of Kubernetes.

Flux is a Cloud Native Computing Foundation (CNCF) project, used in production by various organisations and cloud providers.

Quickstart and documentation

To get started check out this guide on how to bootstrap Flux on Kubernetes and deploy a sample application in a GitOps manner.

For more comprehensive documentation, see the following guides:

If you need help, please refer to our Support page.

GitOps Toolkit

The GitOps Toolkit is the set of APIs and controllers that make up the runtime for Flux v2. The APIs comprise Kubernetes custom resources, which can be created and updated by a cluster user, or by other automation tooling.

overview

You can use the toolkit to extend Flux, or to build your own systems for continuous delivery -- see the developer guides.

Components

Community

Need help or want to contribute? Please see the links below. The Flux project is always looking for new contributors and there are a multitude of ways to get involved.

Events

Check out our events calendar, both with upcoming talks, events and meetings you can attend. Or view the resources section with past events videos you can watch.

We look forward to seeing you with us!