Skip to content

Commit

Permalink
fix: kpt force named "false" in schema (#9074)
Browse files Browse the repository at this point in the history
* fix: kpt force named "false" in schema

* docs: update schema for docs
  • Loading branch information
zevisert authored Oct 25, 2023
1 parent 8d20ed0 commit 6f12afe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docs-v2/content/en/schemas/v4beta8.json
Original file line number Diff line number Diff line change
Expand Up @@ -2982,12 +2982,6 @@
"description": "equivalent to the dir in `kpt live apply <dir>`. If not provided, skaffold deploys from the default hydrated path `<WORKDIR>/.kpt-pipeline`.",
"x-intellij-html-description": "equivalent to the dir in <code>kpt live apply &lt;dir&gt;</code>. If not provided, skaffold deploys from the default hydrated path <code>&lt;WORKDIR&gt;/.kpt-pipeline</code>."
},
"false": {
"type": "boolean",
"description": "used in `kpt live init`, which forces the inventory values to be updated, even if they are already set.",
"x-intellij-html-description": "used in <code>kpt live init</code>, which forces the inventory values to be updated, even if they are already set.",
"default": "false"
},
"flags": {
"items": {
"type": "string"
Expand All @@ -2997,6 +2991,12 @@
"x-intellij-html-description": "kpt global flags.",
"default": "[]"
},
"force": {
"type": "boolean",
"description": "used in `kpt live init`, which forces the inventory values to be updated, even if they are already set.",
"x-intellij-html-description": "used in <code>kpt live init</code>, which forces the inventory values to be updated, even if they are already set.",
"default": "false"
},
"inventoryID": {
"type": "string",
"description": "*alpha* inventory ID which annotates the resources being lively applied by kpt.",
Expand All @@ -3020,7 +3020,7 @@
"name",
"inventoryID",
"namespace",
"false",
"force",
"defaultNamespace"
],
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/schema/latest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ type KptDeploy struct {
InventoryNamespace string `yaml:"namespace,omitempty"`

// Force is used in `kpt live init`, which forces the inventory values to be updated, even if they are already set.
Force bool `yaml:"false,omitempty"`
Force bool `yaml:"force,omitempty"`

// LifecycleHooks describes a set of lifecycle hooks that are executed before and after every deploy.
LifecycleHooks DeployHooks `yaml:"-"`
Expand Down

0 comments on commit 6f12afe

Please sign in to comment.