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.
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>
2 years ago
..
arch.go Change `fluxcd/toolkit` to `fluxcd/flux2` 4 years ago
arch_test.go Add tests for CLI flags 4 years ago
crds.go Add upgrade CRDs policy to create helmrelease cmd 4 years ago
crds_test.go Update Go to v1.17 3 years ago
decryption_provider.go Add tests for CLI flags 4 years ago
decryption_provider_test.go Update Go to v1.17 3 years ago
ecdsa_curve.go Add tests for CLI flags 4 years ago
ecdsa_curve_test.go Update Go to v1.17 3 years ago
git_implementation.go Update Source API to v1beta2 3 years ago
git_implementation_test.go Update Source API to v1beta2 3 years ago
helm_chart_source.go Update Source API to v1beta2 3 years ago
helm_chart_source_test.go Update Source API to v1beta2 3 years ago
kustomization_source.go Implement OCIRepository commands 2 years ago
kustomization_source_test.go Update Source API to v1beta2 3 years ago
log_level.go Change `fluxcd/toolkit` to `fluxcd/flux2` 4 years ago
log_level_test.go Update Go to v1.17 3 years ago
public_key_algorithm.go Change copyright to Flux authors 4 years ago
public_key_algorithm_test.go Update Go to v1.17 3 years ago
rsa_key_bits.go Add tests for CLI flags 4 years ago
rsa_key_bits_test.go Update Go to v1.17 3 years ago
safe_relative_path.go Adds support for dot-prefixed paths in git 3 years ago
safe_relative_path_test.go Adds test for parent directory 3 years ago
source_bucket_provider.go Add OCI provider arg 2 years ago
source_bucket_provider_test.go Update Source API to v1beta2 3 years ago
source_oci_provider.go Support logging in directly to the provider when pushing OCI artifacts 2 years ago