Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rancher/pkg/apis and use BackingNamespace for projects #335

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const (
AciNetworkProviderFieldDurationWaitForNetwork = "durationWaitForNetwork"
AciNetworkProviderFieldDynamicExternalSubnet = "externDynamic"
AciNetworkProviderFieldEnableEndpointSlice = "enableEndpointSlice"
AciNetworkProviderFieldEnableHppDirect = "enableHppDirect"
AciNetworkProviderFieldEnableOpflexAgentReconnect = "enableOpflexAgentReconnect"
AciNetworkProviderFieldEncapType = "encapType"
AciNetworkProviderFieldEpRegistry = "epRegistry"
Expand Down Expand Up @@ -70,13 +71,19 @@ const (
AciNetworkProviderFieldOpflexAgentOpflexAsyncjsonEnabled = "opflexAgentOpflexAsyncjsonEnabled"
AciNetworkProviderFieldOpflexAgentOvsAsyncjsonEnabled = "opflexAgentOvsAsyncjsonEnabled"
AciNetworkProviderFieldOpflexAgentPolicyRetryDelayTimer = "opflexAgentPolicyRetryDelayTimer"
AciNetworkProviderFieldOpflexAgentResetWaitDelay = "opflexAgentResetWaitDelay"
AciNetworkProviderFieldOpflexAgentStatistics = "opflexAgentStatistics"
AciNetworkProviderFieldOpflexClientSSL = "opflexClientSsl"
AciNetworkProviderFieldOpflexDeviceDeleteTimeout = "opflexDeviceDeleteTimeout"
AciNetworkProviderFieldOpflexDeviceReconnectWaitTimeout = "opflexDeviceReconnectWaitTimeout"
AciNetworkProviderFieldOpflexMode = "opflexMode"
AciNetworkProviderFieldOpflexOpensslCompat = "opflexOpensslCompat"
AciNetworkProviderFieldOpflexServerPort = "opflexServerPort"
AciNetworkProviderFieldOpflexStartupEnabled = "opflexStartupEnabled"
AciNetworkProviderFieldOpflexStartupPolicyDuration = "opflexStartupPolicyDuration"
AciNetworkProviderFieldOpflexStartupResolveAftConn = "opflexStartupResolveAftConn"
AciNetworkProviderFieldOpflexSwitchSyncDelay = "opflexSwitchSyncDelay"
AciNetworkProviderFieldOpflexSwitchSyncDynamic = "opflexSwitchSyncDynamic"
AciNetworkProviderFieldOverlayVRFName = "overlayVrfName"
AciNetworkProviderFieldPBRTrackingNonSnat = "pbrTrackingNonSnat"
AciNetworkProviderFieldPodSubnetChunkSize = "podSubnetChunkSize"
Expand All @@ -101,6 +108,7 @@ const (
AciNetworkProviderFieldTenant = "tenant"
AciNetworkProviderFieldToken = "token"
AciNetworkProviderFieldTolerationSeconds = "tolerationSeconds"
AciNetworkProviderFieldUnknownMacUnicastAction = "unknownMacUnicastAction"
AciNetworkProviderFieldUseAciAnywhereCRD = "useAciAnywhereCrd"
AciNetworkProviderFieldUseAciCniPriorityClass = "useAciCniPriorityClass"
AciNetworkProviderFieldUseClusterRole = "useClusterRole"
Expand Down Expand Up @@ -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"`
Expand Down Expand Up @@ -183,13 +192,19 @@ 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"`
OpflexDeviceReconnectWaitTimeout string `json:"opflexDeviceReconnectWaitTimeout,omitempty" yaml:"opflexDeviceReconnectWaitTimeout,omitempty"`
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"`
Expand All @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
ActiveDirectoryConfigFieldGroupSearchBase = "groupSearchBase"
ActiveDirectoryConfigFieldGroupSearchFilter = "groupSearchFilter"
ActiveDirectoryConfigFieldLabels = "labels"
ActiveDirectoryConfigFieldLogoutAllSupported = "logoutAllSupported"
ActiveDirectoryConfigFieldName = "name"
ActiveDirectoryConfigFieldNestedGroupMembershipEnabled = "nestedGroupMembershipEnabled"
ActiveDirectoryConfigFieldOwnerReferences = "ownerReferences"
Expand Down Expand Up @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const (
ADFSConfigFieldGroupsField = "groupsField"
ADFSConfigFieldIDPMetadataContent = "idpMetadataContent"
ADFSConfigFieldLabels = "labels"
ADFSConfigFieldLogoutAllEnabled = "logoutAllEnabled"
ADFSConfigFieldLogoutAllForced = "logoutAllForced"
ADFSConfigFieldLogoutAllSupported = "logoutAllSupported"
ADFSConfigFieldName = "name"
ADFSConfigFieldOwnerReferences = "ownerReferences"
ADFSConfigFieldRancherAPIHost = "rancherApiHost"
Expand All @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const (
AuthConfigFieldCreatorID = "creatorId"
AuthConfigFieldEnabled = "enabled"
AuthConfigFieldLabels = "labels"
AuthConfigFieldLogoutAllSupported = "logoutAllSupported"
AuthConfigFieldName = "name"
AuthConfigFieldOwnerReferences = "ownerReferences"
AuthConfigFieldRemoved = "removed"
Expand All @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const (
AzureADConfigFieldGraphEndpoint = "graphEndpoint"
AzureADConfigFieldGroupMembershipFilter = "groupMembershipFilter"
AzureADConfigFieldLabels = "labels"
AzureADConfigFieldLogoutAllSupported = "logoutAllSupported"
AzureADConfigFieldName = "name"
AzureADConfigFieldOwnerReferences = "ownerReferences"
AzureADConfigFieldRancherURL = "rancherUrl"
Expand All @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
ExtraVolumeFieldGlusterfs = "glusterfs"
ExtraVolumeFieldHostPath = "hostPath"
ExtraVolumeFieldISCSI = "iscsi"
ExtraVolumeFieldImage = "image"
ExtraVolumeFieldNFS = "nfs"
ExtraVolumeFieldName = "name"
ExtraVolumeFieldPersistentVolumeClaim = "persistentVolumeClaim"
Expand Down Expand Up @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const (
FreeIpaConfigFieldGroupSearchBase = "groupSearchBase"
FreeIpaConfigFieldGroupSearchFilter = "groupSearchFilter"
FreeIpaConfigFieldLabels = "labels"
FreeIpaConfigFieldLogoutAllSupported = "logoutAllSupported"
FreeIpaConfigFieldName = "name"
FreeIpaConfigFieldOwnerReferences = "ownerReferences"
FreeIpaConfigFieldPort = "port"
Expand Down Expand Up @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const (
GithubConfigFieldHostname = "hostname"
GithubConfigFieldHostnameToClientID = "hostnameToClientId"
GithubConfigFieldLabels = "labels"
GithubConfigFieldLogoutAllSupported = "logoutAllSupported"
GithubConfigFieldName = "name"
GithubConfigFieldOwnerReferences = "ownerReferences"
GithubConfigFieldRemoved = "removed"
Expand All @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const (
GoogleOauthConfigFieldEnabled = "enabled"
GoogleOauthConfigFieldHostname = "hostname"
GoogleOauthConfigFieldLabels = "labels"
GoogleOauthConfigFieldLogoutAllSupported = "logoutAllSupported"
GoogleOauthConfigFieldName = "name"
GoogleOauthConfigFieldNestedGroupMembershipEnabled = "nestedGroupMembershipEnabled"
GoogleOauthConfigFieldOauthCredential = "oauthCredential"
Expand All @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
@@ -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"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const (
InternalNodeStatusFieldCapacity = "capacity"
InternalNodeStatusFieldConfig = "config"
InternalNodeStatusFieldExternalIPAddress = "externalIpAddress"
InternalNodeStatusFieldFeatures = "features"
InternalNodeStatusFieldHostname = "hostname"
InternalNodeStatusFieldIPAddress = "ipAddress"
InternalNodeStatusFieldInfo = "info"
Expand All @@ -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"`
Expand Down
Loading