Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

v0.14.x: Remove the control-plane stacks dependence on cross stack references #1755

Merged

Conversation

davidmccormick
Copy link
Contributor

… this prevents us from ever removing or changing these values. The best practice is to pass variables as parameters between nested stacks (via the root stack) but we currently pass knowledge of the etcd FQDNs via CF cross-stack references. This prevents us from removing or changing their values.

This PR breaks the cross-stack reference and passes the FQDN as a parameter instead, and allows us to change the FQDNs in the future (e.g. to spin up new etcd clusters in etcd major version upgrades)

@davidmccormick davidmccormick added this to the v0.14.2 milestone Oct 15, 2019
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 15, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign davidmccormick
You can assign the PR to them by writing /assign @davidmccormick in a comment when ready.

The full list of commands accepted by this bot can be found 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 requested a review from danielfm October 15, 2019 14:33
… this prevents us from ever removing or changing these values. The best practice way is to pass variables as parameters between nested stacks (via the root stack). We have to remove the dependencies before we can remove the exports, so they are still exported from the etcd stack alongside our new parameters which are used in the updated control-plane stack.
@davidmccormick davidmccormick changed the title Remove the control-plane stacks dependence on cross stack references v0.14.x: Remove the control-plane stacks dependence on cross stack references Oct 15, 2019
@codecov-io
Copy link

codecov-io commented Oct 15, 2019

Codecov Report

Merging #1755 into v0.14.x will decrease coverage by 0.34%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           v0.14.x    #1755      +/-   ##
===========================================
- Coverage    25.27%   24.93%   -0.35%     
===========================================
  Files           98       98              
  Lines         5088     5078      -10     
===========================================
- Hits          1286     1266      -20     
- Misses        3660     3673      +13     
+ Partials       142      139       -3
Impacted Files Coverage Δ
pkg/model/etcd_node.go 7.2% <0%> (-14.29%) ⬇️
pkg/model/etcd_cluster.go 90% <0%> (-10%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c778fe8...f53f2a8. Read the comment docs.

@davidmccormick davidmccormick merged commit 726bbf7 into kubernetes-retired:v0.14.x Oct 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants