Skip to content

Commit

Permalink
New generators (#145)
Browse files Browse the repository at this point in the history
* original-compiled

* add new generators

* upgrade generators

* adds new generator output
  • Loading branch information
ademariag authored Dec 17, 2024
1 parent 6baac26 commit 1e555f8
Show file tree
Hide file tree
Showing 169 changed files with 10,901 additions and 9,608 deletions.
4 changes: 1 addition & 3 deletions .kapitan
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
version: 0.32
compile:
prune: true
embed-refs: true
fetch: true
yaml-dump-null-as-empty: true
compose-node-name: true
refs-path: ./system/refs
jinja2-filters: ./system/templates/jinja2_filters.py
search-paths:
Expand All @@ -13,4 +11,4 @@ compile:
- ./system/lib
- ./system/generators
refs:
refs-path: ./system/refs
refs-path: ./system/refs
19 changes: 19 additions & 0 deletions .kapitan.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file contains default settings for Kapitan

# Use version to fix a specific kapitan version
# version: {{kapitan_version}}
compile:
prune: true
embed-refs: true
fetch: true
yaml-dump-null-as-empty: true
compose-node-name: true
refs-path: ./system/refs
jinja2-filters: ./system/templates/jinja2_filters.py
search-paths:
- .
- ./system/
- ./system/lib
- ./system/generators
refs:
refs-path: ./system/refs
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
21 changes: 20 additions & 1 deletion compiled/dev-sockshop/manifests/carts-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ metadata:
name: carts
namespace: dev-sockshop
spec:
minReadySeconds:
progressDeadlineSeconds:
replicas: 1
revisionHistoryLimit:
selector:
matchLabels:
app.kubernetes.io/part-of: sock-shop
Expand All @@ -22,22 +25,28 @@ spec:
type: RollingUpdate
template:
metadata:
annotations: {}
labels:
app.kubernetes.io/part-of: sock-shop
name: carts
spec:
affinity: {}
containers:
- env:
- args: []
command: []
env:
- name: JAVA_OPTS
value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC
-Djava.security.egd=file:/dev/urandom
- name: ZIPKIN
value: zipkin.jaeger.svc.cluster.local
image: weaveworksdemos/carts:0.4.8
imagePullPolicy: IfNotPresent
lifecycle: {}
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /health
port: http
scheme: HTTP
Expand All @@ -53,13 +62,15 @@ spec:
readinessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /health
port: http
scheme: HTTP
initialDelaySeconds: 120
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
resources: {}
securityContext:
capabilities:
add:
Expand All @@ -72,8 +83,16 @@ spec:
volumeMounts:
- mountPath: /tmp
name: tmp-volume
dnsPolicy:
hostNetwork:
hostPID:
imagePullSecrets: []
initContainers: []
nodeSelector: {}
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations: []
volumes:
- emptyDir:
medium: Memory
Expand Down
19 changes: 18 additions & 1 deletion compiled/dev-sockshop/manifests/carts-db-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ metadata:
name: carts-db
namespace: dev-sockshop
spec:
minReadySeconds:
progressDeadlineSeconds:
replicas: 1
revisionHistoryLimit:
selector:
matchLabels:
app.kubernetes.io/part-of: sock-shop
Expand All @@ -22,18 +25,24 @@ spec:
type: RollingUpdate
template:
metadata:
annotations: {}
labels:
app.kubernetes.io/part-of: sock-shop
name: carts-db
spec:
affinity: {}
containers:
- image: mongo
- args: []
command: []
image: mongo
imagePullPolicy: IfNotPresent
lifecycle: {}
name: carts-db
ports:
- containerPort: 27017
name: mongo
protocol: TCP
resources: {}
securityContext:
capabilities:
add:
Expand All @@ -46,8 +55,16 @@ spec:
volumeMounts:
- mountPath: /tmp
name: tmp-volume
dnsPolicy:
hostNetwork:
hostPID:
imagePullSecrets: []
initContainers: []
nodeSelector: {}
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations: []
volumes:
- emptyDir:
medium: Memory
Expand Down
3 changes: 3 additions & 0 deletions compiled/dev-sockshop/manifests/carts-db-service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Service
metadata:
annotations:
manifests.kapicorp.com/generated: 'true'
labels:
app.kapicorp.dev/component: carts-db
app.kubernetes.io/part-of: sock-shop
Expand All @@ -13,6 +15,7 @@ spec:
port: 27017
protocol: TCP
targetPort: mongo
publishNotReadyAddresses:
selector:
app.kubernetes.io/part-of: sock-shop
name: carts-db
Expand Down
3 changes: 3 additions & 0 deletions compiled/dev-sockshop/manifests/carts-service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Service
metadata:
annotations:
manifests.kapicorp.com/generated: 'true'
labels:
app.kapicorp.dev/component: carts
app.kubernetes.io/part-of: sock-shop
Expand All @@ -13,6 +15,7 @@ spec:
port: 80
protocol: TCP
targetPort: http
publishNotReadyAddresses:
selector:
app.kubernetes.io/part-of: sock-shop
name: carts
Expand Down
17 changes: 17 additions & 0 deletions compiled/dev-sockshop/manifests/catalogue-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ metadata:
name: catalogue
namespace: dev-sockshop
spec:
minReadySeconds:
progressDeadlineSeconds:
replicas: 1
revisionHistoryLimit:
selector:
matchLabels:
app.kubernetes.io/part-of: sock-shop
Expand All @@ -22,20 +25,24 @@ spec:
type: RollingUpdate
template:
metadata:
annotations: {}
labels:
app.kubernetes.io/part-of: sock-shop
name: catalogue
spec:
affinity: {}
containers:
- args:
- -port=80
command:
- /app
image: weaveworksdemos/catalogue:0.3.5
imagePullPolicy: IfNotPresent
lifecycle: {}
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /health
port: http
scheme: HTTP
Expand All @@ -51,13 +58,15 @@ spec:
readinessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /health
port: http
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
resources: {}
securityContext:
capabilities:
add:
Expand All @@ -67,5 +76,13 @@ spec:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10001
dnsPolicy:
hostNetwork:
hostPID:
imagePullSecrets: []
initContainers: []
nodeSelector: {}
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations: []
19 changes: 18 additions & 1 deletion compiled/dev-sockshop/manifests/catalogue-db-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ metadata:
name: catalogue-db
namespace: dev-sockshop
spec:
minReadySeconds:
progressDeadlineSeconds:
replicas: 1
revisionHistoryLimit:
selector:
matchLabels:
app.kubernetes.io/part-of: sock-shop
Expand All @@ -22,24 +25,38 @@ spec:
type: RollingUpdate
template:
metadata:
annotations: {}
labels:
app.kubernetes.io/part-of: sock-shop
name: catalogue-db
spec:
affinity: {}
containers:
- env:
- args: []
command: []
env:
- name: MYSQL_DATABASE
value: socksdb
- name: MYSQL_ROOT_PASSWORD
value: oRXAcxnJ391OJ6-L3bn6aTmHA-crIiHaFuIqu_3OV5g
image: weaveworksdemos/catalogue-db:0.3.0
imagePullPolicy: IfNotPresent
lifecycle: {}
name: catalogue-db
ports:
- containerPort: 3306
name: mysql
protocol: TCP
resources: {}
securityContext:
readOnlyRootFilesystem: false
dnsPolicy:
hostNetwork:
hostPID:
imagePullSecrets: []
initContainers: []
nodeSelector: {}
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations: []
3 changes: 3 additions & 0 deletions compiled/dev-sockshop/manifests/catalogue-db-service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Service
metadata:
annotations:
manifests.kapicorp.com/generated: 'true'
labels:
app.kapicorp.dev/component: catalogue-db
app.kubernetes.io/part-of: sock-shop
Expand All @@ -13,6 +15,7 @@ spec:
port: 3306
protocol: TCP
targetPort: mysql
publishNotReadyAddresses:
selector:
app.kubernetes.io/part-of: sock-shop
name: catalogue-db
Expand Down
3 changes: 3 additions & 0 deletions compiled/dev-sockshop/manifests/catalogue-service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Service
metadata:
annotations:
manifests.kapicorp.com/generated: 'true'
labels:
app.kapicorp.dev/component: catalogue
app.kubernetes.io/part-of: sock-shop
Expand All @@ -13,6 +15,7 @@ spec:
port: 80
protocol: TCP
targetPort: http
publishNotReadyAddresses:
selector:
app.kubernetes.io/part-of: sock-shop
name: catalogue
Expand Down
Loading

0 comments on commit 1e555f8

Please sign in to comment.