Skip to content

Issue with k8s.io/docs/tasks/configure-pod-container/configure-service-account/ #7100

@lchao111

Description

@lchao111

This is a document error.

  • Feature Request
  • Bug Report

Problem:
Error from server: invalid character 'i' looking for beginning of object key string
from kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "myregistrykey"}]}'

Proposed Solution:
escape this JSON string by '\'
kubectl patch serviceaccount default -p '{\"imagePullSecrets\": [{\"name\": \"acrkey\"}]}'
Page to Update:
http://kubernetes.io/...

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.sig/docsCategorizes an issue or PR as relevant to SIG Docs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions