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

Improve look and feel of kubearchinspect repository #17

Merged
merged 6 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) 2020-2024 Arm Limited or its affiliates and Contributors. All rights reserved.
Copyright (C) 2024 Arm Limited or its affiliates and Contributors. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
# Contributor Covenant Code of Conduct
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) 2020-2024 Arm Limited or its affiliates and Contributors. All rights reserved.
Copyright (C) 2024 Arm Limited or its affiliates and Contributors. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
# Contribution Guide
Expand Down
10 changes: 9 additions & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<!--
Copyright (C) 2020-2024 Arm Limited or its affiliates and Contributors. All rights reserved.
Copyright (C) 2024 Arm Limited or its affiliates and Contributors. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
# Development and Testing
## Local Development

### Build manually

Clone the repo and run:

```sh
go build
```

### Running tests

To run all tests:
Expand Down
4 changes: 2 additions & 2 deletions KNOWN_ISSUES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!--
Copyright (C) 2020-2024 Arm Limited or its affiliates and Contributors. All rights reserved.
Copyright (C) 2024 Arm Limited or its affiliates and Contributors. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
# Known Issues

This project is a work-in-progress and we are not currently tracking issues.

- It can be slow in large clusters
- Does not handle rate-limiting
- Does not handle rate-limiting
69 changes: 35 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
<!--
Copyright (C) 2024 Arm Limited or its affiliates and Contributors. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
# KubeArchInspect

![kubearchinspect logo](./assets/kubearchinspect_logo-small.webp)

`kubearchinspect` is a utility to check if container images in a Kubernetes cluster have arm architecture support.

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Main CI/CD](https://github.com/ArmDeveloperEcosystem/kubearchinspect/actions/workflows/main.yml/badge.svg)](https://github.com/ArmDeveloperEcosystem/kubearchinspect/actions/workflows/main.yml)

## Installation

### From binary
## Overview

You can directly [download the kubearchinspect executable](https://github.com/ArmDeveloperEcosystem/kubearchinspect/releases).
Migrating your websites and services to run on Arm infrastructure can give multiple benefits in terms of cost and performance. The first phase in this process is to determine whether the container images in a Kubernetes cluster have Arm support, most do, but checking can be a manual and time consuming task. To make it easy we have developed the `kubearchinspect` tool which automates this process. If the version of one of your images lacks Arm support the tool will check for Arm architecture support in newer version and lets you know to update your image.
sm-powell marked this conversation as resolved.
Show resolved Hide resolved

### Build manually
This is an Open Source project and appreciate contributions and feedback, please see [Contributions Guidelines](CONTRIBUTING.md) for more information.
sm-powell marked this conversation as resolved.
Show resolved Hide resolved

Clone the repo and run:
## Installation

```sh
go build
```
You can directly download the `kubearchinspect` executable from the [releases page](https://github.com/ArmDeveloperEcosystem/kubearchinspect/releases).
sm-powell marked this conversation as resolved.
Show resolved Hide resolved

## Running

Expand All @@ -27,16 +24,21 @@ go build
**_NOTE:_** Kubernetes contexts can be shown using `kubectl config get-contexts` and set with `kubectl config set-context`.
madchutney marked this conversation as resolved.
Show resolved Hide resolved

Using the pre-built binary:
```sh
```console
kubearchinspect images
```
## Usage

or clone the repo and run:

```sh
go run . images
```console
kubearchinspect [OPTIONS]
```

## Options

* `images` : Check which images in your cluster support arm64
* `completion` : Generate the autocompletion script for the specified shell
* `help` : Help about any command

## Example Output

Output from a small cluster in EKS:
Expand Down Expand Up @@ -86,17 +88,17 @@ Legend:
✅ registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.8.1
```

## Usage
### Errors in Output

```md
completion : Generate the autocompletion script for the specified shell
help : Help about any command
images : Check which images in your cluster support arm64
```
At present the tool will show an error if it cannot connect to the repository for an image for any reason.
This could include:
* Authentication failure
* Communication error
* Image no longer available

## Private Registry Authentication

`kubearchinspect` uses the credential helper defined in `~/.docker/config.json` for authenticating with private registries.
When `kubearchinspect` discovers an image from a registry that requires authentication, it uses the credential helper defined in `~/.docker/config.json` to obtain the required credentials. This is the same as the `docker` command line.
madchutney marked this conversation as resolved.
Show resolved Hide resolved

## Releases
madchutney marked this conversation as resolved.
Show resolved Hide resolved

Expand All @@ -108,19 +110,18 @@ For release notes and a history of changes of all **production** releases, pleas

The follow described the major aspects of the project structure:

- `cmd/` - Application command logic.
- `internal/` - Go project source files.
- `changes/` - Collection of news files for unreleased changes.
- `assets/` - Project images.
* `cmd/` - Application command logic.
* `internal/` - Go project source files.
* `changes/` - Collection of news files for unreleased changes.

## Getting Help

- For a list of known issues and possible workarounds, please see [Known Issues](KNOWN_ISSUES.md).
- To raise a defect or enhancement please use [GitHub Issues](https://github.com/ArmDeveloperEcosystem/kubearchinspect/issues).
* For a list of known issues and possible workarounds, please see [Known Issues](KNOWN_ISSUES.md).
* To raise a defect or enhancement please use [GitHub Issues](https://github.com/ArmDeveloperEcosystem/kubearchinspect/issues).

## Contributing

- We are committed to fostering a welcoming community, please see our
* We are committed to fostering a welcoming community, please see our
[Code of Conduct](CODE_OF_CONDUCT.md) for more information.
- For ways to contribute to the project, please see the [Contributions Guidelines](CONTRIBUTING.md)
- For a technical introduction into developing this package, please see the [Development Guide](DEVELOPMENT.md)
* For ways to contribute to the project, please see the [Contributions Guidelines](CONTRIBUTING.md)
* For a technical introduction into developing this package, please see the [Development Guide](DEVELOPMENT.md)
4 changes: 4 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
Copyright (C) 2024 Arm Limited or its affiliates and Contributors. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
# Security Policy

## Reporting a Vulnerability
Expand Down
Binary file removed assets/kubearchinspect_logo-small.webp
Binary file not shown.
Binary file removed assets/kubearchinspect_logo.webp
Binary file not shown.
1 change: 1 addition & 0 deletions changes/20241029.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updates to README and other documentation