Skip to content

Commit

Permalink
Update completion.yaml with newely introduced command
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsbhat committed Oct 13, 2024
1 parent 29833fd commit 5f950c4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
19 changes: 19 additions & 0 deletions completion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,28 @@ commands:
- no-color
- o
- output
- raw
- r
- registry
- skip
- u
- unique
- name: all
flags:
- configmap-image-regex
- default-namespace
- image-regex
- k
- kind
- l
- log-level
- no-color
- o
- output
- r
- registry
- skip
- skip-release
- u
- unique
- name: version
12 changes: 11 additions & 1 deletion example/chart/sample/templates/empty_manifest.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# Sample empty manifest
##;dkljed;lwej fljwe
{{/*apiVersion: v1*/}}
{{/*kind: ConfigMap*/}}
{{/*metadata:*/}}
{{/* name: sample-config-map*/}}
{{/* namespace: default*/}}
{{/*data:*/}}
{{/* prometheusImage: "ghcr.io/prometheus/prom:v2.0.0"*/}}
{{/* image: "ghcr.io/example/sample:v2.2.0"*/}}
{{/* enemies: "aliens"*/}}
{{/* lives: "3"*/}}
2 changes: 1 addition & 1 deletion pkg/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (name *Name) Get(dataMap string, log *logrus.Logger) (string, error) {
}

func (kin *Kind) Get(dataMap string, log *logrus.Logger) (string, error) {
if err := yaml.Unmarshal([]byte(dataMap), &kin); err != nil {
if err := yaml.Unmarshal([]byte(dataMap), kin); err != nil {
return "", err
}

Expand Down

0 comments on commit 5f950c4

Please sign in to comment.