Skip to content

Commit

Permalink
Switch the repository to xpkg.upbound.io/crossplane-contrib to instal…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
cmoulliard and aureamunoz authored May 3, 2024
1 parent 299f7be commit ebe3424
Show file tree
Hide file tree
Showing 16 changed files with 2,412 additions and 30 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/e2e-atomic-fruits-vault-crossplane.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Job testing an end to end scenario with simple application. It tests all steps from kind, vault and crossplane installation.
name: Job doing e2e scenario using primaza + vault + crossplane and atomic fruits

on:
workflow_dispatch:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
run: |
./scripts/crossplane.sh
- name: Installing Postgresql DB and Atomic fruits
- name: Installing Atomic fruits
env:
ATOMIC_FRUITS_NAMESPACE: app
run: |
Expand Down Expand Up @@ -179,13 +179,16 @@ jobs:
run: |
./scripts/primaza.sh log
- name: (Only if it failed) Log Atomic Fruits traces at failures
- name: (Only if it failed) Log Atomic Fruits traces at failure like Primaza
if: failure()
env:
ATOMIC_FRUITS_NAMESPACE: app
run: |
source ./scripts/common.sh
log BLUE "Logs of Primaza pod"
./scripts/primaza.sh log
log BLUE "List of the pods deployed on the cluster"
kubectl get pods -A
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-atomic-fruits-vault.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Job testing an end to end scenario with simple application. It tests all steps from kind and vault installation.
name: Job doing e2e scenario using primaza + vault and atomic fruits

on:
workflow_dispatch:
Expand Down
12 changes: 9 additions & 3 deletions app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>java-generator-maven-plugin</artifactId>
<version>${kubernetes-client.version}</version>
<executions>
<execution>
<goals>
Expand All @@ -228,17 +229,22 @@
</executions>
<configuration>
<extraAnnotations>true</extraAnnotations>
<source>src/main/crds</source>
<!-- crds added to src/main/crds
<urls>
<!-- Primaza CRDs -->
&lt;!&ndash; Primaza CRDs &ndash;&gt;
<url>https://raw.githubusercontent.com/primaza/primaza/main/config/crd/bases/primaza.io_clusterenvironments.yaml</url>
<url>https://raw.githubusercontent.com/primaza/primaza/main/config/crd/bases/primaza.io_registeredservices.yaml</url>
<url>https://raw.githubusercontent.com/primaza/primaza/main/config/crd/bases/primaza.io_servicebindings.yaml</url>
<url>https://raw.githubusercontent.com/primaza/primaza/main/config/crd/bases/primaza.io_servicecatalogs.yaml</url>
<url>https://raw.githubusercontent.com/primaza/primaza/main/config/crd/bases/primaza.io_serviceclaims.yaml</url>
<url>https://raw.githubusercontent.com/primaza/primaza/main/config/crd/bases/primaza.io_serviceclasses.yaml</url>
<!-- Crossplane Helm release able to deploy a helm chart -->
<url>https://raw.githubusercontent.com/crossplane-contrib/provider-helm/master/package/crds/helm.crossplane.io_releases.yaml</url>
&lt;!&ndash; Crossplane Helm release able to deploy a helm chart &ndash;&gt;
&lt;!&ndash; Revert to an old version of the CRD as we got a class cast exception using ManagedPolicies field introduced recently &ndash;&gt;
&lt;!&ndash;<url>https://raw.githubusercontent.com/crossplane-contrib/provider-helm/v0.14.0/package/crds/helm.crossplane.io_releases.yaml</url>&ndash;&gt;
<url>https://raw.githubusercontent.com/crossplane-contrib/provider-helm/v0.18.1/package/crds/helm.crossplane.io_releases.yaml</url>
</urls>
-->
</configuration>
</plugin>
</plugins>
Expand Down
Loading

0 comments on commit ebe3424

Please sign in to comment.