Added provider models for GCP, AWS, Terraform and Github
This commit is contained in:
parent
14076cd62e
commit
88a9eadb8a
|
@ -14,6 +14,10 @@ on:
|
||||||
options:
|
options:
|
||||||
- provider-upjet-azure
|
- provider-upjet-azure
|
||||||
- provider-upjet-azuread
|
- provider-upjet-azuread
|
||||||
|
- provider-upjet-aws
|
||||||
|
- provider-upjet-gcp
|
||||||
|
- provider-upjet-github
|
||||||
|
- provider-terraform
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -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-beta</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>crossplane-provider-terraform-model</artifactId>
|
||||||
|
<description>Crossplane models for the Terraform 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>
|
|
@ -0,0 +1,7 @@
|
||||||
|
package io.upbound;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the project for the Terraform Provider.
|
||||||
|
*/
|
||||||
|
public interface TerraformProvider {
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
release="v0.18.0"
|
||||||
|
repo="upbound"
|
||||||
|
provider="provider-terraform"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
@ -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-beta</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>crossplane-provider-upjet-aws-model</artifactId>
|
||||||
|
<description>Crossplane models for the AWS 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>
|
|
@ -0,0 +1,7 @@
|
||||||
|
package io.upbound;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the project for the AWS Provider.
|
||||||
|
*/
|
||||||
|
public interface AwsProvider {
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
release="v1.15.0"
|
||||||
|
repo="crossplane-contrib"
|
||||||
|
provider="provider-upjet-aws"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
@ -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-beta</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>crossplane-provider-upjet-gcp-model</artifactId>
|
||||||
|
<description>Crossplane models for the GCP 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>
|
|
@ -0,0 +1,7 @@
|
||||||
|
package io.upbound;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the project for the GCP Provider.
|
||||||
|
*/
|
||||||
|
public interface GcpProvider {
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
release="v1.8.3"
|
||||||
|
repo="crossplane-contrib"
|
||||||
|
provider="provider-upjet-gcp"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
@ -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-beta</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>crossplane-provider-upjet-github-model</artifactId>
|
||||||
|
<description>Crossplane models for the Github 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>
|
|
@ -0,0 +1,7 @@
|
||||||
|
package io.upbound;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the project for the Github Provider.
|
||||||
|
*/
|
||||||
|
public interface GithubProvider {
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
release="v0.14.0"
|
||||||
|
repo="crossplane-contrib"
|
||||||
|
provider="provider-upjet-github"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue