Skip to content

Commit 26ca3e5

Browse files
authored
Merge pull request #761 from Vincamine/wyllie-fix-ctl-registry-defalut-capibility
Enhance: mesheryctl registry grnerate with default capabilities
2 parents e144d4c + b5ae9e5 commit 26ca3e5

16 files changed

+623
-434
lines changed

generators/artifacthub/crossplane-types/CompositeResourceDefinition.json

Lines changed: 43 additions & 39 deletions
Large diffs are not rendered by default.

generators/artifacthub/crossplane-types/Composition.json

Lines changed: 43 additions & 39 deletions
Large diffs are not rendered by default.
Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
{
2-
"component": {
3-
"kind": "Configuration",
4-
"schema": "{\n \"description\": \"Configuration is the CRD type for a request to add a configuration to Crossplane.\",\n \"properties\": {\n \"spec\": {\n \"description\": \"ConfigurationSpec specifies details about a request to install a configuration to Crossplane.\",\n \"properties\": {\n \"package\": {\n \"description\": \"Package is the name of the package that is being requested.\",\n \"type\": \"string\"\n },\n \"packagePullPolicy\": {\n \"description\": \"PackagePullPolicy defines the pull policy for the package.\",\n \"type\": \"string\"\n },\n \"packagePullSecrets\": {\n \"description\": \"PackagePullSecrets are named secrets in the same namespace that can be used to fetch packages from private registries.\",\n \"items\": {\n \"description\": \"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.\",\n \"properties\": {\n \"name\": {\n \"description\": \"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n },\n \"type\": \"array\"\n },\n \"revisionActivationPolicy\": {\n \"description\": \"RevisionActivationPolicy specifies how the package controller should update from one revision to the next. Options are Automatic or Manual. Default is Automatic.\",\n \"type\": \"string\"\n },\n \"revisionHistoryLimit\": {\n \"description\": \"RevisionHistoryLimit dictates how the package controller cleans up old inactive package revisions. Defaults to 1. Can be disabled by explicitly setting to 0.\",\n \"format\": \"int64\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"package\"\n ],\n \"type\": \"object\"\n }\n },\n \"title\": \"Configuration\",\n \"type\": \"object\"\n}",
5-
"version": "pkg.crossplane.io/v1alpha1"
6-
},
7-
"configuration": null,
8-
"description": "",
2+
"id": "00000000-0000-0000-0000-000000000000",
3+
"schemaVersion": "components.meshery.io/v1beta1",
4+
"version": "",
95
"displayName": "Configuration",
6+
"description": "",
107
"format": "JSON",
8+
"model": {
119
"id": "00000000-0000-0000-0000-000000000000",
12-
"metadata": {
13-
"genealogy": "",
14-
"isAnnotation": false,
15-
"isNamespaced": false,
16-
"published": false
10+
"schemaVersion": "",
11+
"version": "",
12+
"name": "crossplane-types",
13+
"displayName": "crossplane-types",
14+
"status": "",
15+
"registrant": {
16+
"id": "00000000-0000-0000-0000-000000000000",
17+
"name": "",
18+
"type": "",
19+
"sub_type": "",
20+
"kind": "",
21+
"status": "",
22+
"created_at": "0001-01-01T00:00:00Z",
23+
"updated_at": "0001-01-01T00:00:00Z",
24+
"deleted_at": null,
25+
"schemaVersion": ""
1726
},
18-
"model": {
27+
"connection_id": "00000000-0000-0000-0000-000000000000",
1928
"category": {
29+
"id": "00000000-0000-0000-0000-000000000000",
2030
"name": ""
2131
},
22-
"displayName": "crossplane-types",
23-
"id": "00000000-0000-0000-0000-000000000000",
32+
"subCategory": "",
2433
"metadata": {
2534
"source_uri": "https://charts.crossplane.io/master/crossplane-types-0.13.0-rc.191.g3a18fb7.tgz",
2635
"svgColor": "",
@@ -29,31 +38,26 @@
2938
"model": {
3039
"version": ""
3140
},
32-
"name": "crossplane-types",
33-
"registrant": {
34-
"created_at": "0001-01-01T00:00:00Z",
35-
"credential_id": "00000000-0000-0000-0000-000000000000",
36-
"deleted_at": "0001-01-01T00:00:00Z",
37-
"id": "00000000-0000-0000-0000-000000000000",
38-
"kind": "",
39-
"name": "",
40-
"status": "",
41-
"sub_type": "",
42-
"type": "",
43-
"updated_at": "0001-01-01T00:00:00Z",
44-
"user_id": "00000000-0000-0000-0000-000000000000"
45-
},
46-
"connection_id": "00000000-0000-0000-0000-000000000000",
47-
"schemaVersion": "",
48-
"status": "",
49-
"version": "",
50-
"components": null,
51-
"relationships": null,
5241
"components_count": 0,
53-
"relationships_count": 0
42+
"relationships_count": 0,
43+
"components": null,
44+
"relationships": null
5445
},
55-
"schemaVersion": "components.meshery.io/v1beta1",
56-
"status": null,
5746
"styles": null,
58-
"version": ""
47+
"capabilities": null,
48+
"status": null,
49+
"metadata": {
50+
"configurationUISchema": "",
51+
"genealogy": "",
52+
"instanceDetails": null,
53+
"isAnnotation": false,
54+
"isNamespaced": false,
55+
"published": false
56+
},
57+
"configuration": null,
58+
"component": {
59+
"version": "pkg.crossplane.io/v1alpha1",
60+
"kind": "Configuration",
61+
"schema": "{\n \"description\": \"Configuration is the CRD type for a request to add a configuration to Crossplane.\",\n \"properties\": {\n \"spec\": {\n \"description\": \"ConfigurationSpec specifies details about a request to install a configuration to Crossplane.\",\n \"properties\": {\n \"package\": {\n \"description\": \"Package is the name of the package that is being requested.\",\n \"type\": \"string\"\n },\n \"packagePullPolicy\": {\n \"description\": \"PackagePullPolicy defines the pull policy for the package.\",\n \"type\": \"string\"\n },\n \"packagePullSecrets\": {\n \"description\": \"PackagePullSecrets are named secrets in the same namespace that can be used to fetch packages from private registries.\",\n \"items\": {\n \"description\": \"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.\",\n \"properties\": {\n \"name\": {\n \"description\": \"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n },\n \"type\": \"array\"\n },\n \"revisionActivationPolicy\": {\n \"description\": \"RevisionActivationPolicy specifies how the package controller should update from one revision to the next. Options are Automatic or Manual. Default is Automatic.\",\n \"type\": \"string\"\n },\n \"revisionHistoryLimit\": {\n \"description\": \"RevisionHistoryLimit dictates how the package controller cleans up old inactive package revisions. Defaults to 1. Can be disabled by explicitly setting to 0.\",\n \"format\": \"int64\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"package\"\n ],\n \"type\": \"object\"\n }\n },\n \"title\": \"Configuration\",\n \"type\": \"object\"\n}"
62+
}
5963
}
Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
{
2-
"component": {
3-
"kind": "ConfigurationRevision",
4-
"schema": "{\n \"description\": \"A ConfigurationRevision that has been added to Crossplane.\",\n \"properties\": {\n \"spec\": {\n \"description\": \"PackageRevisionSpec specifies the desired state of a PackageRevision.\",\n \"properties\": {\n \"desiredState\": {\n \"description\": \"DesiredState of the PackageRevision. Can be either Active or Inactive.\",\n \"type\": \"string\"\n },\n \"image\": {\n \"description\": \"Image used for install Pod to extract package contents.\",\n \"type\": \"string\"\n },\n \"installPodRef\": {\n \"description\": \"Reference to install Pod. PackageRevision reads logs of this Pod to create resources owned by the PackageRevision.\",\n \"properties\": {\n \"name\": {\n \"description\": \"Name of the referenced object.\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"name\"\n ],\n \"type\": \"object\"\n },\n \"revision\": {\n \"description\": \"Revision number. Indicates when the revision will be garbage collected based on the parent's RevisionHistoryLimit.\",\n \"format\": \"int64\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"desiredState\",\n \"image\",\n \"installPodRef\",\n \"revision\"\n ],\n \"type\": \"object\"\n }\n },\n \"title\": \"Configuration Revision\",\n \"type\": \"object\"\n}",
5-
"version": "pkg.crossplane.io/v1alpha1"
6-
},
7-
"configuration": null,
8-
"description": "",
2+
"id": "00000000-0000-0000-0000-000000000000",
3+
"schemaVersion": "components.meshery.io/v1beta1",
4+
"version": "",
95
"displayName": "Configuration Revision",
6+
"description": "",
107
"format": "JSON",
8+
"model": {
119
"id": "00000000-0000-0000-0000-000000000000",
12-
"metadata": {
13-
"genealogy": "",
14-
"isAnnotation": false,
15-
"isNamespaced": false,
16-
"published": false
10+
"schemaVersion": "",
11+
"version": "",
12+
"name": "crossplane-types",
13+
"displayName": "crossplane-types",
14+
"status": "",
15+
"registrant": {
16+
"id": "00000000-0000-0000-0000-000000000000",
17+
"name": "",
18+
"type": "",
19+
"sub_type": "",
20+
"kind": "",
21+
"status": "",
22+
"created_at": "0001-01-01T00:00:00Z",
23+
"updated_at": "0001-01-01T00:00:00Z",
24+
"deleted_at": null,
25+
"schemaVersion": ""
1726
},
18-
"model": {
27+
"connection_id": "00000000-0000-0000-0000-000000000000",
1928
"category": {
29+
"id": "00000000-0000-0000-0000-000000000000",
2030
"name": ""
2131
},
22-
"displayName": "crossplane-types",
23-
"id": "00000000-0000-0000-0000-000000000000",
32+
"subCategory": "",
2433
"metadata": {
2534
"source_uri": "https://charts.crossplane.io/master/crossplane-types-0.13.0-rc.191.g3a18fb7.tgz",
2635
"svgColor": "",
@@ -29,31 +38,26 @@
2938
"model": {
3039
"version": ""
3140
},
32-
"name": "crossplane-types",
33-
"registrant": {
34-
"created_at": "0001-01-01T00:00:00Z",
35-
"credential_id": "00000000-0000-0000-0000-000000000000",
36-
"deleted_at": "0001-01-01T00:00:00Z",
37-
"id": "00000000-0000-0000-0000-000000000000",
38-
"kind": "",
39-
"name": "",
40-
"status": "",
41-
"sub_type": "",
42-
"type": "",
43-
"updated_at": "0001-01-01T00:00:00Z",
44-
"user_id": "00000000-0000-0000-0000-000000000000"
45-
},
46-
"connection_id": "00000000-0000-0000-0000-000000000000",
47-
"schemaVersion": "",
48-
"status": "",
49-
"version": "",
50-
"components": null,
51-
"relationships": null,
5241
"components_count": 0,
53-
"relationships_count": 0
42+
"relationships_count": 0,
43+
"components": null,
44+
"relationships": null
5445
},
55-
"schemaVersion": "components.meshery.io/v1beta1",
56-
"status": null,
5746
"styles": null,
58-
"version": ""
47+
"capabilities": null,
48+
"status": null,
49+
"metadata": {
50+
"configurationUISchema": "",
51+
"genealogy": "",
52+
"instanceDetails": null,
53+
"isAnnotation": false,
54+
"isNamespaced": false,
55+
"published": false
56+
},
57+
"configuration": null,
58+
"component": {
59+
"version": "pkg.crossplane.io/v1alpha1",
60+
"kind": "ConfigurationRevision",
61+
"schema": "{\n \"description\": \"A ConfigurationRevision that has been added to Crossplane.\",\n \"properties\": {\n \"spec\": {\n \"description\": \"PackageRevisionSpec specifies the desired state of a PackageRevision.\",\n \"properties\": {\n \"desiredState\": {\n \"description\": \"DesiredState of the PackageRevision. Can be either Active or Inactive.\",\n \"type\": \"string\"\n },\n \"image\": {\n \"description\": \"Image used for install Pod to extract package contents.\",\n \"type\": \"string\"\n },\n \"installPodRef\": {\n \"description\": \"Reference to install Pod. PackageRevision reads logs of this Pod to create resources owned by the PackageRevision.\",\n \"properties\": {\n \"name\": {\n \"description\": \"Name of the referenced object.\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"name\"\n ],\n \"type\": \"object\"\n },\n \"revision\": {\n \"description\": \"Revision number. Indicates when the revision will be garbage collected based on the parent's RevisionHistoryLimit.\",\n \"format\": \"int64\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"desiredState\",\n \"image\",\n \"installPodRef\",\n \"revision\"\n ],\n \"type\": \"object\"\n }\n },\n \"title\": \"Configuration Revision\",\n \"type\": \"object\"\n}"
62+
}
5963
}

0 commit comments

Comments
 (0)