Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kubic-control for openSUSE:Factory checked in at 2021-12-16 21:19:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kubic-control (Old) and /work/SRC/openSUSE:Factory/.kubic-control.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kubic-control" Thu Dec 16 21:19:08 2021 rev:22 rq:939067 version:0.12.3 Changes: -------- --- /work/SRC/openSUSE:Factory/kubic-control/kubic-control.changes 2021-11-22 23:04:01.265964845 +0100 +++ /work/SRC/openSUSE:Factory/.kubic-control.new.2520/kubic-control.changes 2021-12-16 21:19:59.110536602 +0100 @@ -1,0 +2,13 @@ +Fri Dec 10 09:57:50 UTC 2021 - Thorsten Kukuk <[email protected]> + +- Revert to go 1.14 until we have a solution for the go certificate + handling changes + +------------------------------------------------------------------- +Wed Dec 8 14:48:14 UTC 2021 - Thorsten Kukuk <[email protected]> + +- Update to version 0.12.3 + - Fix last PR +- Require go 1.17 or newer + +------------------------------------------------------------------- Old: ---- kubic-control-0.12.2.tar.xz New: ---- kubic-control-0.12.3.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kubic-control.spec ++++++ --- /var/tmp/diff_new_pack.hugfAX/_old 2021-12-16 21:19:59.622536798 +0100 +++ /var/tmp/diff_new_pack.hugfAX/_new 2021-12-16 21:19:59.626536799 +0100 @@ -17,7 +17,7 @@ Name: kubic-control -Version: 0.12.2 +Version: 0.12.3 Release: 0 Summary: Simple setup tool for kubernetes License: Apache-2.0 ++++++ kubic-control-0.12.2.tar.xz -> kubic-control-0.12.3.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/HEAD new/kubic-control-0.12.3/.git/HEAD --- old/kubic-control-0.12.2/.git/HEAD 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/.git/HEAD 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -ref: refs/heads/master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/config new/kubic-control-0.12.3/.git/config --- old/kubic-control-0.12.2/.git/config 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/.git/config 1970-01-01 01:00:00.000000000 +0100 @@ -1,11 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true -[remote "origin"] - url = https://github.com/thkukuk/kubic-control - fetch = +refs/heads/*:refs/remotes/origin/* -[branch "master"] - remote = origin - merge = refs/heads/master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/description new/kubic-control-0.12.3/.git/description --- old/kubic-control-0.12.2/.git/description 2021-11-19 14:47:12.721377641 +0100 +++ new/kubic-control-0.12.3/.git/description 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/applypatch-msg.sample new/kubic-control-0.12.3/.git/hooks/applypatch-msg.sample --- old/kubic-control-0.12.2/.git/hooks/applypatch-msg.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/applypatch-msg.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message taken by -# applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. The hook is -# allowed to edit the commit message file. -# -# To enable this hook, rename this file to "applypatch-msg". - -. git-sh-setup -commitmsg="$(git rev-parse --git-path hooks/commit-msg)" -test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} -: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/commit-msg.sample new/kubic-control-0.12.3/.git/hooks/commit-msg.sample --- old/kubic-control-0.12.2/.git/hooks/commit-msg.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/commit-msg.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message. -# Called by "git commit" with one argument, the name of the file -# that has the commit message. The hook should exit with non-zero -# status after issuing an appropriate message if it wants to stop the -# commit. The hook is allowed to edit the commit message file. -# -# To enable this hook, rename this file to "commit-msg". - -# Uncomment the below to add a Signed-off-by line to the message. -# Doing this in a hook is a bad idea in general, but the prepare-commit-msg -# hook is more suited to it. -# -# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') -# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" - -# This example catches duplicate Signed-off-by lines. - -test "" = "$(grep '^Signed-off-by: ' "$1" | - sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { - echo >&2 Duplicate Signed-off-by lines. - exit 1 -} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/fsmonitor-watchman.sample new/kubic-control-0.12.3/.git/hooks/fsmonitor-watchman.sample --- old/kubic-control-0.12.2/.git/hooks/fsmonitor-watchman.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/fsmonitor-watchman.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,173 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; -use IPC::Open2; - -# An example hook script to integrate Watchman -# (https://facebook.github.io/watchman/) with git to speed up detecting -# new and modified files. -# -# The hook is passed a version (currently 2) and last update token -# formatted as a string and outputs to stdout a new update token and -# all files that have been modified since the update token. Paths must -# be relative to the root of the working tree and separated by a single NUL. -# -# To enable this hook, rename this file to "query-watchman" and set -# 'git config core.fsmonitor .git/hooks/query-watchman' -# -my ($version, $last_update_token) = @ARGV; - -# Uncomment for debugging -# print STDERR "$0 $version $last_update_token\n"; - -# Check the hook interface version -if ($version ne 2) { - die "Unsupported query-fsmonitor hook version '$version'.\n" . - "Falling back to scanning...\n"; -} - -my $git_work_tree = get_working_dir(); - -my $retry = 1; - -my $json_pkg; -eval { - require JSON::XS; - $json_pkg = "JSON::XS"; - 1; -} or do { - require JSON::PP; - $json_pkg = "JSON::PP"; -}; - -launch_watchman(); - -sub launch_watchman { - my $o = watchman_query(); - if (is_work_tree_watched($o)) { - output_result($o->{clock}, @{$o->{files}}); - } -} - -sub output_result { - my ($clockid, @files) = @_; - - # Uncomment for debugging watchman output - # open (my $fh, ">", ".git/watchman-output.out"); - # binmode $fh, ":utf8"; - # print $fh "$clockid\n@files\n"; - # close $fh; - - binmode STDOUT, ":utf8"; - print $clockid; - print "\0"; - local $, = "\0"; - print @files; -} - -sub watchman_clock { - my $response = qx/watchman clock "$git_work_tree"/; - die "Failed to get clock id on '$git_work_tree'.\n" . - "Falling back to scanning...\n" if $? != 0; - - return $json_pkg->new->utf8->decode($response); -} - -sub watchman_query { - my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') - or die "open2() failed: $!\n" . - "Falling back to scanning...\n"; - - # In the query expression below we're asking for names of files that - # changed since $last_update_token but not from the .git folder. - # - # To accomplish this, we're using the "since" generator to use the - # recency index to select candidate nodes and "fields" to limit the - # output to file names only. Then we're using the "expression" term to - # further constrain the results. - if (substr($last_update_token, 0, 1) eq "c") { - $last_update_token = "\"$last_update_token\""; - } - my $query = <<" END"; - ["query", "$git_work_tree", { - "since": $last_update_token, - "fields": ["name"], - "expression": ["not", ["dirname", ".git"]] - }] - END - - # Uncomment for debugging the watchman query - # open (my $fh, ">", ".git/watchman-query.json"); - # print $fh $query; - # close $fh; - - print CHLD_IN $query; - close CHLD_IN; - my $response = do {local $/; <CHLD_OUT>}; - - # Uncomment for debugging the watch response - # open ($fh, ">", ".git/watchman-response.json"); - # print $fh $response; - # close $fh; - - die "Watchman: command returned no output.\n" . - "Falling back to scanning...\n" if $response eq ""; - die "Watchman: command returned invalid output: $response\n" . - "Falling back to scanning...\n" unless $response =~ /^\{/; - - return $json_pkg->new->utf8->decode($response); -} - -sub is_work_tree_watched { - my ($output) = @_; - my $error = $output->{error}; - if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { - $retry--; - my $response = qx/watchman watch "$git_work_tree"/; - die "Failed to make watchman watch '$git_work_tree'.\n" . - "Falling back to scanning...\n" if $? != 0; - $output = $json_pkg->new->utf8->decode($response); - $error = $output->{error}; - die "Watchman: $error.\n" . - "Falling back to scanning...\n" if $error; - - # Uncomment for debugging watchman output - # open (my $fh, ">", ".git/watchman-output.out"); - # close $fh; - - # Watchman will always return all files on the first query so - # return the fast "everything is dirty" flag to git and do the - # Watchman query just to get it over with now so we won't pay - # the cost in git to look up each individual file. - my $o = watchman_clock(); - $error = $output->{error}; - - die "Watchman: $error.\n" . - "Falling back to scanning...\n" if $error; - - output_result($o->{clock}, ("/")); - $last_update_token = $o->{clock}; - - eval { launch_watchman() }; - return 0; - } - - die "Watchman: $error.\n" . - "Falling back to scanning...\n" if $error; - - return 1; -} - -sub get_working_dir { - my $working_dir; - if ($^O =~ 'msys' || $^O =~ 'cygwin') { - $working_dir = Win32::GetCwd(); - $working_dir =~ tr/\\/\//; - } else { - require Cwd; - $working_dir = Cwd::cwd(); - } - - return $working_dir; -} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/post-update.sample new/kubic-control-0.12.3/.git/hooks/post-update.sample --- old/kubic-control-0.12.2/.git/hooks/post-update.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/post-update.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,8 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare a packed repository for use over -# dumb transports. -# -# To enable this hook, rename this file to "post-update". - -exec git update-server-info diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/pre-applypatch.sample new/kubic-control-0.12.3/.git/hooks/pre-applypatch.sample --- old/kubic-control-0.12.2/.git/hooks/pre-applypatch.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/pre-applypatch.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,14 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed -# by applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-applypatch". - -. git-sh-setup -precommit="$(git rev-parse --git-path hooks/pre-commit)" -test -x "$precommit" && exec "$precommit" ${1+"$@"} -: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/pre-commit.sample new/kubic-control-0.12.3/.git/hooks/pre-commit.sample --- old/kubic-control-0.12.2/.git/hooks/pre-commit.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/pre-commit.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed. -# Called by "git commit" with no arguments. The hook should -# exit with non-zero status after issuing an appropriate message if -# it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-commit". - -if git rev-parse --verify HEAD >/dev/null 2>&1 -then - against=HEAD -else - # Initial commit: diff against an empty tree object - against=$(git hash-object -t tree /dev/null) -fi - -# If you want to allow non-ASCII filenames set this variable to true. -allownonascii=$(git config --type=bool hooks.allownonascii) - -# Redirect output to stderr. -exec 1>&2 - -# Cross platform projects tend to avoid non-ASCII filenames; prevent -# them from being added to the repository. We exploit the fact that the -# printable range starts at the space character and ends with tilde. -if [ "$allownonascii" != "true" ] && - # Note that the use of brackets around a tr range is ok here, (it's - # even required, for portability to Solaris 10's /usr/bin/tr), since - # the square bracket bytes happen to fall in the designated range. - test $(git diff --cached --name-only --diff-filter=A -z $against | - LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 -then - cat <<\EOF -Error: Attempt to add a non-ASCII file name. - -This can cause problems if you want to work with people on other platforms. - -To be portable it is advisable to rename the file. - -If you know what you are doing you can disable this check using: - - git config hooks.allownonascii true -EOF - exit 1 -fi - -# If there are whitespace errors, print the offending file names and fail. -exec git diff-index --check --cached $against -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/pre-merge-commit.sample new/kubic-control-0.12.3/.git/hooks/pre-merge-commit.sample --- old/kubic-control-0.12.2/.git/hooks/pre-merge-commit.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/pre-merge-commit.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed. -# Called by "git merge" with no arguments. The hook should -# exit with non-zero status after issuing an appropriate message to -# stderr if it wants to stop the merge commit. -# -# To enable this hook, rename this file to "pre-merge-commit". - -. git-sh-setup -test -x "$GIT_DIR/hooks/pre-commit" && - exec "$GIT_DIR/hooks/pre-commit" -: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/pre-push.sample new/kubic-control-0.12.3/.git/hooks/pre-push.sample --- old/kubic-control-0.12.2/.git/hooks/pre-push.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/pre-push.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,53 +0,0 @@ -#!/bin/sh - -# An example hook script to verify what is about to be pushed. Called by "git -# push" after it has checked the remote status, but before anything has been -# pushed. If this script exits with a non-zero status nothing will be pushed. -# -# This hook is called with the following parameters: -# -# $1 -- Name of the remote to which the push is being done -# $2 -- URL to which the push is being done -# -# If pushing without using a named remote those arguments will be equal. -# -# Information about the commits which are being pushed is supplied as lines to -# the standard input in the form: -# -# <local ref> <local oid> <remote ref> <remote oid> -# -# This sample shows how to prevent push of commits where the log message starts -# with "WIP" (work in progress). - -remote="$1" -url="$2" - -zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0') - -while read local_ref local_oid remote_ref remote_oid -do - if test "$local_oid" = "$zero" - then - # Handle delete - : - else - if test "$remote_oid" = "$zero" - then - # New branch, examine all commits - range="$local_oid" - else - # Update to existing branch, examine new commits - range="$remote_oid..$local_oid" - fi - - # Check for WIP commit - commit=$(git rev-list -n 1 --grep '^WIP' "$range") - if test -n "$commit" - then - echo >&2 "Found WIP commit in $local_ref, not pushing" - exit 1 - fi - fi -done - -exit 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/pre-rebase.sample new/kubic-control-0.12.3/.git/hooks/pre-rebase.sample --- old/kubic-control-0.12.2/.git/hooks/pre-rebase.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/pre-rebase.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,169 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2006, 2008 Junio C Hamano -# -# The "pre-rebase" hook is run just before "git rebase" starts doing -# its job, and can prevent the command from running by exiting with -# non-zero status. -# -# The hook is called with the following parameters: -# -# $1 -- the upstream the series was forked from. -# $2 -- the branch being rebased (or empty when rebasing the current branch). -# -# This sample shows how to prevent topic branches that are already -# merged to 'next' branch from getting rebased, because allowing it -# would result in rebasing already published history. - -publish=next -basebranch="$1" -if test "$#" = 2 -then - topic="refs/heads/$2" -else - topic=`git symbolic-ref HEAD` || - exit 0 ;# we do not interrupt rebasing detached HEAD -fi - -case "$topic" in -refs/heads/??/*) - ;; -*) - exit 0 ;# we do not interrupt others. - ;; -esac - -# Now we are dealing with a topic branch being rebased -# on top of master. Is it OK to rebase it? - -# Does the topic really exist? -git show-ref -q "$topic" || { - echo >&2 "No such branch $topic" - exit 1 -} - -# Is topic fully merged to master? -not_in_master=`git rev-list --pretty=oneline ^master "$topic"` -if test -z "$not_in_master" -then - echo >&2 "$topic is fully merged to master; better remove it." - exit 1 ;# we could allow it, but there is no point. -fi - -# Is topic ever merged to next? If so you should not be rebasing it. -only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` -only_next_2=`git rev-list ^master ${publish} | sort` -if test "$only_next_1" = "$only_next_2" -then - not_in_topic=`git rev-list "^$topic" master` - if test -z "$not_in_topic" - then - echo >&2 "$topic is already up to date with master" - exit 1 ;# we could allow it, but there is no point. - else - exit 0 - fi -else - not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` - /usr/bin/perl -e ' - my $topic = $ARGV[0]; - my $msg = "* $topic has commits already merged to public branch:\n"; - my (%not_in_next) = map { - /^([0-9a-f]+) /; - ($1 => 1); - } split(/\n/, $ARGV[1]); - for my $elem (map { - /^([0-9a-f]+) (.*)$/; - [$1 => $2]; - } split(/\n/, $ARGV[2])) { - if (!exists $not_in_next{$elem->[0]}) { - if ($msg) { - print STDERR $msg; - undef $msg; - } - print STDERR " $elem->[1]\n"; - } - } - ' "$topic" "$not_in_next" "$not_in_master" - exit 1 -fi - -<<\DOC_END - -This sample hook safeguards topic branches that have been -published from being rewound. - -The workflow assumed here is: - - * Once a topic branch forks from "master", "master" is never - merged into it again (either directly or indirectly). - - * Once a topic branch is fully cooked and merged into "master", - it is deleted. If you need to build on top of it to correct - earlier mistakes, a new topic branch is created by forking at - the tip of the "master". This is not strictly necessary, but - it makes it easier to keep your history simple. - - * Whenever you need to test or publish your changes to topic - branches, merge them into "next" branch. - -The script, being an example, hardcodes the publish branch name -to be "next", but it is trivial to make it configurable via -$GIT_DIR/config mechanism. - -With this workflow, you would want to know: - -(1) ... if a topic branch has ever been merged to "next". Young - topic branches can have stupid mistakes you would rather - clean up before publishing, and things that have not been - merged into other branches can be easily rebased without - affecting other people. But once it is published, you would - not want to rewind it. - -(2) ... if a topic branch has been fully merged to "master". - Then you can delete it. More importantly, you should not - build on top of it -- other people may already want to - change things related to the topic as patches against your - "master", so if you need further changes, it is better to - fork the topic (perhaps with the same name) afresh from the - tip of "master". - -Let's look at this example: - - o---o---o---o---o---o---o---o---o---o "next" - / / / / - / a---a---b A / / - / / / / - / / c---c---c---c B / - / / / \ / - / / / b---b C \ / - / / / / \ / - ---o---o---o---o---o---o---o---o---o---o---o "master" - - -A, B and C are topic branches. - - * A has one fix since it was merged up to "next". - - * B has finished. It has been fully merged up to "master" and "next", - and is ready to be deleted. - - * C has not merged to "next" at all. - -We would want to allow C to be rebased, refuse A, and encourage -B to be deleted. - -To compute (1): - - git rev-list ^master ^topic next - git rev-list ^master next - - if these match, topic has not merged in next at all. - -To compute (2): - - git rev-list master..topic - - if this is empty, it is fully merged to "master". - -DOC_END diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/pre-receive.sample new/kubic-control-0.12.3/.git/hooks/pre-receive.sample --- old/kubic-control-0.12.2/.git/hooks/pre-receive.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/pre-receive.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ -#!/bin/sh -# -# An example hook script to make use of push options. -# The example simply echoes all push options that start with 'echoback=' -# and rejects all pushes when the "reject" push option is used. -# -# To enable this hook, rename this file to "pre-receive". - -if test -n "$GIT_PUSH_OPTION_COUNT" -then - i=0 - while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" - do - eval "value=\$GIT_PUSH_OPTION_$i" - case "$value" in - echoback=*) - echo "echo from the pre-receive-hook: ${value#*=}" >&2 - ;; - reject) - exit 1 - esac - i=$((i + 1)) - done -fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/prepare-commit-msg.sample new/kubic-control-0.12.3/.git/hooks/prepare-commit-msg.sample --- old/kubic-control-0.12.2/.git/hooks/prepare-commit-msg.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/prepare-commit-msg.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,42 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare the commit log message. -# Called by "git commit" with the name of the file that has the -# commit message, followed by the description of the commit -# message's source. The hook's purpose is to edit the commit -# message file. If the hook fails with a non-zero status, -# the commit is aborted. -# -# To enable this hook, rename this file to "prepare-commit-msg". - -# This hook includes three examples. The first one removes the -# "# Please enter the commit message..." help message. -# -# The second includes the output of "git diff --name-status -r" -# into the message, just before the "git status" output. It is -# commented because it doesn't cope with --amend or with squashed -# commits. -# -# The third example adds a Signed-off-by line to the message, that can -# still be edited. This is rarely a good idea. - -COMMIT_MSG_FILE=$1 -COMMIT_SOURCE=$2 -SHA1=$3 - -/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" - -# case "$COMMIT_SOURCE,$SHA1" in -# ,|template,) -# /usr/bin/perl -i.bak -pe ' -# print "\n" . `git diff --cached --name-status -r` -# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; -# *) ;; -# esac - -# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') -# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" -# if test -z "$COMMIT_SOURCE" -# then -# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" -# fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/push-to-checkout.sample new/kubic-control-0.12.3/.git/hooks/push-to-checkout.sample --- old/kubic-control-0.12.2/.git/hooks/push-to-checkout.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/push-to-checkout.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,78 +0,0 @@ -#!/bin/sh - -# An example hook script to update a checked-out tree on a git push. -# -# This hook is invoked by git-receive-pack(1) when it reacts to git -# push and updates reference(s) in its repository, and when the push -# tries to update the branch that is currently checked out and the -# receive.denyCurrentBranch configuration variable is set to -# updateInstead. -# -# By default, such a push is refused if the working tree and the index -# of the remote repository has any difference from the currently -# checked out commit; when both the working tree and the index match -# the current commit, they are updated to match the newly pushed tip -# of the branch. This hook is to be used to override the default -# behaviour; however the code below reimplements the default behaviour -# as a starting point for convenient modification. -# -# The hook receives the commit with which the tip of the current -# branch is going to be updated: -commit=$1 - -# It can exit with a non-zero status to refuse the push (when it does -# so, it must not modify the index or the working tree). -die () { - echo >&2 "$*" - exit 1 -} - -# Or it can make any necessary changes to the working tree and to the -# index to bring them to the desired state when the tip of the current -# branch is updated to the new commit, and exit with a zero status. -# -# For example, the hook can simply run git read-tree -u -m HEAD "$1" -# in order to emulate git fetch that is run in the reverse direction -# with git push, as the two-tree form of git read-tree -u -m is -# essentially the same as git switch or git checkout that switches -# branches while keeping the local changes in the working tree that do -# not interfere with the difference between the branches. - -# The below is a more-or-less exact translation to shell of the C code -# for the default behaviour for git's push-to-checkout hook defined in -# the push_to_deploy() function in builtin/receive-pack.c. -# -# Note that the hook will be executed from the repository directory, -# not from the working tree, so if you want to perform operations on -# the working tree, you will have to adapt your code accordingly, e.g. -# by adding "cd .." or using relative paths. - -if ! git update-index -q --ignore-submodules --refresh -then - die "Up-to-date check failed" -fi - -if ! git diff-files --quiet --ignore-submodules -- -then - die "Working directory has unstaged changes" -fi - -# This is a rough translation of: -# -# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX -if git cat-file -e HEAD 2>/dev/null -then - head=HEAD -else - head=$(git hash-object -t tree --stdin </dev/null) -fi - -if ! git diff-index --quiet --cached --ignore-submodules $head -- -then - die "Working directory has staged changes" -fi - -if ! git read-tree -u -m "$commit" -then - die "Could not update working tree to new HEAD" -fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/hooks/update.sample new/kubic-control-0.12.3/.git/hooks/update.sample --- old/kubic-control-0.12.2/.git/hooks/update.sample 2021-11-19 14:47:12.717377609 +0100 +++ new/kubic-control-0.12.3/.git/hooks/update.sample 1970-01-01 01:00:00.000000000 +0100 @@ -1,128 +0,0 @@ -#!/bin/sh -# -# An example hook script to block unannotated tags from entering. -# Called by "git receive-pack" with arguments: refname sha1-old sha1-new -# -# To enable this hook, rename this file to "update". -# -# Config -# ------ -# hooks.allowunannotated -# This boolean sets whether unannotated tags will be allowed into the -# repository. By default they won't be. -# hooks.allowdeletetag -# This boolean sets whether deleting tags will be allowed in the -# repository. By default they won't be. -# hooks.allowmodifytag -# This boolean sets whether a tag may be modified after creation. By default -# it won't be. -# hooks.allowdeletebranch -# This boolean sets whether deleting branches will be allowed in the -# repository. By default they won't be. -# hooks.denycreatebranch -# This boolean sets whether remotely creating branches will be denied -# in the repository. By default this is allowed. -# - -# --- Command line -refname="$1" -oldrev="$2" -newrev="$3" - -# --- Safety check -if [ -z "$GIT_DIR" ]; then - echo "Don't run this script from the command line." >&2 - echo " (if you want, you could supply GIT_DIR then run" >&2 - echo " $0 <ref> <oldrev> <newrev>)" >&2 - exit 1 -fi - -if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then - echo "usage: $0 <ref> <oldrev> <newrev>" >&2 - exit 1 -fi - -# --- Config -allowunannotated=$(git config --type=bool hooks.allowunannotated) -allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) -denycreatebranch=$(git config --type=bool hooks.denycreatebranch) -allowdeletetag=$(git config --type=bool hooks.allowdeletetag) -allowmodifytag=$(git config --type=bool hooks.allowmodifytag) - -# check for no description -projectdesc=$(sed -e '1q' "$GIT_DIR/description") -case "$projectdesc" in -"Unnamed repository"* | "") - echo "*** Project description file hasn't been set" >&2 - exit 1 - ;; -esac - -# --- Check types -# if $newrev is 0000...0000, it's a commit to delete a ref. -zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0') -if [ "$newrev" = "$zero" ]; then - newrev_type=delete -else - newrev_type=$(git cat-file -t $newrev) -fi - -case "$refname","$newrev_type" in - refs/tags/*,commit) - # un-annotated tag - short_refname=${refname##refs/tags/} - if [ "$allowunannotated" != "true" ]; then - echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 - echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 - exit 1 - fi - ;; - refs/tags/*,delete) - # delete tag - if [ "$allowdeletetag" != "true" ]; then - echo "*** Deleting a tag is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/tags/*,tag) - # annotated tag - if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 - then - echo "*** Tag '$refname' already exists." >&2 - echo "*** Modifying a tag is not allowed in this repository." >&2 - exit 1 - fi - ;; - refs/heads/*,commit) - # branch - if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then - echo "*** Creating a branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/heads/*,delete) - # delete branch - if [ "$allowdeletebranch" != "true" ]; then - echo "*** Deleting a branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/remotes/*,commit) - # tracking branch - ;; - refs/remotes/*,delete) - # delete tracking branch - if [ "$allowdeletebranch" != "true" ]; then - echo "*** Deleting a tracking branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - *) - # Anything else (is there anything else?) - echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 - exit 1 - ;; -esac - -# --- Finished -exit 0 Binary files old/kubic-control-0.12.2/.git/index and new/kubic-control-0.12.3/.git/index differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/info/exclude new/kubic-control-0.12.3/.git/info/exclude --- old/kubic-control-0.12.2/.git/info/exclude 2021-11-19 14:47:12.721377641 +0100 +++ new/kubic-control-0.12.3/.git/info/exclude 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/logs/HEAD new/kubic-control-0.12.3/.git/logs/HEAD --- old/kubic-control-0.12.2/.git/logs/HEAD 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/.git/logs/HEAD 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 78d1d99f13958b1924010f1d7c0d8a1f04a3b888 Thorsten Kukuk <[email protected]> 1637329633 +0100 clone: from https://github.com/thkukuk/kubic-control diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/logs/refs/heads/master new/kubic-control-0.12.3/.git/logs/refs/heads/master --- old/kubic-control-0.12.2/.git/logs/refs/heads/master 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/.git/logs/refs/heads/master 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 78d1d99f13958b1924010f1d7c0d8a1f04a3b888 Thorsten Kukuk <[email protected]> 1637329633 +0100 clone: from https://github.com/thkukuk/kubic-control diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/logs/refs/remotes/origin/HEAD new/kubic-control-0.12.3/.git/logs/refs/remotes/origin/HEAD --- old/kubic-control-0.12.2/.git/logs/refs/remotes/origin/HEAD 2021-11-19 14:47:13.585384427 +0100 +++ new/kubic-control-0.12.3/.git/logs/refs/remotes/origin/HEAD 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -0000000000000000000000000000000000000000 78d1d99f13958b1924010f1d7c0d8a1f04a3b888 Thorsten Kukuk <[email protected]> 1637329633 +0100 clone: from https://github.com/thkukuk/kubic-control Binary files old/kubic-control-0.12.2/.git/objects/pack/pack-2a0f6cfb014a03b8590cb0d3cd8b724ce0cda2d1.idx and new/kubic-control-0.12.3/.git/objects/pack/pack-2a0f6cfb014a03b8590cb0d3cd8b724ce0cda2d1.idx differ Binary files old/kubic-control-0.12.2/.git/objects/pack/pack-2a0f6cfb014a03b8590cb0d3cd8b724ce0cda2d1.pack and new/kubic-control-0.12.3/.git/objects/pack/pack-2a0f6cfb014a03b8590cb0d3cd8b724ce0cda2d1.pack differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/packed-refs new/kubic-control-0.12.3/.git/packed-refs --- old/kubic-control-0.12.2/.git/packed-refs 2021-11-19 14:47:13.585384427 +0100 +++ new/kubic-control-0.12.3/.git/packed-refs 1970-01-01 01:00:00.000000000 +0100 @@ -1,26 +0,0 @@ -# pack-refs with: peeled fully-peeled sorted -78d1d99f13958b1924010f1d7c0d8a1f04a3b888 refs/remotes/origin/master -b5d6fc06c3bc9a1a242ad8263a3d8e71eadf5521 refs/tags/0.7.0 -11f0daf7e39c6c8ca826819b9fa230952c167fc4 refs/tags/v0.1.0 -9057fe22abd1cae79b7de5bad967f3d09735820e refs/tags/v0.10.0 -c46f1202cbaaa6adfbcccacb40c30ebbb4312ba8 refs/tags/v0.10.1 -90c3e05da2ed5b27cf7ca6bf3b76628cadbce435 refs/tags/v0.10.2 -8febee7295ee9818bc348d63ee4fe86b55377a37 refs/tags/v0.11 -61be214ad5ebb800e8964341aec975d8da759707 refs/tags/v0.12 -6e17f7aae29931c384a8f403d4a2b25c22232b47 refs/tags/v0.12.1 -02cfb06685013a9b6a38b31ab421c3b37f3ae3cb refs/tags/v0.2.0 -6665a06488a12d17faf5d0e0d47295d6e96b8b3e refs/tags/v0.2.1 -8753d28f8536fa50a7e9e5873348475a4a9652d5 refs/tags/v0.3.0 -8789ce66da490b5f82b3fa885f8bb57f4f530a09 refs/tags/v0.4.0 -0439068a8e0b4b4bce0fd9eb432d30e309e3333f refs/tags/v0.5.0 -5bef191e2368f7f7b9e24a556ad952c1062ef82e refs/tags/v0.5.1 -0f963e79a4b5d07229539716b64974dd8df87517 refs/tags/v0.6.0 -3da3acf01e4feb0fc106f904cc3e684f800e0133 refs/tags/v0.6.1 -98079459060b05aeb3eef0d06db11a9cbd1e97f2 refs/tags/v0.6.2 -2ab0d3c1ee5861c49d9baf5a5147c2dfe41d4005 refs/tags/v0.6.3 -b5d6fc06c3bc9a1a242ad8263a3d8e71eadf5521 refs/tags/v0.7.0 -783ab0cb55f38e97e1ce0920b09a95bd45c2f2a9 refs/tags/v0.8.0 -831e6b797c79846f936c99841e13061ff3600c43 refs/tags/v0.8.1 -d712f15dfe3c794bdf15b22806edf66792af6ea0 refs/tags/v0.8.2 -87cf653bfc5a24ca74f10115c54e2e58982d062a refs/tags/v0.9.0 -290cbd203f5d8b2934ff2c9bc42aadc163b1a672 refs/tags/v0.9.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/refs/heads/master new/kubic-control-0.12.3/.git/refs/heads/master --- old/kubic-control-0.12.2/.git/refs/heads/master 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/.git/refs/heads/master 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -78d1d99f13958b1924010f1d7c0d8a1f04a3b888 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.git/refs/remotes/origin/HEAD new/kubic-control-0.12.3/.git/refs/remotes/origin/HEAD --- old/kubic-control-0.12.2/.git/refs/remotes/origin/HEAD 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/.git/refs/remotes/origin/HEAD 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -ref: refs/remotes/origin/master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/.gitignore new/kubic-control-0.12.3/.gitignore --- old/kubic-control-0.12.2/.gitignore 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/.gitignore 1970-01-01 01:00:00.000000000 +0100 @@ -1,21 +0,0 @@ -# Binaries for programs and plugins -*.exe -*.exe~ -*.dll -*.so -*.dylib - -# Test binary, build with `go test -c` -*.test - -# Output of the go coverage tool, specifically when used with LiteIDE -*.out - -# Backup files -*~ -kubic-control-*.tar.xz - -vendor -api/api.pb.go -bin/kubicd -bin/kubicctl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/Makefile new/kubic-control-0.12.3/Makefile --- old/kubic-control-0.12.2/Makefile 2021-11-19 14:47:13.605384584 +0100 +++ new/kubic-control-0.12.3/Makefile 2021-12-08 15:47:10.320450564 +0100 @@ -49,6 +49,7 @@ release: ## create release package from git git clone https://github.com/thkukuk/kubic-control mv kubic-control kubic-control-$(VERSION) + rm -rf kubic-control-$(VERSION)/.git* sed -i -e 's|USE_VENDOR = -mod vendor|USE_VENDOR = -mod vendor -mod vendor|g' kubic-control-$(VERSION)/Makefile make -C kubic-control-$(VERSION) api make -C kubic-control-$(VERSION) vendor diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/VERSION new/kubic-control-0.12.3/VERSION --- old/kubic-control-0.12.2/VERSION 2021-11-19 14:47:13.589384458 +0100 +++ new/kubic-control-0.12.3/VERSION 2021-12-08 15:47:10.308440033 +0100 @@ -1 +1 @@ -0.12.1 +0.12.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/kubeadm/addNode.go new/kubic-control-0.12.3/pkg/kubeadm/addNode.go --- old/kubic-control-0.12.2/pkg/kubeadm/addNode.go 2021-11-19 14:47:13.593384490 +0100 +++ new/kubic-control-0.12.3/pkg/kubeadm/addNode.go 2021-12-08 15:47:10.308440033 +0100 @@ -89,10 +89,10 @@ // Differentiate between 'name1,name2' and 'name[1,2]' if strings.Index(nodeNames, ",") >= 0 && strings.Index(nodeNames, "[") == -1 { - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", "-L", nodeNames, "test.ping") } else { - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", nodeNames, "test.ping") } if success != true { @@ -121,7 +121,7 @@ stream.Send(&pb.StatusReply{Success: true, Message: nodelist[i] + ": adding node..."}) - success, message := tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "service.start", "crio") + success, message := tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "service.start", "crio") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) @@ -129,7 +129,7 @@ failed++ return } - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "service.enable", "crio") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "service.enable", "crio") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) @@ -137,7 +137,7 @@ failed++ return } - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "service.start", "kubelet") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "service.start", "kubelet") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) @@ -145,7 +145,7 @@ failed++ return } - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "service.enable", "kubelet") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "service.enable", "kubelet") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) @@ -156,7 +156,7 @@ stream.Send(&pb.StatusReply{Success: true, Message: nodelist[i] + ": joining cluster..."}) - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "cmd.run", "\""+joincmd+"\"") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "cmd.run", "\""+joincmd+"\"") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) @@ -164,7 +164,7 @@ failed++ return } - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "grains.append", "kubicd", "kubic-"+nodeType+"-node") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "grains.append", "kubicd", "kubic-"+nodeType+"-node") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) @@ -173,7 +173,7 @@ return } // Configure transactinal-update - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "cmd.run", "if [ -f /etc/transactional-update.conf ]; then grep -q ^REBOOT_METHOD= /etc/transactional-update.conf && sed -i -e 's|REBOOT_METHOD=.*|REBOOT_METHOD=kured|g' /etc/transactional-update.conf || echo REBOOT_METHOD=kured >> /etc/transactional-update.conf ; else echo REBOOT_METHOD=kured > /etc/transactional-update.conf ; fi") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "cmd.run", "if [ -f /etc/transactional-update.conf ]; then grep -q ^REBOOT_METHOD= /etc/transactional-update.conf && sed -i -e 's|REBOOT_METHOD=.*|REBOOT_METHOD=kured|g' /etc/transactional-update.conf || echo REBOOT_METHOD=kured >> /etc/transactional-update.conf ; else echo REBOOT_METHOD=kured > /etc/transactional-update.conf ; fi") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) @@ -185,7 +185,7 @@ if len(haproxy_salt) > 0 { stream.Send(&pb.StatusReply{Success: true, Message: nodelist[i] + ": adding node to haproxy loadbalancer..."}) - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", haproxy_salt, "cmd.run", "haproxycfg server add "+nodelist[i]) + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", haproxy_salt, "cmd.run", "haproxycfg server add "+nodelist[i]) if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/kubeadm/initMaster.go new/kubic-control-0.12.3/pkg/kubeadm/initMaster.go --- old/kubic-control-0.12.2/pkg/kubeadm/initMaster.go 2021-11-19 14:47:13.593384490 +0100 +++ new/kubic-control-0.12.3/pkg/kubeadm/initMaster.go 2021-12-08 15:47:10.312443543 +0100 @@ -51,7 +51,7 @@ func executeCmdSalt(salt string, command string, arg ...string) (bool, string) { if len(salt) > 0 { - return tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", salt, "cmd.run", command+" "+strings.Join(arg[:], " ")) + return tools.ExecuteCmd("salt", "--module-executors='direct_call'", salt, "cmd.run", command+" "+strings.Join(arg[:], " ")) } else { return tools.ExecuteCmd(command, arg...) } @@ -60,7 +60,7 @@ // exists returns whether the given file or directory exists func exists(path string, salt string) (bool, error) { if len(salt) > 0 { - success, message := tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", salt, "file.access", path, "f") + success, message := tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", salt, "file.access", path, "f") if success != true { return false, errors.New(message) } @@ -178,7 +178,7 @@ } return nil } - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", in.Haproxy, "cmd.run", + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", in.Haproxy, "cmd.run", "\"haproxycfg init --force "+in.MultiMaster+" "+hostname+"\"") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil { @@ -333,7 +333,7 @@ // Get kubernetes/admin.conf for kubectl calls tools.ExecuteCmd("mkdir", "/etc/kubernetes") log.Infof("Download /etc/kubernetes/admin.conf") - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=newline_values_only", + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=newline_values_only", "--out-file=/etc/kubernetes/admin.conf", arg_salt, "cmd.run", "cat /etc/kubernetes/admin.conf") if success != true { @@ -391,7 +391,7 @@ return nil } if len(arg_salt) > 0 { - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", arg_salt, "grains.append", "kubicd", "kubic-master-node") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", arg_salt, "grains.append", "kubicd", "kubic-master-node") if success != true { if err := stream.Send(&pb.StatusReply{Success: success, Message: message}); err != nil { return err diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/kubeadm/rebootNode.go new/kubic-control-0.12.3/pkg/kubeadm/rebootNode.go --- old/kubic-control-0.12.2/pkg/kubeadm/rebootNode.go 2021-11-19 14:47:13.593384490 +0100 +++ new/kubic-control-0.12.3/pkg/kubeadm/rebootNode.go 2021-12-08 15:47:10.312443543 +0100 @@ -31,7 +31,7 @@ return success, message } - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "system.reboot") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "system.reboot") if success != true { return success, message } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/kubeadm/removeNode.go new/kubic-control-0.12.3/pkg/kubeadm/removeNode.go --- old/kubic-control-0.12.2/pkg/kubeadm/removeNode.go 2021-11-19 14:47:13.593384490 +0100 +++ new/kubic-control-0.12.3/pkg/kubeadm/removeNode.go 2021-12-08 15:47:10.312443543 +0100 @@ -46,9 +46,9 @@ var message string if strings.Index(in.NodeNames, ",") >= 0 && strings.Index(in.NodeNames, "[") == -1 { - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", "-L", in.NodeNames, "grains.get", "kubicd") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", "-L", in.NodeNames, "grains.get", "kubicd") } else { - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", in.NodeNames, "grains.get", "kubicd") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", in.NodeNames, "grains.get", "kubicd") } if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil { @@ -92,7 +92,7 @@ // If loadbalancer is known, remove from haproxy if len(haproxy_salt) > 0 { stream.Send(&pb.StatusReply{Success: true, Message: nodelist[i] + ": removing node from haproxy loadbalancer..."}) - success, message := tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", haproxy_salt, "cmd.run", "haproxycfg server remove "+nodelist[i]) + success, message := tools.ExecuteCmd("salt", "--module-executors='direct_call'", haproxy_salt, "cmd.run", "haproxycfg server remove "+nodelist[i]) if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: nodelist[i] + ": " + message}); err != nil { log.Errorf("Send message failed: %s", err) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/kubeadm/reset.go new/kubic-control-0.12.3/pkg/kubeadm/reset.go --- old/kubic-control-0.12.2/pkg/kubeadm/reset.go 2021-11-19 14:47:13.593384490 +0100 +++ new/kubic-control-0.12.3/pkg/kubeadm/reset.go 2021-12-08 15:47:10.312443543 +0100 @@ -101,7 +101,7 @@ /* reset the node. Even if this fails, continue cleanup, but report back */ send(true, nodeName+": reset node...") - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "cmd.run", "kubeadm reset --force") if success != true { send(success, nodeName+": "+message+" (ignored)") @@ -110,18 +110,18 @@ send(true, nodeName+": cleanup after kubeadm...") /* Try some system cleanup, ignore if fails */ - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "cmd.run", + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "cmd.run", "sed -i -e 's|^REBOOT_METHOD=kured|REBOOT_METHOD=auto|g' /etc/transactional-update.conf") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "grains.delkey", "kubicd") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "cmd.run", + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "grains.delkey", "kubicd") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "cmd.run", "\"iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X\"") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "cmd.run", "\"rm -rf /var/lib/etcd/*\"") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "cmd.run", "\"rm -rf /var/lib/cni/*\"") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "cmd.run", "\"ip link delete cni0; ip link delete flannel.1\"") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "service.disable", "kubelet") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "service.stop", "kubelet") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "service.disable", "crio") - tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodeName, "service.stop", "crio") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "cmd.run", "\"rm -rf /var/lib/etcd/*\"") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "cmd.run", "\"rm -rf /var/lib/cni/*\"") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "cmd.run", "\"ip link delete cni0; ip link delete flannel.1\"") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "service.disable", "kubelet") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "service.stop", "kubelet") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "service.disable", "crio") + tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodeName, "service.stop", "crio") /* ignore if we cannot delete the node*/ send(true, nodeName+": final node deletion...") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/kubeadm/upgradeKubernetes.go new/kubic-control-0.12.3/pkg/kubeadm/upgradeKubernetes.go --- old/kubic-control-0.12.2/pkg/kubeadm/upgradeKubernetes.go 2021-11-19 14:47:13.597384521 +0100 +++ new/kubic-control-0.12.3/pkg/kubeadm/upgradeKubernetes.go 2021-12-08 15:47:10.312443543 +0100 @@ -139,18 +139,18 @@ // if draining fails, ignore tools.DrainNode(hostname, "") - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "cmd.run", + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "cmd.run", "\"kubeadm upgrade node\"") if success != true { failedNodes = failedNodes + nodelist[i] + " (kubeadm), " } else { // Update kubelet - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "cmd.run", + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "cmd.run", "\"sed -i s/KUBELET_VER=.*/KUBELET_VER="+kubelet_version+"/ /etc/sysconfig/kubelet\"") if success != true { failedNodes = failedNodes + nodelist[i] + " (kubelet_ver), " } else { - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", nodelist[i], "service.restart", "kubelet") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", nodelist[i], "service.restart", "kubelet") if success != true { failedNodes = failedNodes + nodelist[i] + " (kubelet), " } @@ -185,7 +185,7 @@ } // XXX Check if kuberadm is new enough on all nodes - // salt '*' --module-executors='[direct_call]' --out=txt pkg.version kubernetes-kubeadm + // salt '*' --module-executors='direct_call' --out=txt pkg.version kubernetes-kubeadm if err := upgradeFirstMaster(in, stream, kubernetes_version); err != nil { return err diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/tools/getKubeadmVersion.go new/kubic-control-0.12.3/pkg/tools/getKubeadmVersion.go --- old/kubic-control-0.12.2/pkg/tools/getKubeadmVersion.go 2021-11-19 14:47:13.597384521 +0100 +++ new/kubic-control-0.12.3/pkg/tools/getKubeadmVersion.go 2021-12-08 15:47:10.312443543 +0100 @@ -23,7 +23,7 @@ var success bool var message string if len(salt) > 0 { - success, message = ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", salt, "cmd.run", "rpm -q --qf '%{VERSION}' kubernetes-kubeadm") + success, message = ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", salt, "cmd.run", "rpm -q --qf '%{VERSION}' kubernetes-kubeadm") message = strings.Replace(message, "\n", "", -1) i := strings.Index(message, ":") + 1 message = strings.TrimSpace(message[i:]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/tools/getListOfNodes.go new/kubic-control-0.12.3/pkg/tools/getListOfNodes.go --- old/kubic-control-0.12.2/pkg/tools/getListOfNodes.go 2021-11-19 14:47:13.597384521 +0100 +++ new/kubic-control-0.12.3/pkg/tools/getListOfNodes.go 2021-12-08 15:47:10.312443543 +0100 @@ -25,7 +25,7 @@ } // Get list of all nodes of this role - success, message := ExecuteCmd("salt", "--module-executors='[direct_call]'", "-G", "kubicd:kubic-"+role+"-node", "grains.get", "kubic-"+role+"-node") + success, message := ExecuteCmd("salt", "--module-executors='direct_call'", "-G", "kubicd:kubic-"+role+"-node", "grains.get", "kubic-"+role+"-node") if success != true { return success, message, nil } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/tools/getNodeName.go new/kubic-control-0.12.3/pkg/tools/getNodeName.go --- old/kubic-control-0.12.2/pkg/tools/getNodeName.go 2021-11-19 14:47:13.597384521 +0100 +++ new/kubic-control-0.12.3/pkg/tools/getNodeName.go 2021-12-08 15:47:10.312443543 +0100 @@ -23,7 +23,7 @@ // salt host names are not identical with kubernetes node name. // Output of hostname should be identical to node name - success, message := ExecuteCmd("salt", "--module-executors='[direct_call]'", target, "network.get_hostname") + success, message := ExecuteCmd("salt", "--module-executors='direct_call'", target, "network.get_hostname") if success != true { return target, errors.New(message) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/yomi/install.go new/kubic-control-0.12.3/pkg/yomi/install.go --- old/kubic-control-0.12.2/pkg/yomi/install.go 2021-11-19 14:47:13.597384521 +0100 +++ new/kubic-control-0.12.3/pkg/yomi/install.go 2021-12-08 15:47:10.312443543 +0100 @@ -39,7 +39,7 @@ } // make sure latest modules are used on minion - success, message := tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", in.Saltnode, "saltutil.sync_all") + success, message := tools.ExecuteCmd("salt", "--module-executors='direct_call'", in.Saltnode, "saltutil.sync_all") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil { @@ -49,7 +49,7 @@ } // wipe harddisk, else salt will not re-create them - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", in.Saltnode, "state.apply", "yomi.storage.wipe") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", in.Saltnode, "state.apply", "yomi.storage.wipe") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil { @@ -59,7 +59,7 @@ } // Do final installation - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", in.Saltnode, "state.sls", "yomi.installer") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", in.Saltnode, "state.sls", "yomi.installer") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubic-control-0.12.2/pkg/yomi/prepareConfig.go new/kubic-control-0.12.3/pkg/yomi/prepareConfig.go --- old/kubic-control-0.12.2/pkg/yomi/prepareConfig.go 2021-11-19 14:47:13.597384521 +0100 +++ new/kubic-control-0.12.3/pkg/yomi/prepareConfig.go 2021-12-08 15:47:10.312443543 +0100 @@ -74,7 +74,7 @@ } // make sure latest modules are used on minion - success, message := tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", in.Saltnode, "saltutil.sync_all") + success, message := tools.ExecuteCmd("salt", "--module-executors='direct_call'", in.Saltnode, "saltutil.sync_all") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil { @@ -117,7 +117,7 @@ useEfi := false if in.Efi == 0 { // UEFI or BIOS? - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", in.Saltnode, "cmd.run", + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", in.Saltnode, "cmd.run", "test -f /sys/firmware/efi/systab && echo true || echo false") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, @@ -154,7 +154,7 @@ useBareMetal := false if in.Baremetal == 0 { // bare metal or virtualisation? - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=txt", in.Saltnode, "cmd.run", "systemd-detect-virt") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=txt", in.Saltnode, "cmd.run", "systemd-detect-virt") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil { @@ -191,7 +191,7 @@ if len(in.Disk) > 0 { entry = "{% set disk = '" + in.Disk + "' %}\n" } else { - success, message = tools.ExecuteCmd("salt", "--module-executors='[direct_call]'", "--out=json", in.Saltnode, "devices.hwinfo", "disk") + success, message = tools.ExecuteCmd("salt", "--module-executors='direct_call'", "--out=json", in.Saltnode, "devices.hwinfo", "disk") if success != true { if err := stream.Send(&pb.StatusReply{Success: false, Message: message}); err != nil {
