Skip to content

Commit

Permalink
fix(template): remove options for extra manifests and extension config (
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored Jan 5, 2025
1 parent 84ec8e2 commit 82366a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
12 changes: 1 addition & 11 deletions config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ node_inventory: []
# mac_addr: "" # (REQUIRED) MAC address of the NIC for this node, must be lowercase (talosctl get links -n <ip> --insecure)
# schematic_id: "" # (OPTIONAL) Override the 'schematic_id' with a node specific schematic ID from https://factory.talos.dev/
# mtu: "" # (OPTIONAL) MTU for the NIC. DEFAULT: 1500
# manifests: # (OPTIONAL) Additional manifests to include after MachineConfig
# - extra.yaml # Ref: https://www.talos.dev/v1.7/reference/configuration/extensions/extensionserviceconfig/
# extension_services: # (OPTIONAL) Additional talhelper ExtensionServices (supports talenv.sops.yaml envsubst)
# - name: name
# configFiles:
# - content: |-
# ...
# mountPath: ...
# environment:
# - key=value
# ...

# (REQUIRED) The DNS servers to use for the cluster nodes.
Expand Down Expand Up @@ -105,7 +95,7 @@ secureboot:
# (OPTIONAL) Enable secureboot on UEFI systems. Not supported on x86 platforms in BIOS mode.
enabled: false
# (OPTIONAL) Enable TPM-based disk encryption. Requires TPM 2.0
encrypt_disk_with_tpm: false
encrypt_disk: false

# (OPTIONAL) Change Cilium load balancer mode
# Ref: https://docs.cilium.io/en/stable/network/kubernetes/kubeproxy-free/
Expand Down
26 changes: 1 addition & 25 deletions templates/config/kubernetes/bootstrap/talos/talconfig.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -80,30 +80,6 @@ nodes:
ip: "#{ controller_vip }#"
#% endif %#
#% endif %#
#% if item.manifests %#
extraManifests:
#% for manifest in item.manifests %#
- #{ manifest }#
#% endfor %#
#% endif %#
#% if item.extension_services %#
extensionServices:
#% for es in item.extension_services %#
- name: #{ es.name }#
configFiles:
#% for cf in es.configFiles %#
- content: |-
#{ cf.content | indent(14, yes) }#
mountPath: #{ cf.mountPath }#
#% endfor %#
#% if es.environment %#
environment:
#% for env in es.environment %#
- #{ env }#
#% endfor %#
#% endif %#
#% endfor %#
#% endif %#
#% for file in talos_patches('%s' % (item.name)) %#
#% if loop.index == 1 %#
patches:
Expand All @@ -114,7 +90,7 @@ nodes:

# Global patches
patches:
#% if secureboot.enabled and secureboot.encrypt_disk_with_tpm %#
#% if secureboot.enabled and secureboot.encrypt_disk %#
- # Encrypt system disk with TPM
|-
machine:
Expand Down

0 comments on commit 82366a9

Please sign in to comment.