-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63a7bb7
commit 6209f2e
Showing
16 changed files
with
269 additions
and
85 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
7 changes: 4 additions & 3 deletions
7
deploy/kubefledged-operator/deploy/crds/charts.helm.k8s.io_v1alpha1_kubefledged_cr.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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
apiVersion: charts.helm.k8s.io/v1alpha1 | ||
kind: KubeFledged | ||
metadata: | ||
name: mykubefledged | ||
namespace: OPERATOR_NAMESPACE | ||
name: kubefledged | ||
namespace: {{OPERATOR_NAMESPACE}} | ||
spec: | ||
# Defaults defined in <project_dir>/helm-charts/kubefledged/values.yaml | ||
kubefledgedNameSpace: KUBEFLEDGED_NAMESPACE | ||
kubefledgedNameSpace: {{KUBEFLEDGED_NAMESPACE}} | ||
validatingWebhookCABundle: {{CA_BUNDLE}} |
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
4 changes: 2 additions & 2 deletions
4
deploy/kubefledged-operator/helm-charts/kubefledged/templates/crd.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
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
63 changes: 63 additions & 0 deletions
63
deploy/kubefledged-operator/helm-charts/kubefledged/templates/deployment-webhook-server.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,63 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "kubefledged.fullname" . }}-webhook-server | ||
labels: | ||
{{- include "kubefledged.labels" . | nindent 4 }} | ||
namespace: {{ .Values.kubefledgedNameSpace }} | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
{{- include "kubefledged.selectorLabels" . | nindent 6 }}-webhook-server | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "kubefledged.selectorLabels" . | nindent 8 }}-webhook-server | ||
spec: | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: {{ include "kubefledged.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.podSecurityContext | nindent 8 }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 12 }} | ||
image: {{ .Values.image.kubefledgedWebhookServerRepository }}:{{ .Chart.AppVersion }} | ||
command: {{ .Values.command.kubefledgedWebhookServerCommand }} | ||
args: | ||
- "--stderrthreshold={{ .Values.args.webhookServerLogLevel }}" | ||
- "--cert-file={{ .Values.args.webhookServerCertFile }}" | ||
- "--key-file={{ .Values.args.webhookServerKeyFile }}" | ||
- "--port={{ .Values.args.webhookServerPort }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
env: | ||
- name: KUBEFLEDGED_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
resources: | ||
{{- toYaml .Values.resources | nindent 12 }} | ||
volumeMounts: | ||
- name: secret-volume | ||
mountPath: "/var/run/secrets/webhook-server" | ||
readOnly: true | ||
volumes: | ||
- name: secret-volume | ||
secret: | ||
secretName: kubefledged-webhook-server | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} |
Oops, something went wrong.