You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently #233 added support for preserving comments.
However with v1.0.6 (017c4ae) I'm not seeing this behavior.
kustomization.yaml:
resources:
- service.yaml
base.yaml:
apiVersion: v1kind: Servicemetadata:
name: "<name-here>"labels:
app: "<label>"spec:
selector:
app: "<pod-label>"ports:
- protocol: TCPport: 80# port number the Service load balancer will accept traffictargetPort: 5000# port number defined on Pod's containerPort
patch/patch.yaml:
apiVersion: v1kind: Servicemetadata:
name: "<name-here>"spec:
loadBalancerIP: "TYPE.IP.ADDR.HERE"# static IP address reserved for this LB
@ahmetb I think you misunderstood the scope of that PR. In v1.0.6, preserving comments(not including the inline comment) and order is only for kustomization.yaml and it happens during kustomize edit. We'd also like Kustomize to preserve arbitrary comments, but couldn't support that at this moment. To do that, we need a yaml library being able to preserve all comments. So far we haven't found such library available.
Apparently #233 added support for preserving comments.
However with v1.0.6 (017c4ae) I'm not seeing this behavior.
kustomization.yaml:
base.yaml:
patch/patch.yaml:
patch/kustomization.yaml
kustomize build patch/
output (has no comments):The text was updated successfully, but these errors were encountered: