Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitute federation_domain_map parameter with its value in node bootstrap scripts. #28132

Conversation

madhusudancs
Copy link
Contributor

@madhusudancs madhusudancs commented Jun 27, 2016

This PR also removes the substitution code we added to the build scripts.

Release Note

If you use one of the kube-dns replication controller manifest in `cluster/saltbase/salt/kube-dns`, i.e. `cluster/saltbase/salt/kube-dns/{skydns-rc.yaml.base,skydns-rc.yaml.in}`, either substitute one of `__PILLAR__FEDERATIONS__DOMAIN__MAP__` or `{{ pillar['federations_domain_map'] }}` with the corresponding federation name to domain name value or remove them if you do not support cluster federation at this time. If you plan to substitute the parameter with its value, here is an example for `{{ pillar['federations_domain_map'] }`
pillar['federations_domain_map'] = "- --federations=myfederation=federation.test"
where `myfederation` is the name of the federation and `federation.test` is the domain name registered for the federation.

cc @erictune @kubernetes/sig-cluster-federation @MikeSpreitzer @luxas

Analytics

@madhusudancs madhusudancs added cherrypick-candidate release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. labels Jun 27, 2016
@madhusudancs madhusudancs added this to the v1.3 milestone Jun 27, 2016
…tstrap scripts.

This also removes the substitution code we added to the build
scripts in one of the previous commits.
@madhusudancs madhusudancs force-pushed the fed-kubedns-flags-nodebootstrap branch from b00f231 to 816c4d9 Compare June 27, 2016 21:55
@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 27, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 27, 2016

GCE e2e build/test passed for commit 816c4d9.

@erictune erictune added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jun 29, 2016
@matchstick matchstick added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Jun 29, 2016
@madhusudancs
Copy link
Contributor Author

We broke a bunch of scripts in PR #28040 and that PR is already in the release-1.3 branch. If we ship release-1.3 without this change, we are going to ship with a number of broken cluster bootstrap scripts (see issue #28073). This PR fixes the scripts. So this is a P0.

@MikeSpreitzer
Copy link
Member

MikeSpreitzer commented Jun 29, 2016

@madhusudancs was there a typo? As far as I can tell, #28040 did not break a bunch of scripts.

@girishkalele
Copy link

LGTM to me - the build/common.sh change is reverted and the fixed skydns-rc.yaml templates are already committed.

@luxas
Copy link
Member

luxas commented Jun 29, 2016

Looks good to me, but I haven't tested it

@madhusudancs
Copy link
Contributor Author

@MikeSpreitzer yes sorry, it was a typo. I meant PR #27986 where I meant #28040.

@ghost ghost added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 29, 2016
@ghost
Copy link

ghost commented Jun 29, 2016

@madhusudancs As discussed in person, please open a separate issue to get rid of the cargo-culting code style that you had to follow along with here for consistency. For this change, LGTM.

@k8s-bot
Copy link

k8s-bot commented Jun 29, 2016

GCE e2e build/test passed for commit 816c4d9.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 3a6494e into kubernetes:master Jun 29, 2016
@eparis eparis mentioned this pull request Jun 30, 2016
peebs pushed a commit to peebs/kubernetes that referenced this pull request Jun 30, 2016
…gs-nodebootstrap

Automatic merge from submit-queue

Substitute federation_domain_map parameter with its value in node bootstrap scripts.

This PR also removes the substitution code we added to the build scripts.

**Release Note**

```release-note
If you use one of the kube-dns replication controller manifest in `cluster/saltbase/salt/kube-dns`, i.e. `cluster/saltbase/salt/kube-dns/{skydns-rc.yaml.base,skydns-rc.yaml.in}`, either substitute one of `__PILLAR__FEDERATIONS__DOMAIN__MAP__` or `{{ pillar['federations_domain_map'] }}` with the corresponding federation name to domain name value or remove them if you do not support cluster federation at this time. If you plan to substitute the parameter with its value, here is an example for `{{ pillar['federations_domain_map'] }`
pillar['federations_domain_map'] = "- --federations=myfederation=federation.test"
where `myfederation` is the name of the federation and `federation.test` is the domain name registered for the federation.
```

cc @erictune  @kubernetes/sig-cluster-federation @MikeSpreitzer @luxas

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

(cherry picked from commit 3a6494e)
david-mcmahon pushed a commit to david-mcmahon/kubernetes that referenced this pull request Jun 30, 2016
…gs-nodebootstrap

Automatic merge from submit-queue

Substitute federation_domain_map parameter with its value in node bootstrap scripts.

This PR also removes the substitution code we added to the build scripts.

**Release Note**

```release-note
If you use one of the kube-dns replication controller manifest in `cluster/saltbase/salt/kube-dns`, i.e. `cluster/saltbase/salt/kube-dns/{skydns-rc.yaml.base,skydns-rc.yaml.in}`, either substitute one of `__PILLAR__FEDERATIONS__DOMAIN__MAP__` or `{{ pillar['federations_domain_map'] }}` with the corresponding federation name to domain name value or remove them if you do not support cluster federation at this time. If you plan to substitute the parameter with its value, here is an example for `{{ pillar['federations_domain_map'] }`
pillar['federations_domain_map'] = "- --federations=myfederation=federation.test"
where `myfederation` is the name of the federation and `federation.test` is the domain name registered for the federation.
```

cc @erictune  @kubernetes/sig-cluster-federation @MikeSpreitzer @luxas

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

(cherry picked from commit 3a6494e)
@madhusudancs madhusudancs deleted the fed-kubedns-flags-nodebootstrap branch July 7, 2016 05:25
@spiffxp
Copy link
Member

spiffxp commented Sep 21, 2016

@madhusudancs @mml @nikhiljindal @quinton-hoole @girishkalele this PR has a release-note-action-required label, but I can't tell if the action is relevant anymore

Specifically, CHANGELOG.md refers to kube-dns living in clusters/saltbase, and it has since moved in release-1.4. Can you clarify the action required?

@madhusudancs
Copy link
Contributor Author

@spiffxp The release-note-action-required label was for v1.3 as indicated by the milestone. Things might have changed in v1.4 which makes the release note section here irrelevant. How did this PR come up? Or how is it relevant in v1.4 context? Could you please give a little more context?

@spiffxp
Copy link
Member

spiffxp commented Sep 22, 2016

@madhusudancs if the labels are wrong, we should correct the labels (I don't have privileges, I'm just the sanity check here)

this entry shows up in the CHANGELOG.md for 1.4.0-alpha.1, and if I look at the release-1.3 branch, I still see kube-dns in its old saltbase location (https://github.com/kubernetes/kubernetes/tree/release-1.3/cluster/saltbase/salt/kube-dns)

as a cluster operator looking at v1.4.0 for the first time since v1.3.0, what action would I need to take?

@madhusudancs
Copy link
Contributor Author

@spiffxp This shouldn't appear in the v1.4 change logs at all. People (admins) shouldn't have to do anything special in v1.4. This was already in v1.3.0-beta.2 change log and it should remain that way.

Honestly, I don't know how to make it go away from 1.4 change logs. Do you know what labels need to be applied/removed? I can apply/remove them.

@spiffxp
Copy link
Member

spiffxp commented Sep 22, 2016

@madhusudancs if you don't want this to crop up in future relnotes runs, my read of the script is that you should remove the release-note-action-required label; seems like release-note is what you want if you want it to appear as a normal changelog entry

That said, I'm still concerned this needs to be an action required entry for 1.4.0, just because the release-1.3 branch doesn't have the dns addon in the new location. Can you help me understand if I just need to call out the dns addon migration, or is there an actual change that needs to happen if I'm upgrading from v1.3.0?

@madhusudancs
Copy link
Contributor Author

@madhusudancs if you don't want this to crop up in future relnotes runs, my read of the script is that you should remove the release-note-action-required label; seems like release-note is what you want if you want it to appear as a normal changelog entry

Yeah. But action was required in v1.3. Not in v1.4.

That said, I'm still concerned this needs to be an action required entry for 1.4.0, just because the release-1.3 branch doesn't have the dns addon in the new location. Can you help me understand if I just need to call out the dns addon migration, or is there an actual change that needs to happen if I'm upgrading from v1.3.0?

This release note is not for dns addon manifests' location change. This is a specific change within the contents of the manifest and that change was applicable in v1.3, not so relevant in v1.4. This is the PR that made the location change PR #28699 and that probably needs a release-note-action-required that you are looking for.

There is no new "action required" as far as this change is concerned in v1.4. I would like to remove this note from 1.4. How do I remove it?

@spiffxp
Copy link
Member

spiffxp commented Sep 22, 2016

@madhusudancs ok, thanks for clarifying, I'll make sure the action required is manually massaged away in the CHANGELOG.md changes I make

I can't speak specifically as to why this got picked up by the relnotes script even though it's in the v1.3 milestone; if I had to guess, it probably has something to do with me misusing the tool, or the timing and method of the original release-1.3 branch getting cut.

If you want to work around this in the future I would just change the labels as I suggested in the previous comment, otherwise it'll take some forensics of the tools in kubernetes/release that I don't have time for right now

@madhusudancs
Copy link
Contributor Author

If you want to work around this in the future I would just change the labels as I suggested in the previous comment, otherwise it'll take some forensics of the tools in kubernetes/release that I don't have time for right now

Sure. Noted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. 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.