mirror of
https://github.com/rancher/types.git
synced 2025-07-18 23:36:24 +00:00
Update generated code
This commit is contained in:
parent
b03b7504a8
commit
4b34c926e1
@ -2244,6 +2244,13 @@ func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) {
|
||||
*out = make([]ClusterCondition, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.AgentFeatures != nil {
|
||||
in, out := &in.AgentFeatures, &out.AgentFeatures
|
||||
*out = make(map[string]bool, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
if in.ComponentStatuses != nil {
|
||||
in, out := &in.ComponentStatuses, &out.ComponentStatuses
|
||||
*out = make([]ClusterComponentStatus, len(*in))
|
||||
|
@ -7,6 +7,7 @@ import (
|
||||
const (
|
||||
ClusterType = "cluster"
|
||||
ClusterFieldAPIEndpoint = "apiEndpoint"
|
||||
ClusterFieldAgentFeatures = "agentFeatures"
|
||||
ClusterFieldAgentImage = "agentImage"
|
||||
ClusterFieldAgentImageOverride = "agentImageOverride"
|
||||
ClusterFieldAllocatable = "allocatable"
|
||||
@ -61,6 +62,7 @@ const (
|
||||
type Cluster struct {
|
||||
types.Resource
|
||||
APIEndpoint string `json:"apiEndpoint,omitempty" yaml:"apiEndpoint,omitempty"`
|
||||
AgentFeatures map[string]bool `json:"agentFeatures,omitempty" yaml:"agentFeatures,omitempty"`
|
||||
AgentImage string `json:"agentImage,omitempty" yaml:"agentImage,omitempty"`
|
||||
AgentImageOverride string `json:"agentImageOverride,omitempty" yaml:"agentImageOverride,omitempty"`
|
||||
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
|
||||
|
@ -3,6 +3,7 @@ package client
|
||||
const (
|
||||
ClusterStatusType = "clusterStatus"
|
||||
ClusterStatusFieldAPIEndpoint = "apiEndpoint"
|
||||
ClusterStatusFieldAgentFeatures = "agentFeatures"
|
||||
ClusterStatusFieldAgentImage = "agentImage"
|
||||
ClusterStatusFieldAllocatable = "allocatable"
|
||||
ClusterStatusFieldAppliedEnableNetworkPolicy = "appliedEnableNetworkPolicy"
|
||||
@ -26,6 +27,7 @@ const (
|
||||
|
||||
type ClusterStatus struct {
|
||||
APIEndpoint string `json:"apiEndpoint,omitempty" yaml:"apiEndpoint,omitempty"`
|
||||
AgentFeatures map[string]bool `json:"agentFeatures,omitempty" yaml:"agentFeatures,omitempty"`
|
||||
AgentImage string `json:"agentImage,omitempty" yaml:"agentImage,omitempty"`
|
||||
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
|
||||
AppliedEnableNetworkPolicy bool `json:"appliedEnableNetworkPolicy,omitempty" yaml:"appliedEnableNetworkPolicy,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user