Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releases do not contain required infrastructure-components.yaml #284

Open
djryanj opened this issue Oct 3, 2024 · 0 comments
Open

Releases do not contain required infrastructure-components.yaml #284

djryanj opened this issue Oct 3, 2024 · 0 comments

Comments

@djryanj
Copy link

djryanj commented Oct 3, 2024

In order for this repo to be usable per the CAPI InfrastructureProvider CRD, the release must contain a yaml that defines the components for the infrastructure.

For example, using this:

apiVersion: operator.cluster.x-k8s.io/v1alpha2
kind: InfrastructureProvider
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "2"
  name: azurestackhci
  namespace: caph-system
spec:
    fetchConfig:
      url: https://github.com/microsoft/cluster-api-provider-azurestackhci/releases
    version: v1.1.17

Results in the following error:

        failed to create repo from provider url for provider "azurestackhci":
        error creating the GitHub repository client: invalid url: a GitHub
        repository url should be in the form
        https://github.com/{owner}/{Repository}/releases/{latest|version-tag}/{componentsClient.yaml}

Looking at other providers, this is usually infrastructure-components.yaml and even poking through this repo we see that should be generated from a kustomize command as part of the release pipeline, however the release pipeline hasn't been successful in some time.

We can do this manually, but that doesn't seem like a very tenable idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant