Skip to content

Commit

Permalink
fix(version) Explicite that the operator does not support old versions
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Péronnet <pierre.peronnet@corp.ovh.com>
  • Loading branch information
holyhope committed Feb 11, 2020
1 parent 1df6798 commit 9a211eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 66 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ cd harbor-operator
make deploy
```

## Compatibility

This Operator currently only support Harbor version > 1.10.

## Howto's

## Configuration
Expand Down
67 changes: 1 addition & 66 deletions api/v1alpha1/harbor_version_compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,72 +42,7 @@ func GetImages(version string) (*Images, error) {
return images.(*Images), nil
}

func RegisterDefaultVersion() { // nolint:funlen
_ = RegisterVersion("1.9.0", &Images{
Core: "goharbor/harbor-core:v1.9.0",
Registry: "goharbor/registry-photon:v2.7.1-patch-2819-v1.9.0",
RegistryCtl: "goharbor/harbor-registryctl:v1.9.0",
Portal: "goharbor/harbor-portal:v1.9.0",
JobService: "goharbor/harbor-jobservice:v1.9.0",
ChartMuseum: "goharbor/chartmuseum-photon:v0.9.0-v1.9.0",
Clair: "goharbor/clair-photon:v2.0.9-v1.9.0",
ClairAdapter: "holyhope/clair-adapter-with-config:v1.10.0", // Use "goharbor/clair-adapter-photon:v1.0.1-v1.10.0" when possible
NotarySigner: "goharbor/notary-signer-photon:v0.6.1-v1.9.0",
NotaryServer: "goharbor/notary-server-photon:v0.6.1-v1.9.0",
NotaryDBMigrator: "jmonsinjon/notary-db-migrator:v0.6.1",
})
_ = RegisterVersion("1.9.1", &Images{
Core: "goharbor/harbor-core:v1.9.1",
Registry: "goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.9.1",
RegistryCtl: "goharbor/harbor-registryctl:v1.9.1",
Portal: "goharbor/harbor-portal:v1.9.1",
JobService: "goharbor/harbor-jobservice:v1.9.1",
ChartMuseum: "goharbor/chartmuseum-photon:v0.9.0-v1.9.1",
Clair: "goharbor/clair-photon:v2.0.9-v1.9.1",
ClairAdapter: "holyhope/clair-adapter-with-config:v1.10.0", // Use "goharbor/clair-adapter-photon:v1.0.1-v1.10.0" when possible
NotarySigner: "goharbor/notary-signer-photon:v0.6.1-v1.9.1",
NotaryServer: "goharbor/notary-server-photon:v0.6.1-v1.9.1",
NotaryDBMigrator: "jmonsinjon/notary-db-migrator:v0.6.1",
})
_ = RegisterVersion("1.9.2", &Images{
Core: "goharbor/harbor-core:v1.9.2",
Registry: "goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.9.2",
RegistryCtl: "goharbor/harbor-registryctl:v1.9.2",
Portal: "goharbor/harbor-portal:v1.9.2",
JobService: "goharbor/harbor-jobservice:v1.9.2",
ChartMuseum: "goharbor/chartmuseum-photon:v0.9.0-v1.9.2",
Clair: "goharbor/clair-photon:v2.0.9-v1.9.2",
ClairAdapter: "holyhope/clair-adapter-with-config:v1.10.0", // Use "goharbor/clair-adapter-photon:v1.0.1-v1.10.0" when possible
NotarySigner: "goharbor/notary-signer-photon:v0.6.1-v1.9.2",
NotaryServer: "goharbor/notary-server-photon:v0.6.1-v1.9.2",
NotaryDBMigrator: "jmonsinjon/notary-db-migrator:v0.6.1",
})
_ = RegisterVersion("1.9.3", &Images{
Core: "goharbor/harbor-core:v1.9.3",
Registry: "goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.9.3",
RegistryCtl: "goharbor/harbor-registryctl:v1.9.3",
Portal: "goharbor/harbor-portal:v1.9.3",
JobService: "goharbor/harbor-jobservice:v1.9.3",
ChartMuseum: "goharbor/chartmuseum-photon:v0.9.0-v1.9.3",
Clair: "goharbor/clair-photon:v2.1.0-v1.9.3",
ClairAdapter: "holyhope/clair-adapter-with-config:v1.10.0", // Use "goharbor/clair-adapter-photon:v1.0.1-v1.10.0" when possible
NotarySigner: "goharbor/notary-signer-photon:v0.6.1-v1.9.3",
NotaryServer: "goharbor/notary-server-photon:v0.6.1-v1.9.3",
NotaryDBMigrator: "jmonsinjon/notary-db-migrator:v0.6.1",
})
_ = RegisterVersion("1.9.4", &Images{
Core: "goharbor/harbor-core:v1.9.4",
Registry: "goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.9.4",
RegistryCtl: "goharbor/harbor-registryctl:v1.9.4",
Portal: "goharbor/harbor-portal:v1.9.4",
JobService: "goharbor/harbor-jobservice:v1.9.4",
ChartMuseum: "goharbor/chartmuseum-photon:v0.9.0-v1.9.4",
Clair: "goharbor/clair-photon:v2.1.0-v1.9.4",
ClairAdapter: "holyhope/clair-adapter-with-config:v1.10.0", // Use "goharbor/clair-adapter-photon:v1.0.1-v1.10.0" when possible
NotarySigner: "goharbor/notary-signer-photon:v0.6.1-v1.9.4",
NotaryServer: "goharbor/notary-server-photon:v0.6.1-v1.9.4",
NotaryDBMigrator: "jmonsinjon/notary-db-migrator:v0.6.1",
})
func RegisterDefaultVersion() {
_ = RegisterVersion("1.10.0", &Images{
Core: "goharbor/harbor-core:v1.10.0",
Registry: "goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.10.0",
Expand Down

0 comments on commit 9a211eb

Please sign in to comment.