mirror of https://github.com/kubernetes/kops.git
Make launchetemplate_fitasks automatically generated
This commit is contained in:
parent
f6469f70c1
commit
c9813f95da
|
|
@ -27,7 +27,8 @@ import (
|
||||||
"k8s.io/klog"
|
"k8s.io/klog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LaunchTemplate defines the specificate for a template
|
// LaunchTemplate defines the specification for a launch template.
|
||||||
|
// +kops:fitask
|
||||||
type LaunchTemplate struct {
|
type LaunchTemplate struct {
|
||||||
// Name is the name of the configuration
|
// Name is the name of the configuration
|
||||||
Name *string
|
Name *string
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
|
// +build !ignore_autogenerated
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2019 The Kubernetes Authors.
|
Copyright 2020 The Kubernetes Authors.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
@ -14,16 +16,17 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Code generated by fitask. DO NOT EDIT.
|
||||||
|
|
||||||
package awstasks
|
package awstasks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"k8s.io/kops/upup/pkg/fi"
|
"k8s.io/kops/upup/pkg/fi"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
// LaunchTemplate
|
||||||
_ fi.HasLifecycle = &LaunchTemplate{}
|
|
||||||
_ fi.HasName = &LaunchTemplate{}
|
var _ fi.HasLifecycle = &LaunchTemplate{}
|
||||||
)
|
|
||||||
|
|
||||||
// GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle
|
// GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle
|
||||||
func (o *LaunchTemplate) GetLifecycle() *fi.Lifecycle {
|
func (o *LaunchTemplate) GetLifecycle() *fi.Lifecycle {
|
||||||
|
|
@ -35,6 +38,8 @@ func (o *LaunchTemplate) SetLifecycle(lifecycle fi.Lifecycle) {
|
||||||
o.Lifecycle = &lifecycle
|
o.Lifecycle = &lifecycle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ fi.HasName = &LaunchTemplate{}
|
||||||
|
|
||||||
// GetName returns the Name of the object, implementing fi.HasName
|
// GetName returns the Name of the object, implementing fi.HasName
|
||||||
func (o *LaunchTemplate) GetName() *string {
|
func (o *LaunchTemplate) GetName() *string {
|
||||||
return o.Name
|
return o.Name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue