Skip to content

Commit

Permalink
Add SPC API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
twhiteman committed Apr 9, 2024
1 parent 8a430bb commit a284969
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ update-spec: ## update all swagger spec files
@wget ${HARBOR_2.0_SPEC_URL} -O ${HARBOR_2.0_SPEC}

.PHONY: gen-harbor-api
gen-harbor-api: update-spec ## generate goswagger client for harbor
gen-harbor-api: ## generate goswagger client for harbor
@$(SWAGGER) generate client -f ${HARBOR_2.0_SPEC} --target=$(HARBOR_CLIENT_2.0_DIR) --template=stratoscale --additional-initialism=CVE --additional-initialism=GC --additional-initialism=OIDC

.PHONY: cleanup
Expand Down
8 changes: 8 additions & 0 deletions api/v2.0/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7165,6 +7165,14 @@ definitions:
type: string
description: 'Whether scan images automatically when pushing. The valid values are "true", "false".'
x-nullable: true
auto_scan_repository_filters:
type: string
description: 'Specifies the repository names that will be scanned when pushing. Uses comma-separated delemiter. Uses go filepath.Match() pattern matching. The default empty string "" will match all repositories.'
x-nullable: true
scan_all_repository_filters:
type: string
description: 'Specifies the repository names that scanned when a scan all operation is performed. Uses comma-separated delemiter. Uses go filepath.Match() pattern matching. The default empty string "" will match all repositories.'
x-nullable: true
reuse_sys_cve_allowlist:
type: string
description: 'Whether this project reuse the system level CVE allowlist as the allowlist of its own. The valid values are "true", "false".
Expand Down
6 changes: 6 additions & 0 deletions pkg/sdk/v2.0/models/project_metadata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a284969

Please sign in to comment.