@storm-software/k8s-tools 0.18.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/chunk-2GAU2GHG.js +203 -0
- package/dist/chunk-2QNNUD5M.js +86 -0
- package/dist/chunk-3GQAWCBQ.js +13 -0
- package/dist/chunk-3J7KBHMJ.mjs +0 -0
- package/dist/chunk-6V45YKVB.mjs +203 -0
- package/dist/chunk-7AV2CVBT.mjs +169 -0
- package/dist/chunk-7BCSLKT3.js +98 -0
- package/dist/chunk-7IJP4RLN.mjs +63 -0
- package/dist/chunk-AFPEYAYK.js +61 -0
- package/dist/chunk-DHBG5ASJ.js +1 -0
- package/dist/chunk-DZ5UCMNL.mjs +1063 -0
- package/dist/chunk-EAQFLLRB.js +23 -0
- package/dist/chunk-EISL3C34.js +169 -0
- package/dist/chunk-GDXB64KG.js +1063 -0
- package/dist/chunk-GOVHOOTS.js +184 -0
- package/dist/chunk-IOT45LXV.js +134 -0
- package/dist/chunk-LFNGKV6F.js +18 -0
- package/dist/chunk-LSBSNYPQ.mjs +86 -0
- package/dist/chunk-O7U3AH6A.mjs +58 -0
- package/dist/chunk-OA63SGD6.mjs +23 -0
- package/dist/chunk-OBT35QXS.mjs +59 -0
- package/dist/chunk-OXY6AHKS.js +57 -0
- package/dist/chunk-Q6DDBFXE.mjs +147 -0
- package/dist/chunk-RVFKH45R.mjs +134 -0
- package/dist/chunk-T5WNZJOD.js +63 -0
- package/dist/chunk-TUDMFJIT.mjs +98 -0
- package/dist/chunk-U76ID4TS.js +1 -0
- package/dist/chunk-UDLI3L7V.mjs +18 -0
- package/dist/chunk-UWJTAL4W.js +59 -0
- package/dist/chunk-W7DPLC4K.mjs +184 -0
- package/dist/chunk-WWU25UQ4.mjs +0 -0
- package/dist/chunk-XMPMWMWQ.js +147 -0
- package/dist/chunk-XO66D74Z.js +1 -0
- package/dist/chunk-XUV4U54K.mjs +21 -0
- package/dist/chunk-YSCEY447.mjs +0 -0
- package/dist/chunk-ZO7MGNKJ.mjs +61 -0
- package/dist/executor-DY-z8MOl.d.mts +53 -0
- package/dist/executor-Dr6UXfvX.d.ts +53 -0
- package/dist/executors.d.mts +6 -0
- package/dist/executors.d.ts +6 -0
- package/dist/executors.js +19 -0
- package/dist/executors.mjs +19 -0
- package/dist/generator-B5bCfIUV.d.ts +24 -0
- package/dist/generator-BIe65kKR.d.mts +28 -0
- package/dist/generator-Cad7bXVB.d.mts +24 -0
- package/dist/generator-D7M45zOU.d.ts +28 -0
- package/dist/generators.d.mts +6 -0
- package/dist/generators.d.ts +6 -0
- package/dist/generators.js +15 -0
- package/dist/generators.mjs +15 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +57 -0
- package/dist/index.mjs +57 -0
- package/dist/schema.d-Cx_3iG9A.d.mts +150 -0
- package/dist/schema.d-Cx_3iG9A.d.ts +150 -0
- package/dist/src/executors/container-publish/executor.d.mts +11 -0
- package/dist/src/executors/container-publish/executor.d.ts +11 -0
- package/dist/src/executors/container-publish/executor.js +13 -0
- package/dist/src/executors/container-publish/executor.mjs +13 -0
- package/dist/src/executors/helm-package/executor.d.mts +4 -0
- package/dist/src/executors/helm-package/executor.d.ts +4 -0
- package/dist/src/executors/helm-package/executor.js +15 -0
- package/dist/src/executors/helm-package/executor.mjs +15 -0
- package/dist/src/executors/helm-package/schema.d.ts +1 -1
- package/dist/src/generators/helm-chart/files/chart/templates/NOTES.txt +22 -0
- package/dist/src/generators/helm-chart/files/chart/templates/_helpers.yaml +62 -0
- package/dist/src/generators/helm-chart/files/chart/templates/deployment.yaml +68 -0
- package/dist/src/generators/helm-chart/files/chart/templates/hpa.yaml +32 -0
- package/dist/src/generators/helm-chart/files/chart/templates/ingress.yaml +61 -0
- package/dist/src/generators/helm-chart/files/chart/templates/service.yaml +13 -0
- package/dist/src/generators/helm-chart/files/chart/templates/serviceaccount.yaml +13 -0
- package/dist/src/generators/helm-chart/files/chart/templates/test/test-connection.yaml +15 -0
- package/dist/src/generators/helm-chart/generator.d.mts +5 -0
- package/dist/src/generators/helm-chart/generator.d.ts +5 -0
- package/dist/src/generators/helm-chart/generator.js +12 -0
- package/dist/src/generators/helm-chart/generator.mjs +12 -0
- package/dist/src/generators/helm-chart/schema.d.ts +1 -1
- package/dist/src/generators/helm-dependency/generator.d.mts +5 -0
- package/dist/src/generators/helm-dependency/generator.d.ts +5 -0
- package/dist/src/generators/helm-dependency/generator.js +12 -0
- package/dist/src/generators/helm-dependency/generator.mjs +12 -0
- package/dist/src/generators/helm-dependency/schema.d.ts +1 -1
- package/dist/src/plugins/docker/index.d.mts +12 -0
- package/dist/src/plugins/docker/index.d.ts +12 -0
- package/dist/src/plugins/docker/index.js +15 -0
- package/dist/src/plugins/docker/index.mjs +15 -0
- package/dist/src/utils/client.d.mts +35 -0
- package/dist/src/utils/client.d.ts +35 -0
- package/dist/src/utils/client.js +11 -0
- package/dist/src/utils/client.mjs +11 -0
- package/dist/src/utils/ensure-init.d.mts +11 -0
- package/dist/src/utils/ensure-init.d.ts +11 -0
- package/dist/src/utils/ensure-init.js +7 -0
- package/dist/src/utils/ensure-init.mjs +7 -0
- package/dist/src/utils/index.d.mts +6 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/index.js +21 -0
- package/dist/src/utils/index.mjs +21 -0
- package/dist/src/utils/prettier.d.mts +13 -0
- package/dist/src/utils/prettier.d.ts +13 -0
- package/dist/src/utils/prettier.js +9 -0
- package/dist/src/utils/prettier.mjs +9 -0
- package/dist/tsup.config.d.mts +5 -0
- package/dist/tsup.config.d.ts +5 -0
- package/dist/tsup.config.js +36 -0
- package/dist/tsup.config.mjs +36 -0
- package/dist/types-BCBFBwnJ.d.mts +20 -0
- package/dist/types-BCBFBwnJ.d.ts +20 -0
- package/dist/types-CIJRaFHD.d.mts +1185 -0
- package/dist/types-CIJRaFHD.d.ts +1185 -0
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Expand the name of the chart.
|
|
3
|
+
*/}}
|
|
4
|
+
{{- define "chart.name" -}}
|
|
5
|
+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
6
|
+
{{- end }}
|
|
7
|
+
|
|
8
|
+
{{/*
|
|
9
|
+
Create a default fully qualified app name.
|
|
10
|
+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
11
|
+
If release name contains chart name it will be used as a full name.
|
|
12
|
+
*/}}
|
|
13
|
+
{{- define "chart.fullname" -}}
|
|
14
|
+
{{- if .Values.fullnameOverride }}
|
|
15
|
+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
|
16
|
+
{{- else }}
|
|
17
|
+
{{- $name := default .Chart.Name .Values.nameOverride }}
|
|
18
|
+
{{- if contains $name .Release.Name }}
|
|
19
|
+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
|
20
|
+
{{- else }}
|
|
21
|
+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
|
22
|
+
{{- end }}
|
|
23
|
+
{{- end }}
|
|
24
|
+
{{- end }}
|
|
25
|
+
|
|
26
|
+
{{/*
|
|
27
|
+
Create chart name and version as used by the chart label.
|
|
28
|
+
*/}}
|
|
29
|
+
{{- define "chart.chart" -}}
|
|
30
|
+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
31
|
+
{{- end }}
|
|
32
|
+
|
|
33
|
+
{{/*
|
|
34
|
+
Common labels
|
|
35
|
+
*/}}
|
|
36
|
+
{{- define "chart.labels" -}}
|
|
37
|
+
helm.sh/chart: {{ include "chart.chart" . }}
|
|
38
|
+
{{ include "chart.selectorLabels" . }}
|
|
39
|
+
{{- if .Chart.AppVersion }}
|
|
40
|
+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
41
|
+
{{- end }}
|
|
42
|
+
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
43
|
+
{{- end }}
|
|
44
|
+
|
|
45
|
+
{{/*
|
|
46
|
+
Selector labels
|
|
47
|
+
*/}}
|
|
48
|
+
{{- define "chart.selectorLabels" -}}
|
|
49
|
+
app.kubernetes.io/name: {{ include "chart.name" . }}
|
|
50
|
+
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
51
|
+
{{- end }}
|
|
52
|
+
|
|
53
|
+
{{/*
|
|
54
|
+
Create the name of the service account to use
|
|
55
|
+
*/}}
|
|
56
|
+
{{- define "chart.serviceAccountName" -}}
|
|
57
|
+
{{- if .Values.serviceAccount.create }}
|
|
58
|
+
{{- default (include "chart.fullname" .) .Values.serviceAccount.name }}
|
|
59
|
+
{{- else }}
|
|
60
|
+
{{- default "default" .Values.serviceAccount.name }}
|
|
61
|
+
{{- end }}
|
|
62
|
+
{{- end }}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
apiVersion: apps/v1
|
|
2
|
+
kind: Deployment
|
|
3
|
+
metadata:
|
|
4
|
+
name: {{ include "chart.fullname" . }}
|
|
5
|
+
labels:
|
|
6
|
+
{{- include "chart.labels" . | nindent 4 }}
|
|
7
|
+
spec:
|
|
8
|
+
{{- if not .Values.autoscaling.enabled }}
|
|
9
|
+
replicas: {{ .Values.replicaCount }}
|
|
10
|
+
{{- end }}
|
|
11
|
+
selector:
|
|
12
|
+
matchLabels:
|
|
13
|
+
{{- include "chart.selectorLabels" . | nindent 6 }}
|
|
14
|
+
template:
|
|
15
|
+
metadata:
|
|
16
|
+
{{- with .Values.podAnnotations }}
|
|
17
|
+
annotations:
|
|
18
|
+
{{- toYaml . | nindent 8 }}
|
|
19
|
+
{{- end }}
|
|
20
|
+
labels:
|
|
21
|
+
{{- include "chart.labels" . | nindent 8 }}
|
|
22
|
+
{{- with .Values.podLabels }}
|
|
23
|
+
{{- toYaml . | nindent 8 }}
|
|
24
|
+
{{- end }}
|
|
25
|
+
spec:
|
|
26
|
+
{{- with .Values.imagePullSecrets }}
|
|
27
|
+
imagePullSecrets:
|
|
28
|
+
{{- toYaml . | nindent 8 }}
|
|
29
|
+
{{- end }}
|
|
30
|
+
serviceAccountName: {{ include "chart.serviceAccountName" . }}
|
|
31
|
+
securityContext:
|
|
32
|
+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
33
|
+
containers:
|
|
34
|
+
- name: {{ .Chart.Name }}
|
|
35
|
+
securityContext:
|
|
36
|
+
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
37
|
+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
38
|
+
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
39
|
+
ports:
|
|
40
|
+
- name: http
|
|
41
|
+
containerPort: {{ .Values.service.port }}
|
|
42
|
+
protocol: TCP
|
|
43
|
+
livenessProbe:
|
|
44
|
+
{{- toYaml .Values.livenessProbe | nindent 12 }}
|
|
45
|
+
readinessProbe:
|
|
46
|
+
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
|
47
|
+
resources:
|
|
48
|
+
{{- toYaml .Values.resources | nindent 12 }}
|
|
49
|
+
{{- with .Values.volumeMounts }}
|
|
50
|
+
volumeMounts:
|
|
51
|
+
{{- toYaml . | nindent 12 }}
|
|
52
|
+
{{- end }}
|
|
53
|
+
{{- with .Values.volumes }}
|
|
54
|
+
volumes:
|
|
55
|
+
{{- toYaml . | nindent 8 }}
|
|
56
|
+
{{- end }}
|
|
57
|
+
{{- with .Values.nodeSelector }}
|
|
58
|
+
nodeSelector:
|
|
59
|
+
{{- toYaml . | nindent 8 }}
|
|
60
|
+
{{- end }}
|
|
61
|
+
{{- with .Values.affinity }}
|
|
62
|
+
affinity:
|
|
63
|
+
{{- toYaml . | nindent 8 }}
|
|
64
|
+
{{- end }}
|
|
65
|
+
{{- with .Values.tolerations }}
|
|
66
|
+
tolerations:
|
|
67
|
+
{{- toYaml . | nindent 8 }}
|
|
68
|
+
{{- end }}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{{- if .Values.autoscaling.enabled }}
|
|
2
|
+
apiVersion: autoscaling/v2
|
|
3
|
+
kind: HorizontalPodAutoscaler
|
|
4
|
+
metadata:
|
|
5
|
+
name: {{ include "chart.fullname" . }}
|
|
6
|
+
labels:
|
|
7
|
+
{{- include "chart.labels" . | nindent 4 }}
|
|
8
|
+
spec:
|
|
9
|
+
scaleTargetRef:
|
|
10
|
+
apiVersion: apps/v1
|
|
11
|
+
kind: Deployment
|
|
12
|
+
name: {{ include "chart.fullname" . }}
|
|
13
|
+
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
|
14
|
+
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
|
15
|
+
metrics:
|
|
16
|
+
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
17
|
+
- type: Resource
|
|
18
|
+
resource:
|
|
19
|
+
name: cpu
|
|
20
|
+
target:
|
|
21
|
+
type: Utilization
|
|
22
|
+
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
23
|
+
{{- end }}
|
|
24
|
+
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
25
|
+
- type: Resource
|
|
26
|
+
resource:
|
|
27
|
+
name: memory
|
|
28
|
+
target:
|
|
29
|
+
type: Utilization
|
|
30
|
+
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
31
|
+
{{- end }}
|
|
32
|
+
{{- end }}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{{- if .Values.ingress.enabled -}}
|
|
2
|
+
{{- $fullName := include "chart.fullname" . -}}
|
|
3
|
+
{{- $svcPort := .Values.service.port -}}
|
|
4
|
+
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
|
5
|
+
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
|
6
|
+
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
|
7
|
+
{{- end }}
|
|
8
|
+
{{- end }}
|
|
9
|
+
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
10
|
+
apiVersion: networking.k8s.io/v1
|
|
11
|
+
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
12
|
+
apiVersion: networking.k8s.io/v1beta1
|
|
13
|
+
{{- else -}}
|
|
14
|
+
apiVersion: extensions/v1beta1
|
|
15
|
+
{{- end }}
|
|
16
|
+
kind: Ingress
|
|
17
|
+
metadata:
|
|
18
|
+
name: {{ $fullName }}
|
|
19
|
+
labels:
|
|
20
|
+
{{- include "chart.labels" . | nindent 4 }}
|
|
21
|
+
{{- with .Values.ingress.annotations }}
|
|
22
|
+
annotations:
|
|
23
|
+
{{- toYaml . | nindent 4 }}
|
|
24
|
+
{{- end }}
|
|
25
|
+
spec:
|
|
26
|
+
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
|
27
|
+
ingressClassName: {{ .Values.ingress.className }}
|
|
28
|
+
{{- end }}
|
|
29
|
+
{{- if .Values.ingress.tls }}
|
|
30
|
+
tls:
|
|
31
|
+
{{- range .Values.ingress.tls }}
|
|
32
|
+
- hosts:
|
|
33
|
+
{{- range .hosts }}
|
|
34
|
+
- {{ . | quote }}
|
|
35
|
+
{{- end }}
|
|
36
|
+
secretName: {{ .secretName }}
|
|
37
|
+
{{- end }}
|
|
38
|
+
{{- end }}
|
|
39
|
+
rules:
|
|
40
|
+
{{- range .Values.ingress.hosts }}
|
|
41
|
+
- host: {{ .host | quote }}
|
|
42
|
+
http:
|
|
43
|
+
paths:
|
|
44
|
+
{{- range .paths }}
|
|
45
|
+
- path: {{ .path }}
|
|
46
|
+
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
|
47
|
+
pathType: {{ .pathType }}
|
|
48
|
+
{{- end }}
|
|
49
|
+
backend:
|
|
50
|
+
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
|
51
|
+
service:
|
|
52
|
+
name: {{ $fullName }}
|
|
53
|
+
port:
|
|
54
|
+
number: {{ $svcPort }}
|
|
55
|
+
{{- else }}
|
|
56
|
+
serviceName: {{ $fullName }}
|
|
57
|
+
servicePort: {{ $svcPort }}
|
|
58
|
+
{{- end }}
|
|
59
|
+
{{- end }}
|
|
60
|
+
{{- end }}
|
|
61
|
+
{{- end }}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
apiVersion: v1
|
|
2
|
+
kind: Service
|
|
3
|
+
metadata:
|
|
4
|
+
name: { { include "chart.fullname" . } }
|
|
5
|
+
labels: { { - include "chart.labels" . | nindent 4 } }
|
|
6
|
+
spec:
|
|
7
|
+
type: { { .Values.service.type } }
|
|
8
|
+
ports:
|
|
9
|
+
- port: { { .Values.service.port } }
|
|
10
|
+
targetPort: http
|
|
11
|
+
protocol: TCP
|
|
12
|
+
name: http
|
|
13
|
+
selector: { { - include "chart.selectorLabels" . | nindent 4 } }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{{- if .Values.serviceAccount.create -}}
|
|
2
|
+
apiVersion: v1
|
|
3
|
+
kind: ServiceAccount
|
|
4
|
+
metadata:
|
|
5
|
+
name: {{ include "chart.serviceAccountName" . }}
|
|
6
|
+
labels:
|
|
7
|
+
{{- include "chart.labels" . | nindent 4 }}
|
|
8
|
+
{{- with .Values.serviceAccount.annotations }}
|
|
9
|
+
annotations:
|
|
10
|
+
{{- toYaml . | nindent 4 }}
|
|
11
|
+
{{- end }}
|
|
12
|
+
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
|
|
13
|
+
{{- end }}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
apiVersion: v1
|
|
2
|
+
kind: Pod
|
|
3
|
+
metadata:
|
|
4
|
+
name: "{{ include "chart.fullname" . }}-test-connection"
|
|
5
|
+
labels:
|
|
6
|
+
{{- include "chart.labels" . | nindent 4 }}
|
|
7
|
+
annotations:
|
|
8
|
+
"helm.sh/hook": test
|
|
9
|
+
spec:
|
|
10
|
+
containers:
|
|
11
|
+
- name: wget
|
|
12
|
+
image: busybox
|
|
13
|
+
command: ['wget']
|
|
14
|
+
args: ['{{ include "chart.fullname" . }}:{{ .Values.service.port }}']
|
|
15
|
+
restartPolicy: Never
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOXY6AHKSjs = require('../../../chunk-OXY6AHKS.js');
|
|
5
|
+
require('../../../chunk-2QNNUD5M.js');
|
|
6
|
+
require('../../../chunk-AFPEYAYK.js');
|
|
7
|
+
require('../../../chunk-GDXB64KG.js');
|
|
8
|
+
require('../../../chunk-3GQAWCBQ.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.default = _chunkOXY6AHKSjs.generator_default; exports.helmChartGeneratorFn = _chunkOXY6AHKSjs.helmChartGeneratorFn;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
generator_default,
|
|
3
|
+
helmChartGeneratorFn
|
|
4
|
+
} from "../../../chunk-O7U3AH6A.mjs";
|
|
5
|
+
import "../../../chunk-LSBSNYPQ.mjs";
|
|
6
|
+
import "../../../chunk-ZO7MGNKJ.mjs";
|
|
7
|
+
import "../../../chunk-DZ5UCMNL.mjs";
|
|
8
|
+
import "../../../chunk-XUV4U54K.mjs";
|
|
9
|
+
export {
|
|
10
|
+
generator_default as default,
|
|
11
|
+
helmChartGeneratorFn
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseGeneratorSchema } from "@storm-software/workspace-tools/base/base-generator.d";
|
|
1
|
+
import { BaseGeneratorSchema } from "@storm-software/workspace-tools/base/base-generator.schema.d";
|
|
2
2
|
|
|
3
3
|
export interface HelmChartGeneratorSchema extends BaseGeneratorSchema {
|
|
4
4
|
/** Name of the chart */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk7BCSLKT3js = require('../../../chunk-7BCSLKT3.js');
|
|
5
|
+
require('../../../chunk-2QNNUD5M.js');
|
|
6
|
+
require('../../../chunk-AFPEYAYK.js');
|
|
7
|
+
require('../../../chunk-GDXB64KG.js');
|
|
8
|
+
require('../../../chunk-3GQAWCBQ.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.default = _chunk7BCSLKT3js.generator_default; exports.helmDependencyGeneratorFn = _chunk7BCSLKT3js.helmDependencyGeneratorFn;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
generator_default,
|
|
3
|
+
helmDependencyGeneratorFn
|
|
4
|
+
} from "../../../chunk-TUDMFJIT.mjs";
|
|
5
|
+
import "../../../chunk-LSBSNYPQ.mjs";
|
|
6
|
+
import "../../../chunk-ZO7MGNKJ.mjs";
|
|
7
|
+
import "../../../chunk-DZ5UCMNL.mjs";
|
|
8
|
+
import "../../../chunk-XUV4U54K.mjs";
|
|
9
|
+
export {
|
|
10
|
+
generator_default as default,
|
|
11
|
+
helmDependencyGeneratorFn
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseGeneratorSchema } from "@storm-software/workspace-tools/base/base-generator.d";
|
|
1
|
+
import { BaseGeneratorSchema } from "@storm-software/workspace-tools/base/base-generator.schema.d";
|
|
2
2
|
|
|
3
3
|
export interface HelmDependencyGeneratorSchema extends BaseGeneratorSchema {
|
|
4
4
|
/** Project name */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CreateNodes, CreateDependencies } from '@nx/devkit';
|
|
2
|
+
import { E as ExternalContainerExecutorSchema } from '../../../schema.d-Cx_3iG9A.mjs';
|
|
3
|
+
|
|
4
|
+
declare const name = "storm-software/docker";
|
|
5
|
+
declare const description = "Plugin for parsing Dockerfile files";
|
|
6
|
+
interface DockerFilePluginOptions {
|
|
7
|
+
defaultEngine?: ExternalContainerExecutorSchema["engine"];
|
|
8
|
+
}
|
|
9
|
+
declare const createNodes: CreateNodes<DockerFilePluginOptions>;
|
|
10
|
+
declare const createDependencies: CreateDependencies;
|
|
11
|
+
|
|
12
|
+
export { type DockerFilePluginOptions, createDependencies, createNodes, description, name };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CreateNodes, CreateDependencies } from '@nx/devkit';
|
|
2
|
+
import { E as ExternalContainerExecutorSchema } from '../../../schema.d-Cx_3iG9A.js';
|
|
3
|
+
|
|
4
|
+
declare const name = "storm-software/docker";
|
|
5
|
+
declare const description = "Plugin for parsing Dockerfile files";
|
|
6
|
+
interface DockerFilePluginOptions {
|
|
7
|
+
defaultEngine?: ExternalContainerExecutorSchema["engine"];
|
|
8
|
+
}
|
|
9
|
+
declare const createNodes: CreateNodes<DockerFilePluginOptions>;
|
|
10
|
+
declare const createDependencies: CreateDependencies;
|
|
11
|
+
|
|
12
|
+
export { type DockerFilePluginOptions, createDependencies, createNodes, description, name };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkGOVHOOTSjs = require('../../../chunk-GOVHOOTS.js');
|
|
7
|
+
require('../../../chunk-IOT45LXV.js');
|
|
8
|
+
require('../../../chunk-GDXB64KG.js');
|
|
9
|
+
require('../../../chunk-3GQAWCBQ.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.createDependencies = _chunkGOVHOOTSjs.createDependencies; exports.createNodes = _chunkGOVHOOTSjs.createNodes; exports.description = _chunkGOVHOOTSjs.description; exports.name = _chunkGOVHOOTSjs.name;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createDependencies,
|
|
3
|
+
createNodes,
|
|
4
|
+
description,
|
|
5
|
+
name
|
|
6
|
+
} from "../../../chunk-W7DPLC4K.mjs";
|
|
7
|
+
import "../../../chunk-RVFKH45R.mjs";
|
|
8
|
+
import "../../../chunk-DZ5UCMNL.mjs";
|
|
9
|
+
import "../../../chunk-XUV4U54K.mjs";
|
|
10
|
+
export {
|
|
11
|
+
createDependencies,
|
|
12
|
+
createNodes,
|
|
13
|
+
description,
|
|
14
|
+
name
|
|
15
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AbstractHelmClient, PackageOptions, PushOptions } from '../types.mjs';
|
|
2
|
+
import 'prettier';
|
|
3
|
+
|
|
4
|
+
/** Helm wrapper class */
|
|
5
|
+
declare class HelmClient extends AbstractHelmClient {
|
|
6
|
+
/**
|
|
7
|
+
* Creates an instance of HelmClient
|
|
8
|
+
*/
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Package a chart directory into a chart archive
|
|
12
|
+
*
|
|
13
|
+
* @param {PackageOptions} [options]
|
|
14
|
+
*/
|
|
15
|
+
package(options: PackageOptions): Promise<string | undefined>;
|
|
16
|
+
push(options: PushOptions): void;
|
|
17
|
+
dependencyUpdate(chartFolder: string): void;
|
|
18
|
+
dependencyBuild(chartFolder: string): void;
|
|
19
|
+
addRepository(name: string, url: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize Helm
|
|
22
|
+
*
|
|
23
|
+
* @returns A promise
|
|
24
|
+
*/
|
|
25
|
+
initialize(): Promise<void>;
|
|
26
|
+
private runCommand;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a new Helm client instance
|
|
30
|
+
*
|
|
31
|
+
* @returns {HelmClient}
|
|
32
|
+
*/
|
|
33
|
+
declare const createHelmClient: () => HelmClient;
|
|
34
|
+
|
|
35
|
+
export { HelmClient, createHelmClient };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AbstractHelmClient, PackageOptions, PushOptions } from '../types.js';
|
|
2
|
+
import 'prettier';
|
|
3
|
+
|
|
4
|
+
/** Helm wrapper class */
|
|
5
|
+
declare class HelmClient extends AbstractHelmClient {
|
|
6
|
+
/**
|
|
7
|
+
* Creates an instance of HelmClient
|
|
8
|
+
*/
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* Package a chart directory into a chart archive
|
|
12
|
+
*
|
|
13
|
+
* @param {PackageOptions} [options]
|
|
14
|
+
*/
|
|
15
|
+
package(options: PackageOptions): Promise<string | undefined>;
|
|
16
|
+
push(options: PushOptions): void;
|
|
17
|
+
dependencyUpdate(chartFolder: string): void;
|
|
18
|
+
dependencyBuild(chartFolder: string): void;
|
|
19
|
+
addRepository(name: string, url: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize Helm
|
|
22
|
+
*
|
|
23
|
+
* @returns A promise
|
|
24
|
+
*/
|
|
25
|
+
initialize(): Promise<void>;
|
|
26
|
+
private runCommand;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a new Helm client instance
|
|
30
|
+
*
|
|
31
|
+
* @returns {HelmClient}
|
|
32
|
+
*/
|
|
33
|
+
declare const createHelmClient: () => HelmClient;
|
|
34
|
+
|
|
35
|
+
export { HelmClient, createHelmClient };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk2GAU2GHGjs = require('../../chunk-2GAU2GHG.js');
|
|
5
|
+
require('../../chunk-LFNGKV6F.js');
|
|
6
|
+
require('../../chunk-EAQFLLRB.js');
|
|
7
|
+
require('../../chunk-3GQAWCBQ.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.HelmClient = _chunk2GAU2GHGjs.HelmClient; exports.createHelmClient = _chunk2GAU2GHGjs.createHelmClient;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decorator to ensure the class is initialized before executing a method
|
|
3
|
+
*
|
|
4
|
+
* @param {any} target
|
|
5
|
+
* @param {string} propertyKey
|
|
6
|
+
* @param {PropertyDescriptor} descriptor
|
|
7
|
+
* @returns {PropertyDescriptor}
|
|
8
|
+
*/
|
|
9
|
+
declare const ensureInitialized: (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
10
|
+
|
|
11
|
+
export { ensureInitialized };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decorator to ensure the class is initialized before executing a method
|
|
3
|
+
*
|
|
4
|
+
* @param {any} target
|
|
5
|
+
* @param {string} propertyKey
|
|
6
|
+
* @param {PropertyDescriptor} descriptor
|
|
7
|
+
* @returns {PropertyDescriptor}
|
|
8
|
+
*/
|
|
9
|
+
declare const ensureInitialized: (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
10
|
+
|
|
11
|
+
export { ensureInitialized };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { HelmClient, createHelmClient } from './client.mjs';
|
|
2
|
+
export { ensureInitialized } from './ensure-init.mjs';
|
|
3
|
+
export { addToPrettierIgnore, resolveUserExistingPrettierConfig } from './prettier.mjs';
|
|
4
|
+
import '../types.mjs';
|
|
5
|
+
import 'prettier';
|
|
6
|
+
import '@nx/devkit';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { HelmClient, createHelmClient } from './client.js';
|
|
2
|
+
export { ensureInitialized } from './ensure-init.js';
|
|
3
|
+
export { addToPrettierIgnore, resolveUserExistingPrettierConfig } from './prettier.js';
|
|
4
|
+
import '../types.js';
|
|
5
|
+
import 'prettier';
|
|
6
|
+
import '@nx/devkit';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-U76ID4TS.js');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkT5WNZJODjs = require('../../chunk-T5WNZJOD.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunk2GAU2GHGjs = require('../../chunk-2GAU2GHG.js');
|
|
10
|
+
require('../../chunk-LFNGKV6F.js');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkEAQFLLRBjs = require('../../chunk-EAQFLLRB.js');
|
|
14
|
+
require('../../chunk-3GQAWCBQ.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.HelmClient = _chunk2GAU2GHGjs.HelmClient; exports.addToPrettierIgnore = _chunkT5WNZJODjs.addToPrettierIgnore; exports.createHelmClient = _chunk2GAU2GHGjs.createHelmClient; exports.ensureInitialized = _chunkEAQFLLRBjs.ensureInitialized; exports.resolveUserExistingPrettierConfig = _chunkT5WNZJODjs.resolveUserExistingPrettierConfig;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../../chunk-WWU25UQ4.mjs";
|
|
2
|
+
import {
|
|
3
|
+
addToPrettierIgnore,
|
|
4
|
+
resolveUserExistingPrettierConfig
|
|
5
|
+
} from "../../chunk-7IJP4RLN.mjs";
|
|
6
|
+
import {
|
|
7
|
+
HelmClient,
|
|
8
|
+
createHelmClient
|
|
9
|
+
} from "../../chunk-6V45YKVB.mjs";
|
|
10
|
+
import "../../chunk-UDLI3L7V.mjs";
|
|
11
|
+
import {
|
|
12
|
+
ensureInitialized
|
|
13
|
+
} from "../../chunk-OA63SGD6.mjs";
|
|
14
|
+
import "../../chunk-XUV4U54K.mjs";
|
|
15
|
+
export {
|
|
16
|
+
HelmClient,
|
|
17
|
+
addToPrettierIgnore,
|
|
18
|
+
createHelmClient,
|
|
19
|
+
ensureInitialized,
|
|
20
|
+
resolveUserExistingPrettierConfig
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
import { PrettierConfig } from '../types.mjs';
|
|
3
|
+
import 'prettier';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the existing Prettier configuration.
|
|
7
|
+
*
|
|
8
|
+
* @returns The Prettier configuration or undefined if not found.
|
|
9
|
+
*/
|
|
10
|
+
declare function resolveUserExistingPrettierConfig(): Promise<PrettierConfig | undefined>;
|
|
11
|
+
declare function addToPrettierIgnore(tree: Tree, ignore: string[]): void;
|
|
12
|
+
|
|
13
|
+
export { addToPrettierIgnore, resolveUserExistingPrettierConfig };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
import { PrettierConfig } from '../types.js';
|
|
3
|
+
import 'prettier';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the existing Prettier configuration.
|
|
7
|
+
*
|
|
8
|
+
* @returns The Prettier configuration or undefined if not found.
|
|
9
|
+
*/
|
|
10
|
+
declare function resolveUserExistingPrettierConfig(): Promise<PrettierConfig | undefined>;
|
|
11
|
+
declare function addToPrettierIgnore(tree: Tree, ignore: string[]): void;
|
|
12
|
+
|
|
13
|
+
export { addToPrettierIgnore, resolveUserExistingPrettierConfig };
|