diff --git a/clients/rancher/generated/management/v3/zz_generated_aci_network_provider.go b/clients/rancher/generated/management/v3/zz_generated_aci_network_provider.go index 01c7ee2e..ef0d41de 100644 --- a/clients/rancher/generated/management/v3/zz_generated_aci_network_provider.go +++ b/clients/rancher/generated/management/v3/zz_generated_aci_network_provider.go @@ -33,6 +33,7 @@ const ( AciNetworkProviderFieldDurationWaitForNetwork = "durationWaitForNetwork" AciNetworkProviderFieldDynamicExternalSubnet = "externDynamic" AciNetworkProviderFieldEnableEndpointSlice = "enableEndpointSlice" + AciNetworkProviderFieldEnableHppDirect = "enableHppDirect" AciNetworkProviderFieldEnableOpflexAgentReconnect = "enableOpflexAgentReconnect" AciNetworkProviderFieldEncapType = "encapType" AciNetworkProviderFieldEpRegistry = "epRegistry" @@ -70,6 +71,7 @@ const ( AciNetworkProviderFieldOpflexAgentOpflexAsyncjsonEnabled = "opflexAgentOpflexAsyncjsonEnabled" AciNetworkProviderFieldOpflexAgentOvsAsyncjsonEnabled = "opflexAgentOvsAsyncjsonEnabled" AciNetworkProviderFieldOpflexAgentPolicyRetryDelayTimer = "opflexAgentPolicyRetryDelayTimer" + AciNetworkProviderFieldOpflexAgentResetWaitDelay = "opflexAgentResetWaitDelay" AciNetworkProviderFieldOpflexAgentStatistics = "opflexAgentStatistics" AciNetworkProviderFieldOpflexClientSSL = "opflexClientSsl" AciNetworkProviderFieldOpflexDeviceDeleteTimeout = "opflexDeviceDeleteTimeout" @@ -77,6 +79,11 @@ const ( AciNetworkProviderFieldOpflexMode = "opflexMode" AciNetworkProviderFieldOpflexOpensslCompat = "opflexOpensslCompat" AciNetworkProviderFieldOpflexServerPort = "opflexServerPort" + AciNetworkProviderFieldOpflexStartupEnabled = "opflexStartupEnabled" + AciNetworkProviderFieldOpflexStartupPolicyDuration = "opflexStartupPolicyDuration" + AciNetworkProviderFieldOpflexStartupResolveAftConn = "opflexStartupResolveAftConn" + AciNetworkProviderFieldOpflexSwitchSyncDelay = "opflexSwitchSyncDelay" + AciNetworkProviderFieldOpflexSwitchSyncDynamic = "opflexSwitchSyncDynamic" AciNetworkProviderFieldOverlayVRFName = "overlayVrfName" AciNetworkProviderFieldPBRTrackingNonSnat = "pbrTrackingNonSnat" AciNetworkProviderFieldPodSubnetChunkSize = "podSubnetChunkSize" @@ -101,6 +108,7 @@ const ( AciNetworkProviderFieldTenant = "tenant" AciNetworkProviderFieldToken = "token" AciNetworkProviderFieldTolerationSeconds = "tolerationSeconds" + AciNetworkProviderFieldUnknownMacUnicastAction = "unknownMacUnicastAction" AciNetworkProviderFieldUseAciAnywhereCRD = "useAciAnywhereCrd" AciNetworkProviderFieldUseAciCniPriorityClass = "useAciCniPriorityClass" AciNetworkProviderFieldUseClusterRole = "useClusterRole" @@ -146,6 +154,7 @@ type AciNetworkProvider struct { DurationWaitForNetwork string `json:"durationWaitForNetwork,omitempty" yaml:"durationWaitForNetwork,omitempty"` DynamicExternalSubnet string `json:"externDynamic,omitempty" yaml:"externDynamic,omitempty"` EnableEndpointSlice string `json:"enableEndpointSlice,omitempty" yaml:"enableEndpointSlice,omitempty"` + EnableHppDirect string `json:"enableHppDirect,omitempty" yaml:"enableHppDirect,omitempty"` EnableOpflexAgentReconnect string `json:"enableOpflexAgentReconnect,omitempty" yaml:"enableOpflexAgentReconnect,omitempty"` EncapType string `json:"encapType,omitempty" yaml:"encapType,omitempty"` EpRegistry string `json:"epRegistry,omitempty" yaml:"epRegistry,omitempty"` @@ -183,6 +192,7 @@ type AciNetworkProvider struct { OpflexAgentOpflexAsyncjsonEnabled string `json:"opflexAgentOpflexAsyncjsonEnabled,omitempty" yaml:"opflexAgentOpflexAsyncjsonEnabled,omitempty"` OpflexAgentOvsAsyncjsonEnabled string `json:"opflexAgentOvsAsyncjsonEnabled,omitempty" yaml:"opflexAgentOvsAsyncjsonEnabled,omitempty"` OpflexAgentPolicyRetryDelayTimer string `json:"opflexAgentPolicyRetryDelayTimer,omitempty" yaml:"opflexAgentPolicyRetryDelayTimer,omitempty"` + OpflexAgentResetWaitDelay string `json:"opflexAgentResetWaitDelay,omitempty" yaml:"opflexAgentResetWaitDelay,omitempty"` OpflexAgentStatistics string `json:"opflexAgentStatistics,omitempty" yaml:"opflexAgentStatistics,omitempty"` OpflexClientSSL string `json:"opflexClientSsl,omitempty" yaml:"opflexClientSsl,omitempty"` OpflexDeviceDeleteTimeout string `json:"opflexDeviceDeleteTimeout,omitempty" yaml:"opflexDeviceDeleteTimeout,omitempty"` @@ -190,6 +200,11 @@ type AciNetworkProvider struct { OpflexMode string `json:"opflexMode,omitempty" yaml:"opflexMode,omitempty"` OpflexOpensslCompat string `json:"opflexOpensslCompat,omitempty" yaml:"opflexOpensslCompat,omitempty"` OpflexServerPort string `json:"opflexServerPort,omitempty" yaml:"opflexServerPort,omitempty"` + OpflexStartupEnabled string `json:"opflexStartupEnabled,omitempty" yaml:"opflexStartupEnabled,omitempty"` + OpflexStartupPolicyDuration string `json:"opflexStartupPolicyDuration,omitempty" yaml:"opflexStartupPolicyDuration,omitempty"` + OpflexStartupResolveAftConn string `json:"opflexStartupResolveAftConn,omitempty" yaml:"opflexStartupResolveAftConn,omitempty"` + OpflexSwitchSyncDelay string `json:"opflexSwitchSyncDelay,omitempty" yaml:"opflexSwitchSyncDelay,omitempty"` + OpflexSwitchSyncDynamic string `json:"opflexSwitchSyncDynamic,omitempty" yaml:"opflexSwitchSyncDynamic,omitempty"` OverlayVRFName string `json:"overlayVrfName,omitempty" yaml:"overlayVrfName,omitempty"` PBRTrackingNonSnat string `json:"pbrTrackingNonSnat,omitempty" yaml:"pbrTrackingNonSnat,omitempty"` PodSubnetChunkSize string `json:"podSubnetChunkSize,omitempty" yaml:"podSubnetChunkSize,omitempty"` @@ -214,6 +229,7 @@ type AciNetworkProvider struct { Tenant string `json:"tenant,omitempty" yaml:"tenant,omitempty"` Token string `json:"token,omitempty" yaml:"token,omitempty"` TolerationSeconds string `json:"tolerationSeconds,omitempty" yaml:"tolerationSeconds,omitempty"` + UnknownMacUnicastAction string `json:"unknownMacUnicastAction,omitempty" yaml:"unknownMacUnicastAction,omitempty"` UseAciAnywhereCRD string `json:"useAciAnywhereCrd,omitempty" yaml:"useAciAnywhereCrd,omitempty"` UseAciCniPriorityClass string `json:"useAciCniPriorityClass,omitempty" yaml:"useAciCniPriorityClass,omitempty"` UseClusterRole string `json:"useClusterRole,omitempty" yaml:"useClusterRole,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_active_directory_config.go b/clients/rancher/generated/management/v3/zz_generated_active_directory_config.go index 51146186..a3268b02 100644 --- a/clients/rancher/generated/management/v3/zz_generated_active_directory_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_active_directory_config.go @@ -20,6 +20,7 @@ const ( ActiveDirectoryConfigFieldGroupSearchBase = "groupSearchBase" ActiveDirectoryConfigFieldGroupSearchFilter = "groupSearchFilter" ActiveDirectoryConfigFieldLabels = "labels" + ActiveDirectoryConfigFieldLogoutAllSupported = "logoutAllSupported" ActiveDirectoryConfigFieldName = "name" ActiveDirectoryConfigFieldNestedGroupMembershipEnabled = "nestedGroupMembershipEnabled" ActiveDirectoryConfigFieldOwnerReferences = "ownerReferences" @@ -62,6 +63,7 @@ type ActiveDirectoryConfig struct { GroupSearchBase string `json:"groupSearchBase,omitempty" yaml:"groupSearchBase,omitempty"` GroupSearchFilter string `json:"groupSearchFilter,omitempty" yaml:"groupSearchFilter,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` NestedGroupMembershipEnabled *bool `json:"nestedGroupMembershipEnabled,omitempty" yaml:"nestedGroupMembershipEnabled,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_adfs_config.go b/clients/rancher/generated/management/v3/zz_generated_adfs_config.go index 5170ec83..c2a68881 100644 --- a/clients/rancher/generated/management/v3/zz_generated_adfs_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_adfs_config.go @@ -13,6 +13,9 @@ const ( ADFSConfigFieldGroupsField = "groupsField" ADFSConfigFieldIDPMetadataContent = "idpMetadataContent" ADFSConfigFieldLabels = "labels" + ADFSConfigFieldLogoutAllEnabled = "logoutAllEnabled" + ADFSConfigFieldLogoutAllForced = "logoutAllForced" + ADFSConfigFieldLogoutAllSupported = "logoutAllSupported" ADFSConfigFieldName = "name" ADFSConfigFieldOwnerReferences = "ownerReferences" ADFSConfigFieldRancherAPIHost = "rancherApiHost" @@ -38,6 +41,9 @@ type ADFSConfig struct { GroupsField string `json:"groupsField,omitempty" yaml:"groupsField,omitempty"` IDPMetadataContent string `json:"idpMetadataContent,omitempty" yaml:"idpMetadataContent,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllEnabled bool `json:"logoutAllEnabled,omitempty" yaml:"logoutAllEnabled,omitempty"` + LogoutAllForced bool `json:"logoutAllForced,omitempty" yaml:"logoutAllForced,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` RancherAPIHost string `json:"rancherApiHost,omitempty" yaml:"rancherApiHost,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_auth_config.go b/clients/rancher/generated/management/v3/zz_generated_auth_config.go index ac6c47bb..04206bae 100644 --- a/clients/rancher/generated/management/v3/zz_generated_auth_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_auth_config.go @@ -13,6 +13,7 @@ const ( AuthConfigFieldCreatorID = "creatorId" AuthConfigFieldEnabled = "enabled" AuthConfigFieldLabels = "labels" + AuthConfigFieldLogoutAllSupported = "logoutAllSupported" AuthConfigFieldName = "name" AuthConfigFieldOwnerReferences = "ownerReferences" AuthConfigFieldRemoved = "removed" @@ -30,6 +31,7 @@ type AuthConfig struct { CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"` Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` Removed string `json:"removed,omitempty" yaml:"removed,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_azure_adconfig.go b/clients/rancher/generated/management/v3/zz_generated_azure_adconfig.go index 4de1b3f6..a332a1c3 100644 --- a/clients/rancher/generated/management/v3/zz_generated_azure_adconfig.go +++ b/clients/rancher/generated/management/v3/zz_generated_azure_adconfig.go @@ -16,6 +16,7 @@ const ( AzureADConfigFieldGraphEndpoint = "graphEndpoint" AzureADConfigFieldGroupMembershipFilter = "groupMembershipFilter" AzureADConfigFieldLabels = "labels" + AzureADConfigFieldLogoutAllSupported = "logoutAllSupported" AzureADConfigFieldName = "name" AzureADConfigFieldOwnerReferences = "ownerReferences" AzureADConfigFieldRancherURL = "rancherUrl" @@ -42,6 +43,7 @@ type AzureADConfig struct { GraphEndpoint string `json:"graphEndpoint,omitempty" yaml:"graphEndpoint,omitempty"` GroupMembershipFilter string `json:"groupMembershipFilter,omitempty" yaml:"groupMembershipFilter,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` RancherURL string `json:"rancherUrl,omitempty" yaml:"rancherUrl,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_extra_volume.go b/clients/rancher/generated/management/v3/zz_generated_extra_volume.go index cd629ef5..3a575e39 100644 --- a/clients/rancher/generated/management/v3/zz_generated_extra_volume.go +++ b/clients/rancher/generated/management/v3/zz_generated_extra_volume.go @@ -20,6 +20,7 @@ const ( ExtraVolumeFieldGlusterfs = "glusterfs" ExtraVolumeFieldHostPath = "hostPath" ExtraVolumeFieldISCSI = "iscsi" + ExtraVolumeFieldImage = "image" ExtraVolumeFieldNFS = "nfs" ExtraVolumeFieldName = "name" ExtraVolumeFieldPersistentVolumeClaim = "persistentVolumeClaim" @@ -53,6 +54,7 @@ type ExtraVolume struct { Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" yaml:"glusterfs,omitempty"` HostPath *HostPathVolumeSource `json:"hostPath,omitempty" yaml:"hostPath,omitempty"` ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" yaml:"iscsi,omitempty"` + Image *ImageVolumeSource `json:"image,omitempty" yaml:"image,omitempty"` NFS *NFSVolumeSource `json:"nfs,omitempty" yaml:"nfs,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty" yaml:"persistentVolumeClaim,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_free_ipa_config.go b/clients/rancher/generated/management/v3/zz_generated_free_ipa_config.go index 750de613..8c98b05e 100644 --- a/clients/rancher/generated/management/v3/zz_generated_free_ipa_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_free_ipa_config.go @@ -19,6 +19,7 @@ const ( FreeIpaConfigFieldGroupSearchBase = "groupSearchBase" FreeIpaConfigFieldGroupSearchFilter = "groupSearchFilter" FreeIpaConfigFieldLabels = "labels" + FreeIpaConfigFieldLogoutAllSupported = "logoutAllSupported" FreeIpaConfigFieldName = "name" FreeIpaConfigFieldOwnerReferences = "ownerReferences" FreeIpaConfigFieldPort = "port" @@ -60,6 +61,7 @@ type FreeIpaConfig struct { GroupSearchBase string `json:"groupSearchBase,omitempty" yaml:"groupSearchBase,omitempty"` GroupSearchFilter string `json:"groupSearchFilter,omitempty" yaml:"groupSearchFilter,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` Port int64 `json:"port,omitempty" yaml:"port,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_github_config.go b/clients/rancher/generated/management/v3/zz_generated_github_config.go index 04dc4531..fda235ac 100644 --- a/clients/rancher/generated/management/v3/zz_generated_github_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_github_config.go @@ -14,6 +14,7 @@ const ( GithubConfigFieldHostname = "hostname" GithubConfigFieldHostnameToClientID = "hostnameToClientId" GithubConfigFieldLabels = "labels" + GithubConfigFieldLogoutAllSupported = "logoutAllSupported" GithubConfigFieldName = "name" GithubConfigFieldOwnerReferences = "ownerReferences" GithubConfigFieldRemoved = "removed" @@ -36,6 +37,7 @@ type GithubConfig struct { Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"` HostnameToClientID map[string]string `json:"hostnameToClientId,omitempty" yaml:"hostnameToClientId,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` Removed string `json:"removed,omitempty" yaml:"removed,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_google_oauth_config.go b/clients/rancher/generated/management/v3/zz_generated_google_oauth_config.go index f4414229..8939cd9f 100644 --- a/clients/rancher/generated/management/v3/zz_generated_google_oauth_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_google_oauth_config.go @@ -11,6 +11,7 @@ const ( GoogleOauthConfigFieldEnabled = "enabled" GoogleOauthConfigFieldHostname = "hostname" GoogleOauthConfigFieldLabels = "labels" + GoogleOauthConfigFieldLogoutAllSupported = "logoutAllSupported" GoogleOauthConfigFieldName = "name" GoogleOauthConfigFieldNestedGroupMembershipEnabled = "nestedGroupMembershipEnabled" GoogleOauthConfigFieldOauthCredential = "oauthCredential" @@ -33,6 +34,7 @@ type GoogleOauthConfig struct { Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` NestedGroupMembershipEnabled bool `json:"nestedGroupMembershipEnabled,omitempty" yaml:"nestedGroupMembershipEnabled,omitempty"` OauthCredential string `json:"oauthCredential,omitempty" yaml:"oauthCredential,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_image_volume_source.go b/clients/rancher/generated/management/v3/zz_generated_image_volume_source.go new file mode 100644 index 00000000..d919ba8b --- /dev/null +++ b/clients/rancher/generated/management/v3/zz_generated_image_volume_source.go @@ -0,0 +1,12 @@ +package client + +const ( + ImageVolumeSourceType = "imageVolumeSource" + ImageVolumeSourceFieldPullPolicy = "pullPolicy" + ImageVolumeSourceFieldReference = "reference" +) + +type ImageVolumeSource struct { + PullPolicy string `json:"pullPolicy,omitempty" yaml:"pullPolicy,omitempty"` + Reference string `json:"reference,omitempty" yaml:"reference,omitempty"` +} diff --git a/clients/rancher/generated/management/v3/zz_generated_internal_node_status.go b/clients/rancher/generated/management/v3/zz_generated_internal_node_status.go index 7515d504..90132d95 100644 --- a/clients/rancher/generated/management/v3/zz_generated_internal_node_status.go +++ b/clients/rancher/generated/management/v3/zz_generated_internal_node_status.go @@ -6,6 +6,7 @@ const ( InternalNodeStatusFieldCapacity = "capacity" InternalNodeStatusFieldConfig = "config" InternalNodeStatusFieldExternalIPAddress = "externalIpAddress" + InternalNodeStatusFieldFeatures = "features" InternalNodeStatusFieldHostname = "hostname" InternalNodeStatusFieldIPAddress = "ipAddress" InternalNodeStatusFieldInfo = "info" @@ -20,6 +21,7 @@ type InternalNodeStatus struct { Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"` Config *NodeConfigStatus `json:"config,omitempty" yaml:"config,omitempty"` ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"` + Features *NodeFeatures `json:"features,omitempty" yaml:"features,omitempty"` Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"` IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"` Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_key_cloak_config.go b/clients/rancher/generated/management/v3/zz_generated_key_cloak_config.go index 7a2b3925..e67d0920 100644 --- a/clients/rancher/generated/management/v3/zz_generated_key_cloak_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_key_cloak_config.go @@ -13,6 +13,9 @@ const ( KeyCloakConfigFieldGroupsField = "groupsField" KeyCloakConfigFieldIDPMetadataContent = "idpMetadataContent" KeyCloakConfigFieldLabels = "labels" + KeyCloakConfigFieldLogoutAllEnabled = "logoutAllEnabled" + KeyCloakConfigFieldLogoutAllForced = "logoutAllForced" + KeyCloakConfigFieldLogoutAllSupported = "logoutAllSupported" KeyCloakConfigFieldName = "name" KeyCloakConfigFieldOwnerReferences = "ownerReferences" KeyCloakConfigFieldRancherAPIHost = "rancherApiHost" @@ -38,6 +41,9 @@ type KeyCloakConfig struct { GroupsField string `json:"groupsField,omitempty" yaml:"groupsField,omitempty"` IDPMetadataContent string `json:"idpMetadataContent,omitempty" yaml:"idpMetadataContent,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllEnabled bool `json:"logoutAllEnabled,omitempty" yaml:"logoutAllEnabled,omitempty"` + LogoutAllForced bool `json:"logoutAllForced,omitempty" yaml:"logoutAllForced,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` RancherAPIHost string `json:"rancherApiHost,omitempty" yaml:"rancherApiHost,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_key_cloak_oidcconfig.go b/clients/rancher/generated/management/v3/zz_generated_key_cloak_oidcconfig.go index 522b444b..05cd3142 100644 --- a/clients/rancher/generated/management/v3/zz_generated_key_cloak_oidcconfig.go +++ b/clients/rancher/generated/management/v3/zz_generated_key_cloak_oidcconfig.go @@ -18,6 +18,7 @@ const ( KeyCloakOIDCConfigFieldIssuer = "issuer" KeyCloakOIDCConfigFieldJWKSUrl = "jwksUrl" KeyCloakOIDCConfigFieldLabels = "labels" + KeyCloakOIDCConfigFieldLogoutAllSupported = "logoutAllSupported" KeyCloakOIDCConfigFieldName = "name" KeyCloakOIDCConfigFieldOwnerReferences = "ownerReferences" KeyCloakOIDCConfigFieldPrivateKey = "privateKey" @@ -48,6 +49,7 @@ type KeyCloakOIDCConfig struct { Issuer string `json:"issuer,omitempty" yaml:"issuer,omitempty"` JWKSUrl string `json:"jwksUrl,omitempty" yaml:"jwksUrl,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` PrivateKey string `json:"privateKey,omitempty" yaml:"privateKey,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_ldap_config.go b/clients/rancher/generated/management/v3/zz_generated_ldap_config.go index 73a21c5e..97b91ec3 100644 --- a/clients/rancher/generated/management/v3/zz_generated_ldap_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_ldap_config.go @@ -23,6 +23,7 @@ const ( LdapConfigFieldGroupSearchBase = "groupSearchBase" LdapConfigFieldGroupSearchFilter = "groupSearchFilter" LdapConfigFieldLabels = "labels" + LdapConfigFieldLogoutAllSupported = "logoutAllSupported" LdapConfigFieldName = "name" LdapConfigFieldNestedGroupMembershipEnabled = "nestedGroupMembershipEnabled" LdapConfigFieldOwnerReferences = "ownerReferences" @@ -66,6 +67,7 @@ type LdapConfig struct { GroupSearchBase string `json:"groupSearchBase,omitempty" yaml:"groupSearchBase,omitempty"` GroupSearchFilter string `json:"groupSearchFilter,omitempty" yaml:"groupSearchFilter,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` NestedGroupMembershipEnabled bool `json:"nestedGroupMembershipEnabled,omitempty" yaml:"nestedGroupMembershipEnabled,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_local_config.go b/clients/rancher/generated/management/v3/zz_generated_local_config.go index ca4d5123..1b0933e9 100644 --- a/clients/rancher/generated/management/v3/zz_generated_local_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_local_config.go @@ -9,6 +9,7 @@ const ( LocalConfigFieldCreatorID = "creatorId" LocalConfigFieldEnabled = "enabled" LocalConfigFieldLabels = "labels" + LocalConfigFieldLogoutAllSupported = "logoutAllSupported" LocalConfigFieldName = "name" LocalConfigFieldOwnerReferences = "ownerReferences" LocalConfigFieldRemoved = "removed" @@ -25,6 +26,7 @@ type LocalConfig struct { CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"` Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` Removed string `json:"removed,omitempty" yaml:"removed,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_node.go b/clients/rancher/generated/management/v3/zz_generated_node.go index 5f3ab577..2bda8adc 100644 --- a/clients/rancher/generated/management/v3/zz_generated_node.go +++ b/clients/rancher/generated/management/v3/zz_generated_node.go @@ -20,6 +20,7 @@ const ( NodeFieldDockerInfo = "dockerInfo" NodeFieldEtcd = "etcd" NodeFieldExternalIPAddress = "externalIpAddress" + NodeFieldFeatures = "features" NodeFieldHostname = "hostname" NodeFieldIPAddress = "ipAddress" NodeFieldImported = "imported" @@ -71,6 +72,7 @@ type Node struct { DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"` Etcd bool `json:"etcd,omitempty" yaml:"etcd,omitempty"` ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"` + Features *NodeFeatures `json:"features,omitempty" yaml:"features,omitempty"` Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"` IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"` Imported bool `json:"imported,omitempty" yaml:"imported,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_node_features.go b/clients/rancher/generated/management/v3/zz_generated_node_features.go new file mode 100644 index 00000000..d1a3281b --- /dev/null +++ b/clients/rancher/generated/management/v3/zz_generated_node_features.go @@ -0,0 +1,10 @@ +package client + +const ( + NodeFeaturesType = "nodeFeatures" + NodeFeaturesFieldSupplementalGroupsPolicy = "supplementalGroupsPolicy" +) + +type NodeFeatures struct { + SupplementalGroupsPolicy *bool `json:"supplementalGroupsPolicy,omitempty" yaml:"supplementalGroupsPolicy,omitempty"` +} diff --git a/clients/rancher/generated/management/v3/zz_generated_node_runtime_handler_features.go b/clients/rancher/generated/management/v3/zz_generated_node_runtime_handler_features.go index dda38dde..02de2e07 100644 --- a/clients/rancher/generated/management/v3/zz_generated_node_runtime_handler_features.go +++ b/clients/rancher/generated/management/v3/zz_generated_node_runtime_handler_features.go @@ -3,8 +3,10 @@ package client const ( NodeRuntimeHandlerFeaturesType = "nodeRuntimeHandlerFeatures" NodeRuntimeHandlerFeaturesFieldRecursiveReadOnlyMounts = "recursiveReadOnlyMounts" + NodeRuntimeHandlerFeaturesFieldUserNamespaces = "userNamespaces" ) type NodeRuntimeHandlerFeatures struct { RecursiveReadOnlyMounts *bool `json:"recursiveReadOnlyMounts,omitempty" yaml:"recursiveReadOnlyMounts,omitempty"` + UserNamespaces *bool `json:"userNamespaces,omitempty" yaml:"userNamespaces,omitempty"` } diff --git a/clients/rancher/generated/management/v3/zz_generated_node_status.go b/clients/rancher/generated/management/v3/zz_generated_node_status.go index 99a1754c..069a632c 100644 --- a/clients/rancher/generated/management/v3/zz_generated_node_status.go +++ b/clients/rancher/generated/management/v3/zz_generated_node_status.go @@ -8,6 +8,7 @@ const ( NodeStatusFieldConditions = "conditions" NodeStatusFieldDockerInfo = "dockerInfo" NodeStatusFieldExternalIPAddress = "externalIpAddress" + NodeStatusFieldFeatures = "features" NodeStatusFieldHostname = "hostname" NodeStatusFieldIPAddress = "ipAddress" NodeStatusFieldInfo = "info" @@ -31,6 +32,7 @@ type NodeStatus struct { Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"` DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"` ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"` + Features *NodeFeatures `json:"features,omitempty" yaml:"features,omitempty"` Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"` IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"` Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_oidc_config.go b/clients/rancher/generated/management/v3/zz_generated_oidc_config.go index c8a5c21c..f6bc09bf 100644 --- a/clients/rancher/generated/management/v3/zz_generated_oidc_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_oidc_config.go @@ -18,6 +18,7 @@ const ( OIDCConfigFieldIssuer = "issuer" OIDCConfigFieldJWKSUrl = "jwksUrl" OIDCConfigFieldLabels = "labels" + OIDCConfigFieldLogoutAllSupported = "logoutAllSupported" OIDCConfigFieldName = "name" OIDCConfigFieldOwnerReferences = "ownerReferences" OIDCConfigFieldPrivateKey = "privateKey" @@ -48,6 +49,7 @@ type OIDCConfig struct { Issuer string `json:"issuer,omitempty" yaml:"issuer,omitempty"` JWKSUrl string `json:"jwksUrl,omitempty" yaml:"jwksUrl,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` PrivateKey string `json:"privateKey,omitempty" yaml:"privateKey,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_okta_config.go b/clients/rancher/generated/management/v3/zz_generated_okta_config.go index 4279acbc..1fb77e7a 100644 --- a/clients/rancher/generated/management/v3/zz_generated_okta_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_okta_config.go @@ -13,6 +13,9 @@ const ( OKTAConfigFieldGroupsField = "groupsField" OKTAConfigFieldIDPMetadataContent = "idpMetadataContent" OKTAConfigFieldLabels = "labels" + OKTAConfigFieldLogoutAllEnabled = "logoutAllEnabled" + OKTAConfigFieldLogoutAllForced = "logoutAllForced" + OKTAConfigFieldLogoutAllSupported = "logoutAllSupported" OKTAConfigFieldName = "name" OKTAConfigFieldOpenLdapConfig = "openLdapConfig" OKTAConfigFieldOwnerReferences = "ownerReferences" @@ -39,6 +42,9 @@ type OKTAConfig struct { GroupsField string `json:"groupsField,omitempty" yaml:"groupsField,omitempty"` IDPMetadataContent string `json:"idpMetadataContent,omitempty" yaml:"idpMetadataContent,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllEnabled bool `json:"logoutAllEnabled,omitempty" yaml:"logoutAllEnabled,omitempty"` + LogoutAllForced bool `json:"logoutAllForced,omitempty" yaml:"logoutAllForced,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OpenLdapConfig *LdapFields `json:"openLdapConfig,omitempty" yaml:"openLdapConfig,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_open_ldap_config.go b/clients/rancher/generated/management/v3/zz_generated_open_ldap_config.go index 36af1a48..d76fc472 100644 --- a/clients/rancher/generated/management/v3/zz_generated_open_ldap_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_open_ldap_config.go @@ -19,6 +19,7 @@ const ( OpenLdapConfigFieldGroupSearchBase = "groupSearchBase" OpenLdapConfigFieldGroupSearchFilter = "groupSearchFilter" OpenLdapConfigFieldLabels = "labels" + OpenLdapConfigFieldLogoutAllSupported = "logoutAllSupported" OpenLdapConfigFieldName = "name" OpenLdapConfigFieldNestedGroupMembershipEnabled = "nestedGroupMembershipEnabled" OpenLdapConfigFieldOwnerReferences = "ownerReferences" @@ -61,6 +62,7 @@ type OpenLdapConfig struct { GroupSearchBase string `json:"groupSearchBase,omitempty" yaml:"groupSearchBase,omitempty"` GroupSearchFilter string `json:"groupSearchFilter,omitempty" yaml:"groupSearchFilter,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` NestedGroupMembershipEnabled bool `json:"nestedGroupMembershipEnabled,omitempty" yaml:"nestedGroupMembershipEnabled,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_ping_config.go b/clients/rancher/generated/management/v3/zz_generated_ping_config.go index 3905905b..42494b6b 100644 --- a/clients/rancher/generated/management/v3/zz_generated_ping_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_ping_config.go @@ -13,6 +13,9 @@ const ( PingConfigFieldGroupsField = "groupsField" PingConfigFieldIDPMetadataContent = "idpMetadataContent" PingConfigFieldLabels = "labels" + PingConfigFieldLogoutAllEnabled = "logoutAllEnabled" + PingConfigFieldLogoutAllForced = "logoutAllForced" + PingConfigFieldLogoutAllSupported = "logoutAllSupported" PingConfigFieldName = "name" PingConfigFieldOwnerReferences = "ownerReferences" PingConfigFieldRancherAPIHost = "rancherApiHost" @@ -38,6 +41,9 @@ type PingConfig struct { GroupsField string `json:"groupsField,omitempty" yaml:"groupsField,omitempty"` IDPMetadataContent string `json:"idpMetadataContent,omitempty" yaml:"idpMetadataContent,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllEnabled bool `json:"logoutAllEnabled,omitempty" yaml:"logoutAllEnabled,omitempty"` + LogoutAllForced bool `json:"logoutAllForced,omitempty" yaml:"logoutAllForced,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` RancherAPIHost string `json:"rancherApiHost,omitempty" yaml:"rancherApiHost,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_rancher_kubernetes_engine_config.go b/clients/rancher/generated/management/v3/zz_generated_rancher_kubernetes_engine_config.go index 19d33699..e62444ee 100644 --- a/clients/rancher/generated/management/v3/zz_generated_rancher_kubernetes_engine_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_rancher_kubernetes_engine_config.go @@ -1,62 +1,66 @@ package client const ( - RancherKubernetesEngineConfigType = "rancherKubernetesEngineConfig" - RancherKubernetesEngineConfigFieldAddonJobTimeout = "addonJobTimeout" - RancherKubernetesEngineConfigFieldAddons = "addons" - RancherKubernetesEngineConfigFieldAddonsInclude = "addonsInclude" - RancherKubernetesEngineConfigFieldAuthentication = "authentication" - RancherKubernetesEngineConfigFieldAuthorization = "authorization" - RancherKubernetesEngineConfigFieldBastionHost = "bastionHost" - RancherKubernetesEngineConfigFieldCloudProvider = "cloudProvider" - RancherKubernetesEngineConfigFieldClusterName = "clusterName" - RancherKubernetesEngineConfigFieldDNS = "dns" - RancherKubernetesEngineConfigFieldEnableCRIDockerd = "enableCriDockerd" - RancherKubernetesEngineConfigFieldIgnoreDockerVersion = "ignoreDockerVersion" - RancherKubernetesEngineConfigFieldIngress = "ingress" - RancherKubernetesEngineConfigFieldMonitoring = "monitoring" - RancherKubernetesEngineConfigFieldNetwork = "network" - RancherKubernetesEngineConfigFieldNodes = "nodes" - RancherKubernetesEngineConfigFieldPrefixPath = "prefixPath" - RancherKubernetesEngineConfigFieldPrivateRegistries = "privateRegistries" - RancherKubernetesEngineConfigFieldRestore = "restore" - RancherKubernetesEngineConfigFieldRotateCertificates = "rotateCertificates" - RancherKubernetesEngineConfigFieldRotateEncryptionKey = "rotateEncryptionKey" - RancherKubernetesEngineConfigFieldSSHAgentAuth = "sshAgentAuth" - RancherKubernetesEngineConfigFieldSSHCertPath = "sshCertPath" - RancherKubernetesEngineConfigFieldSSHKeyPath = "sshKeyPath" - RancherKubernetesEngineConfigFieldServices = "services" - RancherKubernetesEngineConfigFieldUpgradeStrategy = "upgradeStrategy" - RancherKubernetesEngineConfigFieldVersion = "kubernetesVersion" - RancherKubernetesEngineConfigFieldWindowsPrefixPath = "winPrefixPath" + RancherKubernetesEngineConfigType = "rancherKubernetesEngineConfig" + RancherKubernetesEngineConfigFieldAddonJobTimeout = "addonJobTimeout" + RancherKubernetesEngineConfigFieldAddons = "addons" + RancherKubernetesEngineConfigFieldAddonsInclude = "addonsInclude" + RancherKubernetesEngineConfigFieldAuthentication = "authentication" + RancherKubernetesEngineConfigFieldAuthorization = "authorization" + RancherKubernetesEngineConfigFieldBastionHost = "bastionHost" + RancherKubernetesEngineConfigFieldCRIDockerdStreamServerAddress = "criDockerdStreamServerAddress" + RancherKubernetesEngineConfigFieldCRIDockerdStreamServerPort = "criDockerdStreamServerPort" + RancherKubernetesEngineConfigFieldCloudProvider = "cloudProvider" + RancherKubernetesEngineConfigFieldClusterName = "clusterName" + RancherKubernetesEngineConfigFieldDNS = "dns" + RancherKubernetesEngineConfigFieldEnableCRIDockerd = "enableCriDockerd" + RancherKubernetesEngineConfigFieldIgnoreDockerVersion = "ignoreDockerVersion" + RancherKubernetesEngineConfigFieldIngress = "ingress" + RancherKubernetesEngineConfigFieldMonitoring = "monitoring" + RancherKubernetesEngineConfigFieldNetwork = "network" + RancherKubernetesEngineConfigFieldNodes = "nodes" + RancherKubernetesEngineConfigFieldPrefixPath = "prefixPath" + RancherKubernetesEngineConfigFieldPrivateRegistries = "privateRegistries" + RancherKubernetesEngineConfigFieldRestore = "restore" + RancherKubernetesEngineConfigFieldRotateCertificates = "rotateCertificates" + RancherKubernetesEngineConfigFieldRotateEncryptionKey = "rotateEncryptionKey" + RancherKubernetesEngineConfigFieldSSHAgentAuth = "sshAgentAuth" + RancherKubernetesEngineConfigFieldSSHCertPath = "sshCertPath" + RancherKubernetesEngineConfigFieldSSHKeyPath = "sshKeyPath" + RancherKubernetesEngineConfigFieldServices = "services" + RancherKubernetesEngineConfigFieldUpgradeStrategy = "upgradeStrategy" + RancherKubernetesEngineConfigFieldVersion = "kubernetesVersion" + RancherKubernetesEngineConfigFieldWindowsPrefixPath = "winPrefixPath" ) type RancherKubernetesEngineConfig struct { - AddonJobTimeout int64 `json:"addonJobTimeout,omitempty" yaml:"addonJobTimeout,omitempty"` - Addons string `json:"addons,omitempty" yaml:"addons,omitempty"` - AddonsInclude []string `json:"addonsInclude,omitempty" yaml:"addonsInclude,omitempty"` - Authentication *AuthnConfig `json:"authentication,omitempty" yaml:"authentication,omitempty"` - Authorization *AuthzConfig `json:"authorization,omitempty" yaml:"authorization,omitempty"` - BastionHost *BastionHost `json:"bastionHost,omitempty" yaml:"bastionHost,omitempty"` - CloudProvider *CloudProvider `json:"cloudProvider,omitempty" yaml:"cloudProvider,omitempty"` - ClusterName string `json:"clusterName,omitempty" yaml:"clusterName,omitempty"` - DNS *DNSConfig `json:"dns,omitempty" yaml:"dns,omitempty"` - EnableCRIDockerd *bool `json:"enableCriDockerd,omitempty" yaml:"enableCriDockerd,omitempty"` - IgnoreDockerVersion *bool `json:"ignoreDockerVersion,omitempty" yaml:"ignoreDockerVersion,omitempty"` - Ingress *IngressConfig `json:"ingress,omitempty" yaml:"ingress,omitempty"` - Monitoring *MonitoringConfig `json:"monitoring,omitempty" yaml:"monitoring,omitempty"` - Network *NetworkConfig `json:"network,omitempty" yaml:"network,omitempty"` - Nodes []RKEConfigNode `json:"nodes,omitempty" yaml:"nodes,omitempty"` - PrefixPath string `json:"prefixPath,omitempty" yaml:"prefixPath,omitempty"` - PrivateRegistries []PrivateRegistry `json:"privateRegistries,omitempty" yaml:"privateRegistries,omitempty"` - Restore *RestoreConfig `json:"restore,omitempty" yaml:"restore,omitempty"` - RotateCertificates *RotateCertificates `json:"rotateCertificates,omitempty" yaml:"rotateCertificates,omitempty"` - RotateEncryptionKey bool `json:"rotateEncryptionKey,omitempty" yaml:"rotateEncryptionKey,omitempty"` - SSHAgentAuth bool `json:"sshAgentAuth,omitempty" yaml:"sshAgentAuth,omitempty"` - SSHCertPath string `json:"sshCertPath,omitempty" yaml:"sshCertPath,omitempty"` - SSHKeyPath string `json:"sshKeyPath,omitempty" yaml:"sshKeyPath,omitempty"` - Services *RKEConfigServices `json:"services,omitempty" yaml:"services,omitempty"` - UpgradeStrategy *NodeUpgradeStrategy `json:"upgradeStrategy,omitempty" yaml:"upgradeStrategy,omitempty"` - Version string `json:"kubernetesVersion,omitempty" yaml:"kubernetesVersion,omitempty"` - WindowsPrefixPath string `json:"winPrefixPath,omitempty" yaml:"winPrefixPath,omitempty"` + AddonJobTimeout int64 `json:"addonJobTimeout,omitempty" yaml:"addonJobTimeout,omitempty"` + Addons string `json:"addons,omitempty" yaml:"addons,omitempty"` + AddonsInclude []string `json:"addonsInclude,omitempty" yaml:"addonsInclude,omitempty"` + Authentication *AuthnConfig `json:"authentication,omitempty" yaml:"authentication,omitempty"` + Authorization *AuthzConfig `json:"authorization,omitempty" yaml:"authorization,omitempty"` + BastionHost *BastionHost `json:"bastionHost,omitempty" yaml:"bastionHost,omitempty"` + CRIDockerdStreamServerAddress string `json:"criDockerdStreamServerAddress,omitempty" yaml:"criDockerdStreamServerAddress,omitempty"` + CRIDockerdStreamServerPort string `json:"criDockerdStreamServerPort,omitempty" yaml:"criDockerdStreamServerPort,omitempty"` + CloudProvider *CloudProvider `json:"cloudProvider,omitempty" yaml:"cloudProvider,omitempty"` + ClusterName string `json:"clusterName,omitempty" yaml:"clusterName,omitempty"` + DNS *DNSConfig `json:"dns,omitempty" yaml:"dns,omitempty"` + EnableCRIDockerd *bool `json:"enableCriDockerd,omitempty" yaml:"enableCriDockerd,omitempty"` + IgnoreDockerVersion *bool `json:"ignoreDockerVersion,omitempty" yaml:"ignoreDockerVersion,omitempty"` + Ingress *IngressConfig `json:"ingress,omitempty" yaml:"ingress,omitempty"` + Monitoring *MonitoringConfig `json:"monitoring,omitempty" yaml:"monitoring,omitempty"` + Network *NetworkConfig `json:"network,omitempty" yaml:"network,omitempty"` + Nodes []RKEConfigNode `json:"nodes,omitempty" yaml:"nodes,omitempty"` + PrefixPath string `json:"prefixPath,omitempty" yaml:"prefixPath,omitempty"` + PrivateRegistries []PrivateRegistry `json:"privateRegistries,omitempty" yaml:"privateRegistries,omitempty"` + Restore *RestoreConfig `json:"restore,omitempty" yaml:"restore,omitempty"` + RotateCertificates *RotateCertificates `json:"rotateCertificates,omitempty" yaml:"rotateCertificates,omitempty"` + RotateEncryptionKey bool `json:"rotateEncryptionKey,omitempty" yaml:"rotateEncryptionKey,omitempty"` + SSHAgentAuth bool `json:"sshAgentAuth,omitempty" yaml:"sshAgentAuth,omitempty"` + SSHCertPath string `json:"sshCertPath,omitempty" yaml:"sshCertPath,omitempty"` + SSHKeyPath string `json:"sshKeyPath,omitempty" yaml:"sshKeyPath,omitempty"` + Services *RKEConfigServices `json:"services,omitempty" yaml:"services,omitempty"` + UpgradeStrategy *NodeUpgradeStrategy `json:"upgradeStrategy,omitempty" yaml:"upgradeStrategy,omitempty"` + Version string `json:"kubernetesVersion,omitempty" yaml:"kubernetesVersion,omitempty"` + WindowsPrefixPath string `json:"winPrefixPath,omitempty" yaml:"winPrefixPath,omitempty"` } diff --git a/clients/rancher/generated/management/v3/zz_generated_resource_claim.go b/clients/rancher/generated/management/v3/zz_generated_resource_claim.go index 1ef8e0a5..da296311 100644 --- a/clients/rancher/generated/management/v3/zz_generated_resource_claim.go +++ b/clients/rancher/generated/management/v3/zz_generated_resource_claim.go @@ -1,10 +1,12 @@ package client const ( - ResourceClaimType = "resourceClaim" - ResourceClaimFieldName = "name" + ResourceClaimType = "resourceClaim" + ResourceClaimFieldName = "name" + ResourceClaimFieldRequest = "request" ) type ResourceClaim struct { - Name string `json:"name,omitempty" yaml:"name,omitempty"` + Name string `json:"name,omitempty" yaml:"name,omitempty"` + Request string `json:"request,omitempty" yaml:"request,omitempty"` } diff --git a/clients/rancher/generated/management/v3/zz_generated_shibboleth_config.go b/clients/rancher/generated/management/v3/zz_generated_shibboleth_config.go index 8ab4b89a..c1d87be5 100644 --- a/clients/rancher/generated/management/v3/zz_generated_shibboleth_config.go +++ b/clients/rancher/generated/management/v3/zz_generated_shibboleth_config.go @@ -13,6 +13,9 @@ const ( ShibbolethConfigFieldGroupsField = "groupsField" ShibbolethConfigFieldIDPMetadataContent = "idpMetadataContent" ShibbolethConfigFieldLabels = "labels" + ShibbolethConfigFieldLogoutAllEnabled = "logoutAllEnabled" + ShibbolethConfigFieldLogoutAllForced = "logoutAllForced" + ShibbolethConfigFieldLogoutAllSupported = "logoutAllSupported" ShibbolethConfigFieldName = "name" ShibbolethConfigFieldOpenLdapConfig = "openLdapConfig" ShibbolethConfigFieldOwnerReferences = "ownerReferences" @@ -39,6 +42,9 @@ type ShibbolethConfig struct { GroupsField string `json:"groupsField,omitempty" yaml:"groupsField,omitempty"` IDPMetadataContent string `json:"idpMetadataContent,omitempty" yaml:"idpMetadataContent,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + LogoutAllEnabled bool `json:"logoutAllEnabled,omitempty" yaml:"logoutAllEnabled,omitempty"` + LogoutAllForced bool `json:"logoutAllForced,omitempty" yaml:"logoutAllForced,omitempty"` + LogoutAllSupported bool `json:"logoutAllSupported,omitempty" yaml:"logoutAllSupported,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OpenLdapConfig *LdapFields `json:"openLdapConfig,omitempty" yaml:"openLdapConfig,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` diff --git a/clients/rancher/generated/management/v3/zz_generated_token.go b/clients/rancher/generated/management/v3/zz_generated_token.go index 40c591dd..7c1bfd8f 100644 --- a/clients/rancher/generated/management/v3/zz_generated_token.go +++ b/clients/rancher/generated/management/v3/zz_generated_token.go @@ -19,7 +19,7 @@ const ( TokenFieldGroupPrincipals = "groupPrincipals" TokenFieldIsDerived = "isDerived" TokenFieldLabels = "labels" - TokenFieldLastUpdateTime = "lastUpdateTime" + TokenFieldLastUsedAt = "lastUsedAt" TokenFieldName = "name" TokenFieldOwnerReferences = "ownerReferences" TokenFieldProviderInfo = "providerInfo" @@ -46,7 +46,7 @@ type Token struct { GroupPrincipals []string `json:"groupPrincipals,omitempty" yaml:"groupPrincipals,omitempty"` IsDerived bool `json:"isDerived,omitempty" yaml:"isDerived,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` - LastUpdateTime string `json:"lastUpdateTime,omitempty" yaml:"lastUpdateTime,omitempty"` + LastUsedAt string `json:"lastUsedAt,omitempty" yaml:"lastUsedAt,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` ProviderInfo map[string]string `json:"providerInfo,omitempty" yaml:"providerInfo,omitempty"` diff --git a/go.mod b/go.mod index db845da4..774fa578 100644 --- a/go.mod +++ b/go.mod @@ -28,19 +28,19 @@ require ( github.com/pkg/sftp v1.13.5 github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.52.0 github.com/rancher/apiserver v0.0.0-20240604183424-8c448886365e - github.com/rancher/eks-operator v1.10.0-rc.1 - github.com/rancher/fleet/pkg/apis v0.10.0 - github.com/rancher/gke-operator v1.10.0-rc.1 + github.com/rancher/eks-operator v1.10.0 + github.com/rancher/fleet/pkg/apis v0.11.0 + github.com/rancher/gke-operator v1.10.0 github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813 github.com/rancher/norman v0.0.0-20241001183610-78a520c160ab - github.com/rancher/rancher/pkg/apis v0.0.0-20241023011518-955534c18d04 - github.com/rancher/rke v1.7.0-rc.1 + github.com/rancher/rancher/pkg/apis v0.0.0-20241113133627-598640d1556c + github.com/rancher/rke v1.7.0-rc.5 github.com/rancher/system-upgrade-controller/pkg/apis v0.0.0-20210727200656-10b094e30007 github.com/rancher/wrangler v1.1.2 - github.com/rancher/wrangler/v3 v3.0.1-rc.3 + github.com/rancher/wrangler/v3 v3.1.0 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.8.1 - golang.org/x/crypto v0.27.0 + golang.org/x/crypto v0.28.0 gopkg.in/yaml.v2 v2.4.0 k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 @@ -134,7 +134,7 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.55.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect - github.com/rancher/aks-operator v1.10.0-rc.1 // indirect + github.com/rancher/aks-operator v1.10.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.6.0 // indirect @@ -151,18 +151,18 @@ require ( go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect golang.org/x/mod v0.20.0 // indirect - golang.org/x/net v0.29.0 // indirect + golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/term v0.24.0 // indirect - golang.org/x/text v0.18.0 // indirect - golang.org/x/time v0.6.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect + golang.org/x/text v0.19.0 // indirect + golang.org/x/time v0.7.0 // indirect golang.org/x/tools v0.24.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect - google.golang.org/grpc v1.67.0 // indirect - google.golang.org/protobuf v1.34.2 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect + google.golang.org/grpc v1.67.1 // indirect + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index bd6e9946..ea277c8d 100644 --- a/go.sum +++ b/go.sum @@ -2347,31 +2347,31 @@ github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3c github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/rancher/aks-operator v1.10.0-rc.1 h1:63cfkmshiiyyka+fVsVR7FK2ihC00dgRuUFNX8H9qAQ= -github.com/rancher/aks-operator v1.10.0-rc.1/go.mod h1:2DeBDS7bN5AZPLM1soGqiMtfSVML+bS1XtQ2kftqDIw= +github.com/rancher/aks-operator v1.10.0 h1:9PGJUyzso2Tg9o64sYI6++mCke9ToRchvN5uZqPV+kY= +github.com/rancher/aks-operator v1.10.0/go.mod h1:n7CBXwN5mpJZT7/3PYg6cWBAVCqjayhaUiRtTCH1FMQ= github.com/rancher/apiserver v0.0.0-20240604183424-8c448886365e h1:u/zH1L+NZh+Q0cZ2S4raOn/EMG9GYiBwZYzu3FfXVTg= github.com/rancher/apiserver v0.0.0-20240604183424-8c448886365e/go.mod h1:4arf2ls2ELpOCD+YUgNlWp+G1n0duubUKCtT7dulsNc= -github.com/rancher/eks-operator v1.10.0-rc.1 h1:I2/si1fYBZPohyngRbkX1h+swcbOV09wQx/3Zrt007M= -github.com/rancher/eks-operator v1.10.0-rc.1/go.mod h1:buuNHvhHhMxwghFV5Mo1WML+0bbYNYu8TbeS3cJUsvU= -github.com/rancher/fleet/pkg/apis v0.10.0 h1:0f8OEghEDJNzvUAR2fpg2dw8EnAgfWvkhnwsYFS9G+w= -github.com/rancher/fleet/pkg/apis v0.10.0/go.mod h1:mjirthAmgpz0xo+qywUiaJDFpjnmX3xrc2E0/qmk3yc= -github.com/rancher/gke-operator v1.10.0-rc.1 h1:BD2HCpw/E58pnDPBfcMjtSlY0ytwgBO+Tq3WjsI5tzY= -github.com/rancher/gke-operator v1.10.0-rc.1/go.mod h1:XLrDkC7OAS9yc0+b9M5S+pGlZZT2cj4KbSmOHzghDm0= +github.com/rancher/eks-operator v1.10.0 h1:a3l3nmoIf5EiYS4BQ+a9Z8+0WwZ3duek6gnrT6VZKwk= +github.com/rancher/eks-operator v1.10.0/go.mod h1:coW31jIfImAHdGsepc7yCXSuixdclQkJn3y26E9tsss= +github.com/rancher/fleet/pkg/apis v0.11.0 h1:4OjUfgGdGMQUOHDI8HWN79N9P4U5g9XiPCCbrkZVOMo= +github.com/rancher/fleet/pkg/apis v0.11.0/go.mod h1:8nvuO8x0z7ydpW0eZJEEEPHI0Bmb9T5L3igH0t+0dDk= +github.com/rancher/gke-operator v1.10.0 h1:vV9jLErnH5VRBpK/kCzem8T7/yEDqLVXIcv20Or7e7I= +github.com/rancher/gke-operator v1.10.0/go.mod h1:k3oIJMCilpaLHeHPRy90S3pfZ05vbe+b+g1ISiHQbLo= github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813 h1:V/LY8pUHZG9Kc+xEDWDOryOnCU6/Q+Lsr9QQEQnshpU= github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813/go.mod h1:IxgTBO55lziYhTEETyVKiT8/B5Rg92qYiRmcIIYoPgI= github.com/rancher/norman v0.0.0-20241001183610-78a520c160ab h1:ihK6See3y/JilqZlc0CG7NXPN+ue5nY9U7xUZUA8M7I= github.com/rancher/norman v0.0.0-20241001183610-78a520c160ab/go.mod h1:qX/OG/4wY27xSAcSdRilUBxBumV6Ey2CWpAeaKnBQDs= -github.com/rancher/rancher/pkg/apis v0.0.0-20241023011518-955534c18d04 h1:WHianQ9fPw3lUri1FT9E9YCjr09Ne4t0X+jQnn2vnic= -github.com/rancher/rancher/pkg/apis v0.0.0-20241023011518-955534c18d04/go.mod h1:F+ShRgIUMIFmsHedfp8QZrqLtoUlOG2iDDtuTXIUTds= -github.com/rancher/rke v1.7.0-rc.1 h1:6rSHO8OoYZmE6TEChPK1clj2fcWtob0WGQvME9BEbmU= -github.com/rancher/rke v1.7.0-rc.1/go.mod h1:VbDpfxcO2US2+mZUaLPr9vADjHLE7Gg5ZDbNmjKKBWY= +github.com/rancher/rancher/pkg/apis v0.0.0-20241113133627-598640d1556c h1:wgRohofDe45lOK4nmA7AboPkl1AlTJgp97kQ/0nDsg8= +github.com/rancher/rancher/pkg/apis v0.0.0-20241113133627-598640d1556c/go.mod h1:VJQNArsPMiuWlvlnfGbD5gZtGvttnsEJSbrLsHfBtuA= +github.com/rancher/rke v1.7.0-rc.5 h1:kBRwXTW8CYPXvCcPLISiwGTCvJ8K/+b35D5ES0IcduM= +github.com/rancher/rke v1.7.0-rc.5/go.mod h1:+x++Mvl0A3jIzNLiu8nkraqZXiHg6VPWv0Xl4iQCg+A= github.com/rancher/system-upgrade-controller/pkg/apis v0.0.0-20210727200656-10b094e30007 h1:ru+mqGnxMmKeU0Q3XIDxkARvInDIqT1hH2amTcsjxI4= github.com/rancher/system-upgrade-controller/pkg/apis v0.0.0-20210727200656-10b094e30007/go.mod h1:Ja346o44aTPWADc/5Jm93+KgctT6KtftuOosgz0F2AM= github.com/rancher/wrangler v0.6.1/go.mod h1:L4HtjPeX8iqLgsxfJgz+JjKMcX2q3qbRXSeTlC/CSd4= github.com/rancher/wrangler v1.1.2 h1:oXbXo9k7y/H4drUpb4RM1c++vT9O3rpoNEfyusGykiU= github.com/rancher/wrangler v1.1.2/go.mod h1:2k9MyhlBdjcutcBGoOJSUAz0HgDAXnMjv81d3n/AaQc= -github.com/rancher/wrangler/v3 v3.0.1-rc.3 h1:C2d1GoP500SEFARVcb6EpbcNaXH3i8Yu9fzAe/0n4C0= -github.com/rancher/wrangler/v3 v3.0.1-rc.3/go.mod h1:gUPHS1ANs2NyByfeERHwkGiQ1rlIa8BpTJZtNSgMlZw= +github.com/rancher/wrangler/v3 v3.1.0 h1:8ETBnQOEcZaR6WBmUSysWW7WnERBOiNTMJr4Dj3UG/s= +github.com/rancher/wrangler/v3 v3.1.0/go.mod h1:gUPHS1ANs2NyByfeERHwkGiQ1rlIa8BpTJZtNSgMlZw= github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= @@ -2606,8 +2606,8 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= -go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= +go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= +go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= @@ -2657,8 +2657,8 @@ golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOM golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= -golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= -golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2824,8 +2824,8 @@ golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= -golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= -golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -3038,8 +3038,8 @@ golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/telemetry v0.0.0-20240208230135-b75ee8823808/go.mod h1:KG1lNk5ZFNssSZLrpVb4sMXKMpGwGXOxSG3rnu2gZQQ= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -3066,8 +3066,8 @@ golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= -golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= -golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -3092,8 +3092,8 @@ golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= -golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -3103,8 +3103,8 @@ golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= -golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U= -golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ= +golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -3498,8 +3498,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go. google.golang.org/genproto/googleapis/api v0.0.0-20240513163218-0867130af1f8/go.mod h1:vPrPUTsDCYxXWjP7clS81mZ6/803D8K4iM9Ma27VKas= google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5/go.mod h1:RGnPtTG7r4i8sPlNyDeikXF99hMM+hN6QMm4ooG9g2g= google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157/go.mod h1:99sLkeliLXfdj2J75X3Ho+rrVCaJze0uwN7zDDkjPVU= -google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed h1:3RgNmBoI9MZhsj3QxC+AP/qQhNwpCLOvYDYYsFrhFt0= -google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed/go.mod h1:OCdP9MfskevB/rbYvHTsXTtKC+3bHWajPdoKgjcYkfo= +google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f h1:jTm13A2itBi3La6yTGqn8bVSrc3ZZ1r8ENHlIXBfnRA= +google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f/go.mod h1:CLGoBuH1VHxAUXVPP8FfPwPEVJB6lz3URE5mY2SuayE= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230807174057-1744710a1577/go.mod h1:NjCQG/D8JandXxM57PZbAJL1DCNL6EypA0vPPwfsc7c= google.golang.org/genproto/googleapis/bytestream v0.0.0-20231030173426-d783a09b4405/go.mod h1:GRUCuLdzVqZte8+Dl/D4N25yLzcGqqWaYkeVOwulFqw= @@ -3549,8 +3549,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291/go. google.golang.org/genproto/googleapis/rpc v0.0.0-20240521202816-d264139d666e/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 h1:QCqS/PdaHTSWGvupk2F/ehwHtGc0/GYkT+3GAcR1CCc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -3613,8 +3613,8 @@ google.golang.org/grpc v1.63.0/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDom google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= -google.golang.org/grpc v1.67.0 h1:IdH9y6PF5MPSdAntIcpjQ+tXO41pcQsfZV2RxtQgVcw= -google.golang.org/grpc v1.67.0/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -3637,8 +3637,9 @@ google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pkg/generated/controllers/management.cattle.io/v3/clusterlogging.go b/pkg/generated/controllers/management.cattle.io/v3/clusterlogging.go deleted file mode 100644 index 9bb46463..00000000 --- a/pkg/generated/controllers/management.cattle.io/v3/clusterlogging.go +++ /dev/null @@ -1,208 +0,0 @@ -/* -Copyright 2024 Rancher Labs, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by main. DO NOT EDIT. - -package v3 - -import ( - "context" - "sync" - "time" - - v3 "github.com/rancher/rancher/pkg/apis/management.cattle.io/v3" - "github.com/rancher/shepherd/pkg/wrangler/pkg/generic" - "github.com/rancher/wrangler/v3/pkg/apply" - "github.com/rancher/wrangler/v3/pkg/condition" - "github.com/rancher/wrangler/v3/pkg/kv" - "k8s.io/apimachinery/pkg/api/equality" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -// ClusterLoggingController interface for managing ClusterLogging resources. -type ClusterLoggingController interface { - generic.ControllerInterface[*v3.ClusterLogging, *v3.ClusterLoggingList] -} - -// ClusterLoggingClient interface for managing ClusterLogging resources in Kubernetes. -type ClusterLoggingClient interface { - generic.ClientInterface[*v3.ClusterLogging, *v3.ClusterLoggingList] -} - -// ClusterLoggingCache interface for retrieving ClusterLogging resources in memory. -type ClusterLoggingCache interface { - generic.CacheInterface[*v3.ClusterLogging] -} - -// ClusterLoggingStatusHandler is executed for every added or modified ClusterLogging. Should return the new status to be updated -type ClusterLoggingStatusHandler func(obj *v3.ClusterLogging, status v3.ClusterLoggingStatus) (v3.ClusterLoggingStatus, error) - -// ClusterLoggingGeneratingHandler is the top-level handler that is executed for every ClusterLogging event. It extends ClusterLoggingStatusHandler by a returning a slice of child objects to be passed to apply.Apply -type ClusterLoggingGeneratingHandler func(obj *v3.ClusterLogging, status v3.ClusterLoggingStatus) ([]runtime.Object, v3.ClusterLoggingStatus, error) - -// RegisterClusterLoggingStatusHandler configures a ClusterLoggingController to execute a ClusterLoggingStatusHandler for every events observed. -// If a non-empty condition is provided, it will be updated in the status conditions for every handler execution -func RegisterClusterLoggingStatusHandler(ctx context.Context, controller ClusterLoggingController, condition condition.Cond, name string, handler ClusterLoggingStatusHandler) { - statusHandler := &clusterLoggingStatusHandler{ - client: controller, - condition: condition, - handler: handler, - } - controller.AddGenericHandler(ctx, name, generic.FromObjectHandlerToHandler(statusHandler.sync)) -} - -// RegisterClusterLoggingGeneratingHandler configures a ClusterLoggingController to execute a ClusterLoggingGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. -// If a non-empty condition is provided, it will be updated in the status conditions for every handler execution -func RegisterClusterLoggingGeneratingHandler(ctx context.Context, controller ClusterLoggingController, apply apply.Apply, - condition condition.Cond, name string, handler ClusterLoggingGeneratingHandler, opts *generic.GeneratingHandlerOptions) { - statusHandler := &clusterLoggingGeneratingHandler{ - ClusterLoggingGeneratingHandler: handler, - apply: apply, - name: name, - gvk: controller.GroupVersionKind(), - } - if opts != nil { - statusHandler.opts = *opts - } - controller.OnChange(ctx, name, statusHandler.Remove) - RegisterClusterLoggingStatusHandler(ctx, controller, condition, name, statusHandler.Handle) -} - -type clusterLoggingStatusHandler struct { - client ClusterLoggingClient - condition condition.Cond - handler ClusterLoggingStatusHandler -} - -// sync is executed on every resource addition or modification. Executes the configured handlers and sends the updated status to the Kubernetes API -func (a *clusterLoggingStatusHandler) sync(key string, obj *v3.ClusterLogging) (*v3.ClusterLogging, error) { - if obj == nil { - return obj, nil - } - - origStatus := obj.Status.DeepCopy() - obj = obj.DeepCopy() - newStatus, err := a.handler(obj, obj.Status) - if err != nil { - // Revert to old status on error - newStatus = *origStatus.DeepCopy() - } - - if a.condition != "" { - if errors.IsConflict(err) { - a.condition.SetError(&newStatus, "", nil) - } else { - a.condition.SetError(&newStatus, "", err) - } - } - if !equality.Semantic.DeepEqual(origStatus, &newStatus) { - if a.condition != "" { - // Since status has changed, update the lastUpdatedTime - a.condition.LastUpdated(&newStatus, time.Now().UTC().Format(time.RFC3339)) - } - - var newErr error - obj.Status = newStatus - newObj, newErr := a.client.UpdateStatus(obj) - if err == nil { - err = newErr - } - if newErr == nil { - obj = newObj - } - } - return obj, err -} - -type clusterLoggingGeneratingHandler struct { - ClusterLoggingGeneratingHandler - apply apply.Apply - opts generic.GeneratingHandlerOptions - gvk schema.GroupVersionKind - name string - seen sync.Map -} - -// Remove handles the observed deletion of a resource, cascade deleting every associated resource previously applied -func (a *clusterLoggingGeneratingHandler) Remove(key string, obj *v3.ClusterLogging) (*v3.ClusterLogging, error) { - if obj != nil { - return obj, nil - } - - obj = &v3.ClusterLogging{} - obj.Namespace, obj.Name = kv.RSplit(key, "/") - obj.SetGroupVersionKind(a.gvk) - - if a.opts.UniqueApplyForResourceVersion { - a.seen.Delete(key) - } - - return nil, generic.ConfigureApplyForObject(a.apply, obj, &a.opts). - WithOwner(obj). - WithSetID(a.name). - ApplyObjects() -} - -// Handle executes the configured ClusterLoggingGeneratingHandler and pass the resulting objects to apply.Apply, finally returning the new status of the resource -func (a *clusterLoggingGeneratingHandler) Handle(obj *v3.ClusterLogging, status v3.ClusterLoggingStatus) (v3.ClusterLoggingStatus, error) { - if !obj.DeletionTimestamp.IsZero() { - return status, nil - } - - objs, newStatus, err := a.ClusterLoggingGeneratingHandler(obj, status) - if err != nil { - return newStatus, err - } - if !a.isNewResourceVersion(obj) { - return newStatus, nil - } - - err = generic.ConfigureApplyForObject(a.apply, obj, &a.opts). - WithOwner(obj). - WithSetID(a.name). - ApplyObjects(objs...) - if err != nil { - return newStatus, err - } - a.storeResourceVersion(obj) - return newStatus, nil -} - -// isNewResourceVersion detects if a specific resource version was already successfully processed. -// Only used if UniqueApplyForResourceVersion is set in generic.GeneratingHandlerOptions -func (a *clusterLoggingGeneratingHandler) isNewResourceVersion(obj *v3.ClusterLogging) bool { - if !a.opts.UniqueApplyForResourceVersion { - return true - } - - // Apply once per resource version - key := obj.Namespace + "/" + obj.Name - previous, ok := a.seen.Load(key) - return !ok || previous != obj.ResourceVersion -} - -// storeResourceVersion keeps track of the latest resource version of an object for which Apply was executed -// Only used if UniqueApplyForResourceVersion is set in generic.GeneratingHandlerOptions -func (a *clusterLoggingGeneratingHandler) storeResourceVersion(obj *v3.ClusterLogging) { - if !a.opts.UniqueApplyForResourceVersion { - return - } - - key := obj.Namespace + "/" + obj.Name - a.seen.Store(key, obj.ResourceVersion) -} diff --git a/pkg/generated/controllers/management.cattle.io/v3/interface.go b/pkg/generated/controllers/management.cattle.io/v3/interface.go index 90ff93b5..66ff8fc3 100644 --- a/pkg/generated/controllers/management.cattle.io/v3/interface.go +++ b/pkg/generated/controllers/management.cattle.io/v3/interface.go @@ -44,7 +44,6 @@ type Interface interface { CloudCredential() CloudCredentialController Cluster() ClusterController ClusterCatalog() ClusterCatalogController - ClusterLogging() ClusterLoggingController ClusterProxyConfig() ClusterProxyConfigController ClusterRegistrationToken() ClusterRegistrationTokenController ClusterRoleTemplateBinding() ClusterRoleTemplateBindingController @@ -79,7 +78,6 @@ type Interface interface { Principal() PrincipalController Project() ProjectController ProjectCatalog() ProjectCatalogController - ProjectLogging() ProjectLoggingController ProjectNetworkPolicy() ProjectNetworkPolicyController ProjectRoleTemplateBinding() ProjectRoleTemplateBindingController RancherUserNotification() RancherUserNotificationController @@ -158,10 +156,6 @@ func (v *version) ClusterCatalog() ClusterCatalogController { return generic.NewController[*v3.ClusterCatalog, *v3.ClusterCatalogList](schema.GroupVersionKind{Group: "management.cattle.io", Version: "v3", Kind: "ClusterCatalog"}, "clustercatalogs", true, v.controllerFactory, v.ts) } -func (v *version) ClusterLogging() ClusterLoggingController { - return generic.NewController[*v3.ClusterLogging, *v3.ClusterLoggingList](schema.GroupVersionKind{Group: "management.cattle.io", Version: "v3", Kind: "ClusterLogging"}, "clusterloggings", true, v.controllerFactory, v.ts) -} - func (v *version) ClusterProxyConfig() ClusterProxyConfigController { return generic.NewController[*v3.ClusterProxyConfig, *v3.ClusterProxyConfigList](schema.GroupVersionKind{Group: "management.cattle.io", Version: "v3", Kind: "ClusterProxyConfig"}, "clusterproxyconfigs", true, v.controllerFactory, v.ts) } @@ -298,10 +292,6 @@ func (v *version) ProjectCatalog() ProjectCatalogController { return generic.NewController[*v3.ProjectCatalog, *v3.ProjectCatalogList](schema.GroupVersionKind{Group: "management.cattle.io", Version: "v3", Kind: "ProjectCatalog"}, "projectcatalogs", true, v.controllerFactory, v.ts) } -func (v *version) ProjectLogging() ProjectLoggingController { - return generic.NewController[*v3.ProjectLogging, *v3.ProjectLoggingList](schema.GroupVersionKind{Group: "management.cattle.io", Version: "v3", Kind: "ProjectLogging"}, "projectloggings", true, v.controllerFactory, v.ts) -} - func (v *version) ProjectNetworkPolicy() ProjectNetworkPolicyController { return generic.NewController[*v3.ProjectNetworkPolicy, *v3.ProjectNetworkPolicyList](schema.GroupVersionKind{Group: "management.cattle.io", Version: "v3", Kind: "ProjectNetworkPolicy"}, "projectnetworkpolicies", true, v.controllerFactory, v.ts) } diff --git a/pkg/generated/controllers/management.cattle.io/v3/projectlogging.go b/pkg/generated/controllers/management.cattle.io/v3/projectlogging.go deleted file mode 100644 index 72771d1e..00000000 --- a/pkg/generated/controllers/management.cattle.io/v3/projectlogging.go +++ /dev/null @@ -1,208 +0,0 @@ -/* -Copyright 2024 Rancher Labs, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by main. DO NOT EDIT. - -package v3 - -import ( - "context" - "sync" - "time" - - v3 "github.com/rancher/rancher/pkg/apis/management.cattle.io/v3" - "github.com/rancher/shepherd/pkg/wrangler/pkg/generic" - "github.com/rancher/wrangler/v3/pkg/apply" - "github.com/rancher/wrangler/v3/pkg/condition" - "github.com/rancher/wrangler/v3/pkg/kv" - "k8s.io/apimachinery/pkg/api/equality" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" -) - -// ProjectLoggingController interface for managing ProjectLogging resources. -type ProjectLoggingController interface { - generic.ControllerInterface[*v3.ProjectLogging, *v3.ProjectLoggingList] -} - -// ProjectLoggingClient interface for managing ProjectLogging resources in Kubernetes. -type ProjectLoggingClient interface { - generic.ClientInterface[*v3.ProjectLogging, *v3.ProjectLoggingList] -} - -// ProjectLoggingCache interface for retrieving ProjectLogging resources in memory. -type ProjectLoggingCache interface { - generic.CacheInterface[*v3.ProjectLogging] -} - -// ProjectLoggingStatusHandler is executed for every added or modified ProjectLogging. Should return the new status to be updated -type ProjectLoggingStatusHandler func(obj *v3.ProjectLogging, status v3.ProjectLoggingStatus) (v3.ProjectLoggingStatus, error) - -// ProjectLoggingGeneratingHandler is the top-level handler that is executed for every ProjectLogging event. It extends ProjectLoggingStatusHandler by a returning a slice of child objects to be passed to apply.Apply -type ProjectLoggingGeneratingHandler func(obj *v3.ProjectLogging, status v3.ProjectLoggingStatus) ([]runtime.Object, v3.ProjectLoggingStatus, error) - -// RegisterProjectLoggingStatusHandler configures a ProjectLoggingController to execute a ProjectLoggingStatusHandler for every events observed. -// If a non-empty condition is provided, it will be updated in the status conditions for every handler execution -func RegisterProjectLoggingStatusHandler(ctx context.Context, controller ProjectLoggingController, condition condition.Cond, name string, handler ProjectLoggingStatusHandler) { - statusHandler := &projectLoggingStatusHandler{ - client: controller, - condition: condition, - handler: handler, - } - controller.AddGenericHandler(ctx, name, generic.FromObjectHandlerToHandler(statusHandler.sync)) -} - -// RegisterProjectLoggingGeneratingHandler configures a ProjectLoggingController to execute a ProjectLoggingGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. -// If a non-empty condition is provided, it will be updated in the status conditions for every handler execution -func RegisterProjectLoggingGeneratingHandler(ctx context.Context, controller ProjectLoggingController, apply apply.Apply, - condition condition.Cond, name string, handler ProjectLoggingGeneratingHandler, opts *generic.GeneratingHandlerOptions) { - statusHandler := &projectLoggingGeneratingHandler{ - ProjectLoggingGeneratingHandler: handler, - apply: apply, - name: name, - gvk: controller.GroupVersionKind(), - } - if opts != nil { - statusHandler.opts = *opts - } - controller.OnChange(ctx, name, statusHandler.Remove) - RegisterProjectLoggingStatusHandler(ctx, controller, condition, name, statusHandler.Handle) -} - -type projectLoggingStatusHandler struct { - client ProjectLoggingClient - condition condition.Cond - handler ProjectLoggingStatusHandler -} - -// sync is executed on every resource addition or modification. Executes the configured handlers and sends the updated status to the Kubernetes API -func (a *projectLoggingStatusHandler) sync(key string, obj *v3.ProjectLogging) (*v3.ProjectLogging, error) { - if obj == nil { - return obj, nil - } - - origStatus := obj.Status.DeepCopy() - obj = obj.DeepCopy() - newStatus, err := a.handler(obj, obj.Status) - if err != nil { - // Revert to old status on error - newStatus = *origStatus.DeepCopy() - } - - if a.condition != "" { - if errors.IsConflict(err) { - a.condition.SetError(&newStatus, "", nil) - } else { - a.condition.SetError(&newStatus, "", err) - } - } - if !equality.Semantic.DeepEqual(origStatus, &newStatus) { - if a.condition != "" { - // Since status has changed, update the lastUpdatedTime - a.condition.LastUpdated(&newStatus, time.Now().UTC().Format(time.RFC3339)) - } - - var newErr error - obj.Status = newStatus - newObj, newErr := a.client.UpdateStatus(obj) - if err == nil { - err = newErr - } - if newErr == nil { - obj = newObj - } - } - return obj, err -} - -type projectLoggingGeneratingHandler struct { - ProjectLoggingGeneratingHandler - apply apply.Apply - opts generic.GeneratingHandlerOptions - gvk schema.GroupVersionKind - name string - seen sync.Map -} - -// Remove handles the observed deletion of a resource, cascade deleting every associated resource previously applied -func (a *projectLoggingGeneratingHandler) Remove(key string, obj *v3.ProjectLogging) (*v3.ProjectLogging, error) { - if obj != nil { - return obj, nil - } - - obj = &v3.ProjectLogging{} - obj.Namespace, obj.Name = kv.RSplit(key, "/") - obj.SetGroupVersionKind(a.gvk) - - if a.opts.UniqueApplyForResourceVersion { - a.seen.Delete(key) - } - - return nil, generic.ConfigureApplyForObject(a.apply, obj, &a.opts). - WithOwner(obj). - WithSetID(a.name). - ApplyObjects() -} - -// Handle executes the configured ProjectLoggingGeneratingHandler and pass the resulting objects to apply.Apply, finally returning the new status of the resource -func (a *projectLoggingGeneratingHandler) Handle(obj *v3.ProjectLogging, status v3.ProjectLoggingStatus) (v3.ProjectLoggingStatus, error) { - if !obj.DeletionTimestamp.IsZero() { - return status, nil - } - - objs, newStatus, err := a.ProjectLoggingGeneratingHandler(obj, status) - if err != nil { - return newStatus, err - } - if !a.isNewResourceVersion(obj) { - return newStatus, nil - } - - err = generic.ConfigureApplyForObject(a.apply, obj, &a.opts). - WithOwner(obj). - WithSetID(a.name). - ApplyObjects(objs...) - if err != nil { - return newStatus, err - } - a.storeResourceVersion(obj) - return newStatus, nil -} - -// isNewResourceVersion detects if a specific resource version was already successfully processed. -// Only used if UniqueApplyForResourceVersion is set in generic.GeneratingHandlerOptions -func (a *projectLoggingGeneratingHandler) isNewResourceVersion(obj *v3.ProjectLogging) bool { - if !a.opts.UniqueApplyForResourceVersion { - return true - } - - // Apply once per resource version - key := obj.Namespace + "/" + obj.Name - previous, ok := a.seen.Load(key) - return !ok || previous != obj.ResourceVersion -} - -// storeResourceVersion keeps track of the latest resource version of an object for which Apply was executed -// Only used if UniqueApplyForResourceVersion is set in generic.GeneratingHandlerOptions -func (a *projectLoggingGeneratingHandler) storeResourceVersion(obj *v3.ProjectLogging) { - if !a.opts.UniqueApplyForResourceVersion { - return - } - - key := obj.Namespace + "/" + obj.Name - a.seen.Store(key, obj.ResourceVersion) -}