Skip to content

Conversation

Liujingfang1
Copy link
Contributor

No description provided.

@Liujingfang1 Liujingfang1 requested review from droot and mengqiy October 22, 2018 21:57
Copy link
Contributor

@droot droot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

@@ -42,3 +42,6 @@ go get sigs.k8s.io/kustomize
* [remote target](remoteBuild.md) - Building a kustomization from a github URL

* [json patch](jsonpatch.md) - Apply a json patch in a kustomization

* [transformer configs](transfomerconfigs/README.md) - Customize transformer configurations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo on in the name of dir transfomerconfigs --> transformerconfigs (r missing)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, just fixed it.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Liujingfang1

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 22, 2018
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 22, 2018
Copy link
Member

@mengqiy mengqiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


commonLabels:
- path: spec/selectors
create: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. It is called create in yaml.
I guess you probably have document explaining what this field means.
Otherwise, it may be confusing for the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add this explanation in examples/transformerconfigs/README.md

@Liujingfang1
Copy link
Contributor Author

Added the fieldspec explanation and examples for different transformer configs. PTAL

```

## name reference transformer
Name reference transformer's configuration is different from all other tansformers. It contains a list of namebackreferences with following format.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/tansformers/transformers

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what does namebackreferences means :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It replaced the previous namereference pathconfig.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added more explanation of namebackreference. See if it makes sense.

path: spec/template/spec/volumes/configMap/name
(etc.)
```
Name reference transformer configuration contains a list of such namebackreferences for ConfigMap, Secret, Service, Role, ServiceAccount and so on.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

## name reference transformer
Name reference transformer's configuration is different from all other tansformers. It contains a list of namebackreferences with following format.
```
kind: ConfigMap
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can remove those unnecessary whitespaces.

```
cat > ~/.kustomize/config/mykind.yaml << EOF

commonLabels:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commonLabels transformer config is not demonstrated in the example below. I guess you need to add a commonLabels config in the example kustomization.yaml? Not sure if this is intentional or not but I was expecting to see something happen to the output based on this transformer when I was running through the tutorial.

(same with the varReference transformer config below).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. Let me add those fields in the demo.

@Liujingfang1 Liujingfang1 force-pushed the doc branch 2 times, most recently from 951a1f8 to 70be125 Compare October 24, 2018 18:48
Copy link
Member

@mengqiy mengqiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 24, 2018
@k8s-ci-robot k8s-ci-robot merged commit ec86b30 into kubernetes-sigs:master Oct 24, 2018
This was referenced Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants