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

Commit

Permalink
fix TKG-15754
Browse files Browse the repository at this point in the history
Add osInfo annotations for clusterclass based cluster including management cluster and workload cluster
  • Loading branch information
weiwenli97 authored Dec 13, 2022
1 parent b756689 commit 2218c5c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions providers/yttcc/02_customizations/annotate_os_info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")

#@overlay/match missing_ok=True,by=overlay.subset({"kind":"Cluster"})
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
#@overlay/match missing_ok=True
annotations:
#@overlay/match missing_ok=True
osInfo: #@ "{},{},{}".format(data.values.OS_NAME, data.values.OS_VERSION, data.values.OS_ARCH)

0 comments on commit 2218c5c

Please # to comment.