@@ -556,6 +556,8 @@ type RuntimeStatus struct {
556
556
Conditions []RuntimeCondition
557
557
// Handlers is an array of current available handlers
558
558
Handlers []RuntimeHandler
559
+ // Features is the set of features implemented by the runtime
560
+ Features * RuntimeFeatures
559
561
}
560
562
561
563
// GetRuntimeCondition gets a specified runtime condition from the runtime status.
@@ -579,7 +581,7 @@ func (r *RuntimeStatus) String() string {
579
581
for _ , h := range r .Handlers {
580
582
sh = append (sh , h .String ())
581
583
}
582
- return fmt .Sprintf ("Runtime Conditions: %s; Handlers: %s" , strings .Join (ss , ", " ), strings .Join (sh , ", " ))
584
+ return fmt .Sprintf ("Runtime Conditions: %s; Handlers: %s, Features: %s " , strings .Join (ss , ", " ), strings .Join (sh , ", " ), r . Features . String ( ))
583
585
}
584
586
585
587
// RuntimeHandler contains condition information for the runtime handler.
@@ -617,6 +619,19 @@ func (c *RuntimeCondition) String() string {
617
619
return fmt .Sprintf ("%s=%t reason:%s message:%s" , c .Type , c .Status , c .Reason , c .Message )
618
620
}
619
621
622
+ // RuntimeFeatures contains the set of features implemented by the runtime
623
+ type RuntimeFeatures struct {
624
+ SupplementalGroupsPolicy bool
625
+ }
626
+
627
+ // String formats the runtime condition into a human readable string.
628
+ func (f * RuntimeFeatures ) String () string {
629
+ if f == nil {
630
+ return "nil"
631
+ }
632
+ return fmt .Sprintf ("SupplementalGroupsPolicy: %v" , f .SupplementalGroupsPolicy )
633
+ }
634
+
620
635
// Pods represents the list of pods
621
636
type Pods []* Pod
622
637
0 commit comments