Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
{
"description": "ArtifactRegistryAttachment is the Schema for the ArtifactRegistryAttachment API",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "ArtifactRegistryAttachmentSpec defines the desired state of ArtifactRegistryAttachment",
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"description": "Optional. User annotations. These attributes can only be set and used by the user, and not by Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format and size limitations.",
"type": "object"
},
"attachmentNamespace": {
"description": "The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.",
"type": "string"
},
"files": {
"description": "Required. The files that belong to this attachment. If the file ID part contains slashes, they are escaped. E.g. `projects/p1/locations/us-central1/repositories/repo1/files/sha:<sha-of-file>`.",
"items": {
"type": "string"
},
"type": "array"
},
"location": {
"description": "The location of this resource.",
"type": "string"
},
"projectRef": {
"description": "The project that this resource belongs to.",
"oneOf": [
{
"not": {
"required": [
"external"
]
},
"required": [
"name"
]
},
{
"not": {
"anyOf": [
{
"required": [
"name"
]
},
{
"required": [
"namespace"
]
}
]
},
"required": [
"external"
]
}
],
"properties": {
"external": {
"description": "The `projectID` field of a project, when not managed by Config Connector.",
"type": "string"
},
"kind": {
"description": "The kind of the Project resource; optional but must be `Project` if provided.",
"type": "string"
},
"name": {
"description": "The `name` field of a `Project` resource.",
"type": "string"
},
"namespace": {
"description": "The `namespace` field of a `Project` resource.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"resourceID": {
"description": "The ArtifactRegistryAttachment name. If not given, the metadata.name will be used.",
"type": "string"
},
"target": {
"description": "Required. The target the attachment is for, can be a Version, Package or Repository. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.",
"type": "string"
},
"type": {
"description": "Type of attachment. E.g. `application/vnd.spdx+json`",
"type": "string"
}
},
"required": [
"files",
"location",
"projectRef",
"target"
],
"type": "object",
"additionalProperties": false
},
"status": {
"description": "ArtifactRegistryAttachmentStatus defines the config connector machine state of ArtifactRegistryAttachment",
"properties": {
"conditions": {
"description": "Conditions represent the latest available observations of the object's current state.",
"items": {
"properties": {
"lastTransitionTime": {
"description": "Last time the condition transitioned from one status to another.",
"type": "string"
},
"message": {
"description": "Human-readable message indicating details about last transition.",
"type": "string"
},
"reason": {
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
"type": "string"
},
"status": {
"description": "Status is the status of the condition. Can be True, False, Unknown.",
"type": "string"
},
"type": {
"description": "Type is the type of the condition.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"externalRef": {
"description": "A unique specifier for the ArtifactRegistryAttachment resource in GCP.",
"type": "string"
},
"observedGeneration": {
"description": "ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.",
"format": "int64",
"type": "integer"
},
"observedState": {
"description": "ObservedState is the state of the resource as most recently observed in GCP.",
"properties": {
"createTime": {
"description": "Output only. The time when the attachment was created.",
"type": "string"
},
"ociVersionName": {
"description": "Output only. The name of the OCI version that this attachment created. Only populated for Docker attachments. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.",
"type": "string"
},
"updateTime": {
"description": "Output only. The time when the attachment was last updated.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@
],
"properties": {
"external": {
"description": "A reference to an externally managed KMSCryptoKey. Should be in the format `projects/[kms_project_id]/locations/[region]/keyRings/[key_ring_id]/cryptoKeys/[key]`.",
"description": "A reference to an externally managed KMSCryptoKey resource. Should be in the format \"projects/{{projectID}}/locations/{{location}}/keyRings/{{keyring}}/cryptoKeys/{{cryptokey}}\".",
"type": "string"
},
"name": {
"description": "The `name` of a `KMSCryptoKey` resource.",
"description": "The name of a KMSCryptoKey resource.",
"type": "string"
},
"namespace": {
"description": "The `namespace` of a `KMSCryptoKey` resource.",
"description": "The namespace of a KMSCryptoKey resource.",
"type": "string"
}
},
Expand Down Expand Up @@ -191,6 +191,17 @@
"remoteRepositoryConfig": {
"description": "Configuration specific for a Remote Repository.",
"properties": {
"commonRepository": {
"description": "Common remote repository settings.",
"properties": {
"uri": {
"description": "Required. A common public repository base for remote repository.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"description": {
"description": "The description of the remote source.",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"description": "ArtifactRegistryRule is the Schema for the ArtifactRegistryRule API",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "ArtifactRegistryRuleSpec defines the desired state of ArtifactRegistryRule",
"properties": {
"action": {
"description": "The action this rule takes.",
"type": "string"
},
"condition": {
"description": "Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.",
"properties": {
"description": {
"description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
"type": "string"
},
"expression": {
"description": "Textual representation of an expression in Common Expression Language syntax.",
"type": "string"
},
"location": {
"description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.",
"type": "string"
},
"title": {
"description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"operation": {
"type": "string"
},
"packageID": {
"description": "The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.",
"type": "string"
},
"parentRef": {
"description": "The ArtifactRegistryRepository this ArtifactRegistryRule is created under.",
"oneOf": [
{
"not": {
"required": [
"external"
]
},
"required": [
"name"
]
},
{
"not": {
"anyOf": [
{
"required": [
"name"
]
},
{
"required": [
"namespace"
]
}
]
},
"required": [
"external"
]
}
],
"properties": {
"external": {
"description": "A reference to an externally managed ArtifactRegistryRepository resource. Should be in the format \"projects/{{projectID}}/locations/{{location}}/repositories/{{repositoryID}}\".",
"type": "string"
},
"name": {
"description": "The name of an ArtifactRegistryRepository resource.",
"type": "string"
},
"namespace": {
"description": "The namespace of an ArtifactRegistryRepository resource.",
"type": "string"
}
},
"type": "object",
"x-kubernetes-validations": [
{
"message": "parentRef is immutable",
"rule": "self == oldSelf"
}
],
"additionalProperties": false
},
"resourceID": {
"description": "The ArtifactRegistryRule name. If not given, the metadata.name will be used.",
"type": "string"
}
},
"required": [
"parentRef"
],
"type": "object",
"additionalProperties": false
},
"status": {
"description": "ArtifactRegistryRuleStatus defines the config connector machine state of ArtifactRegistryRule",
"properties": {
"conditions": {
"description": "Conditions represent the latest available observations of the object's current state.",
"items": {
"properties": {
"lastTransitionTime": {
"description": "Last time the condition transitioned from one status to another.",
"type": "string"
},
"message": {
"description": "Human-readable message indicating details about last transition.",
"type": "string"
},
"reason": {
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
"type": "string"
},
"status": {
"description": "Status is the status of the condition. Can be True, False, Unknown.",
"type": "string"
},
"type": {
"description": "Type is the type of the condition.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"externalRef": {
"description": "A unique specifier for the ArtifactRegistryRule resource in GCP.",
"type": "string"
},
"observedGeneration": {
"description": "ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.",
"format": "int64",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
"spec"
],
"type": "object"
}
Loading
Loading