Johannes Kastl 2024-12-27 12:17:18 +00:00 committed by Git OBS Bridge
commit 7faa5b5cb9
16 changed files with 530 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

23
_service Normal file
View File

@ -0,0 +1,23 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/akuity/kargo</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v1.1.2</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
<param name="filename">kargo-cli</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="go_modules" mode="manual">
</service>
<!-- services below are running at buildtime -->
<service name="tar" mode="buildtime">
</service>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/akuity/kargo</param>
<param name="changesrevision">4deb9ff40f2391b1c7dcaafa488e2cf62b7fe805</param></service></servicedata>

3
kargo-cli-0.8.7.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44122d4c926af0ffba78754c2078c715fbaa764a785d1518e470d1ca5c9e627d
size 102374414

3
kargo-cli-0.8.8.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3959d91562285a4f3db6d8b58cb7073d1afde7f3c9bc51187fb2552f4fb2ce19
size 102374414

3
kargo-cli-1.0.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:88b8a62adb6159603144fa0e3b793efeba93b3d567d829ef5f88dd96a0fafd64
size 103005710

3
kargo-cli-1.0.1.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ca9ac2a58cbcfd95b8319358dab8e97f9419138b78403a5cc70c631f806d1bb
size 103006734

3
kargo-cli-1.0.3.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1985ede428bf9b9e368d5d1125aa5eb6946527934b7f9fd4c80e103a3c7c3373
size 103004174

3
kargo-cli-1.1.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b9addee91db46e2556f947dfda3691bbeb51b4a714cfbf2fadc22a85b8eb814
size 111346702

3
kargo-cli-1.1.1.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2152e391e6c343921b57a80d4b5bb880ee736b615704c2def2248f70ecad3097
size 111345166

3
kargo-cli-1.1.2.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:02674c878651202d6303c8ea49b5b7c777744ecaf670b1fd507c27b732162865
size 111378958

330
kargo-cli.changes Normal file
View File

@ -0,0 +1,330 @@
-------------------------------------------------------------------
Fri Dec 27 12:04:46 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.1.2:
* no CLI-related changes
-------------------------------------------------------------------
Tue Dec 10 08:49:27 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.1.1:
* no CLI-related changes
-------------------------------------------------------------------
Sun Dec 08 09:04:28 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.1.0:
* docs: fix cli download links in quickstart (#2794)
-------------------------------------------------------------------
Fri Dec 06 11:21:46 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.0.4:
* no CLI-related changes
-------------------------------------------------------------------
Wed Oct 23 08:52:53 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.0.3:
* no CLI-related changes
-------------------------------------------------------------------
Wed Oct 23 08:42:33 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.0.2:
* no CLI-related changes
-------------------------------------------------------------------
Tue Oct 22 07:12:07 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.0.1:
* chore(backport release-1.0): docs: fix cli download links in
quickstart (#2798)
-------------------------------------------------------------------
Sat Oct 19 08:14:18 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.0.0:
Major update, please see the release notes at
https://github.com/akuity/kargo/releases/tag/v1.0.0
CLI-related changes:
* fix(cli): fix auth via --kubeconfig option (#2731)
* fix(cli): fix flag in login command example (#2723)
-------------------------------------------------------------------
Fri Oct 11 08:36:16 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.9.1:
* no CLI-related changes
-------------------------------------------------------------------
Fri Oct 11 08:29:19 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.9.0:
Big update, please check the changelog
https://github.com/akuity/kargo/releases/tag/v0.9.0
CLI-related changes:
* fix(kubeclient): retry patch on conflict (#2499)
* fix(cli): retain config changes on re-login (#2388)
* chore(kubeclient): tidy indexers and add tests (#2300)
-------------------------------------------------------------------
Fri Oct 04 19:45:53 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.8:
* docs: update docs and scripts to lock release-0.8 branch into
latest stable release (#2611)
* chore(backport release-0.8): fix(kubeclient): retry patch on
conflict (#2516)
* chore(backport release-0.8): fix(docs): specify pnpm version
for building docs (#2512)
* chore(backport release-0.8): fix(ui): promote downstream subs
in control flow stages was broken (#2498)
-------------------------------------------------------------------
Sat Sep 14 14:13:57 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.7:
* feat: support kustomize image newName override (#2471)
-------------------------------------------------------------------
Sat Sep 14 14:10:21 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.6:
* chore(backport release-0.8): fix(promotion): wait for open pull
request (#2452)
-------------------------------------------------------------------
Sat Aug 17 07:36:46 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.5:
* chore(backport release-0.8): fix(promotion): patch Application
w/ Unstructured (#2443)
* chore(backport release-0.8): fix(controller): improve logic to
determine when syncing an argo cd app is required (#2442)
* chore(backport release-0.8): fix: webhook server and controller
permissions (#2436)
* chore(backport release-0.8): feat(api): grant API to manage
ConfigMap (#2434)
* chore(backport release-0.8): fix(controller): account for
differences in kargo, argo cd, and helm before searching for
oci helm charts (#2412)
-------------------------------------------------------------------
Fri Aug 09 17:01:01 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.4:
* chore(backport release-0.8): fix(promotion): sync ArgoCD
Application without updates (#2408)
-------------------------------------------------------------------
Wed Aug 07 05:20:21 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.3:
* chore(backport release-0.8): fix(promotion): always hard
refresh ArgoCD App (#2398)
-------------------------------------------------------------------
Sat Aug 03 07:53:36 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.2:
* chore(backport release-0.8): fix(ui): infinite redirect loop
when renewing OIDC token (#2375)
* chore(backport release-0.8): fix(controller): fix panic when
last promotion has no freight collection (#2366)
-------------------------------------------------------------------
Fri Jul 26 04:44:04 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.1:
* fix(ui): update colors hook (#2347)
* chore(backport release-0.8): fix(ui): stop relying on
deprecated field in images table (#2345)
* chore(backport release-0.8): fix(ui): hide promotion button for
control flow stages (#2343)
* chore(backport release-0.8): fix(ui): properly display stage
indicators in timeline after migration (#2337)
* chore(backport release-0.8): fix(ui): incorrect DAG rendering
for singular forward connection to node with multiple backward
connections (#2335)
* chore(backport release-0.8): docs: Update README.md (#2332)
* chore(backport release-0.8): fix(ui): crash in stage details
popover (#2331)
-------------------------------------------------------------------
Sat Jul 20 09:32:19 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.8.0:
Big update with breaking changes (for Kargo itself, not the CLI)
Please check the release notes:
https://github.com/akuity/kargo/releases/tag/v0.8.0
No apparent CLI-related changes
-------------------------------------------------------------------
Sat Jun 15 16:15:08 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.7.1:
https://github.com/akuity/kargo/releases/tag/v0.7.1
No apparent CLI-related changes
-------------------------------------------------------------------
Fri Jun 07 20:15:09 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.7.0:
https://github.com/akuity/kargo/releases/tag/v0.7.0
No apparent CLI-related changes
-------------------------------------------------------------------
Wed May 08 11:07:19 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.6.0:
The Kargo team is thrilled to announce the release of v0.6.0,
packed with stability improvements, enhancements, and new
features. While the list of improvements and additions is
extensive, we have highlighted some features you can look forward
to exploring.
If you are looking for a more complete list, please do consult
the full changelog
https://github.com/akuity/kargo/compare/v0.5.2...v0.6.0
* Notes on Upgrading
There is a single breaking change: the "well-known"
kargo-secret-manager ClusterRole has been renamed to
kargo-project-admin. However, this release includes a built-in
upgrade reconciler to ensure a seamless upgrade process by
automatically changing any project-level bindings referencing
the old name to reference the new one.
Please note that if you are upgrading from a version older than
v0.5.0, you first need to upgrade to v0.5.x before upgrading to
v0.6.0. This is due to breaking changes introduced in v0.5.0,
for which no upgrade aid exists in this release.
* Role Management
Kargo will now create two roles in every Project: kargo-admin
and kargo-viewer.
The Kargo UI and CLI further allow creating and managing
additional roles to provide scoped access to Kargo resources in
a Project, which can be mapped to OIDC emails, subjects, and
groups.
* Warehouse Filters
In v0.5.0, Warehouse subscription filters using regular
expressions were introduced. Making it possible to, for
instance, subscribe to a monorepo, but trigger the production
of new Freight only when changes to relevant paths are
detected.
In this release, this feature has been further enhanced to
support glob patterns (using a glob: prefix) and exact paths to
files or directories. Additionally, the filters now apply to
all commit selection strategies (and not just
NewestFromBranch).
For more detailed information, please take a look at the Kargo
documentation.
* Kubernetes Events
Kargo will now emit Kubernetes Events for noteworthy changes.
For example, when a new Promotion is created or the
verification of Freight in a Stage succeeded. These events can
also be viewed in the newly introduced events tab in the
Project dashboard of the Kargo UI.
* GitLab Merge Requests
In v0.3.0, support for opening a GitHub pull request was added
to Git-based promotion mechanisms. With the help of
@PhilippParis, this has now been expanded to support GitLab
merge requests.
* UI Improvements
- Project settings and AnalysisTemplate resources can now be
managed through the UI.
- Variety of bug fixes and other stability improvements.
* Other Notable Features
- Credentials can now include descriptions, which are displayed
in the UI for informational purposes. We plan to expand this
feature to more Kargo resource types in the future.
- kargo get commands now support a --no-headers flag, which
will avoid printing the column headers when provided.
- kargo promote can now wait for a Promotion to finish using
--wait.
- Kargo can now be configured (via the chart configuration) to
sign commits with a GPG key.
- Arbitrary volumes can be mounted to the optional Dex server
(via the chart configuration) to support more complex
connector configurations. This can for example be useful to
configure Dex's google connector to get additional Google
Groups information from your users, allowing you to assign
permissions to members of a Google Group.
-------------------------------------------------------------------
Sat Apr 20 11:36:10 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.5.2:
* fix: backport #1854 git url normalization logic to release-0.5
(#1864)
* fix: pass version info to UI during build -- release-0.5
edition (#1803)
-------------------------------------------------------------------
Tue Apr 09 06:27:11 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.5.1:
* chore: backport recent prs to release-0.5 (#1801)
* fix(ui): backport protobuf fixes from `main` to `release-0.5`
(#1800)
* feat: backport analysistemplate and analysisrun views to
release-0.5 (#1782)
-------------------------------------------------------------------
Fri Apr 05 06:05:22 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.5.0:
Big update with breaking changes, see release notes at
https://github.com/akuity/kargo/releases/tag/v0.5.0
* All New CLI
Breaking Change
- The CLI has been virtually rewritten from the ground up. Up
until now it wasn't an area of the project that had received
the attention it deserved and we knew its UX needed quite a
bit of work. All that has changed with this release!
- The updated CLI should feel more intuitive across the board,
behavior and help text should be more consistent from one
command to the next, and we've added quite a bit of new
functionality as well. Especially notable is that credentials
can now be managed and verification processes re-run or even
aborted via CLI.
- If you upgrade Kargo's cluster-side components, you must also
upgrade the CLI (if you use it).
-------------------------------------------------------------------
Sat Mar 30 10:17:09 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.4.5:
* fix(cli): restore ability to read manifests from stdin -- 0.4
edition (#1716)
-------------------------------------------------------------------
Sat Mar 16 17:37:58 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.4.4:
* chore(chart): be more careful about undefined values -- 0.4.x
edition (#1603)
-------------------------------------------------------------------
Sat Mar 16 17:31:16 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.4.3:
* fix(chart): warnings in chart install/upgrade (#1558)
-------------------------------------------------------------------
Sat Feb 24 09:16:35 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.4.2:
* fix(cli): don't involve kubeconfig in reading bytes from files
(#1528)
-------------------------------------------------------------------
Sat Feb 24 09:12:54 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 0.4.1:
* fix(crds): stage validation issue with kargo render promo mechs
(#1519)
-------------------------------------------------------------------
Thu Feb 22 12:41:10 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package kargo-cli: CLI for the Kargo Application lifecycle
orchestration platform

4
kargo-cli.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: kargo-cli
version: 1.1.2
mtime: 1734993151
commit: 4deb9ff40f2391b1c7dcaafa488e2cf62b7fe805

118
kargo-cli.spec Normal file
View File

@ -0,0 +1,118 @@
#
# spec file for package kargo-cli
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define executable_name kargo
Name: kargo-cli
Version: 1.1.2
Release: 0
Summary: CLI for the Kubernetes Application lifecycle orchestration
License: Apache-2.0
URL: https://github.com/akuity/kargo
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: bash-completion
BuildRequires: fish
BuildRequires: go >= 1.22
BuildRequires: zsh
%description
Kargo is a next-generation continuous delivery and application lifecycle
orchestration platform for Kubernetes. It builds upon GitOps principles and
integrates with existing technologies, like Argo CD, to streamline and automate
the progressive rollout of changes across the many stages of an application's
lifecycle.
%package -n %{name}-bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description -n %{name}-bash-completion
Bash command line completion support for %{name}.
%package -n %{name}-fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and fish)
BuildArch: noarch
%description -n %{name}-fish-completion
Fish command line completion support for %{name}.
%package -n %{name}-zsh-completion
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description -n %{name}-zsh-completion
zsh command line completion support for %{name}.
%prep
%autosetup -p1 -a 1
%build
DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ"
BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}")
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="\
-X github.com/akuity/kargo/internal/version.version=%{version} \
-X github.com/akuity/kargo/internal/version.buildDate=${BUILD_DATE} \
-X github.com/akuity/kargo/internal/version.gitCommit=v%{version} \
-X github.com/akuity/kargo/internal/version.gitTreeState=clean" \
-o bin/%{executable_name} ./cmd/cli
%install
# Install the binary.
install -D -m 0755 bin/%{executable_name} %{buildroot}/%{_bindir}/%{executable_name}
# create the bash completion file
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
%{buildroot}/%{_bindir}/%{executable_name} completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{executable_name}
# create the fish completion file
mkdir -p %{buildroot}%{_datarootdir}/fish/vendor_completions.d/
%{buildroot}/%{_bindir}/%{executable_name} completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{executable_name}.fish
# create the zsh completion file
mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/
%{buildroot}/%{_bindir}/%{executable_name} completion zsh > %{buildroot}%{_datarootdir}/zsh/site-functions/_%{executable_name}
%files
%doc README.md
%license LICENSE
%{_bindir}/%{executable_name}
%files -n %{name}-bash-completion
%{_datarootdir}/bash-completion/completions/%{executable_name}
%files -n %{name}-fish-completion
%{_datarootdir}/fish/vendor_completions.d/%{executable_name}.fish
%files -n %{name}-zsh-completion
%{_datarootdir}/zsh/site-functions/_%{executable_name}
%changelog

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb6761d966ec1ae9525ede410e35efe2e6fe87daad0c8b9f3e7fa3543ce3cb2a
size 14003403