mirror of https://github.com/kubernetes/kops.git
nodeup/pkg/model - fix static check
This commit is contained in:
parent
252a733415
commit
fa665943ac
|
@ -9,12 +9,7 @@ dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal/stubs
|
||||||
dnsprovider/pkg/dnsprovider/providers/openstack/designate
|
dnsprovider/pkg/dnsprovider/providers/openstack/designate
|
||||||
node-authorizer/pkg/authorizers/aws
|
node-authorizer/pkg/authorizers/aws
|
||||||
node-authorizer/pkg/server
|
node-authorizer/pkg/server
|
||||||
nodeup/pkg/model
|
|
||||||
pkg/apis/kops/v1alpha1
|
|
||||||
pkg/apis/kops/v1alpha2
|
|
||||||
pkg/apis/kops/validation
|
|
||||||
pkg/instancegroups
|
pkg/instancegroups
|
||||||
pkg/model/components
|
|
||||||
pkg/resources/ali
|
pkg/resources/ali
|
||||||
pkg/resources/aws
|
pkg/resources/aws
|
||||||
pkg/resources/digitalocean
|
pkg/resources/digitalocean
|
||||||
|
|
|
@ -774,8 +774,8 @@ spec:
|
||||||
- use insecure-bind-address and bind-address'
|
- use insecure-bind-address and bind-address'
|
||||||
type: string
|
type: string
|
||||||
admissionControl:
|
admissionControl:
|
||||||
description: 'Deprecated: AdmissionControl is a list of admission
|
description: 'AdmissionControl is a list of admission controllers
|
||||||
controllers to use'
|
to use: Deprecated - use enable-admission-plugins instead'
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
type: array
|
type: array
|
||||||
|
|
|
@ -33,11 +33,6 @@ func s(v string) *string {
|
||||||
return fi.String(v)
|
return fi.String(v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// i64 is a helper that builds a *int64 from an int64 value
|
|
||||||
func i64(v int64) *int64 {
|
|
||||||
return fi.Int64(v)
|
|
||||||
}
|
|
||||||
|
|
||||||
// b returns a pointer to a boolean
|
// b returns a pointer to a boolean
|
||||||
func b(v bool) *bool {
|
func b(v bool) *bool {
|
||||||
return fi.Bool(v)
|
return fi.Bool(v)
|
||||||
|
|
|
@ -20,8 +20,6 @@ import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
|
||||||
"text/template"
|
|
||||||
|
|
||||||
"k8s.io/kops/pkg/apis/kops"
|
"k8s.io/kops/pkg/apis/kops"
|
||||||
"k8s.io/kops/upup/pkg/fi"
|
"k8s.io/kops/upup/pkg/fi"
|
||||||
|
@ -35,11 +33,6 @@ type FileAssetsBuilder struct {
|
||||||
|
|
||||||
var _ fi.ModelBuilder = &FileAssetsBuilder{}
|
var _ fi.ModelBuilder = &FileAssetsBuilder{}
|
||||||
|
|
||||||
var templateFuncs = template.FuncMap{
|
|
||||||
"split": strings.Split,
|
|
||||||
"join": strings.Join,
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build is responsible for writing out the file assets from cluster and instanceGroup
|
// Build is responsible for writing out the file assets from cluster and instanceGroup
|
||||||
func (f *FileAssetsBuilder) Build(c *fi.ModelBuilderContext) error {
|
func (f *FileAssetsBuilder) Build(c *fi.ModelBuilderContext) error {
|
||||||
// used to keep track of previous file, so a instanceGroup can override a cluster wide one
|
// used to keep track of previous file, so a instanceGroup can override a cluster wide one
|
||||||
|
|
|
@ -566,8 +566,6 @@ func (b *KubeletBuilder) buildKubeletConfigSpec() (*kops.KubeletConfigSpec, erro
|
||||||
// Enable scheduling since it can be controlled via taints.
|
// Enable scheduling since it can be controlled via taints.
|
||||||
// For pre-1.6.0 clusters, this is handled by tainter.go
|
// For pre-1.6.0 clusters, this is handled by tainter.go
|
||||||
c.RegisterSchedulable = fi.Bool(true)
|
c.RegisterSchedulable = fi.Bool(true)
|
||||||
} else {
|
|
||||||
// For 1.5 and earlier, protokube will taint the master
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.VolumePluginDirectory == "" {
|
if c.VolumePluginDirectory == "" {
|
||||||
|
|
|
@ -266,7 +266,7 @@ type KubeAPIServerConfig struct {
|
||||||
EnableBootstrapAuthToken *bool `json:"enableBootstrapTokenAuth,omitempty" flag:"enable-bootstrap-token-auth"`
|
EnableBootstrapAuthToken *bool `json:"enableBootstrapTokenAuth,omitempty" flag:"enable-bootstrap-token-auth"`
|
||||||
// EnableAggregatorRouting enables aggregator routing requests to endpoints IP rather than cluster IP
|
// EnableAggregatorRouting enables aggregator routing requests to endpoints IP rather than cluster IP
|
||||||
EnableAggregatorRouting *bool `json:"enableAggregatorRouting,omitempty" flag:"enable-aggregator-routing"`
|
EnableAggregatorRouting *bool `json:"enableAggregatorRouting,omitempty" flag:"enable-aggregator-routing"`
|
||||||
// Deprecated: AdmissionControl is a list of admission controllers to use
|
// AdmissionControl is a list of admission controllers to use: Deprecated - use enable-admission-plugins instead
|
||||||
AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"`
|
AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"`
|
||||||
// AppendAdmissionPlugins appends list of enabled admission plugins
|
// AppendAdmissionPlugins appends list of enabled admission plugins
|
||||||
AppendAdmissionPlugins []string `json:"appendAdmissionPlugins,omitempty"`
|
AppendAdmissionPlugins []string `json:"appendAdmissionPlugins,omitempty"`
|
||||||
|
|
|
@ -266,7 +266,7 @@ type KubeAPIServerConfig struct {
|
||||||
EnableBootstrapAuthToken *bool `json:"enableBootstrapTokenAuth,omitempty" flag:"enable-bootstrap-token-auth"`
|
EnableBootstrapAuthToken *bool `json:"enableBootstrapTokenAuth,omitempty" flag:"enable-bootstrap-token-auth"`
|
||||||
// EnableAggregatorRouting enables aggregator routing requests to endpoints IP rather than cluster IP
|
// EnableAggregatorRouting enables aggregator routing requests to endpoints IP rather than cluster IP
|
||||||
EnableAggregatorRouting *bool `json:"enableAggregatorRouting,omitempty" flag:"enable-aggregator-routing"`
|
EnableAggregatorRouting *bool `json:"enableAggregatorRouting,omitempty" flag:"enable-aggregator-routing"`
|
||||||
// Deprecated: AdmissionControl is a list of admission controllers to use
|
// AdmissionControl is a list of admission controllers to use: Deprecated - use enable-admission-plugins instead
|
||||||
AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"`
|
AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"`
|
||||||
// AppendAdmissionPlugins appends list of enabled admission plugins
|
// AppendAdmissionPlugins appends list of enabled admission plugins
|
||||||
AppendAdmissionPlugins []string `json:"appendAdmissionPlugins,omitempty"`
|
AppendAdmissionPlugins []string `json:"appendAdmissionPlugins,omitempty"`
|
||||||
|
|
|
@ -266,7 +266,7 @@ type KubeAPIServerConfig struct {
|
||||||
EnableBootstrapAuthToken *bool `json:"enableBootstrapTokenAuth,omitempty" flag:"enable-bootstrap-token-auth"`
|
EnableBootstrapAuthToken *bool `json:"enableBootstrapTokenAuth,omitempty" flag:"enable-bootstrap-token-auth"`
|
||||||
// EnableAggregatorRouting enables aggregator routing requests to endpoints IP rather than cluster IP
|
// EnableAggregatorRouting enables aggregator routing requests to endpoints IP rather than cluster IP
|
||||||
EnableAggregatorRouting *bool `json:"enableAggregatorRouting,omitempty" flag:"enable-aggregator-routing"`
|
EnableAggregatorRouting *bool `json:"enableAggregatorRouting,omitempty" flag:"enable-aggregator-routing"`
|
||||||
// Deprecated: AdmissionControl is a list of admission controllers to use
|
// AdmissionControl is a list of admission controllers to use: Deprecated - use enable-admission-plugins instead
|
||||||
AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"`
|
AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"`
|
||||||
// AppendAdmissionPlugins appends list of enabled admission plugins
|
// AppendAdmissionPlugins appends list of enabled admission plugins
|
||||||
AppendAdmissionPlugins []string `json:"appendAdmissionPlugins,omitempty"`
|
AppendAdmissionPlugins []string `json:"appendAdmissionPlugins,omitempty"`
|
||||||
|
|
Loading…
Reference in New Issue