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

Show encrypted parts in state #108

Merged
merged 1 commit into from
May 6, 2024
Merged

Show encrypted parts in state #108

merged 1 commit into from
May 6, 2024

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Apr 30, 2024

Part of kairos-io/kairos#2484

[kairos@kairos-fcdq ~]$ /tmp/main state get "encrypted_partitions|@json"|jq
{
  "by_device": {
    "/dev/vda2": {
      "filesystemlabel": "COS_OEM",
      "found": true,
      "label": "",
      "mount_point": "/oem",
      "mounted": true,
      "name": "/dev/mapper/vda2",
      "read_only": false,
      "size_bytes": 0,
      "type": "ext4",
      "uuid": ""
    },
    "/dev/vda3": {
      "filesystemlabel": "COS_PERSISTENT",
      "found": true,
      "label": "",
      "mount_point": "/usr/local",
      "mounted": true,
      "name": "/dev/mapper/vda3",
      "read_only": false,
      "size_bytes": 0,
      "type": "ext4",
      "uuid": ""
    }
  },
  "by_label": {
    "oem": {
      "filesystemlabel": "COS_OEM",
      "found": true,
      "label": "",
      "mount_point": "/oem",
      "mounted": true,
      "name": "/dev/mapper/vda2",
      "read_only": false,
      "size_bytes": 0,
      "type": "ext4",
      "uuid": ""
    },
    "persistent": {
      "filesystemlabel": "COS_PERSISTENT",
      "found": true,
      "label": "",
      "mount_point": "/usr/local",
      "mounted": true,
      "name": "/dev/mapper/vda3",
      "read_only": false,
      "size_bytes": 0,
      "type": "ext4",
      "uuid": ""
    }
  }
}
encrypted_partitions:
    by_label:
        oem:
            mounted: true
            name: /dev/mapper/vda2
            label: ""
            filesystemlabel: COS_OEM
            mount_point: /oem
            size_bytes: 0
            type: ext4
            read_only: false
            found: true
            uuid: ""
        persistent:
            mounted: true
            name: /dev/mapper/vda3
            label: ""
            filesystemlabel: COS_PERSISTENT
            mount_point: /usr/local
            size_bytes: 0
            type: ext4
            read_only: false
            found: true
            uuid: ""
    by_device:
        /dev/vda2:
            mounted: true
            name: /dev/mapper/vda2
            label: ""
            filesystemlabel: COS_OEM
            mount_point: /oem
            size_bytes: 0
            type: ext4
            read_only: false
            found: true
            uuid: ""
        /dev/vda3:
            mounted: true
            name: /dev/mapper/vda3
            label: ""
            filesystemlabel: COS_PERSISTENT
            mount_point: /usr/local
            size_bytes: 0
            type: ext4
            read_only: false
            found: true
            uuid: ""

@Itxaka Itxaka requested a review from a team April 30, 2024 08:21
Copy link

codecov bot commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.98%. Comparing base (5744b1a) to head (1b3d4e5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #108   +/-   ##
=======================================
  Coverage   52.98%   52.98%           
=======================================
  Files          16       16           
  Lines        1106     1106           
=======================================
  Hits          586      586           
  Misses        423      423           
  Partials       97       97           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mauromorales mauromorales left a comment

Choose a reason for hiding this comment

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

fancy 😎

@Itxaka Itxaka merged commit cd73d32 into main May 6, 2024
11 checks passed
@Itxaka Itxaka deleted the encrypted_parts_state branch May 6, 2024 08:03
github-actions bot referenced this pull request in kairos-io/provider-kairos May 6, 2024
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/kairos-io/kairos-sdk](https://togithub.com/kairos-io/kairos-sdk)
| `v0.1.2` -> `v0.1.3` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.2/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fkairos-io%2fkairos-sdk/v0.1.2/v0.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kairos-io/kairos-sdk
(github.com/kairos-io/kairos-sdk)</summary>

###
[`v0.1.3`](https://togithub.com/kairos-io/kairos-sdk/releases/tag/v0.1.3)

[Compare
Source](https://togithub.com/kairos-io/kairos-sdk/compare/v0.1.2...v0.1.3)

#### What's Changed

- Show encrypted parts in state by
[@&#8203;Itxaka](https://togithub.com/Itxaka) in
[https://github.com/kairos-io/kairos-sdk/pull/108](https://togithub.com/kairos-io/kairos-sdk/pull/108)
- Add missing Install attributes by
[@&#8203;mauromorales](https://togithub.com/mauromorales) in
[https://github.com/kairos-io/kairos-sdk/pull/111](https://togithub.com/kairos-io/kairos-sdk/pull/111)

**Full Changelog**:
kairos-io/kairos-sdk@v0.1.2...v0.1.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am
every weekday,every weekend" in timezone Europe/Brussels, Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/kairos-io/provider-kairos).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM0MC4xMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants