Add provider kubernetes. Update to new parent. Add exclude on io.crossplane.* for javadocs

This commit is contained in:
Knut-Erik Johnsen 2024-10-17 14:59:41 +02:00
parent 88a9eadb8a
commit 4bebc4a60b
10 changed files with 95 additions and 7 deletions

View File

@ -112,7 +112,7 @@
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<doclint>all,missing</doclint>
<excludePackageNames>io.upbound.*</excludePackageNames>
<excludePackageNames>io.upbound.*,io.crossplane.*</excludePackageNames>
</configuration>
<executions>

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- PROJECT -->
<parent>
<groupId>io.crossplane.providers</groupId>
<artifactId>crossplane-providers-parent</artifactId>
<version>1.17.0-charlie</version>
</parent>
<artifactId>crossplane-provider-kubernetes-model</artifactId>
<description>Crossplane models for the Kubernetes provider</description>
<version>${modelrevision}</version>
<properties>
<modelrevision>1.0.0-SNAPSHOT</modelrevision>
</properties>
<!-- DEPENDENCIES -->
<dependencies>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>generator-annotations</artifactId>
</dependency>
</dependencies>
<!-- BUILD -->
<build>
<!-- PLUGINS -->
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>java-generator-maven-plugin</artifactId>
<version>${kubernetes-client.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<source>src/main/resources/kubernetes</source>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,7 @@
package io.upbound;
/**
* This is the project for the Kubernetes Provider.
*/
public interface KubernetesProvider {
}

View File

@ -0,0 +1,27 @@
#!/bin/bash
release="v0.15.0"
repo="crossplane-contrib"
provider="provider-kubernetes"
if [ $# -eq 1 ]
then
release="v$1"
fi
echo "Fetching release: ${release}"
crds=$(gh api --jq '.[].name' "/repos/${repo}/${provider}/contents/package/crds?ref=${release}")
for crd in $crds;
do
# output=$(echo $file | cut -d'_' -f2)
gh api -H "Accept: application/vnd.github.raw+json" "/repos/${repo}/${provider}/contents/package/crds/${crd}?ref=${release}" > $crd
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Failed to fetch ${crd}"
fi
done

View File

@ -6,7 +6,7 @@
<parent>
<groupId>io.crossplane.providers</groupId>
<artifactId>crossplane-providers-parent</artifactId>
<version>1.17.0-beta</version>
<version>1.17.0-charlie</version>
</parent>
<artifactId>crossplane-provider-terraform-model</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>io.crossplane.providers</groupId>
<artifactId>crossplane-providers-parent</artifactId>
<version>1.17.0-beta</version>
<version>1.17.0-charlie</version>
</parent>
<artifactId>crossplane-provider-upjet-aws-model</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>io.crossplane.providers</groupId>
<artifactId>crossplane-providers-parent</artifactId>
<version>1.17.0-beta</version>
<version>1.17.0-charlie</version>
</parent>
<artifactId>crossplane-provider-upjet-azure-model</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>io.crossplane.providers</groupId>
<artifactId>crossplane-providers-parent</artifactId>
<version>1.17.0-beta</version>
<version>1.17.0-charlie</version>
</parent>
<artifactId>crossplane-provider-upjet-azuread-model</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>io.crossplane.providers</groupId>
<artifactId>crossplane-providers-parent</artifactId>
<version>1.17.0-beta</version>
<version>1.17.0-charlie</version>
</parent>
<artifactId>crossplane-provider-upjet-gcp-model</artifactId>

View File

@ -6,7 +6,7 @@
<parent>
<groupId>io.crossplane.providers</groupId>
<artifactId>crossplane-providers-parent</artifactId>
<version>1.17.0-beta</version>
<version>1.17.0-charlie</version>
</parent>
<artifactId>crossplane-provider-upjet-github-model</artifactId>