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

Crossplane providers cannot be installed #474

Open
cmoulliard opened this issue May 2, 2024 · 0 comments
Open

Crossplane providers cannot be installed #474

cmoulliard opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cmoulliard
Copy link
Contributor

cmoulliard commented May 2, 2024

Issue

Crossplane providers (helm, kubernetes) cannot be installed anymore using the script ./scripts/Crossplane.sh

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"pkg.crossplane.io/v1","kind":"Provider","metadata":{"annotations":{},"name":"helm-provider"},"spec":{"controllerConfigRef":{"name":"debug-config"},"package":"crossplanecontrib/pr
ovider-helm:v0.18.1"}}
  creationTimestamp: "2024-05-02T10:47:26Z"
  generation: 1
  name: helm-provider
  resourceVersion: "1600"
  uid: ca3d2666-03c3-4960-b21c-c0c76fa83e25
spec:
  controllerConfigRef:
    name: debug-config
  ignoreCrossplaneConstraints: false
  package: crossplanecontrib/provider-helm:v0.18.1
  packagePullPolicy: IfNotPresent
  revisionActivationPolicy: Automatic
  revisionHistoryLimit: 1
  runtimeConfigRef:
    apiVersion: pkg.crossplane.io/v1beta1
    kind: DeploymentRuntimeConfig
    name: default
  skipDependencyResolution: false
status:
  conditions:
  - lastTransitionTime: "2024-05-02T10:48:25Z"
    message: 'cannot unpack package: failed to fetch package digest from remote: failed
      to fetch package descriptor with a GET request after a previous HEAD request
      failure: GET https://xpkg.upbound.io/service/token?scope=repository%3Acrossplanecontrib%2Fprovider-helm%3Apull&service=xpkg.upbound.io:
      unexpected status code 404 Not Found: GET https://xpkg.upbound.io/service/token?scope=repository%3Acrossplanecontrib%2Fprovider-helm%3Apull&service=xpkg.upbound.io:
      unexpected status code 404 Not Found'

Reason

The repository hosting the providers changes from crossplane/provider-kubernetes to xpkg.upbound.io/crossplane-contrib/provider-kubernetes

This issue impacts the PR: #465

@cmoulliard cmoulliard added the bug Something isn't working label May 2, 2024
cmoulliard added a commit to ch007m/primaza-poc that referenced this issue May 2, 2024
aureamunoz pushed a commit to aureamunoz/servicebox-poc that referenced this issue May 3, 2024
cmoulliard added a commit that referenced this issue May 3, 2024
…l the crossplane providers (#475)

* Use the latest sundrio version

Related #464

* Use the latest sundrio version

Related #464

* Switch to the new repository: xpkg.upbound.io/crossplane-contrib. #474

Signed-off-by: cmoulliard <[email protected]>

* Add new script installing the container registry

* Revert to 0.14 as next releases intriduced the ManagementPolicies which is generating the error: String cannot be cast to class io.crossplane.helm.v1beta1.ReleaseSpec

Signed-off-by: cmoulliard <[email protected]>

* Add parameter to disable the script execution which requires locally to click on enter key

Signed-off-by: cmoulliard <[email protected]>

* Align the instructions with the github flow

Signed-off-by: cmoulliard <[email protected]>

* Remove non needed text

Signed-off-by: cmoulliard <[email protected]>

* Use helm-provider 0.18.1 which supports ManagementPolicies

Signed-off-by: cmoulliard <[email protected]>

* Export TIME_WAIT property

Signed-off-by: cmoulliard <[email protected]>

* Use url pointing to the CRD released with 0.18.1

Signed-off-by: cmoulliard <[email protected]>

* Define the managementPolicies

Signed-off-by: cmoulliard <[email protected]>

* Reformated the KubernetesClientService class and Crossplane DSL

Signed-off-by: cmoulliard <[email protected]>

* Log primaza pod too as we don't get it when error HTTP 500 occurs during the binding

Signed-off-by: cmoulliard <[email protected]>

* Log primaza pod too as we don't get it when error HTTP 500 occurs during the binding

Signed-off-by: cmoulliard <[email protected]>

* Added CRDs under src/main/crds

Signed-off-by: cmoulliard <[email protected]>

* Moving the defintion of the fabric8 kubernetes client to be used to the parent pom

Signed-off-by: cmoulliard <[email protected]>

* Commenting the line containing as managementPolicies value: \*\ to check if the error is gone. #476

Signed-off-by: cmoulliard <[email protected]>

* Make the titles of the job defintion a bit shorter

Signed-off-by: cmoulliard <[email protected]>

* Commenting the line containing as managementPolicies default value: \*\ too to check if the error is gone. #476

Signed-off-by: cmoulliard <[email protected]>

* Commenting another lines containing as managementPolicies value: \*\ to check if the error is gone. #476

Signed-off-by: cmoulliard <[email protected]>

* Find a temporary workaround concerning the CRD serialization issue. #476

Signed-off-by: cmoulliard <[email protected]>

* Let's keep the value \'*' as enum. Remove the managementPolicies from the createCrossplaneHelmRelease. #476

Signed-off-by: cmoulliard <[email protected]>

---------

Signed-off-by: cmoulliard <[email protected]>
Co-authored-by: Auri Munoz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant