-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing conversion functions for extensions/v1beta1 (DaemonSet …
…fix) (#461)
- Loading branch information
1 parent
246e472
commit 7da4fa1
Showing
5 changed files
with
828 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package extv1beta1 | ||
|
||
import ( | ||
v1 "k8s.io/api/apps/v1" | ||
v1beta1 "k8s.io/api/extensions/v1beta1" | ||
conversion "k8s.io/apimachinery/pkg/conversion" | ||
"k8s.io/apimachinery/pkg/runtime" | ||
) | ||
|
||
var ( | ||
localSchemeBuilder = runtime.SchemeBuilder{} | ||
) | ||
|
||
func Convert_v1beta1_DaemonSetSpec_To_v1_DaemonSetSpec(in *v1beta1.DaemonSetSpec, out *v1.DaemonSetSpec, s conversion.Scope) error { | ||
// ignore in.TemplateGeneration | ||
return autoConvert_v1beta1_DaemonSetSpec_To_v1_DaemonSetSpec(in, out, s) | ||
} | ||
|
||
func Convert_v1beta1_DeploymentSpec_To_v1_DeploymentSpec(in *v1beta1.DeploymentSpec, out *v1.DeploymentSpec, s conversion.Scope) error { | ||
// ignore in.RollbackTo | ||
return autoConvert_v1beta1_DeploymentSpec_To_v1_DeploymentSpec(in, out, s) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package extv1beta1 | ||
|
||
// +k8s:conversion-gen=k8s.io/api/extensions/v1beta1 | ||
// +k8s:conversion-gen-external-types=k8s.io/api/apps/v1 |
Oops, something went wrong.