Skip to content

Commit b82953b

Browse files
authored
Merge pull request #254 from replicatedhq/emosbaugh/ch33172/add-the-ability-to-specify-a-separate-docker
2 parents 6e8806c + 5c2457b commit b82953b

File tree

5 files changed

+72
-2
lines changed

5 files changed

+72
-2
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,3 +534,7 @@
534534

535535
0.19.1 2022-06-06
536536
* Upgraded junit-report-builder to 3.0.0.
537+
538+
0.19.2 2023-03-13
539+
* Added `container.user` a string
540+
* Added `container.readonly_rootfs` a boolean or string

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "replicated-lint",
33
"author": "Replicated, Inc.",
4-
"version": "0.19.1",
4+
"version": "0.19.2",
55
"engines": {
66
"node": ">=4.3.2"
77
},

projects/replicated-entitlements/docs-generated.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,53 @@ Entitlement Spec keys must be unique
4444

4545

4646

47-
*Generated at Mon Mar 09 2020 12:54:29 GMT-0700 (Pacific Daylight Time)*
47+
*Generated at Mon Mar 13 2023 23:21:27 GMT+0000 (Coordinated Universal Time)*
48+
49+
50+
## `spec-prop-unique-keys`
51+
52+
Entitlement Spec keys must be unique
53+
54+
55+
56+
57+
58+
#### Examples:
59+
60+
*Incorrect*: spec has duplicated key `my_field`
61+
62+
```yaml---
63+
- name: My Field
64+
type: string
65+
description: My cool field
66+
key: my_field
67+
- name: My Other Field
68+
type: number
69+
description: some other field
70+
key: my_field
71+
72+
```
73+
74+
75+
76+
*Correct*: Spec keys have unique names
77+
78+
```yaml---
79+
- name: My Field
80+
key: my_field
81+
description: My cool field
82+
type: string
83+
- name: My Other Field
84+
key: my_other_field
85+
description: some other field
86+
type: number
87+
88+
```
89+
90+
91+
92+
93+
94+
95+
*Generated at Mon Mar 13 2023 23:21:27 GMT+0000 (Coordinated Universal Time)*
4896

src/replicated.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ type Container struct {
616616
Links []string `yaml:"links,omitempty" json:"links,omitempty" validate:"omitempty"`
617617
IPv4Address string `yaml:"ipv4_address,omitempty" json:"ipv4_address,omitempty" validate:"omitempty"`
618618
IPv6Address string `yaml:"ipv6_address,omitempty" json:"ipv6_address,omitempty" validate:"omitempty"`
619+
User string `yaml:"user,omitempty" json:"user,omitempty" validate:"omitempty"`
620+
ReadonlyRootfs BoolString `yaml:"readonly_rootfs,omitempty" json:"readonly_rootfs,omitempty" validate:"omitempty,bool"`
619621
}
620622
type ContainerRestartPolicy struct {
621623
Policy string `yaml:"policy" json:"policy"`
@@ -873,6 +875,16 @@ export interface Container {
873875
*
874876
*/
875877
ipv6_address?: string;
878+
879+
/**
880+
*
881+
*/
882+
user?: string;
883+
884+
/**
885+
*
886+
*/
887+
readonly_rootfs?: BoolString;
876888
}
877889

878890
export interface ContainerRestartPolicy {

src/schemas/parsed.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,12 @@ export const schema: JSONSchema4 = {
703703
"ipv6_address": {
704704
"type": "string",
705705
},
706+
"user": {
707+
"type": "string",
708+
},
709+
"readonly_rootfs": {
710+
"type": ["string", "boolean"],
711+
},
706712
"support_commands": {
707713
"type": "array",
708714
"items": {

0 commit comments

Comments
 (0)