Skip to content

Invalid Registry in Credentials #449

Description

@markphillips100

What happened?

KCLInput credentials with a url, username and password fail in v0.12.2 with "Invalid registry ". This worked for v0.12.1 and all versions below to v0.11.2 (the last version I've been using for over a year now).

I was attempting to test out new OCI cache behaviour introduced in v0.12.3 (#282) but the function failed to load my usual OCIs. No other environment changes. So I iterated a version of function-kcl from v0.11.2 upwards until this failure occurs, and it hits at v0.12.2.

How can we reproduce it?

Use v0.12.2 or the latest v0.12.3 and attempt to source from an oci url to Azure Container Registry using a username/password with registry pull permissions:

Relevant part of composition:

  - functionRef:
      name: kcl-function
    input:
      apiVersion: krm.kcl.dev/v1alpha1
      kind: KCLInput
      metadata:
        name: basic
      spec:
        credentials:
          password: <password>
          url: https://<acrname>.azurecr.io
          username: <username>
        source: oci://<acrname>.azurecr.io/<imagename>?tag=<some-tag>

What environment did it happen in?

Function version: v0.12.2+

Kind cluster running:
Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.35.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions