blueprint-shared-facts 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  "package": "blueprint-shared-facts",
5
5
  "entry": "blueprint-shared",
6
6
  "describes": {
7
- "blueprint-shared-facts": "0.9.0"
7
+ "blueprint-shared-facts": "0.10.0"
8
8
  },
9
9
  "layer": "org",
10
10
  "facts": [
@@ -16708,7 +16708,7 @@
16708
16708
  "secrets"
16709
16709
  ],
16710
16710
  "title": "單元的 env 宣告格式",
16711
- "description": "單元在程式倉宣告需要哪些環境變數,只寫名稱與類別(`kind`)、是否必填(`required`)、預設值(`default`)和選填的說明(`description`,寫這個環境變數給程式做什麼),不寫值也不寫路徑,跟著單元發版。密鑰本身的用途寫在組態倉的密鑰清單,兩者不重複。",
16711
+ "description": "單元在程式倉宣告需要哪些環境變數,只寫名稱與類別(`kind`)、是否必填(`required`)、預設值(`default`)、值是否交給程式成檔案(選填的 `file`,預設 false)和選填的說明(`description`,寫這個環境變數給程式做什麼),不寫值也不寫路徑,跟著單元發版。密鑰本身的用途寫在組態倉的密鑰清單,兩者不重複。",
16712
16712
  "variants": [
16713
16713
  {
16714
16714
  "since": "0.6.0",
@@ -16803,6 +16803,60 @@
16803
16803
  }
16804
16804
  }
16805
16805
  }
16806
+ },
16807
+ {
16808
+ "since": "0.10.0",
16809
+ "content": {
16810
+ "schema": {
16811
+ "description": "The env declaration of a unit, kept in the code repository next to the unit and released with it. It names the variables the unit needs and their kind. It holds no value and no path.",
16812
+ "type": "object",
16813
+ "required": [
16814
+ "env"
16815
+ ],
16816
+ "additionalProperties": false,
16817
+ "properties": {
16818
+ "env": {
16819
+ "type": "object",
16820
+ "propertyNames": {
16821
+ "pattern": "^[A-Z][A-Z0-9_]*$"
16822
+ },
16823
+ "additionalProperties": {
16824
+ "type": "object",
16825
+ "required": [
16826
+ "kind"
16827
+ ],
16828
+ "additionalProperties": false,
16829
+ "properties": {
16830
+ "kind": {
16831
+ "enum": [
16832
+ "secret",
16833
+ "config"
16834
+ ],
16835
+ "description": "secret: the value comes from the secret service. config: the value comes from the template"
16836
+ },
16837
+ "required": {
16838
+ "type": "boolean",
16839
+ "description": "true: when the template gives no value the middleware returns an error that names the variable"
16840
+ },
16841
+ "default": {
16842
+ "type": "string",
16843
+ "description": "the value used when the template gives none"
16844
+ },
16845
+ "description": {
16846
+ "type": "string",
16847
+ "description": "optional: what the program does with this variable. The secret list says what the secret itself is for (blueprint-shared.secrets.secret-list-file), so the two do not repeat each other"
16848
+ },
16849
+ "file": {
16850
+ "type": "boolean",
16851
+ "default": false,
16852
+ "description": "optional: true means the value is handed to the program as a file. The value is returned in base64 when fetched, and the command tool decodes it into a temporary file"
16853
+ }
16854
+ }
16855
+ }
16856
+ }
16857
+ }
16858
+ }
16859
+ }
16806
16860
  }
16807
16861
  ],
16808
16862
  "source": {
@@ -16847,6 +16901,11 @@
16847
16901
  "description": {
16848
16902
  "type": "string",
16849
16903
  "description": "optional: what the program does with this variable. The secret list says what the secret itself is for (blueprint-shared.secrets.secret-list-file), so the two do not repeat each other"
16904
+ },
16905
+ "file": {
16906
+ "type": "boolean",
16907
+ "default": false,
16908
+ "description": "optional: true means the value is handed to the program as a file. The value is returned in base64 when fetched, and the command tool decodes it into a temporary file"
16850
16909
  }
16851
16910
  }
16852
16911
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blueprint-shared-facts",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Facts shared by several products, published on its own",
5
5
  "license": "MIT",
6
6
  "author": "Carlos Space",