-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imagePullSecrets error (doc or code) #3619
Comments
Thanks for the report; and thank you for taking the time for tracking down the issue and reporting it ^_^
pipeline/pkg/apis/pipeline/pod/template.go Line 102 in f530a69
|
imagePullSecret -> imagePullSecrets Fixes tektoncd#3619 Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
imagePullSecret -> imagePullSecrets Fixes #3619 Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
@afrittoli Hi, Thanks for your fix. I saw your doc fix.
not small i, isn't it? |
/reopen |
@Hokwang: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale |
@afrittoli |
@Hokwang it should be small pipeline/pkg/apis/pipeline/pod/template.go Lines 100 to 102 in e20d249
json:"imagePullSecrets" on the field - this is the field name which should be used. The YAML library we use looks at the json tags on the field name and reads from there. It might support both ImagePullSecrets and imagePullSecrets ?
Can you try with the lowercase |
@sbwsg I tested. small
|
I'll have a look at this and see if I can figure out what's happening. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
@sbwsg did you have a time for find out this issue? /remove-lifecycle stale |
I haven't had a chance yet but still intend to try and reproduce the issue on my side. |
@Hokwang I see the I followed your steps to reproduce. Here is what I see:
diff --git a/config/config-defaults.yaml b/config/config-defaults.yaml
index a75dc28ee..e789c6840 100644
--- a/config/config-defaults.yaml
+++ b/config/config-defaults.yaml
@@ -21,6 +21,13 @@ metadata:
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-pipelines
data:
+ # default-pod-template contains the default pod template to use
+ # TaskRun and PipelineRun, if none is specified. If a pod template
+ # is specified, the default pod template is ignored.
+ default-pod-template: |
+ imagePullSecrets:
+ - name: dockerhub
+ λ kubectl apply -f ./config/config-defaults.yaml
λ k get pods echo-hello-world-task-run-pod-vnmjg -o yaml | grep -C2 "imagePullSecrets"
f:dnsPolicy: {}
f:enableServiceLinks: {}
f:imagePullSecrets:
.: {}
k:{"name":"dockerhub"}:
--
--
dnsPolicy: ClusterFirst
enableServiceLinks: true
imagePullSecrets:
- name: dockerhub
initContainers: So here the Are you still running Tekton Pipelines 0.19? You could try upgrading and seeing if that resolves your problem? |
Additional follow up: it also works me when I use uppercase |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi,
Sorry this may be a question.
I install tekton pipeline and dashboard today.
install using
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
commandand edit default config following your guide,
because of dockerhub pull rate limit, I need to set
imagePullSecrets
Here's some problem.
and following basic tutorial,
Look at your doc, https://github.com/tektoncd/pipeline/blob/master/docs/podtemplates.md#supported-fields
there's
imagePullSecret
(no last s)In native, as you know,
imagePullSecrets
used. (last s)and look at your code
https://github.com/NikeNano/pipeline/blob/462dde92e9a43da76101283087161439d0e87082/pkg/pod/pod.go#L294
there's
ImagePullSecrets
(first catipal and last s)I waste couple of hours~.
Output of
kubectl version
: 1.17.11The text was updated successfully, but these errors were encountered: