Fixed type and content of RegistryCredential
This commit is contained in:
parent
fc37a12737
commit
d6c207ba82
@ -4,9 +4,9 @@ description: Deploy the Bitwarden CRD Operator
|
|||||||
|
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: "v0.10.0"
|
version: "v0.10.1"
|
||||||
|
|
||||||
appVersion: "0.9.0"
|
appVersion: "0.9.1"
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
- operator
|
- operator
|
||||||
@ -95,8 +95,8 @@ annotations:
|
|||||||
artifacthub.io/operator: "true"
|
artifacthub.io/operator: "true"
|
||||||
artifacthub.io/containsSecurityUpdates: "false"
|
artifacthub.io/containsSecurityUpdates: "false"
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: fixed
|
||||||
description: "Added attachment lookup to bitwarden_lookup in BitwardenTemplate CRD"
|
description: "Fixed type and content of RegistryCredential"
|
||||||
artifacthub.io/images: |
|
artifacthub.io/images: |
|
||||||
- name: bitwarden-crd-operator
|
- name: bitwarden-crd-operator
|
||||||
image: ghcr.io/lerentis/bitwarden-crd-operator:0.9.0
|
image: ghcr.io/lerentis/bitwarden-crd-operator:0.9.1
|
||||||
|
@ -13,7 +13,7 @@ def create_dockerlogin(
|
|||||||
username_ref,
|
username_ref,
|
||||||
password_ref,
|
password_ref,
|
||||||
registry):
|
registry):
|
||||||
secret.type = "dockerconfigjson"
|
secret.type = "kubernetes.io/dockerconfigjson"
|
||||||
secret.data = {}
|
secret.data = {}
|
||||||
auths_dict = {}
|
auths_dict = {}
|
||||||
registry_dict = {}
|
registry_dict = {}
|
||||||
@ -26,7 +26,8 @@ def create_dockerlogin(
|
|||||||
base64.b64encode(
|
base64.b64encode(
|
||||||
f"{_username}:{_password}".encode("utf-8")),
|
f"{_username}:{_password}".encode("utf-8")),
|
||||||
"utf-8")
|
"utf-8")
|
||||||
|
reg_auth_dict["username"] = _username
|
||||||
|
reg_auth_dict["password"] = _password
|
||||||
reg_auth_dict["auth"] = cred_field
|
reg_auth_dict["auth"] = cred_field
|
||||||
registry_dict[registry] = reg_auth_dict
|
registry_dict[registry] = reg_auth_dict
|
||||||
auths_dict["auths"] = registry_dict
|
auths_dict["auths"] = registry_dict
|
||||||
|
Loading…
Reference in New Issue
Block a user