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

Node metadata-concealment in GCE #8634

Merged
merged 6 commits into from
Mar 14, 2020
Merged

Conversation

geojaz
Copy link
Member

@geojaz geojaz commented Feb 27, 2020

Fixes metadata-concealment tests in GCE
image


[BeforeEach] [sig-auth] Metadata Concealment
  /home/eric/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:177
STEP: Creating a kubernetes client
Mar  8 11:59:04.521: INFO: >>> kubeConfig: /tmp/kops683649553/kubeconfig
STEP: Building a namespace api object, basename metadata-concealment
Mar  8 11:59:04.692: INFO: No PodSecurityPolicies found; assuming PodSecurityPolicy is disabled.
STEP: Waiting for a default service account to be provisioned in namespace
[It] should run a check-metadata-concealment job to completion
  /home/eric/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/auth/metadata_concealment.go:34
STEP: Creating a job
STEP: Ensuring job reaches completions
[AfterEach] [sig-auth] Metadata Concealment
  /home/eric/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:178
Mar  8 11:59:08.820: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
STEP: Destroying namespace "metadata-concealment-6800" for this suite.

•
------------------------------
{"msg":"PASSED [sig-auth] Metadata Concealment should run a check-metadata-concealment job to completion","total":-1,"completed":1,"skipped":92,"failed":0}
Mar  8 11:59:08.907: INFO: Running AfterSuite actions on all nodes


Mar  8 11:59:04.715: INFO: Running AfterSuite actions on all nodes
Mar  8 11:59:08.940: INFO: Running AfterSuite actions on node 1


Ran 1 of 4840 Specs in 79.225 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 4839 Skipped


Ginkgo ran 1 suite in 1m26.774641541s
Test Suite Passed
2020/03/08 11:59:08 process.go:155: Step '_output/bin/ginkgo --nodes=30 _output/bin/e2e.test -- --kubeconfig=/tmp/kops683649553/kubeconfig --ginkgo.flakeAttempts=1 --provider=gce --gce-project=my-project --gce-zone=us-central1-c --gce-region=us-central1 --gce-multizone=
false --host=https://35.226.24.160 --cluster-tag=eric.k8s.local --repo-root=. --num-nodes=0 --ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort --ginkgo.focus=Concealment' finished in 1m26.800749736s

@geojaz geojaz added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 27, 2020
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Feb 27, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: geojaz

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 27, 2020
@hakman
Copy link
Member

hakman commented Feb 27, 2020

/retest

@rifelpet
Copy link
Member

could you add terraform support as well? you should just need to add the Labels field to terraformInstanceCommon below and pipe the value through, as well as update this integration tests

@geojaz
Copy link
Member Author

geojaz commented Feb 28, 2020

thanks for catching the omission in TF. I'll send back another one soon

@geojaz geojaz force-pushed the gce_metadata branch 3 times, most recently from f7e8c9d to f8ba1d7 Compare February 28, 2020 19:32
@geojaz
Copy link
Member Author

geojaz commented Feb 28, 2020

/retest

@geojaz
Copy link
Member Author

geojaz commented Feb 28, 2020

/hold cancel

@geojaz
Copy link
Member Author

geojaz commented Feb 28, 2020

@rifelpet is that what you were looking for re: terraform?

@rifelpet
Copy link
Member

yea, perfect 👍

@geojaz
Copy link
Member Author

geojaz commented Feb 29, 2020

I think this one is good for review now!
/assign @justinsb

@geojaz geojaz changed the title Node metadata-concealment in GCE, first pass Node metadata-concealment in GCE Feb 29, 2020
@geojaz
Copy link
Member Author

geojaz commented Mar 2, 2020

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 2, 2020
@geojaz geojaz force-pushed the gce_metadata branch 3 times, most recently from 0f6f0ee to 4dbdfaf Compare March 8, 2020 18:20
@geojaz
Copy link
Member Author

geojaz commented Mar 8, 2020

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 8, 2020
@geojaz geojaz added the kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. label Mar 8, 2020
@rifelpet
Copy link
Member

rifelpet commented Mar 9, 2020

/retest

@rifelpet
Copy link
Member

this looks good to me now. my only concern is whether this requires users to take any external action when upgrading to the kops version that will include this PR. Will they need to enable something on the GCP side for this? If so we should mention it in the release notes.

@geojaz
Copy link
Member Author

geojaz commented Mar 11, 2020

I think you're right- new IGs/clusters should default to this mode. I can create a release note and doc it.

I guess we should also probably make it possible to "upgrade" to this by enabling it in existing IGs. Based on the current level of support for GCE, I think we could document how to enable this proxy if you want it, but try to steer folks towards using new IGs.

I'll have to take another look to see what make most sense.

@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. area/documentation labels Mar 14, 2020
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 14, 2020
@geojaz
Copy link
Member Author

geojaz commented Mar 14, 2020

@rifelpet added the release note with disclosure and upgrade instructions. how's that look?

@rifelpet
Copy link
Member

looks good. I think kops will apply the addon even for existing clusters that dont have the label, but the DaemonSet's labelSelector will prevent pods from getting scheduled on any nodes anyways, so i think thats fine.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 14, 2020
@johngmyers
Copy link
Member

/test pull-kops-verify-staticcheck

@geojaz
Copy link
Member Author

geojaz commented Mar 14, 2020

Yes, it will create the addon, it'll just wait for the selector. I'm ok with that i think

@k8s-ci-robot k8s-ci-robot merged commit cc52fa3 into kubernetes:master Mar 14, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Mar 14, 2020
@geojaz geojaz deleted the gce_metadata branch March 14, 2020 21:56
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. area/documentation cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. 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.

None yet

6 participants