Skip to content

Commit

Permalink
klusterlet spec mount /tmp to emptydir volume (#322)
Browse files Browse the repository at this point in the history
Signed-off-by: haolin <[email protected]>
  • Loading branch information
haowells authored Nov 29, 2023
1 parent 8a4c834 commit 4a1a890
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ metadata:
categories: Integration & Delivery,OpenShift Optional
certified: "false"
containerImage: quay.io/open-cluster-management/registration-operator:latest
createdAt: "2023-11-27T06:35:02Z"
createdAt: "2023-11-28T10:34:20Z"
description: Manages the installation and upgrade of the ClusterManager.
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ metadata:
categories: Integration & Delivery,OpenShift Optional
certified: "false"
containerImage: quay.io/open-cluster-management/registration-operator:latest
createdAt: "2023-11-27T06:35:02Z"
createdAt: "2023-11-28T10:34:20Z"
description: Manages the installation and upgrade of the Klusterlet.
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ spec:
readOnly: true
- name: hub-kubeconfig
mountPath: "/spoke/hub-kubeconfig"
- name: tmpdir
mountPath: /tmp
{{if eq .InstallMode "SingletonHosted"}}
- name: spoke-kubeconfig-secret
mountPath: "/spoke/config"
Expand Down Expand Up @@ -131,6 +133,8 @@ spec:
- name: hub-kubeconfig
emptyDir:
medium: Memory
- name: tmpdir
emptyDir: { }
{{if eq .InstallMode "SingletonHosted"}}
- name: spoke-kubeconfig-secret
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ spec:
readOnly: true
- name: hub-kubeconfig
mountPath: "/spoke/hub-kubeconfig"
- name: tmpdir
mountPath: /tmp
{{if eq .InstallMode "Hosted"}}
- name: spoke-kubeconfig-secret
mountPath: "/spoke/config"
Expand Down Expand Up @@ -124,6 +126,8 @@ spec:
- name: hub-kubeconfig
emptyDir:
medium: Memory
- name: tmpdir
emptyDir: { }
{{if eq .InstallMode "Hosted"}}
- name: spoke-kubeconfig-secret
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ spec:
- name: hub-kubeconfig-secret
mountPath: "/spoke/hub-kubeconfig"
readOnly: true
- name: tmpdir
mountPath: /tmp
{{if eq .InstallMode "Hosted"}}
- name: spoke-kubeconfig-secret
mountPath: "/spoke/config"
Expand Down Expand Up @@ -113,6 +115,8 @@ spec:
- name: hub-kubeconfig-secret
secret:
secretName: {{ .HubKubeConfigSecret }}
- name: tmpdir
emptyDir: { }
{{if eq .InstallMode "Hosted"}}
- name: spoke-kubeconfig-secret
secret:
Expand Down

0 comments on commit 4a1a890

Please sign in to comment.