Skip to content

Commit

Permalink
fix(crd) remove useless EncryptionKeyRef
Browse files Browse the repository at this point in the history
Signed-off-by: Ziming Zhang <zziming@vmware.com>
  • Loading branch information
bitsf committed Apr 28, 2021
1 parent e5e4d2f commit 6a67475
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 51 deletions.
5 changes: 0 additions & 5 deletions apis/goharbor.io/v1alpha3/harbor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ type HarborSpec struct {
// +kubebuilder:validation:Pattern="[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*"
HarborAdminPasswordRef string `json:"harborAdminPasswordRef"`

// +kubebuilder:validation:Required
// +kubebuilder:validation:Pattern="[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*"
// The secret key used for encryption.
EncryptionKeyRef string `json:"encryptionKeyRef"`

// +kubebuilder:validation:Optional
// +kubebuilder:default="RollingUpdate"
UpdateStrategyType appsv1.DeploymentStrategyType `json:"updateStrategyType,omitempty"`
Expand Down
3 changes: 0 additions & 3 deletions config/kustomizeconfig/harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ nameReference:
- kind: Harbor
group: goharbor.io
path: spec/database/passwordRef
- kind: Harbor
group: goharbor.io
path: spec/encryptionKeyRef
- kind: Harbor
group: goharbor.io
path: spec/expose/core/tls/certificateRef
Expand Down
3 changes: 0 additions & 3 deletions config/kustomizeconfig/harborcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ nameReference:
- kind: HarborCluster
group: goharbor.io
path: spec/database/passwordRef
- kind: HarborCluster
group: goharbor.io
path: spec/encryptionKeyRef
- kind: HarborCluster
group: goharbor.io
path: spec/expose/core/tls/certificateRef
Expand Down
1 change: 0 additions & 1 deletion config/samples/harbor/goharbor_v1alpha3_harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
host: core.harbor.domain
tls:
certificateRef: sample-public-certificate
encryptionKeyRef: core-database-encryption
internalTLS:
enabled: true
portal: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ spec:
host: notary.harbor.domain
tls:
certificateRef: sample-public-certificate
encryptionKeyRef: core-database-encryption
internalTLS:
enabled: true
portal: {}
Expand Down
1 change: 0 additions & 1 deletion controllers/goharbor/harbor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ func setupValidHarbor(ctx context.Context, ns string) (Resource, client.ObjectKe
Spec: goharborv1.HarborSpec{
ExternalURL: publicURL.String(),
HarborAdminPasswordRef: adminSecretName,
EncryptionKeyRef: "encryption-key",
Version: harborversion.Default(),
ImageChartStorage: &goharborv1.HarborStorageImageChartStorageSpec{
FileSystem: &goharborv1.HarborStorageImageChartStorageFileSystemSpec{
Expand Down
11 changes: 0 additions & 11 deletions docs/CRD/custom-resource-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,6 @@ spec:
# ... Skipped fields
```

`encryptionKeyRef`(required): the secret key used for encryption.

```yaml
spec:
# ... Skipped fields

encryptionKeyRef: "myEncryption" # Required

# ... Skipped fields
```

`updateStrategyType`(optional): the update strategy.

```yaml
Expand Down
1 change: 0 additions & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ spec:
host: notary.10.10.10.100.xip.io
tls:
certificateRef: sample-public-certificate
encryptionKeyRef: core-database-encryption
internalTLS:
enabled: true
portal: {}
Expand Down
10 changes: 0 additions & 10 deletions manifests/cluster/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2496,10 +2496,6 @@ spec:
required:
- hosts
type: object
encryptionKeyRef:
description: The secret key used for encryption.
pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'
type: string
exporter:
properties:
cache:
Expand Down Expand Up @@ -4021,7 +4017,6 @@ spec:
description: The version of the harbor, eg 2.1.2
type: string
required:
- encryptionKeyRef
- expose
- externalURL
- harborAdminPasswordRef
Expand Down Expand Up @@ -4408,10 +4403,6 @@ spec:
required:
- hosts
type: object
encryptionKeyRef:
description: The secret key used for encryption.
pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'
type: string
exporter:
properties:
cache:
Expand Down Expand Up @@ -5522,7 +5513,6 @@ spec:
description: The version of the harbor, eg 2.1.2
type: string
required:
- encryptionKeyRef
- expose
- externalURL
- harborAdminPasswordRef
Expand Down
10 changes: 0 additions & 10 deletions manifests/harbor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2496,10 +2496,6 @@ spec:
required:
- hosts
type: object
encryptionKeyRef:
description: The secret key used for encryption.
pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'
type: string
exporter:
properties:
cache:
Expand Down Expand Up @@ -4021,7 +4017,6 @@ spec:
description: The version of the harbor, eg 2.1.2
type: string
required:
- encryptionKeyRef
- expose
- externalURL
- harborAdminPasswordRef
Expand Down Expand Up @@ -4408,10 +4403,6 @@ spec:
required:
- hosts
type: object
encryptionKeyRef:
description: The secret key used for encryption.
pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'
type: string
exporter:
properties:
cache:
Expand Down Expand Up @@ -5522,7 +5513,6 @@ spec:
description: The version of the harbor, eg 2.1.2
type: string
required:
- encryptionKeyRef
- expose
- externalURL
- harborAdminPasswordRef
Expand Down
1 change: 0 additions & 1 deletion manifests/samples/harbor_core_fs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ spec:
host: core.harbor.domain
tls:
certificateRef: sample-public-certificate
encryptionKeyRef: core-database-encryption
internalTLS:
enabled: true
portal: {}
Expand Down
1 change: 0 additions & 1 deletion manifests/samples/harbor_core_minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ spec:
host: core.harbor.domain
tls:
certificateRef: sample-public-certificate
encryptionKeyRef: core-database-encryption
internalTLS:
enabled: true
portal: {}
Expand Down
1 change: 0 additions & 1 deletion manifests/samples/harbor_full_fs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ spec:
claimName: sample-harbor-trivy-reports
cachePersistentVolume:
claimName: sample-harbor-trivy-cache
encryptionKeyRef: core-database-encryption
internalTLS:
enabled: true
portal: {}
Expand Down
1 change: 0 additions & 1 deletion manifests/samples/harbor_full_minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ spec:
host: notary.harbor.domain
tls:
certificateRef: sample-public-certificate
encryptionKeyRef: core-database-encryption
internalTLS:
enabled: true
portal: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ spec:
passwordRef: harbor-database-password
sslMode: disable
username: postgres
encryptionKeyRef: core-database-encryption-dddh7f9gfg
expose:
core:
ingress:
Expand Down

0 comments on commit 6a67475

Please sign in to comment.