Skip to content

Commit e36c739

Browse files
committed
Consistent webhook file/folder structure
Signed-off-by: Stefan Büringer [email protected]
1 parent fb8c589 commit e36c739

22 files changed

+3
-29
lines changed

internal/webhooks/runtime/extensionconfig_webhook.go renamed to internal/webhooks/extensionconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package runtime
17+
package webhooks
1818

1919
import (
2020
"context"

internal/webhooks/runtime/extensionconfig_webhook_test.go renamed to internal/webhooks/extensionconfig_test.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,22 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package runtime
17+
package webhooks
1818

1919
import (
2020
"context"
2121
"testing"
2222

2323
. "github.com/onsi/gomega"
2424
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
25-
"k8s.io/apimachinery/pkg/runtime"
2625
utilfeature "k8s.io/component-base/featuregate/testing"
2726
"k8s.io/utils/ptr"
28-
ctrl "sigs.k8s.io/controller-runtime"
2927

3028
runtimev1 "sigs.k8s.io/cluster-api/api/runtime/v1beta2"
3129
"sigs.k8s.io/cluster-api/feature"
3230
"sigs.k8s.io/cluster-api/internal/webhooks/util"
3331
)
3432

35-
var (
36-
ctx = ctrl.SetupSignalHandler()
37-
fakeScheme = runtime.NewScheme()
38-
)
39-
4033
func init() {
4134
_ = runtimev1.AddToScheme(fakeScheme)
4235
}

internal/webhooks/runtime/doc.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)