ClusterSecret icon indicating copy to clipboard operation
ClusterSecret copied to clipboard

dockerconfigjson secret errors when trying to replicate

Open TomHart opened this issue 3 years ago • 1 comments

Using version 0.0.6-arm as cluster is running on a RPi

apiVersion: clustersecret.io/v1
kind: ClusterSecret
metadata:
  name: registry-credentials
matchNamespace:
  - .*
data:
  .dockerconfigjson: Base64EncodedValue
type: kubernetes.io/dockerconfigjson
| [2022-07-31 22:43:44,519] kopf.objects         [INFO    ] [None/clustersecret] cloning secret in namespace clustersecret                                                                                                                                                     │
│ [2022-07-31 22:43:44,531] kopf.objects         [ERROR   ] [None/clustersecret] Can not create a secret, it is base64 encoded? data: {'.dockerconfigjson': 'Base64EncodedValue' │
│ [2022-07-31 22:43:44,532] kopf.objects         [ERROR   ] [None/clustersecret] Kube exception (400)                                                                                                                                                                          │
│ Reason: Bad Request                                                                                                                                                                                                                                                          │
│ HTTP response headers: HTTPHeaderDict({'Audit-Id': '0aa71bce-2cb7-4965-88a1-c266a476b392', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': '705073d9-be2c-4d18-b7bf-a3d03c601464', 'X-Kubernetes-Pf-Priorityleve │
│ HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the object provided is unrecognized (must be of type Secret): couldn't get version/kind; json parse error: json: cannot unmarshal object into Go struct field .kind of ty                        

TomHart avatar Jul 31 '22 22:07 TomHart

We need to recompile the latest on Arm! Don't have too much time these days but I'll try to find some to update issues.

On Mon, 1 Aug 2022, 00:49 Tom Hart, @.***> wrote:

Using version 0.0.6-arm as cluster is running on a RPi

apiVersion: clustersecret.io/v1

kind: ClusterSecret

metadata:

name: registry-credentials

matchNamespace:

  • .*

data:

.dockerconfigjson: Base64EncodedValue

type: kubernetes.io/dockerconfigjson

| [2022-07-31 22:43:44,519] kopf.objects [INFO ] [None/clustersecret] cloning secret in namespace clustersecret │

│ [2022-07-31 22:43:44,531] kopf.objects [ERROR ] [None/clustersecret] Can not create a secret, it is base64 encoded? data: {'.dockerconfigjson': 'Base64EncodedValue' │

│ [2022-07-31 22:43:44,532] kopf.objects [ERROR ] [None/clustersecret] Kube exception (400) │

│ Reason: Bad Request │

│ HTTP response headers: HTTPHeaderDict({'Audit-Id': '0aa71bce-2cb7-4965-88a1-c266a476b392', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': '705073d9-be2c-4d18-b7bf-a3d03c601464', 'X-Kubernetes-Pf-Priorityleve │

│ HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the object provided is unrecognized (must be of type Secret): couldn't get version/kind; json parse error: json: cannot unmarshal object into Go struct field .kind of ty

— Reply to this email directly, view it on GitHub https://github.com/zakkg3/ClusterSecret/issues/44, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF7BZLYT2IJ4H7WXHR35YJDVW37GNANCNFSM55FUUDJA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

zakkg3 avatar Aug 04 '22 07:08 zakkg3

Sorry for the delay. PR wirh new updates comming. In the meantime this is fexed, please pull from flag5/clustersecret:0.0.9_arm32

zakkg3 avatar May 25 '23 15:05 zakkg3