Class ClusterResetOptions
Specifies options for resetting an existing cluster.
Namespace: Neon.Kube.Proxy
Assembly: Neon.Kube.dll
Syntax
public class ClusterResetOptions
Constructors
ClusterResetOptions()
Default constructor.
Declaration
public ClusterResetOptions()
Properties
KeepNamespaces
Specifies namespaces to be excluded from those being removed during the reset operation. Normally, all namespaces beside the internal NEONKUBE namespaces will be removed with the default being recreated as empty thereafter.
note
Pass a namespace as "*" to retain all non-standard namespaces.
This defaults to an empty list.
Declaration
[JsonProperty(PropertyName = "KeepNamespaces", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<string> KeepNamespaces { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
ResetAuth
Resets Dex/Glauth by removing any non-factory deployed users and other configuration.
This defaults to true
.
Declaration
[JsonProperty(PropertyName = "ResetAuth", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool ResetAuth { get; set; }
Property Value
Type | Description |
---|---|
bool |
ResetCrio
Resets the CRI-O runtime on each cluster node by removing any non-factory deployed container images. This also resets the container registry custom resources to match the original cluster definition. These configure how the CRI-O container runtime on all cluster nodes reference external container registries such as DockerHub, GitHub, Quay, etc. as well as private registries.
This defaults to true
.
Declaration
[JsonProperty(PropertyName = "ResetCrio", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool ResetCrio { get; set; }
Property Value
Type | Description |
---|---|
bool |
ResetHarbor
Enable resetting the Harbor to its original configuration.
This defaults to true
.
Declaration
[JsonProperty(PropertyName = "ResetHarbor", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool ResetHarbor { get; set; }
Property Value
Type | Description |
---|---|
bool |
ResetMinio
Resets Minio by removing any custom buckets. Note that existing buckets holding Harbor, Loki, or Mirmir information will remain unchanged when this is enabled. The ResetHarbor, ResetMonitoring, options control clearing of the related Minio data when enabled.
This defaults to true
.
Declaration
[JsonProperty(PropertyName = "ResetMinio", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool ResetMinio { get; set; }
Property Value
Type | Description |
---|---|
bool |
ResetMonitoring
Resets monitoring by clearing any recorded logs and metrics and restoring any Grafana dashboards and alerts to the factory defaults.
This defaults to true
.
Declaration
[JsonProperty(PropertyName = "ResetMonitoring", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public bool ResetMonitoring { get; set; }
Property Value
Type | Description |
---|---|
bool |
StabilizeSeconds
Specifies the number of seconds to wait for the cluster to stabilize after performing the reset. This defaults to 30 seconds.
Declaration
[JsonProperty(PropertyName = "StabilizeSeconds", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public int StabilizeSeconds { get; set; }
Property Value
Type | Description |
---|---|
int |