Merge pull request #575 from pjbgf/fix-push
Ensure git status is checked at the correct time
This commit is contained in:
commit
1a06b7ae49
13
Makefile
13
Makefile
|
@ -225,13 +225,12 @@ ifneq ($(shell grep -o 'LIBGIT2_TAG ?= \w.*' Makefile | cut -d ' ' -f 3), $(shel
|
||||||
exit 1; \
|
exit 1; \
|
||||||
}
|
}
|
||||||
endif
|
endif
|
||||||
ifneq (, $(shell git status --porcelain --untracked-files=no))
|
|
||||||
@{ \
|
@if [ ! "$$(git status --porcelain --untracked-files=no)" = "" ]; then \
|
||||||
echo "working directory is dirty:"; \
|
echo "working directory is dirty:"; \
|
||||||
git --no-pager diff; \
|
git --no-pager diff; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
}
|
fi
|
||||||
endif
|
|
||||||
|
|
||||||
# go-install-tool will 'go install' any package $2 and install it to $1.
|
# go-install-tool will 'go install' any package $2 and install it to $1.
|
||||||
define go-install-tool
|
define go-install-tool
|
||||||
|
|
|
@ -44,8 +44,8 @@ type GitRepositorySpec struct {
|
||||||
// The secret name containing the Git credentials.
|
// The secret name containing the Git credentials.
|
||||||
// For HTTPS repositories the secret must contain username and password
|
// For HTTPS repositories the secret must contain username and password
|
||||||
// fields.
|
// fields.
|
||||||
// For SSH repositories the secret must contain identity, identity.pub and
|
// For SSH repositories the secret must contain identity and known_hosts
|
||||||
// known_hosts fields.
|
// fields.
|
||||||
// +optional
|
// +optional
|
||||||
SecretRef *meta.LocalObjectReference `json:"secretRef,omitempty"`
|
SecretRef *meta.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ type GitRepositorySpec struct {
|
||||||
// The secret name containing the Git credentials.
|
// The secret name containing the Git credentials.
|
||||||
// For HTTPS repositories the secret must contain username and password
|
// For HTTPS repositories the secret must contain username and password
|
||||||
// fields.
|
// fields.
|
||||||
// For SSH repositories the secret must contain identity, identity.pub and
|
// For SSH repositories the secret must contain identity and known_hosts
|
||||||
// known_hosts fields.
|
// fields.
|
||||||
// +optional
|
// +optional
|
||||||
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
|
||||||
|
|
||||||
|
|
2
main.go
2
main.go
|
@ -245,7 +245,7 @@ func main() {
|
||||||
ControllerName: controllerName,
|
ControllerName: controllerName,
|
||||||
Cache: c,
|
Cache: c,
|
||||||
TTL: ttl,
|
TTL: ttl,
|
||||||
CacheRecorder: cacheRecorder,
|
CacheRecorder: cacheRecorder,
|
||||||
}).SetupWithManagerAndOptions(mgr, controllers.HelmChartReconcilerOptions{
|
}).SetupWithManagerAndOptions(mgr, controllers.HelmChartReconcilerOptions{
|
||||||
MaxConcurrentReconciles: concurrent,
|
MaxConcurrentReconciles: concurrent,
|
||||||
RateLimiter: helper.GetRateLimiter(rateLimiterOptions),
|
RateLimiter: helper.GetRateLimiter(rateLimiterOptions),
|
||||||
|
|
Loading…
Reference in New Issue