Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
goapi/bin/*
goapi/coverage.*
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8.14.0-alpine
FROM node:17.6-alpine
WORKDIR /usr/src/app
# Uncomment kubectl installation if you want api support
# for "experimental" features
Expand Down
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ then
fi

CVT_IMG=$ORG/converter:$TAG
API_IMG=$ORG/api:$TAG
export API_IMG=$ORG/api:$TAG
UI_IMG=$ORG/ui:$TAG

echo $API_IMG

(cd converter; docker build -t $CVT_IMG .) || exit 1
(cd goapi; bash goapi_build.sh $API_IMG ) || exit 1
(cd goapi; make image) || exit 1
(cd ui; docker build -t $UI_IMG .) || exit 1
8 changes: 4 additions & 4 deletions converter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM clojure:lein-2.8.1-alpine AS build
ARG HELM_VERSION=2.9.1
FROM clojure:openjdk-17-alpine AS build
ARG HELM_VERSION=2.17.0
ENV DEBUG_COMPILE ${DEBUG_COMPILE}
ENV NO_PERF_COMPILE ${NO_PERF_COMPILE}
ENV SHOW_RULES ${SHOW_RULES}
ENV HELM_TAR_FILE helm-v${HELM_VERSION}-linux-amd64.tar.gz
ADD https://storage.googleapis.com/kubernetes-helm/${HELM_TAR_FILE} .
ADD https://get.helm.sh/${HELM_TAR_FILE} .
RUN apk add --update --no-cache ca-certificates \
coreutils && \
tar xvf ${HELM_TAR_FILE} && \
Expand All @@ -18,7 +18,7 @@ RUN lein clean && \
lein cloverage && \
lein uberjar

FROM openjdk:jre-alpine
FROM openjdk:17-alpine3.14
COPY --from=build /app/target/uberjar/converter-0.1.0-SNAPSHOT-standalone.jar /
COPY --from=build /usr/bin/helm /usr/bin
RUN chmod +x /usr/bin/helm
Expand Down
33 changes: 16 additions & 17 deletions converter/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,24 @@
:url "https://yipee.io"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/tools.logging "0.4.0"]
:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojure/tools.logging "1.2.4"]
[ch.qos.logback/logback-classic "1.2.3"]
[clj-yaml "0.4.0"]
[commons-io "2.6"]
[org.apache.commons/commons-compress "1.14"]
[org.javasimon/javasimon-core "4.1.3"]
[org.clojure/data.json "0.2.6"]
[org.flatland/ordered "1.5.6"]
[liberator "0.15.1"]
[compojure "1.6.0"]
[ring/ring-jetty-adapter "1.6.2"]
[ring/ring-core "1.6.2"]
[com.github.seancfoley/ipaddress "3.0.0"]
[prismatic/schema "1.1.7"]
[clj-commons/clj-yaml "0.7.108"]
[org.apache.commons/commons-compress "1.21"]
[org.javasimon/javasimon-core "4.2.0"]
[org.clojure/data.json "2.4.0"]
[org.flatland/ordered "1.5.9"]
[liberator "0.15.3"]
[compojure "1.6.2"]
[ring/ring-jetty-adapter "1.9.5"]
[ring/ring-core "1.9.5"]
[com.github.seancfoley/ipaddress "5.3.3"]
[prismatic/schema "1.1.12"]
[potemkin "0.4.5"]
[com.networknt/json-schema-validator "0.1.7"]
[environ "1.1.0"]
[inflections "0.13.0"]
[com.networknt/json-schema-validator "1.0.66"]
[environ "1.2.0"]
[inflections "0.13.2"]
[arete "0.6.1"]]

:main ^:skip-aot converter.core
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/config_schema_v2.yipee.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "config_schema_v2.yipee.json",
"type": "object",
"required": ["version"],
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/config_schema_v3.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "config_schema_v3.0.json",
"type": "object",
"required": ["version"],
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/config_schema_v3.1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "config_schema_v3.1.json",
"type": "object",
"required": ["version"],
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/config_schema_v3.2.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "config_schema_v3.2.json",
"type": "object",
"required": ["version"],
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/config_schema_v3.3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "config_schema_v3.3.json",
"type": "object",
"required": ["version"],
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/config_schema_v3.4.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "config_schema_v3.4.json",
"type": "object",
"required": ["version"],
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/config_schema_v3.5.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"id": "config_schema_v3.5.json",
"type": "object",
"required": ["version"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5497,7 +5497,7 @@
}
},
"io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.JSONSchemaProps": {
"description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).",
"description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (https://json-schema.org/).",
"properties": {
"maxItems": {
"type": "integer",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"driver"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead.",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/master-standalone-strict/apigroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"group": ""
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"kind": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"group": ""
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"kind": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"name",
"singularName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"group": ""
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"kind": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "object",
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"x-kubernetes-group-version-kind": [
{
"kind": "APIService",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"type",
"status"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"group": "apiregistration.k8s.io"
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"items": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"service",
"groupPriorityMinimum",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "APIServiceStatus contains derived information about an API server",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"group": ""
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"serverAddressByClientCIDRs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"name",
"devicePath"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"volumeID"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"secretName",
"shareName"
Expand Down
2 changes: 1 addition & 1 deletion converter/schemata/master-standalone-strict/binding.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"group": ""
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"kind": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"monitors"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"monitors"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "object",
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"x-kubernetes-group-version-kind": [
{
"kind": "CertificateSigningRequest",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"type"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "object",
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"items"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"volumeID"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "ClientIPConfig represents the configurations of Client IP based session affinity.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"group": "rbac.authorization.k8s.io"
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"items": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "object",
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"x-kubernetes-group-version-kind": [
{
"kind": "ComponentStatus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"group": ""
}
],
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"properties": {
"items": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"required": [
"namespace",
"name",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema#",
"type": "object",
"description": "ContainerStateRunning is a running state of a container.",
"properties": {
Expand Down
Loading