goharbor.io / v1beta1 / HarborServerConfiguration
- string
.apiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
- string
.kind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- object
.metadata
- object
.spec
HarborServerConfigurationSpec defines the desired state of HarborServerConfiguration.
- object required
.spec .accessCredential
AccessCredential is a namespaced credential to keep the access key and secret for the harbor server configuration.
- string required
.spec .accessCredential .accessSecretRef
- string required
.spec .accessCredential .namespace
- boolean
.spec .default
Default indicates the harbor configuration manages namespaces. Value in goharbor.io/harbor annotation will be considered with high priority. At most, one HarborServerConfiguration can be the default, multiple defaults will be rejected.
- boolean
.spec .insecure
Indicate if the Harbor server is an insecure registry
- object
.spec .namespaceSelector
NamespaceSelector decides whether to apply the HSC on a namespace based on whether the namespace matches the selector. See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. Default to the empty LabelSelector, which matches everything.
- array
.spec .namespaceSelector .matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
- string required
.spec .namespaceSelector .matchExpressions[] .key
key is the label key that the selector applies to.
- string required
.spec .namespaceSelector .matchExpressions[] .operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
- array
.spec .namespaceSelector .matchExpressions[] .values
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- object
.spec .namespaceSelector .matchLabels
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
- array
.spec .rules
Rules configures the container image rewrite rules for transparent proxy caching with Harbor.
- string required
.spec .serverURL
- string required
.spec .version
The version of the Harbor server
- object
.status
HarborConfigurationStatus defines the status of HarborServerConfiguration.
- string
.status .message
Message provides human-readable message.
- string
.status .reason
Reason represents status reason.
- string
.status .status
Status represents harbor configuration status.