Skip to content

Commit 949aefb

Browse files
authored
Merge pull request #71 from signadot/base-for-v0.19.2
Base for release v0.19.2
2 parents 9cb1b78 + 3b00c9a commit 949aefb

21 files changed

+597
-236
lines changed

signadot/operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ type: application
66
# This is the chart version. This version number should be incremented each time you make changes
77
# to the chart and its templates, including the app version.
88
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9-
version: "0.19.1"
9+
version: "0.19.2"
1010

1111
# This is the version number of the application being deployed. This version number should be
1212
# incremented each time you make changes to the application. Versions are not expected to
1313
# follow Semantic Versioning. They should reflect the version the application is using.
1414
# It is recommended to use it with quotes.
15-
appVersion: "0.19.1"
15+
appVersion: "0.19.2"

signadot/operator/README.md

Lines changed: 198 additions & 58 deletions
Large diffs are not rendered by default.

signadot/operator/templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ cluster config template
55
{{- define "compileClusterConfig" -}}
66
{{- $allowedNamespaces := (include "getAllowedNamespaces" . | fromJsonArray) -}}
77
allowedNamespaces: {{ if gt (len $allowedNamespaces) 0 }}{{ printf "\n" }}{{ toYaml $allowedNamespaces | indent 2}}{{- else -}}[]{{- end }}
8+
allowOrphanedResources: {{ if hasKey .Values "allowOrphanedResources" -}}{{ toString .Values.allowOrphanedResources }}{{- else -}}false{{- end }}
89
routing:
910
istio:
1011
enabled: {{ if and (hasKey .Values "istio") (hasKey .Values.istio "enabled") -}}{{ toString .Values.istio.enabled }}{{- else -}}false{{- end }}
1112
enableHostRouting: {{ if and (hasKey .Values "istio") (hasKey .Values.istio "enableDeprecatedHostRouting") -}}{{ toString .Values.istio.enableDeprecatedHostRouting }}{{- else -}}false{{- end }}
1213
linkerd:
1314
enabled: {{ if and (hasKey .Values "linkerd") (hasKey .Values.linkerd "enabled") -}}{{ toString .Values.linkerd.enabled }}{{- else -}}false{{- end }}
15+
iptablesMode: {{ if and (hasKey .Values "routing") (hasKey .Values.routing "iptablesMode") -}}{{ .Values.routing.iptablesMode }}{{- else -}}legacy{{- end }}
1416
customHeaders: {{ with .Values }}{{ with .routing }}{{ with .customHeaders }}{{ printf "\n" }}{{ toYaml . | indent 4}}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}
1517
sandboxTrafficManager:
1618
enabled: {{ if and (hasKey .Values "sandboxTrafficManager") (hasKey .Values.sandboxTrafficManager "enabled") -}}{{ toString .Values.sandboxTrafficManager.enabled }}{{- else -}}true{{- end }}

signadot/operator/templates/agent-deployment.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ spec:
2222
selector:
2323
matchLabels:
2424
app: signadot-agent
25+
strategy:
26+
type: Recreate
2527
template:
2628
metadata:
2729
annotations:
@@ -59,7 +61,7 @@ spec:
5961
secretKeyRef:
6062
key: token
6163
name: cluster-agent
62-
image: {{ with .Values }}{{ with .agent }}{{ with .image }}{{ . | quote}}{{- else -}}signadot/agent:v0.19.1{{- end }}{{- else -}}signadot/agent:v0.19.1{{- end }}{{- else -}}signadot/agent:v0.19.1{{- end }}
64+
image: {{ with .Values }}{{ with .agent }}{{ with .image }}{{ . | quote}}{{- else -}}signadot/agent:v0.19.2{{- end }}{{- else -}}signadot/agent:v0.19.2{{- end }}{{- else -}}signadot/agent:v0.19.2{{- end }}
6365
imagePullPolicy: {{ with .Values }}{{ with .agent }}{{ with .imagePullPolicy }}{{ . | quote}}{{- else -}}IfNotPresent{{- end }}{{- else -}}IfNotPresent{{- end }}{{- else -}}IfNotPresent{{- end }}
6466
livenessProbe:
6567
httpGet:
@@ -72,5 +74,9 @@ spec:
7274
httpGet:
7375
path: /healthz
7476
port: 8088
77+
{{- with .Values }}{{- with .agent }}{{- with .resources }}
78+
resources:
79+
{{ toYaml . | indent 10 }}
80+
{{- else -}}{{- end }}{{- else -}}{{- end }}{{- else -}}{{- end }}
7581
serviceAccountName: agent
7682
{{ end }}

signadot/operator/templates/agent-metrics-service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# This file is generated. Do not edit.
2+
{{ if not .Values.disableAgent }}
23
apiVersion: v1
34
kind: Service
45
metadata:
@@ -28,3 +29,4 @@ spec:
2829
selector:
2930
app: signadot-agent
3031
type: ClusterIP
32+
{{ end }}

signadot/operator/templates/allowed_namespaces.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,23 @@ subjects:
1717
name: signadot-controller-manager
1818
namespace: signadot
1919
{{ end }}
20+
{{ if not .Values.disableAgent }}
21+
# Bind the ClusterRole containing agent permissions to the agent's
22+
# ServiceAccount only in the specified namespaces.
23+
{{ range $namespace := $allowedNamespaces }}
24+
---
25+
apiVersion: rbac.authorization.k8s.io/v1
26+
kind: RoleBinding
27+
metadata:
28+
name: signadot-agent-namespaced
29+
namespace: {{ $namespace | quote }}
30+
roleRef:
31+
apiGroup: rbac.authorization.k8s.io
32+
kind: ClusterRole
33+
name: signadot-agent-namespaced
34+
subjects:
35+
- kind: ServiceAccount
36+
name: agent
37+
namespace: signadot
38+
{{ end }}
39+
{{ end }}

signadot/operator/templates/forkedworkloads.signadot.com-customresourcedefinition.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ spec:
7171
- kind
7272
- name
7373
type: object
74+
disableSandboxTrafficManager:
75+
type: boolean
7476
patches:
7577
description: List of patches to be applied to the baseline workload
7678
items:

signadot/operator/templates/io-context-server-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ spec:
4040
- /app/io-context-server
4141
- -tls=secretns=signadot
4242
- -port=8443
43-
image: {{ with .Values }}{{ with .ioContextServer }}{{ with .image }}{{ . | quote}}{{- else -}}signadot/io-context-server:v0.19.1{{- end }}{{- else -}}signadot/io-context-server:v0.19.1{{- end }}{{- else -}}signadot/io-context-server:v0.19.1{{- end }}
43+
image: {{ with .Values }}{{ with .ioContextServer }}{{ with .image }}{{ . | quote}}{{- else -}}signadot/io-context-server:v0.19.2{{- end }}{{- else -}}signadot/io-context-server:v0.19.2{{- end }}{{- else -}}signadot/io-context-server:v0.19.2{{- end }}
4444
imagePullPolicy: {{ with .Values }}{{ with .ioContextServer }}{{ with .imagePullPolicy }}{{ . | quote}}{{- else -}}IfNotPresent{{- end }}{{- else -}}IfNotPresent{{- end }}{{- else -}}IfNotPresent{{- end }}
4545
name: io-context-server
4646
ports:
4747
- containerPort: 8443
48+
{{- with .Values }}{{- with .ioContextServer }}{{- with .resources }}
49+
resources:
50+
{{ toYaml . | indent 10 }}
51+
{{- else -}}{{- end }}{{- else -}}{{- end }}{{- else -}}{{- end }}
4852
serviceAccountName: io-context-server

signadot/operator/templates/jobs.signadot.com-customresourcedefinition.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,16 @@ spec:
151151
trafficManager:
152152
description: Traffic manager settings
153153
properties:
154+
enabled:
155+
description: Explicitly enable traffic manager in runner pods
156+
for this job.
157+
type: boolean
154158
injectRoutingKey:
155159
default: Disabled
156160
description: |-
157161
Enable the automatic insertion of routing key headers for HTTP and gRPC
158-
(H2C) traffic
162+
(H2C) traffic. The "auto" value will overwrite the value of the Enabled
163+
field, setting it to true.
159164
enum:
160165
- Disabled
161166
- Auto

signadot/operator/templates/routeserver-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ spec:
3636
{{- end }}
3737
spec:
3838
containers:
39-
- image: {{ with .Values }}{{ with .routeServer }}{{ with .image }}{{ . | quote}}{{- else -}}signadot/route-server:v0.19.1{{- end }}{{- else -}}signadot/route-server:v0.19.1{{- end }}{{- else -}}signadot/route-server:v0.19.1{{- end }}
39+
- image: {{ with .Values }}{{ with .routeServer }}{{ with .image }}{{ . | quote}}{{- else -}}signadot/route-server:v0.19.2{{- end }}{{- else -}}signadot/route-server:v0.19.2{{- end }}{{- else -}}signadot/route-server:v0.19.2{{- end }}
4040
imagePullPolicy: {{ with .Values }}{{ with .routeServer }}{{ with .imagePullPolicy }}{{ . | quote}}{{- else -}}IfNotPresent{{- end }}{{- else -}}IfNotPresent{{- end }}{{- else -}}IfNotPresent{{- end }}
4141
name: routeserver
4242
ports:
@@ -48,4 +48,8 @@ spec:
4848
name: http-legacy
4949
- containerPort: 9090
5050
name: http-metrics
51+
{{- with .Values }}{{- with .routeServer }}{{- with .resources }}
52+
resources:
53+
{{ toYaml . | indent 10 }}
54+
{{- else -}}{{- end }}{{- else -}}{{- end }}{{- else -}}{{- end }}
5155
serviceAccountName: routeserver

0 commit comments

Comments
 (0)