Problem with the provider-template template https://github.com/crossplane/provider-template

40 views
Skip to first unread message

Filippo Giorgi

unread,
Jan 16, 2025, 12:39:53 PMJan 16
to crossplane-dev
Hi, I'm developing a provider for observing and calculating ML metrics. The moment I start my provider.yaml file it is created but from Healty = False, reporting this error message.
Message: cannot initialize parser backend: couldn't find "package.yaml" file after checking 1426 files in the archive (annotated layer: false): EOF What should package.yaml be? I attach my provider code: Screenshot 2025-01-16 alle 18.38.26.png

Hasan Türken

unread,
Jan 16, 2025, 1:12:21 PMJan 16
to Filippo Giorgi, crossplane-dev
Hi, 

Please see https://github.com/crossplane/crossplane/blob/main/design/one-pager-package-format-v2.md on details for packaging format and what a package.yaml is. 

You could use https://explore.ggcr.dev to inspect your image and compare it with an existing provider, as a real world example, see its contents for provider-helm: https://explore.ggcr.dev/fs/xpkg.upbound.io/upbound/provider-helm@sha256:449e0a091de563a7301198f126c07f01ce798bf179fb5f098bc742b4fd5e1bd8/package.yaml 

However, I believe something wrong with how you build and package your provider. Since you're using https://github.com/crossplane/provider-template, you should be able to build & push your provider by following https://github.com/crossplane/crossplane/discussions/3817#discussion-4921460

Hope this helps. 

On Thu, Jan 16, 2025 at 8:39 PM Filippo Giorgi <filippog...@gmail.com> wrote:
Hi, I'm developing a provider for observing and calculating ML metrics. The moment I start my provider.yaml file it is created but from Healty = False, reporting this error message.
Message: cannot initialize parser backend: couldn't find "package.yaml" file after checking 1426 files in the archive (annotated layer: false): EOF What should package.yaml be? I attach my provider code: Screenshot 2025-01-16 alle 18.38.26.png

--
You received this message because you are subscribed to the Google Groups "crossplane-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crossplane-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/crossplane-dev/239667f4-c62c-48ba-8e4b-f2e78bb826f3n%40googlegroups.com.

Filippo Giorgi

unread,
Jan 17, 2025, 3:46:40 AMJan 17
to crossplane-dev
Hi,
thanks for the answer, I build and package my provider by following the developing tutorial on this link https://github.com/crossplane/provider-template. For the point 7. Replace the default controller and ProviderConfig implementations with your own, I only modified my file /provider-template/apis/sample/v1alpha/mytype_types.go and /provider-template/internal/controller/mytype/mytype.go . After that I used make reviewable and make build, I apply the crds, I pushed the build in my repository and I create a second yaml file, the one I send in the previous mail, for apply the provider in my cluster and I had the error of the package.yaml.
So I don't know what it could go wrong. 

Another question, is it a problem use the latest version of crossplane? Or I have to use the crossplane version 1.16.0, because in the go.mod file it use that.

Thanks for the answer!
Filippo Giorgi

Reply all
Reply to author
Forward
0 new messages