Skip to content

Commit

Permalink
Reuse Namespace should be in experimental section
Browse files Browse the repository at this point in the history
(cherry picked from commit 27a9c95)
  • Loading branch information
cbron committed Feb 21, 2025
1 parent 75c2a9b commit cf73ab6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
8 changes: 4 additions & 4 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@
"globalMetadata": {
"$ref": "#/$defs/ControlPlaneGlobalMetadata",
"description": "GlobalMetadata is metadata that will be added to all resources deployed by Helm."
},
"reuseNamespace": {
"type": "boolean",
"description": "ReuseNamespace allows reusing the same namespace to create multiple vClusters.\nThis flag is deprecated, as this scenario will be removed entirely in upcoming releases."
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -1344,6 +1340,10 @@
"sleepMode": {
"$ref": "#/$defs/SleepMode",
"description": "SleepMode holds the native sleep mode configuration for Pro clusters"
},
"reuseNamespace": {
"type": "boolean",
"description": "ReuseNamespace allows reusing the same namespace to create multiple vClusters.\nThis flag is deprecated, as this scenario will be removed entirely in upcoming releases."
}
},
"additionalProperties": false,
Expand Down
7 changes: 4 additions & 3 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,6 @@ controlPlane:
# GlobalMetadata is metadata that will be added to all resources deployed by Helm.
globalMetadata:
annotations: {}
# ReuseNamespace allows reusing the same namespace to create multiple vClusters.
# This flag is deprecated, as this scenario will be removed entirely in upcoming releases.
reuseNamespace: false

# Integrations holds config for vCluster integrations with other operators or tools running on the host cluster
integrations:
Expand Down Expand Up @@ -1034,6 +1031,10 @@ experimental:
extraRules: []
role:
extraRules: []

# ReuseNamespace allows reusing the same namespace to create multiple vClusters.
# This flag is deprecated, as this scenario will be removed entirely in upcoming releases.
reuseNamespace: false

# Configuration related to telemetry gathered about vCluster usage.
telemetry:
Expand Down
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1464,10 +1464,6 @@ type ControlPlaneAdvanced struct {

// GlobalMetadata is metadata that will be added to all resources deployed by Helm.
GlobalMetadata ControlPlaneGlobalMetadata `json:"globalMetadata,omitempty"`

// ReuseNamespace allows reusing the same namespace to create multiple vClusters.
// This flag is deprecated, as this scenario will be removed entirely in upcoming releases.
ReuseNamespace bool `json:"reuseNamespace,omitempty"`
}

type ControlPlaneHeadlessService struct {
Expand Down Expand Up @@ -1974,6 +1970,10 @@ type Experimental struct {

// SleepMode holds the native sleep mode configuration for Pro clusters
SleepMode *SleepMode `json:"sleepMode,omitempty"`

// ReuseNamespace allows reusing the same namespace to create multiple vClusters.
// This flag is deprecated, as this scenario will be removed entirely in upcoming releases.
ReuseNamespace bool `json:"reuseNamespace,omitempty"`
}

func (e Experimental) JSONSchemaExtend(base *jsonschema.Schema) {
Expand Down
4 changes: 2 additions & 2 deletions config/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ controlPlane:
globalMetadata:
annotations: {}

reuseNamespace: false

integrations:
metricsServer:
enabled: false
Expand Down Expand Up @@ -574,5 +572,7 @@ experimental:
role:
extraRules: []

reuseNamespace: false

telemetry:
enabled: true

0 comments on commit cf73ab6

Please sign in to comment.