Merge pull request #2474 from vikstrous/disable-v1-master

disable schema1 by default, add a config flag to enable it
This commit is contained in:
Derek McGowan 2018-08-24 10:58:39 -07:00 committed by GitHub
commit ef859e1b21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 103 additions and 14 deletions

View file

@ -194,6 +194,8 @@ type Configuration struct {
// TrustKey is the signing key to use for adding the signature to
// schema1 manifests.
TrustKey string `yaml:"signingkeyfile,omitempty"`
// Enabled determines if schema1 manifests should be pullable
Enabled bool `yaml:"enabled,omitempty"`
} `yaml:"schema1,omitempty"`
} `yaml:"compatibility,omitempty"`