Skip to content

Creating secret with oc secret new-dockercfg ... creates secret in a new docker config format  #17197

@jhadvig

Description

@jhadvig

The outcome of the https://bugzilla.redhat.com/show_bug.cgi?id=1476330 was that creating a secret with

oc secret new-dockercfg --docker-server=registry.com --docker-username=developer --docker-password=balabala --docker-email=developer@example.com redhat-connect-37

will create an secret with kubernetes.io/dockercfg type(old file type) with the new format:

{
        "auths": {
                "registryaddress": {
                        "auth": "auth string",
                        "email": "email@domain.com"
                }
        }
}

I agree that we need to start promoting the new format but we shouldn't mismatch type with format and the created secret should be of kubernetes.io/dockerconfigjson type

@juanvallejo @smarterclayton

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions