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

KSPACE-46: Deprecations #407

Merged
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
19 changes: 5 additions & 14 deletions api/v1alpha1/toolchainconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ type ToolchainConfigSpec struct {
// HostConfig contains all configuration parameters of the host operator
// +k8s:openapi-gen=true
type HostConfig struct {

// Environment specifies the host-operator environment such as prod, stage, unit-tests, e2e-tests, dev, etc
// +optional
Environment *string `json:"environment,omitempty"`
Expand Down Expand Up @@ -75,6 +74,7 @@ type HostConfig struct {
Users UsersConfig `json:"users,omitempty"`

// Keeps parameters necessary for configuring capacity limits
// Deprecated: This is no longer used for anything.
// +optional
CapacityThresholds CapacityThresholds `json:"capacityThresholds,omitempty"`

Expand Down Expand Up @@ -105,6 +105,7 @@ type AutomaticApprovalConfig struct {
}

// Contains default capacity threshold as well as specific ones for particular member clusters
// Deprecated: This is no longer used for anything
// +k8s:openapi-gen=true
type ResourceCapacityThreshold struct {
// It is the default capacity threshold (in percentage of usage) to be used for all member clusters if no special threshold is defined
Expand All @@ -118,14 +119,16 @@ type ResourceCapacityThreshold struct {
}

// CapacityThresholds allows to configure the capacity limits in the clusters
// Deprecated: This is no longer used for anything
// +k8s:openapi-gen=true
type CapacityThresholds struct {

// Contains capacity threshold configuration
// Deprecated: This is no longer used for anything.
// +optional
ResourceCapacityThreshold ResourceCapacityThreshold `json:"resourceCapacityThreshold,omitempty"`

// Contains a map of maximal number of spaces that can be provisioned per member cluster mapped by the cluster name
// Deprecated: This is no longer used for anything.
// +optional
// +mapType=atomic
MaxNumberOfSpacesPerMemberCluster map[string]int `json:"maxNumberOfSpacesPerMemberCluster,omitempty"`
Expand All @@ -134,7 +137,6 @@ type CapacityThresholds struct {
// DeactivationConfig contains all configuration parameters related to deactivation
// +k8s:openapi-gen=true
type DeactivationConfig struct {

// DeactivatingNotificationDays is the number of days after a pre-deactivating notification is sent that actual
// deactivation occurs. If this parameter is set to zero, then there will be no delay
// +optional
Expand Down Expand Up @@ -162,7 +164,6 @@ type DeactivationConfig struct {
// ToolchainSecret defines a reference to a secret, this type should be included inline in any structs that contain secrets eg. NotificationSecret
// +k8s:openapi-gen=true
type ToolchainSecret struct {

// Reference is the name of the secret resource to look up
// +optional
Ref *string `json:"ref,omitempty"`
Expand All @@ -171,7 +172,6 @@ type ToolchainSecret struct {
// MetricsConfig contains all configuration parameters related to metrics gathering
// +k8s:openapi-gen=true
type MetricsConfig struct {

// ForceSynchronization is a flag used to trigger synchronization of the metrics
// based on the resources rather than on the content of `ToolchainStatus.status.metrics`
// +optional
Expand All @@ -181,7 +181,6 @@ type MetricsConfig struct {
// NotificationsConfig contains all configuration parameters related to notifications
// +k8s:openapi-gen=true
type NotificationsConfig struct {

// NotificationDeliveryService is notification delivery service to use for notifications
// +optional
NotificationDeliveryService *string `json:"notificationDeliveryService,omitempty"`
Expand Down Expand Up @@ -230,7 +229,6 @@ type NotificationSecret struct {
// RegistrationServiceConfig contains all configuration parameters related to the registration service
// +k8s:openapi-gen=true
type RegistrationServiceConfig struct {

// Keeps parameters necessary for the registration service analytics config
// +optional
Analytics RegistrationServiceAnalyticsConfig `json:"analytics,omitempty"`
Expand Down Expand Up @@ -286,7 +284,6 @@ type DevSpaces struct {
// RegistrationServiceAuthConfig contains the subset of registration service configuration parameters related to authentication
// +k8s:openapi-gen=true
type RegistrationServiceAuthConfig struct {

// AuthClientLibraryURL specifies the auth library location
// +optional
AuthClientLibraryURL *string `json:"authClientLibraryURL,omitempty"`
Expand Down Expand Up @@ -315,7 +312,6 @@ type RegistrationServiceAuthConfig struct {
// RegistrationServiceVerificationConfig contains the subset of registration service configuration parameters related to verification
// +k8s:openapi-gen=true
type RegistrationServiceVerificationConfig struct {

// Defines all secrets related to the registration service verification configuration
// +optional
Secret RegistrationServiceVerificationSecret `json:"secret,omitempty"`
Expand Down Expand Up @@ -470,7 +466,6 @@ type CaptchaConfig struct {
// ToolchainStatusConfig contains all configuration parameters related to the toolchain status component
// +k8s:openapi-gen=true
type ToolchainStatusConfig struct {

// ToolchainStatusRefreshTime specifies how often the ToolchainStatus should load and refresh the current hosted-toolchain status
// +optional
ToolchainStatusRefreshTime *string `json:"toolchainStatusRefreshTime,omitempty"`
Expand All @@ -483,7 +478,6 @@ type ToolchainStatusConfig struct {
// TiersConfig contains all configuration parameters related to tiers
// +k8s:openapi-gen=true
type TiersConfig struct {

// DefaultUserTier specifies the default tier to assign for new users
// +optional
DefaultUserTier *string `json:"defaultUserTier,omitempty"`
Expand All @@ -505,7 +499,6 @@ type TiersConfig struct {
// UsersConfig contains all configuration parameters related to users
// +k8s:openapi-gen=true
type UsersConfig struct {

// MasterUserRecordUpdateFailureThreshold specifies the number of allowed failures before stopping attempts to update a MasterUserRecord
// +optional
MasterUserRecordUpdateFailureThreshold *int `json:"masterUserRecordUpdateFailureThreshold,omitempty"`
Expand All @@ -524,7 +517,6 @@ type UsersConfig struct {
// ToolchainConfigStatus defines the observed state of ToolchainConfig
// +k8s:openapi-gen=true
type ToolchainConfigStatus struct {

// SyncErrors is a map of sync errors indexed by toolchaincluster name that indicates whether
// an attempt to sync configuration to a member cluster failed
// +optional
Expand All @@ -544,7 +536,6 @@ type ToolchainConfigStatus struct {
// SpaceConfig allows to configure Space provisioning related functionality.
// +k8s:openapi-gen=true
type SpaceConfig struct {

// SpaceRequestEnabled specifies whether the SpaceRequest controller should start or not.
// This is specifically useful in order to enable/disable this functionality from configuration (e.g. disabled by default in Sandbox and enabled only for AppStudio stage/prod ...).
// +optional
Expand Down
10 changes: 5 additions & 5 deletions api/v1alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading