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
733d2681
Commit
733d2681
authored
Sep 02, 2020
by
Brad Davidson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update helm-controller
Related to
https://github.com/rancher/rke2/issues/271
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
866dc94c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
11 deletions
+18
-11
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
types.go
...ncher/helm-controller/pkg/apis/helm.cattle.io/v1/types.go
+1
-0
controller.go
...github.com/rancher/helm-controller/pkg/helm/controller.go
+13
-7
modules.txt
vendor/modules.txt
+1
-1
No files found.
go.mod
View file @
733d2681
...
...
@@ -97,7 +97,7 @@ require (
github.com/pierrec/lz4 v2.5.2+incompatible
github.com/pkg/errors v0.9.1
github.com/rancher/dynamiclistener v0.2.1
github.com/rancher/helm-controller v0.7.
2
github.com/rancher/helm-controller v0.7.
3
github.com/rancher/kine v0.4.0
github.com/rancher/remotedialer v0.2.0
github.com/rancher/spur v0.0.0-20200617165101-8702c8e4ce7a
...
...
go.sum
View file @
733d2681
...
...
@@ -648,8 +648,8 @@ github.com/rancher/go-powershell v0.0.0-20200701182037-6845e6fcfa79 h1:UeC0rjrIe
github.com/rancher/go-powershell v0.0.0-20200701182037-6845e6fcfa79/go.mod h1:xi4WpK6Op4m1Lknq61/e+VSjYlTs9bulVOaDNyBdzvk=
github.com/rancher/go-powershell v0.0.0-20200701184732-233247d45373 h1:BePi97poJ4hXnkP9yX96EmNQgMg+dGScvB1sqIheJ7w=
github.com/rancher/go-powershell v0.0.0-20200701184732-233247d45373/go.mod h1:Vz8oLnHgttpo/aZrTpjbcpZEDzzElqNau2zmorToY0E=
github.com/rancher/helm-controller v0.7.
2 h1:noDPX08rnEoYhTGfgyLdEqG7DvihYbWJagbdS9OiA7s
=
github.com/rancher/helm-controller v0.7.
2
/go.mod h1:ZylsxIMGNADRPRNW+NiBWhrwwks9vnKLQiCHYWb6Bi0=
github.com/rancher/helm-controller v0.7.
3 h1:WTQHcNF2vl9w6Xd1eBtXDe0JUsYMFFstqX9ghGhI5Ac
=
github.com/rancher/helm-controller v0.7.
3
/go.mod h1:ZylsxIMGNADRPRNW+NiBWhrwwks9vnKLQiCHYWb6Bi0=
github.com/rancher/kine v0.4.0 h1:1IhWy3TzjExG8xnj46eyUEWdzqNAD1WrgL4eEBKm6Uc=
github.com/rancher/kine v0.4.0/go.mod h1:IImtCJ68AIkE+VY/kUI0NkyJL5q5WzO8QvMsSXqbrpA=
github.com/rancher/kubernetes v1.18.8-k3s1 h1:dqukpA38pR5V7opoTDDslVYIxlM3sP5535u3Zd23W2I=
...
...
vendor/github.com/rancher/helm-controller/pkg/apis/helm.cattle.io/v1/types.go
View file @
733d2681
...
...
@@ -26,6 +26,7 @@ type HelmChartSpec struct {
HelmVersion
string
`json:"helmVersion,omitempty"`
Bootstrap
bool
`json:"bootstrap,omitempty"`
ChartContent
string
`json:"chartContent,omitempty"`
JobImage
string
`json:"jobImage,omitempty"`
}
type
HelmChartStatus
struct
{
...
...
vendor/github.com/rancher/helm-controller/pkg/helm/controller.go
View file @
733d2681
...
...
@@ -6,6 +6,7 @@ import (
"fmt"
"os"
"sort"
"strings"
helmv1
"github.com/rancher/helm-controller/pkg/apis/helm.cattle.io/v1"
helmcontroller
"github.com/rancher/helm-controller/pkg/generated/controllers/helm.cattle.io/v1"
...
...
@@ -38,12 +39,12 @@ type Controller struct {
}
const
(
image
=
"rancher/klipper-helm:v0.3.0"
Label
=
"helmcharts.helm.cattle.io/chart"
Annotation
=
"helmcharts.helm.cattle.io/configHash"
CRDName
=
"helmcharts.helm.cattle.io"
ConfigCRDName
=
"helmchartconfigs.helm.cattle.io"
Name
=
"helm-controller"
DefaultJobImage
=
"rancher/klipper-helm:v0.3.0"
Label
=
"helmcharts.helm.cattle.io/chart"
Annotation
=
"helmcharts.helm.cattle.io/configHash"
CRDName
=
"helmcharts.helm.cattle.io"
ConfigCRDName
=
"helmchartconfigs.helm.cattle.io"
Name
=
"helm-controller"
)
func
Register
(
ctx
context
.
Context
,
apply
apply
.
Apply
,
...
...
@@ -183,6 +184,11 @@ func (c *Controller) OnConfChange(key string, conf *helmv1.HelmChartConfig) (*he
func
job
(
chart
*
helmv1
.
HelmChart
)
(
*
batch
.
Job
,
*
core
.
ConfigMap
,
*
core
.
ConfigMap
)
{
oneThousand
:=
int32
(
1000
)
jobImage
:=
strings
.
TrimSpace
(
chart
.
Spec
.
JobImage
)
if
jobImage
==
""
{
jobImage
=
DefaultJobImage
}
action
:=
"install"
if
chart
.
DeletionTimestamp
!=
nil
{
action
=
"delete"
...
...
@@ -214,7 +220,7 @@ func job(chart *helmv1.HelmChart) (*batch.Job, *core.ConfigMap, *core.ConfigMap)
Containers
:
[]
core
.
Container
{
{
Name
:
"helm"
,
Image
:
i
mage
,
Image
:
jobI
mage
,
ImagePullPolicy
:
core
.
PullIfNotPresent
,
Args
:
args
(
chart
),
Env
:
[]
core
.
EnvVar
{
...
...
vendor/modules.txt
View file @
733d2681
...
...
@@ -739,7 +739,7 @@ github.com/rancher/dynamiclistener/storage/memory
# github.com/rancher/go-powershell v0.0.0-20200701182037-6845e6fcfa79
github.com/rancher/go-powershell/backend
github.com/rancher/go-powershell/utils
# github.com/rancher/helm-controller v0.7.
2
# github.com/rancher/helm-controller v0.7.
3
github.com/rancher/helm-controller/pkg/apis/helm.cattle.io
github.com/rancher/helm-controller/pkg/apis/helm.cattle.io/v1
github.com/rancher/helm-controller/pkg/generated/clientset/versioned
...
...
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