Closed bradbeck closed 1 year ago
The documentation does not appear to reflect the allowed settings here: https://github.com/tektoncd/chains/blob/main/pkg/config/config.go#L261
It looks like the docdb backend is agnostic to the underlying type: https://github.com/tektoncd/chains/blob/9e69778c77dd0308a19dfdf9484bff0fd65e13d8/pkg/chains/storage/docdb/docdb.go#L62-L82
This might be as simple as adding docdb to the pipelinerun config set + adding tests.
Expected Behavior
The documentation suggests that
artifacts.pipelinerun.storage
acceptsdocdb
.https://tekton.dev/docs/chains/config/#pipelinerun-configuration
Actual Behavior
The chains controller will not start if
artifacts.pipelinerun.storage
includesdocdb
.Steps to Reproduce the Problem
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl apply --filename https://storage.googleapis.com/tekton-releases/chains/latest/release.yaml
kubectl patch cm chains-config -n tekton-chains --type strategic --patch '{"data":{"artifacts.pipelinerun.storage":"docdb"}}'
kubectl rollout restart -n tekton-chains deployment tekton-chains-controller
Additional Info
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'