mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 19:29:13 +08:00
feat(ql3): close public local release pair
This commit is contained in:
@@ -14,7 +14,7 @@ const {
|
||||
const { inspectReleaseSet } = require('./ql3-release-set-contract.cjs');
|
||||
|
||||
const DEFAULT_ROOT = path.resolve(__dirname, '..');
|
||||
const LOCAL_SELECTION_SCHEMA = 'qinglong/local-compose-release-image@v2';
|
||||
const LOCAL_SELECTION_SCHEMA = 'qinglong/local-compose-release-image@v3';
|
||||
const KUBERNETES_LOCK_SCHEMA = 'qinglong/kubernetes-deployment-lock@v2';
|
||||
const MAX_RELEASE_SET_BYTES = 1024 * 1024;
|
||||
const MAX_MANIFEST_BYTES = 8 * 1024 * 1024;
|
||||
@@ -193,6 +193,7 @@ function createLocalSelection(releaseSet, options) {
|
||||
fail('allow-root-service must be an explicit boolean');
|
||||
}
|
||||
const local = imageByName(releaseSet, 'local');
|
||||
const operator = imageByName(releaseSet, 'local-operator');
|
||||
const unsigned = {
|
||||
schemaVersion: 1,
|
||||
schema: LOCAL_SELECTION_SCHEMA,
|
||||
@@ -205,6 +206,11 @@ function createLocalSelection(releaseSet, options) {
|
||||
image: local.reference,
|
||||
allowRootService: options.allowRootService,
|
||||
},
|
||||
operator: {
|
||||
kind: 'short-lived',
|
||||
image: operator.reference,
|
||||
network: 'none-by-default',
|
||||
},
|
||||
verification: {
|
||||
releaseSet: inspection.verification,
|
||||
sourceRecordsReplayed: inspection.sourceRecordsReplayed,
|
||||
@@ -233,6 +239,7 @@ function auditLocalSelection(actual, releaseSet, options) {
|
||||
catalogManifestDigest: actual.catalog.manifestDigest,
|
||||
immutableReference: actual.catalog.immutableReference,
|
||||
image: actual.service.image,
|
||||
operatorImage: actual.operator.image,
|
||||
networkAccess: false,
|
||||
deploymentMutation: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user