Skip to content

Commit

Permalink
Merge pull request #49 from Lerentis/bugfix/tt/fix-registry-credentia…
Browse files Browse the repository at this point in the history
…l-type

Fixed type and content of RegistryCredential
  • Loading branch information
Lerentis authored Oct 27, 2023
2 parents fc37a12 + d6c207b commit 80d8db6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions charts/bitwarden-crd-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: Deploy the Bitwarden CRD Operator

type: application

version: "v0.10.0"
version: "v0.10.1"

appVersion: "0.9.0"
appVersion: "0.9.1"

keywords:
- operator
Expand Down Expand Up @@ -95,8 +95,8 @@ annotations:
artifacthub.io/operator: "true"
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/changes: |
- kind: added
description: "Added attachment lookup to bitwarden_lookup in BitwardenTemplate CRD"
- kind: fixed
description: "Fixed type and content of RegistryCredential"
artifacthub.io/images: |
- name: bitwarden-crd-operator
image: ghcr.io/lerentis/bitwarden-crd-operator:0.9.0
image: ghcr.io/lerentis/bitwarden-crd-operator:0.9.1
5 changes: 3 additions & 2 deletions src/dockerlogin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def create_dockerlogin(
username_ref,
password_ref,
registry):
secret.type = "dockerconfigjson"
secret.type = "kubernetes.io/dockerconfigjson"
secret.data = {}
auths_dict = {}
registry_dict = {}
Expand All @@ -26,7 +26,8 @@ def create_dockerlogin(
base64.b64encode(
f"{_username}:{_password}".encode("utf-8")),
"utf-8")

reg_auth_dict["username"] = _username
reg_auth_dict["password"] = _password
reg_auth_dict["auth"] = cred_field
registry_dict[registry] = reg_auth_dict
auths_dict["auths"] = registry_dict
Expand Down

0 comments on commit 80d8db6

Please sign in to comment.