Skip to content

Commit 3e18953

Browse files
authored
Merge pull request #272 from CybercentreCanada/integration/harbor_dev
add registry_type to DockerConfig* (dev)
2 parents 5132077 + 47ee11c commit 3e18953

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

assemblyline/odm/models/service.py

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class DockerConfig(odm.Model):
2222
image: str = odm.Keyword() # Complete name of the Docker image with tag, may include registry
2323
registry_username = odm.Optional(odm.Keyword()) # The username to use when pulling the image
2424
registry_password = odm.Optional(odm.Keyword()) # The password or token to use when pulling the image
25+
registry_type = odm.Enum(values=["docker", "harbor"], default='docker') # The type of registry (Docker, Harbor)
2526
ports: List[str] = odm.List(odm.Keyword(), default=[])
2627
ram_mb: int = odm.Integer(default=512)
2728
ram_mb_min: int = odm.Integer(default=128)

assemblyline/odm/models/service_delta.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class DockerConfigDelta(odm.Model):
1616
image = odm.Optional(odm.Keyword()) # The docker image and tag, optionally including registry in the normal way
1717
registry_username = odm.Optional(odm.Keyword()) # The username to use when pulling the image
1818
registry_password = odm.Optional(odm.Keyword()) # The password or token to use when pulling the image
19+
registry_type = odm.Enum(values=["docker", "harbor"], default='docker') # The type of registry (Docker, Harbor)
1920
ports = odm.Optional(odm.List(odm.Keyword()))
2021
ram_mb = odm.Optional(odm.Integer())
2122
ram_mb_min = odm.Optional(odm.Integer())

0 commit comments

Comments
 (0)