Comments (1)
Found the solution against the odds ...
First generate the secrets file like this:
$ kubectl create secret docker-registry docker-credential
--docker-username=xyz --docker-password=xyzpassword [email protected] --namespace=default
Write the secret to a new yaml:
$ kubectl get secret docker-credential -o yaml > key-alt.yaml
Edit the file so it looks like (I could have left the docker-registry out):
apiVersion: v1
data:
config.json: ewoJImF1***SIKCQl9Cgl9Cn0=
kind: Secret
metadata:
name: docker-credential-3
namespace: default
Create the secret:
$ kubectl apply -f key-alt.yaml
The 'red herring' was that you normally generate a docker secret using the type 'docker-registry'. It will create the secret with the key '.dockerconfig'. The Tekton task uses a different route: it requires the 'config.json' as the key of the Secret resource.
from catalog.
Related Issues (20)
- Error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1) HOT 2
- `ko` task uses `config.json` instead of `.dockerconfigjson` HOT 3
- kubernetes actions - [kubectl] error: the path "k8sdeploy.yaml" does not exist
- catalog/task/aws-cli/0.2 /aws-cli.yaml unable to refer to aws credential
- Task skopeo-copy ignores $HOME/.docker/config.json with credentials
- Tekton task "sonarqube-scanner" (v0.4) - gives failure HOT 3
- Tekton task 'sonarqube-scanner' cannot connect to sonarqube server HOT 1
- Add StepActions to Catalog HOT 7
- [DOC] The "git-clone" task document about the default value of the "userHome" parameter is not right
- get a warning “appears to need SSH authentication but no SSH credentials have been provided” in the pipelinerun log HOT 3
- Tekton task "git-clone": cannot use git-clone with localhost repo HOT 2
- Task "buildpack-phases": ERROR: failed to : set API for buildpack 'paketo-buildpacks/[email protected]': buildpack API version '0.7' is incompatible with the lifecycle HOT 1
- Remove `--no-cache` in buildah HOT 1
- task 'sonarqube scanner' fails with Not authorized. Please check the properties sonar.login and sonar.password.
- kubeconfig creator Task
- Upgrade Ansible Runner
- git-init base-image/dockerfile was deprecated/removed, but is still in use HOT 3
- Tekton task for kind
- maven multi module project not work(unrecognized option: -pl)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catalog.