-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/e2e: Implement ClusterCLass rollout e2e test
Signed-off-by: Stefan Büringer [email protected]
- Loading branch information
1 parent
ca71ea4
commit f78c0bd
Showing
15 changed files
with
1,748 additions
and
136 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
Copyright 2022 The Kubernetes Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package contract | ||
|
||
import ( | ||
"sync" | ||
) | ||
|
||
// BootstrapConfigTemplateContract encodes information about the Machine API contract for BootstrapConfigTemplate objects | ||
// like KubeadmConfigTemplate, etc. | ||
type BootstrapConfigTemplateContract struct{} | ||
|
||
var bootstrapConfigTemplate *BootstrapConfigTemplateContract | ||
var onceBootstrapConfigTemplate sync.Once | ||
|
||
// BootstrapConfigTemplate provide access to the information about the Machine API contract for BootstrapConfigTemplate objects. | ||
func BootstrapConfigTemplate() *BootstrapConfigTemplateContract { | ||
onceBootstrapConfigTemplate.Do(func() { | ||
bootstrapConfigTemplate = &BootstrapConfigTemplateContract{} | ||
}) | ||
return bootstrapConfigTemplate | ||
} | ||
|
||
// Template provides access to the template. | ||
func (c *BootstrapConfigTemplateContract) Template() *BootstrapConfigTemplateTemplate { | ||
return &BootstrapConfigTemplateTemplate{} | ||
} | ||
|
||
// BootstrapConfigTemplateTemplate provides a helper struct for working with the template in an BootstrapConfigTemplate. | ||
type BootstrapConfigTemplateTemplate struct{} | ||
|
||
// Metadata provides access to the metadata of a template. | ||
func (c *BootstrapConfigTemplateTemplate) Metadata() *Metadata { | ||
return &Metadata{ | ||
path: Path{"spec", "template", "metadata"}, | ||
} | ||
} |
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,51 @@ | ||
/* | ||
Copyright 2021 The Kubernetes Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package contract | ||
|
||
import ( | ||
"sync" | ||
) | ||
|
||
// InfrastructureClusterTemplateContract encodes information about the Cluster API contract for InfrastructureClusterTemplate objects | ||
// like DockerClusterTemplates, AWSClusterTemplates, etc. | ||
type InfrastructureClusterTemplateContract struct{} | ||
|
||
var infrastructureClusterTemplate *InfrastructureClusterTemplateContract | ||
var onceInfrastructureClusterTemplate sync.Once | ||
|
||
// InfrastructureClusterTemplate provides access to the information about the Cluster API contract for InfrastructureClusterTemplate objects. | ||
func InfrastructureClusterTemplate() *InfrastructureClusterTemplateContract { | ||
onceInfrastructureClusterTemplate.Do(func() { | ||
infrastructureClusterTemplate = &InfrastructureClusterTemplateContract{} | ||
}) | ||
return infrastructureClusterTemplate | ||
} | ||
|
||
// Template provides access to the template. | ||
func (c *InfrastructureClusterTemplateContract) Template() *InfrastructureClusterTemplateTemplate { | ||
return &InfrastructureClusterTemplateTemplate{} | ||
} | ||
|
||
// InfrastructureClusterTemplateTemplate provides a helper struct for working with the template in an InfrastructureClusterTemplate.. | ||
type InfrastructureClusterTemplateTemplate struct{} | ||
|
||
// Metadata provides access to the metadata of a template. | ||
func (c *InfrastructureClusterTemplateTemplate) Metadata() *Metadata { | ||
return &Metadata{ | ||
path: Path{"spec", "template", "metadata"}, | ||
} | ||
} |
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,51 @@ | ||
/* | ||
Copyright 2022 The Kubernetes Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package contract | ||
|
||
import ( | ||
"sync" | ||
) | ||
|
||
// InfrastructureMachineTemplateContract encodes information about the Machine API contract for InfrastructureMachineTemplate objects | ||
// like DockerMachineTemplates, AWSMachineTemplates, etc. | ||
type InfrastructureMachineTemplateContract struct{} | ||
|
||
var infrastructureMachineTemplate *InfrastructureMachineTemplateContract | ||
var onceInfrastructureMachineTemplate sync.Once | ||
|
||
// InfrastructureMachineTemplate provide access to the information about the Machine API contract for InfrastructureMachineTemplate objects. | ||
func InfrastructureMachineTemplate() *InfrastructureMachineTemplateContract { | ||
onceInfrastructureMachineTemplate.Do(func() { | ||
infrastructureMachineTemplate = &InfrastructureMachineTemplateContract{} | ||
}) | ||
return infrastructureMachineTemplate | ||
} | ||
|
||
// Template provides access to the template. | ||
func (c *InfrastructureMachineTemplateContract) Template() *InfrastructureMachineTemplateTemplate { | ||
return &InfrastructureMachineTemplateTemplate{} | ||
} | ||
|
||
// InfrastructureMachineTemplateTemplate provides a helper struct for working with the template in an InfrastructureMachineTemplate. | ||
type InfrastructureMachineTemplateTemplate struct{} | ||
|
||
// Metadata provides access to the metadata of a template. | ||
func (c *InfrastructureMachineTemplateTemplate) Metadata() *Metadata { | ||
return &Metadata{ | ||
path: Path{"spec", "template", "metadata"}, | ||
} | ||
} |
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
Oops, something went wrong.