Class V1NeonContainerRegistry.RegistrySpec
The container registry specification.
Namespace: Neon.Kube.Resources.Cluster
Assembly: Neon.Kube.Resources.dll
Syntax
public class V1NeonContainerRegistry.RegistrySpec
Properties
Blocked
Indicates that access to the registry is to be blocked. This defaults
to false
.
Declaration
public bool Blocked { get; set; }
Property Value
Type | Description |
---|---|
bool |
Insecure
Indicates that the registry may be accessed via HTTP. This defaults
to false
.
Declaration
public bool Insecure { get; set; }
Property Value
Type | Description |
---|---|
bool |
Location
Optionally enables registry redirection. When specified, this indicates that images
specified to be pulled from Prefix will actually be pulled from
Location instead. This is a nice way to be able to reuse manifests
and Helm charts such that they pull images from an alternate registry without
modification. This defaults to null
.
Declaration
[RegularExpression("^(\\*\\.)?([a-zA-Z0-9-_]+\\.)*([a-zA-Z0-9-_]+)(/[a-zA-Z0-9-\\._~\\[\\]@\\!&'\\(\\)\\*+,;%=\\$]+)*$")]
public string Location { get; set; }
Property Value
Type | Description |
---|---|
string |
Password
Optionally specifies the password to be used to authenticate against the upstream registry.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
string |
Prefix
The target registry's hostname and optional path. This is required.
note
The prefix may include a leading "*" wildcard character for subdomain matching.
Declaration
[Required]
[RegularExpression("^(\\*.)?^(\\*\\.)?([a-zA-Z0-9-_]+\\.)*([a-zA-Z0-9-_]+)(/[a-zA-Z0-9-\\._~\\[\\]@\\!&'\\(\\)\\*+,;%=\\$]+)*$")]
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
string |
SearchOrder
Optionally indicates that the registry will be searched for image pulls that don't specify a registry host/prefix. This is often used to specify Docker Hub docker.io as the default prefix since many tutotials and Helm charts assume this default due to the popularity of Docker.
Specify a non-negative number here to enable this. Registries will be added to the search list in ascending order by SearchOrder and when two registries have the same order value, in ascending order by Prefix (lowercase).
Declaration
public int SearchOrder { get; set; }
Property Value
Type | Description |
---|---|
int |
Username
Optionally specifies the username to be used to authenticate against the upstream registry.
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(RegistrySpec)
Declaration
public bool Equals(V1NeonContainerRegistry.RegistrySpec other)
Parameters
Type | Name | Description |
---|---|---|
V1NeonContainerRegistry.RegistrySpec | other |
Returns
Type | Description |
---|---|
bool |