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
8d5f58f0
Unverified
Commit
8d5f58f0
authored
Sep 02, 2020
by
Brad Davidson
Committed by
GitHub
Sep 02, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2195 from brandond/rke2_271
Update helm-controller
parents
53b3d0fc
733d2681
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 @
8d5f58f0
...
...
@@ -83,7 +83,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/wrangler v0.6.1
...
...
go.sum
View file @
8d5f58f0
...
...
@@ -673,8 +673,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.19.0-k3s1 h1:TPFj4qlQgZ2E9xE/ScFLtBQoymxPNCXAYHJpSZYRW3o=
...
...
vendor/github.com/rancher/helm-controller/pkg/apis/helm.cattle.io/v1/types.go
View file @
8d5f58f0
...
...
@@ -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 @
8d5f58f0
...
...
@@ -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 @
8d5f58f0
...
...
@@ -793,7 +793,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