This project is mirrored from https://gitee.com/cowcomic/pixie.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 16 Nov, 2021 12 commits
  2. 15 Nov, 2021 7 commits
    • Michelle Nguyen's avatar
      Update vizier service names to not conflict with deployment names · 20fa0e34
      Michelle Nguyen authored
      
      Summary:
      there are cases where users may want to patch all of their deployments (for example, apply nodeselectors to all deployments). this currently does not work since the svc names match the exact resource names of the deployments themselves. since we do patches by matching resource names, this leads to invalid YAMLs.
      instead, we should rename our services so that each resource can be patched
      
      Test Plan: built vizier rc, deployed with patches
      
      Reviewers: vihang
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10182
      
      GitOrigin-RevId: 464cdaab236285ee8b92886b52622f834666c2ed
      20fa0e34
    • Michelle Nguyen's avatar
      Add tableStoreTableSizeLimit to vizier CRD · e1cc5c3f
      Michelle Nguyen authored
      
      Summary: We also want to make the table store's table size limit configurable via the CRD. this diff adds the field to the CRD. a followup diff will make sure that this is wired into the vizier tmpl pipeline.
      
      Test Plan: n/a
      
      Reviewers: jamesbartlett, vihang, rcheng
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10179
      
      GitOrigin-RevId: d8a85e888ddc63bd7b01b404b168449128b761ae
      e1cc5c3f
    • Phillip Kuznetsov's avatar
      Allow users to login who lack an org · 3c1ecf3b
      Phillip Kuznetsov authored
      
      Summary:
      Users who would tried to call GetAugmentedToken but lacked an org would receive an error. This call is made as part of the GRPC middleware in the api_server. We will need to call GetUser/ GetOrg() from the UI in these cases so probably just allow users to login without an org.
      
      This diff is part of a series to enable user/password signup flows. We will need to allow users to exist in the database without an OrgID and make sure that the data is accessible to users.
      
      Risk - we are creating a new opening for users to log in without an org ID. We might provide more access than we intend. However, most features are org-gated anyways - meaning we restrict info so that only the org members can view clusters, org members, so those risks will be limited.
      
      Test Plan: Updated the test. No chance to do an integration because we don't support orgless users yet.
      
      Reviewers: vihang, michelle, nserrino
      
      Reviewed By: vihang
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10184
      
      GitOrigin-RevId: b199c233d18d840e224b567a9c21cccaa971a0dc
      3c1ecf3b
    • Vihang Mehta's avatar
      Allow users to be created without an associated org · fa09652f
      Vihang Mehta authored
      
      Summary:
      For the Username/Password based auth, user creation and org creation
      are going to be split out and users will be created first without any associated
      orgs.
      
      Test Plan: Added tests
      
      Reviewers: michelle, philkuz
      
      Reviewed By: philkuz
      
      JIRA Issues: PC-1259
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10183
      
      GitOrigin-RevId: f90a68da2e19a4e00e048cbedc61d5f02b7e1224
      fa09652f
    • Phillip Kuznetsov's avatar
      Cleanup userID variable and fix-up login tests · 485fa519
      Phillip Kuznetsov authored
      
      Summary: We pass around this userID variable in login.go, but this has been available in UserInfo struct for quite a while now as the same value. To reduce confusion, we now just use the userInfo.AuthProviderID value in place of the userID. Evidence this was confusing shows up in the tests as well -we would use the PL User ID and authProviderID interchangably. This fixes that issue in the test.
      
      Test Plan: Tests still pass, can still login with skaffold
      
      Reviewers: vihang, michelle
      
      Reviewed By: vihang
      Signed-off-by: default avatarPhillip Kuznetsov <pkuznetsov@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10154
      
      GitOrigin-RevId: 05e2e3ad7e5514b4a3271efa47cde8f6c9ca4f60
      485fa519
    • Vihang Mehta's avatar
      Deprecate ProfileService within cloudapi · 1e919663
      Vihang Mehta authored
      
      Summary: We mainly use `UserService` and `OrgService`. This is redundant.
      
      Test Plan: Existing tests
      
      Reviewers: michelle, zasgar
      
      Reviewed By: zasgar
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10174
      
      GitOrigin-RevId: 6b701aee0a68d8c388c535cdef904d900c2a249e
      1e919663
    • Vihang Mehta's avatar
      Add CreateOrg to profile service · 1123bc4c
      Vihang Mehta authored
      
      Summary:
      TSIA, this should help split up our `CreateUserAndOrg` methods and
      also will be useful for the create org flows later.
      
      Test Plan: Added tests.
      
      Reviewers: michelle, philkuz
      
      Reviewed By: michelle, philkuz
      
      JIRA Issues: PC-1258
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10178
      
      GitOrigin-RevId: 0888d7120759bdc4f9f5c9671b872e3020a16da6
      1123bc4c
  3. 14 Nov, 2021 2 commits
  4. 13 Nov, 2021 3 commits
  5. 12 Nov, 2021 14 commits
    • Omid Azizi's avatar
      Fix run_docker_bpf.sh · c55e05be
      Omid Azizi authored
      
      Summary: The flag is also in run_docker.sh, causing the script to fail. Apparently, docker doesn't like duplicate flags.
      
      Test Plan: Manual
      
      Reviewers: #stirling, yzhao
      
      Reviewed By: #stirling, yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10163
      
      GitOrigin-RevId: 241238717ef133b4504f98e3f8d9a302a2038e64
      c55e05be
    • Omid Azizi's avatar
      Revert inadvertent changes · 811064a2
      Omid Azizi authored
      
      Summary: D10162 included a few pieces that were not meant for it. Revert those.
      
      Test Plan: Jenkins
      
      Reviewers: #stirling, yzhao
      
      Reviewed By: #stirling, yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10169
      
      GitOrigin-RevId: 3b29be2cad41efb56b0032f465a07280ce7e2f51
      811064a2
    • Omid Azizi's avatar
      BPFTraceWrapper: Simplify compile interface · 9c7271e9
      Omid Azizi authored
      
      Summary: The second parameter is not often used, so give it a default empty parameter.
      
      Test Plan: Existing tests
      
      Reviewers: #stirling, yzhao
      
      Reviewed By: #stirling, yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10165
      
      GitOrigin-RevId: dbdb92e234837d5166310814b87e6f3d4da94683
      9c7271e9
    • Omid Azizi's avatar
      DwarfReader clean-up · 5b0175c2
      Omid Azizi authored
      
      Summary: Tidying up a few things
      
      Test Plan: Existing tests
      
      Reviewers: #stirling, yzhao
      
      Reviewed By: #stirling, yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10137
      
      GitOrigin-RevId: f4cce75171581ed3a21cca9e9f177b7aad3343ec
      5b0175c2
    • Omid Azizi's avatar
      Third-party repo: cereal · 8228e4a3
      Omid Azizi authored
      Summary:
      Cereal is a header-only C++ library for serialization. It is used by newer versions of BPFTrace, which will be upgraded soon.
      
      Reference: https://github.com/USCiLab/cereal/
      
      
      
      Test Plan: N/A
      
      Reviewers: #stirling, zasgar, #third_party_approvers, vihang
      
      Reviewed By: #third_party_approvers, vihang
      
      Subscribers: vihang
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10156
      
      GitOrigin-RevId: b5c5fca19acb4244cda98091a3693f31a98fad39
      8228e4a3
    • Omid Azizi's avatar
      Fix BPFTrace connector segfault when there are no output columns · e4ce237e
      Omid Azizi authored
      
      Summary: Fix a seg-fault.
      
      Test Plan: Manual
      
      Reviewers: #stirling, zasgar
      
      Reviewed By: zasgar
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10141
      
      GitOrigin-RevId: b5fcb4541b96586557e9cccda9335679d9559006
      e4ce237e
    • Omid Azizi's avatar
      pid_runtime_connector.cc: header include order · ea64c083
      Omid Azizi authored
      
      Summary: Fix include order
      
      Test Plan: Existing tests
      
      Reviewers: #stirling, yzhao
      
      Reviewed By: #stirling, yzhao
      Signed-off-by: default avatarOmid Azizi <oazizi@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10162
      
      GitOrigin-RevId: 431cae6b1404a79eecd5f5614836a8e0bd8889fd
      ea64c083
    • Vihang Mehta's avatar
      Use domain_name to hold on to hosted domain · 8c46533d
      Vihang Mehta authored
      
      Summary:
      We want to track the domain name from the auth provider so let's use
      the domain name in the org table.
      
      Test Plan: skaffold
      
      Reviewers: michelle, philkuz
      
      Reviewed By: michelle
      
      Subscribers: philkuz
      Signed-off-by: default avatarVihang Mehta <vihang@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10157
      
      GitOrigin-RevId: 9d9396637375b31a3966230ee23c1e532392d9c3
      8c46533d
    • Nick Lanam's avatar
      [Chore] Material 5.1.0 · c76bfd7c
      Nick Lanam authored
      
      Summary: No breaking changes. Yet another thing that was tried in efforts to fix the slow tests.
      
      Test Plan: `yarn test`. Smoke test the UI.
      
      Reviewers: #third_party_approvers, michelle, vihang
      
      Reviewed By: #third_party_approvers, vihang
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10166
      
      GitOrigin-RevId: 0c9366062f44ce91e61f9cd887f8270f94070b63
      c76bfd7c
    • Nick Lanam's avatar
      [Chore] Update esbuild · c6d96ba2
      Nick Lanam authored
      
      Summary: This seems to be the real fix for our tests taking five minutes instead of thirty seconds. As such, basing this on top of D10167 to revert that change simultaneously.
      
      Test Plan: Watch this diff not fail tests due to timeout. `yarn test`. Smoke test UI. Seems whatever went wrong was somehow related to esbuild overhead.
      
      Reviewers: #third_party_approvers, michelle, vihang
      
      Reviewed By: #third_party_approvers, vihang
      Signed-off-by: default avatarNick Lanam <nlanam@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10168
      
      GitOrigin-RevId: 2558f899eb4a0a7ee261489ae7b519749cf21a36
      c6d96ba2
    • Yaxiong Zhao's avatar
      Subprocess adds the option to enter mount namespace of another process · 59cf4456
      Yaxiong Zhao authored
      
      Test Plan: Jenkins
      
      Reviewers: #stirling, oazizi
      
      Reviewed By: #stirling, oazizi
      
      Subscribers: oazizi
      Signed-off-by: default avatarYaxiong Zhao <yzhao@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10151
      
      GitOrigin-RevId: 1ece34ceb3d93d7fc6a46f2787d824e65f1043cb
      59cf4456
    • Michelle Nguyen's avatar
      Add leaderElectionParams to vizier YAMLS · e8f31665
      Michelle Nguyen authored
      
      Summary:
      Previous diff added leaderElectionParams to our CRD (D10159)
      This diff actually passes the CRD through the operator + configmanager to fill out the vizier templates with the users config.
      one thing I realized when updating the vizier yamls: the name for vizier-metadata + vizier-cloud-connector match the resource name for their respective services. as a result, the resourceNameMatcher wasa also adding the template to the svc YAMLs, which is incorrect.
      to address this, I also updated the services names to include `svc` at the end. alternatively, we can update the `resourceNameMatcher` to also take a `resourceType` arg.
      However, our `patches` config does  a similar resourceName matching and will be difficult to add `resourceType`, so I am leaning towards just making sure we have different resource names.
      
      Test Plan: built vizier rc, deployed rc and make sure everything starts up as expected
      
      Reviewers: vihang, jamesbartlett
      
      Reviewed By: vihang
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10160
      
      GitOrigin-RevId: 1f966f802269518782ed0943ec285a46a7e0d71a
      e8f31665
    • Michelle Nguyen's avatar
      Add leadershipElectionParams to CRD · c21604fb
      Michelle Nguyen authored
      
      Summary:
      we are seeing some users with very slow K8s clusters, whose leader elections keep failing. the solution is to increase the K8s leaderelection renew period (PL_RENEW_PERIOD env var in metaadata + cloudconn). this means that we need to expose this in the CRD.
      Since there are other leadership election env vars, i figured we should just make this a struct for cleanliness, in case we allow configuration for the other fields in the future.
      
      Test Plan: n/a
      
      Reviewers: jamesbartlett, vihang, philkuz
      
      Reviewed By: vihang, philkuz
      Signed-off-by: default avatarMichelle Nguyen <michellenguyen@pixielabs.ai>
      
      Differential Revision: https://phab.corp.pixielabs.ai/D10159
      
      GitOrigin-RevId: a061beeb1e128e94c4c4e6355d329772b2240dcc
      c21604fb
    • Nick Lanam's avatar
      [Chore] Update Jest from version 26 to 27 · 5be02c68
      Nick Lanam authored
      Summary:
      There were a couple of breaking changes.
      - `jest.config.js`: `globals` no longer works the same way
      - The default test environment changed from `jsdom` to `node`. We use `jsdom`, so the config needs to specify that manually now.
      - The `spyOn` global doesn't exist anymore, as Jest has started separating from the Jasmine API slightly. Just a slight adjustment.
      - `babel-jest` is a fake ES Module now, so its import changed slightly.
      - Updated relevant types and plugins to match.
      - `jest-canvas-mock` hasn't been published in long enough that it's not compatible anymore; the `canvas` module serves as a suitable drop-in replacement.
      
      This was originally an attempt to find the cause of the now-very-slow tests, but it didn't end up affecting that. One more variable eliminated and one more chore complete as a side effect, either way.
      
      Test Plan: `yarn test`. No appreciable difference. The freakishly long test setup times are still present.
      
      Reviewers: #third_party_...
      5be02c68
  6. 11 Nov, 2021 2 commits