-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add clientserver to chart, templates
Signed-off-by: Sally O'Malley <[email protected]>
- Loading branch information
Showing
26 changed files
with
289 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
charts/trusted-artifact-signer/templates/clientserver-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{- if .Values.configs.clientserver.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Values.configs.clientserver.name }} | ||
namespace: {{ .Values.configs.clientserver.namespace }} | ||
labels: | ||
app: {{ .Values.configs.clientserver.name }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ .Values.configs.clientserver.name }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Values.configs.clientserver.name }} | ||
spec: | ||
securityContext: | ||
runAsNonRoot: true | ||
seccompProfile: | ||
type: RuntimeDefault | ||
serviceAccountName: {{ .Values.configs.clientserver.name }} | ||
containers: | ||
- name: tas-clients | ||
image: "{{ .Values.configs.clientserver.image.registry }}/{{ .Values.configs.clientserver.image.repository }}:{{ .Values.configs.clientserver.image.version }}" | ||
#image: quay.io/sallyom/tas-clients:httpd | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 8080 | ||
protocol: TCP | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
{{- end }} | ||
|
21 changes: 21 additions & 0 deletions
21
charts/trusted-artifact-signer/templates/clientserver-route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.configs.clientserver.enabled }} | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
labels: | ||
app: {{ .Values.configs.clientserver.name }} | ||
name: {{ .Values.configs.clientserver.name }} | ||
namespace: {{ .Values.configs.clientserver.namespace }} | ||
spec: | ||
port: | ||
targetPort: 8080-tcp | ||
tls: | ||
insecureEdgeTerminationPolicy: Redirect | ||
termination: edge | ||
to: | ||
kind: Service | ||
name: {{ .Values.configs.clientserver.name }} | ||
weight: 100 | ||
wildcardPolicy: None | ||
{{- end }} | ||
|
8 changes: 8 additions & 0 deletions
8
charts/trusted-artifact-signer/templates/clientserver-sa.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{- if .Values.configs.clientserver.enabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Values.configs.clientserver.name }} | ||
namespace: {{ .Values.configs.clientserver.namespace }} | ||
{{- end }} | ||
|
19 changes: 19 additions & 0 deletions
19
charts/trusted-artifact-signer/templates/clientserver-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.configs.clientserver.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: {{ .Values.configs.clientserver.name }} | ||
name: {{ .Values.configs.clientserver.name }} | ||
namespace: {{ .Values.configs.clientserver.namespace }} | ||
spec: | ||
ports: | ||
- name: 8080-tcp | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: {{ .Values.configs.clientserver.name }} | ||
type: ClusterIP | ||
{{- end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{{- if $.Values.configs.cosign.rolebindings }} | ||
{{- if .Values.configs.cosign.enabled }} | ||
{{- if .Values.configs.cosign.rolebindings }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
namespace: {{ .Values.configs.cosign.namespace }} | ||
name: {{ index .Values.configs.cosign.rolebindings 0 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.