Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f07ee54d
Commit
f07ee54d
authored
Oct 22, 2021
by
Brad Davidson
Committed by
Brad Davidson
Oct 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump klipper-helm version
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
ffe586dc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
12 deletions
+19
-12
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
image-list.txt
scripts/airgap/image-list.txt
+1
-1
controller.go
.../github.com/k3s-io/helm-controller/pkg/helm/controller.go
+14
-7
modules.txt
vendor/modules.txt
+1
-1
No files found.
go.mod
View file @
f07ee54d
...
@@ -84,7 +84,7 @@ require (
...
@@ -84,7 +84,7 @@ require (
github.com/google/uuid v1.2.0
github.com/google/uuid v1.2.0
github.com/gorilla/mux v1.7.4
github.com/gorilla/mux v1.7.4
github.com/gorilla/websocket v1.4.1
github.com/gorilla/websocket v1.4.1
github.com/k3s-io/helm-controller v0.10.
5
github.com/k3s-io/helm-controller v0.10.
8
github.com/k3s-io/kine v0.6.2
github.com/k3s-io/kine v0.6.2
github.com/kubernetes-sigs/cri-tools v0.0.0-00010101000000-000000000000
github.com/kubernetes-sigs/cri-tools v0.0.0-00010101000000-000000000000
github.com/lib/pq v1.8.0
github.com/lib/pq v1.8.0
...
...
go.sum
View file @
f07ee54d
...
@@ -474,8 +474,8 @@ github.com/k3s-io/cri v1.4.0-k3s.7 h1:1ycdF3dMDJMW/k/UxDC6eMsyGSMZ/p0AoUBVdJvNGQ
...
@@ -474,8 +474,8 @@ github.com/k3s-io/cri v1.4.0-k3s.7 h1:1ycdF3dMDJMW/k/UxDC6eMsyGSMZ/p0AoUBVdJvNGQ
github.com/k3s-io/cri v1.4.0-k3s.7/go.mod h1:fGPUUHMKQik/vIegSe05DtX/m4miovdtvVLqRUFAkK0=
github.com/k3s-io/cri v1.4.0-k3s.7/go.mod h1:fGPUUHMKQik/vIegSe05DtX/m4miovdtvVLqRUFAkK0=
github.com/k3s-io/etcd v0.5.0-alpha.5.0.20201208200253-50621aee4aea h1:7cwby0GoNAi8IsVrT0q+JfQpB6V76ZaEGhj6qts/mvU=
github.com/k3s-io/etcd v0.5.0-alpha.5.0.20201208200253-50621aee4aea h1:7cwby0GoNAi8IsVrT0q+JfQpB6V76ZaEGhj6qts/mvU=
github.com/k3s-io/etcd v0.5.0-alpha.5.0.20201208200253-50621aee4aea/go.mod h1:yVHk9ub3CSBatqGNg7GRmsnfLWtoW60w4eDYfh7vHDg=
github.com/k3s-io/etcd v0.5.0-alpha.5.0.20201208200253-50621aee4aea/go.mod h1:yVHk9ub3CSBatqGNg7GRmsnfLWtoW60w4eDYfh7vHDg=
github.com/k3s-io/helm-controller v0.10.
5 h1:zrStmx4ZkhtFU/OqJYoAZFGFB1Bu+jZs0N8dtlVRxDk
=
github.com/k3s-io/helm-controller v0.10.
8 h1:O7zoqUBp3W+6+nRCUWNiAoQMzOX6xw9IsBDXc5lP3Ns
=
github.com/k3s-io/helm-controller v0.10.
5
/go.mod h1:nZP8FH3KZrNNUf5r+SwwiMR63HS6lxdHdpHijgPfF74=
github.com/k3s-io/helm-controller v0.10.
8
/go.mod h1:nZP8FH3KZrNNUf5r+SwwiMR63HS6lxdHdpHijgPfF74=
github.com/k3s-io/kine v0.6.2 h1:1aJTPfB8HG4exqMKFVE5H0z4bepF05tJHtYNXotWXa4=
github.com/k3s-io/kine v0.6.2 h1:1aJTPfB8HG4exqMKFVE5H0z4bepF05tJHtYNXotWXa4=
github.com/k3s-io/kine v0.6.2/go.mod h1:rzCs93+rQHZGOiewMd84PDrER92QeZ6eeHbWkfEy4+w=
github.com/k3s-io/kine v0.6.2/go.mod h1:rzCs93+rQHZGOiewMd84PDrER92QeZ6eeHbWkfEy4+w=
github.com/k3s-io/kubernetes v1.19.15-k3s1 h1:A1RJfAmS3JinAk0s9TJD5W82wnuuLMC8P88UZutZPQE=
github.com/k3s-io/kubernetes v1.19.15-k3s1 h1:A1RJfAmS3JinAk0s9TJD5W82wnuuLMC8P88UZutZPQE=
...
...
scripts/airgap/image-list.txt
View file @
f07ee54d
docker.io/rancher/coredns-coredns:1.8.3
docker.io/rancher/coredns-coredns:1.8.3
docker.io/rancher/klipper-helm:v0.6.
4-build20210813
docker.io/rancher/klipper-helm:v0.6.
6-build20211022
docker.io/rancher/klipper-lb:v0.2.0
docker.io/rancher/klipper-lb:v0.2.0
docker.io/rancher/library-busybox:1.32.1
docker.io/rancher/library-busybox:1.32.1
docker.io/rancher/library-traefik:1.7.19
docker.io/rancher/library-traefik:1.7.19
...
...
vendor/github.com/k3s-io/helm-controller/pkg/helm/controller.go
View file @
f07ee54d
...
@@ -30,7 +30,7 @@ import (
...
@@ -30,7 +30,7 @@ import (
var
(
var
(
trueVal
=
true
trueVal
=
true
commaRE
=
regexp
.
MustCompile
(
`\\*,`
)
commaRE
=
regexp
.
MustCompile
(
`\\*,`
)
DefaultJobImage
=
"rancher/klipper-helm:v0.6.
4-build20210813
"
DefaultJobImage
=
"rancher/klipper-helm:v0.6.
6-build20211022
"
)
)
type
Controller
struct
{
type
Controller
struct
{
...
@@ -47,6 +47,11 @@ const (
...
@@ -47,6 +47,11 @@ const (
CRDName
=
"helmcharts.helm.cattle.io"
CRDName
=
"helmcharts.helm.cattle.io"
ConfigCRDName
=
"helmchartconfigs.helm.cattle.io"
ConfigCRDName
=
"helmchartconfigs.helm.cattle.io"
Name
=
"helm-controller"
Name
=
"helm-controller"
TaintExternalCloudProvider
=
"node.cloudprovider.kubernetes.io/uninitialized"
LabelNodeRolePrefix
=
"node-role.kubernetes.io/"
LabelControlPlaneSuffix
=
"control-plane"
LabelEtcdSuffix
=
"etcd"
)
)
func
Register
(
ctx
context
.
Context
,
apply
apply
.
Apply
,
func
Register
(
ctx
context
.
Context
,
apply
apply
.
Apply
,
...
@@ -279,15 +284,19 @@ func job(chart *helmv1.HelmChart) (*batch.Job, *core.ConfigMap, *core.ConfigMap)
...
@@ -279,15 +284,19 @@ func job(chart *helmv1.HelmChart) (*batch.Job, *core.ConfigMap, *core.ConfigMap)
})
})
}
}
job
.
Spec
.
Template
.
Spec
.
NodeSelector
=
make
(
map
[
string
]
string
)
job
.
Spec
.
Template
.
Spec
.
NodeSelector
[
core
.
LabelOSStable
]
=
"linux"
if
chart
.
Spec
.
Bootstrap
{
if
chart
.
Spec
.
Bootstrap
{
job
.
Spec
.
Template
.
Spec
.
NodeSelector
[
LabelNodeRolePrefix
+
LabelControlPlaneSuffix
]
=
"true"
job
.
Spec
.
Template
.
Spec
.
HostNetwork
=
true
job
.
Spec
.
Template
.
Spec
.
HostNetwork
=
true
job
.
Spec
.
Template
.
Spec
.
Tolerations
=
[]
core
.
Toleration
{
job
.
Spec
.
Template
.
Spec
.
Tolerations
=
[]
core
.
Toleration
{
{
{
Key
:
"node.kubernetes.io/not-ready"
,
Key
:
core
.
TaintNodeNotReady
,
Effect
:
core
.
TaintEffectNoSchedule
,
Effect
:
core
.
TaintEffectNoSchedule
,
},
},
{
{
Key
:
"node.cloudprovider.kubernetes.io/uninitialized"
,
Key
:
TaintExternalCloudProvider
,
Operator
:
core
.
TolerationOpEqual
,
Operator
:
core
.
TolerationOpEqual
,
Value
:
"true"
,
Value
:
"true"
,
Effect
:
core
.
TaintEffectNoSchedule
,
Effect
:
core
.
TaintEffectNoSchedule
,
...
@@ -297,12 +306,12 @@ func job(chart *helmv1.HelmChart) (*batch.Job, *core.ConfigMap, *core.ConfigMap)
...
@@ -297,12 +306,12 @@ func job(chart *helmv1.HelmChart) (*batch.Job, *core.ConfigMap, *core.ConfigMap)
Operator
:
core
.
TolerationOpExists
,
Operator
:
core
.
TolerationOpExists
,
},
},
{
{
Key
:
"node-role.kubernetes.io/etcd"
,
Key
:
LabelNodeRolePrefix
+
LabelEtcdSuffix
,
Operator
:
core
.
TolerationOpExists
,
Operator
:
core
.
TolerationOpExists
,
Effect
:
core
.
TaintEffectNoExecute
,
Effect
:
core
.
TaintEffectNoExecute
,
},
},
{
{
Key
:
"node-role.kubernetes.io/control-plane"
,
Key
:
LabelNodeRolePrefix
+
LabelControlPlaneSuffix
,
Operator
:
core
.
TolerationOpExists
,
Operator
:
core
.
TolerationOpExists
,
Effect
:
core
.
TaintEffectNoSchedule
,
Effect
:
core
.
TaintEffectNoSchedule
,
},
},
...
@@ -318,8 +327,6 @@ func job(chart *helmv1.HelmChart) (*batch.Job, *core.ConfigMap, *core.ConfigMap)
...
@@ -318,8 +327,6 @@ func job(chart *helmv1.HelmChart) (*batch.Job, *core.ConfigMap, *core.ConfigMap)
Name
:
"BOOTSTRAP"
,
Name
:
"BOOTSTRAP"
,
Value
:
"true"
},
Value
:
"true"
},
}
...
)
}
...
)
job
.
Spec
.
Template
.
Spec
.
NodeSelector
=
make
(
map
[
string
]
string
)
job
.
Spec
.
Template
.
Spec
.
NodeSelector
[
"node-role.kubernetes.io/master"
]
=
"true"
}
}
setProxyEnv
(
job
)
setProxyEnv
(
job
)
...
...
vendor/modules.txt
View file @
f07ee54d
...
@@ -684,7 +684,7 @@ github.com/jmespath/go-jmespath
...
@@ -684,7 +684,7 @@ github.com/jmespath/go-jmespath
github.com/jonboulle/clockwork
github.com/jonboulle/clockwork
# github.com/json-iterator/go v1.1.10
# github.com/json-iterator/go v1.1.10
github.com/json-iterator/go
github.com/json-iterator/go
# github.com/k3s-io/helm-controller v0.10.
5
# github.com/k3s-io/helm-controller v0.10.
8
## explicit
## explicit
github.com/k3s-io/helm-controller/pkg/apis/helm.cattle.io
github.com/k3s-io/helm-controller/pkg/apis/helm.cattle.io
github.com/k3s-io/helm-controller/pkg/apis/helm.cattle.io/v1
github.com/k3s-io/helm-controller/pkg/apis/helm.cattle.io/v1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment