Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from wzshiming/fix/node_initialization_template
Browse files Browse the repository at this point in the history
Fix node_initialization_template
  • Loading branch information
wzshiming authored Apr 15, 2022
2 parents aef53b1 + d55642a commit 608c298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cmd/fake-kubelet/node.initialization.tpl
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{{ with .status }}
addresses:
{{ with .addresses }}
{{ . | YAML }}
{{ else }}
addresses:
- address: {{ NodeIP }}
type: InternalIP
{{ end }}
allocatable:
{{ with .allocatable }}
{{ . | YAML }}
{{ else }}
allocatable:
cpu: 1k
memory: 1Ti
pods: 1M
{{ end }}
capacity:
{{ with .capacity }}
{{ . | YAML }}
{{ else }}
capacity:
cpu: 1k
memory: 1Ti
pods: 1M
{{ end }}
daemonEndpoints:
{{ with .daemonEndpoints }}
{{ . | YAML }}
{{ else }}
daemonEndpoints:
kubeletEndpoint:
Port: 0
{{ end }}
Expand Down
8 changes: 4 additions & 4 deletions deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,33 +178,33 @@ data:
type: NetworkUnavailable
node_initialization_template: |-
{{ with .status }}
addresses:
{{ with .addresses }}
{{ . | YAML }}
{{ else }}
addresses:
- address: {{ NodeIP }}
type: InternalIP
{{ end }}
allocatable:
{{ with .allocatable }}
{{ . | YAML }}
{{ else }}
allocatable:
cpu: 1k
memory: 1Ti
pods: 1M
{{ end }}
capacity:
{{ with .capacity }}
{{ . | YAML }}
{{ else }}
capacity:
cpu: 1k
memory: 1Ti
pods: 1M
{{ end }}
daemonEndpoints:
{{ with .daemonEndpoints }}
{{ . | YAML }}
{{ else }}
daemonEndpoints:
kubeletEndpoint:
Port: 0
{{ end }}
Expand Down

0 comments on commit 608c298

Please sign in to comment.