flux2/internal/flags
Adrien Fillon 0694a9582f
Support logging in directly to the provider when pushing OCI artifacts
I've noticed during CI, that the current command
already expected a configured Docker client to
push artifacts to authenticated registries.

Some users might not want to have the Docker client
in their process (like a CI job) or build an handcrafted
config.json file.

This would allow this kind of behavior:

```
flux push artifact oci://my-registry.dev/foo:v1 \
  --source xxx \
  --revision xxx \
  --path . \
  --creds $TOKEN # Authenticate via "Bearer $TOKEN" Authorization header
```

Or via Autologin:

```
flux push artifact oci://012345678901.dkr.ecr.us-east-1.amazonaws.com/foo:v1 \
  --source xxx \
  --revision xxx \
  --path . \
  --provider aws
```

This has been implemented for:

* flux push artifact
* flux list artifact
* flux tag artifact
* flux pull artifact

This will require another PR in https://github.com/fluxcd/pkg/pull/352

Signed-off-by: Adrien Fillon <adrien.fillon@manomano.com>
..
arch.go Change `fluxcd/toolkit` to `fluxcd/flux2`
arch_test.go Add tests for CLI flags
crds.go Add upgrade CRDs policy to create helmrelease cmd
crds_test.go Update Go to v1.17
decryption_provider.go Add tests for CLI flags
decryption_provider_test.go Update Go to v1.17
ecdsa_curve.go Add tests for CLI flags
ecdsa_curve_test.go Update Go to v1.17
git_implementation.go Update Source API to v1beta2
git_implementation_test.go Update Source API to v1beta2
helm_chart_source.go Update Source API to v1beta2
helm_chart_source_test.go Update Source API to v1beta2
kustomization_source.go Implement OCIRepository commands
kustomization_source_test.go Update Source API to v1beta2
log_level.go Change `fluxcd/toolkit` to `fluxcd/flux2`
log_level_test.go Update Go to v1.17
public_key_algorithm.go Change copyright to Flux authors
public_key_algorithm_test.go Update Go to v1.17
rsa_key_bits.go Add tests for CLI flags
rsa_key_bits_test.go Update Go to v1.17
safe_relative_path.go Adds support for dot-prefixed paths in git
safe_relative_path_test.go Adds test for parent directory
source_bucket_provider.go Add OCI provider arg
source_bucket_provider_test.go Update Source API to v1beta2
source_oci_provider.go Support logging in directly to the provider when pushing OCI artifacts