diff options
Diffstat (limited to 'dev-resources')
-rw-r--r-- | dev-resources/Dockerfile-local | 21 | ||||
-rw-r--r-- | dev-resources/deployment.yaml | 44 | ||||
-rw-r--r-- | dev-resources/sample-charts/correct-apiVersion-v1.tgz | bin | 0 -> 393 bytes | |||
-rw-r--r-- | dev-resources/sample-charts/correct-apiVersion-v2.tgz | bin | 0 -> 651 bytes | |||
-rw-r--r-- | dev-resources/sample-charts/error-bad-chart-yaml.tar.gz | bin | 0 -> 209 bytes | |||
-rw-r--r-- | dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v1.tgz | bin | 0 -> 413 bytes | |||
-rw-r--r-- | dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v2.tgz | bin | 0 -> 668 bytes | |||
-rw-r--r-- | dev-resources/sample-charts/one-lint-warning-apiVersion-v2.tgz | bin | 0 -> 738 bytes | |||
-rw-r--r-- | dev-resources/sample-charts/two-lint-warnings-apiVersion-v1.tgz | bin | 0 -> 311 bytes |
9 files changed, 65 insertions, 0 deletions
diff --git a/dev-resources/Dockerfile-local b/dev-resources/Dockerfile-local new file mode 100644 index 0000000..b1b378a --- /dev/null +++ b/dev-resources/Dockerfile-local @@ -0,0 +1,21 @@ +FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0 + +ARG VERSION=${version} +ENV HELM_SUPPORTED_VERSIONS=${HELM_SUPPORTED_VERSIONS} + +USER root +RUN adduser -G onap -D validator + +RUN apk add --no-cache bash vim curl wget + +#Installing Helm +COPY scripts/helm_versions/* /usr/local/bin/ + +RUN mkdir /charts +RUN chown -R validator:onap /charts + +USER validator:onap + +COPY target/sdc-helm-validator-${VERSION}.jar ./opt/helmvalidator/helmvalidator.jar + +ENTRYPOINT ["java","-XX:+UseParallelGC","-XX:MinRAMPercentage=50","-XX:MaxRAMPercentage=50","-XX:MinHeapFreeRatio=10","-XX:MaxHeapFreeRatio=20","-jar","./opt/helmvalidator/helmvalidator.jar"] diff --git a/dev-resources/deployment.yaml b/dev-resources/deployment.yaml new file mode 100644 index 0000000..6cc52fe --- /dev/null +++ b/dev-resources/deployment.yaml @@ -0,0 +1,44 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: helm-client-validator + namespace: onap + labels: + app: helm-client-validator +spec: + replicas: 1 + selector: + matchLabels: + app: helm-client-validator + template: + metadata: + labels: + app: helm-client-validator + spec: + containers: + - name: helm-client-validator + imagePullPolicy: IfNotPresent + image: onap/org.onap.sdc.sdc-helm-validator:latest + resources: + requests: + memory: "256Mi" + limits: + memory: "256Mi" + + +--- +apiVersion: v1 +kind: Service +metadata: + name: helm-client-validator-service + namespace: onap + labels: + app: helm-client-validator +spec: + selector: + app: helm-client-validator + type: NodePort + ports: + - port: 8244 + targetPort: 8080 + nodePort: 32244 diff --git a/dev-resources/sample-charts/correct-apiVersion-v1.tgz b/dev-resources/sample-charts/correct-apiVersion-v1.tgz Binary files differnew file mode 100644 index 0000000..9782071 --- /dev/null +++ b/dev-resources/sample-charts/correct-apiVersion-v1.tgz diff --git a/dev-resources/sample-charts/correct-apiVersion-v2.tgz b/dev-resources/sample-charts/correct-apiVersion-v2.tgz Binary files differnew file mode 100644 index 0000000..a1a99ba --- /dev/null +++ b/dev-resources/sample-charts/correct-apiVersion-v2.tgz diff --git a/dev-resources/sample-charts/error-bad-chart-yaml.tar.gz b/dev-resources/sample-charts/error-bad-chart-yaml.tar.gz Binary files differnew file mode 100644 index 0000000..b7ce4e5 --- /dev/null +++ b/dev-resources/sample-charts/error-bad-chart-yaml.tar.gz diff --git a/dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v1.tgz b/dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v1.tgz Binary files differnew file mode 100644 index 0000000..d17c118 --- /dev/null +++ b/dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v1.tgz diff --git a/dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v2.tgz b/dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v2.tgz Binary files differnew file mode 100644 index 0000000..874dd3c --- /dev/null +++ b/dev-resources/sample-charts/one-lint-one-render-error-apiVersion-v2.tgz diff --git a/dev-resources/sample-charts/one-lint-warning-apiVersion-v2.tgz b/dev-resources/sample-charts/one-lint-warning-apiVersion-v2.tgz Binary files differnew file mode 100644 index 0000000..51f4dd1 --- /dev/null +++ b/dev-resources/sample-charts/one-lint-warning-apiVersion-v2.tgz diff --git a/dev-resources/sample-charts/two-lint-warnings-apiVersion-v1.tgz b/dev-resources/sample-charts/two-lint-warnings-apiVersion-v1.tgz Binary files differnew file mode 100644 index 0000000..54422c9 --- /dev/null +++ b/dev-resources/sample-charts/two-lint-warnings-apiVersion-v1.tgz |