Debian Codegraph @

cmd/config/docs/commands/delete-setter.md

raw symbols SCIP
1 ## delete-setter
2
3 [Alpha] Delete a custom setter for a Resource field
4
5 ### Synopsis
6
7 Delete a custom setter for a Resource field.
8
9 DIR
10
11 A directory containing Resource configuration.
12
13 NAME
14
15 The name of the setter to create.
16
17 ### Deleting a Custom Setter
18
19 **Given the YAML:**
20
21 # resource.yaml
22 apiVersion: v1
23 kind: Service
24 metadata:
25 ...
26 spec:
27 ...
28 ports:
29 ...
30 - name: http
31 port: 8080 # {"type":"integer","x-kustomize":{"partialFieldSetters":[{"name":"http-port","value":"8080"}]}}
32 ...
33
34 **Delete setter:**
35
36 # delete a setter for ports
37 $ kustomize cfg set create DIR/ http-port
38
39 comment will be removed for this field is not settable any more.
40
41 **Newly modified YAML:**
42
43 # resource.yaml
44 apiVersion: v1
45 kind: Service
46 metadata:
47 ...
48 spec:
49 ...
50 ports:
51 ...
52 - name: http
53 port: 8080
54 ...
55
56
57 ### Deleting a setter used in substitution
58
59 If the setter is also used in substitution, it will ask you to delete the substitution first.
60
61
62 ### Examples
63
64 # delete a setter for port
65 kustomize cfg create-setter DIR/ port