Unverified Commit 7ac209b6 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #288288 from SuperSandro2000/kubernetes-controller-tools

kubernetes-controller-tools: 0.13.0 -> 0.14.0, add meta.changelog
parents b4188f7c f5ce53fc
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -2,18 +2,25 @@

buildGoModule rec {
  pname = "controller-tools";
  version = "0.13.0";
  version = "0.14.0";

  src = fetchFromGitHub {
    owner = "kubernetes-sigs";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-strTBBpmG60H38WWLakIjZHVUgKC/ajS7ZEFDhZWnlo=";
    sha256 = "sha256-G0jBQ12cpjfWGhXYppV9dB2n68bExi6ME9QbxXsUWvw=";
  };

  patches = [ ./version.patch ];

  vendorHash = "sha256-YQfMq0p3HfLgOjAk/anZpGx/fDnvovI3HtmYdKRKq5w=";
  postPatch = ''
    # fix wrong go line which go mod tidy complains about
    # https://github.com/kubernetes-sigs/controller-tools/pull/881
    substituteInPlace go.mod \
      --replace-fail "go 1.20" "go 1.21"
  '';

  vendorHash = "sha256-8XSMg/MII+HlsFuaOC6CK/jYiBXfeRZmLT7sW/ZN3Ts=";

  ldflags = [
    "-s"
@@ -32,6 +39,7 @@ buildGoModule rec {
  meta = with lib; {
    description = "Tools to use with the Kubernetes controller-runtime libraries";
    homepage = "https://github.com/kubernetes-sigs/controller-tools";
    changelog = "https://github.com/kubernetes-sigs/controller-tools/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ michojel ];
  };