-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add flow reconciler to remove terraform
- Loading branch information
Showing
3,425 changed files
with
438,100 additions
and
167,290 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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 |
---|---|---|
@@ -1,19 +1,29 @@ | ||
run: | ||
concurrency: 4 | ||
deadline: 10m | ||
# some of the linters don't work correctly with 1.18, ref https://github.com/golangci/golangci-lint/issues/2649 | ||
# we are not using generics, so let's pin this to 1.17 until 1.18 is fully supported | ||
go: "1.17" | ||
|
||
linters: | ||
disable: | ||
- unused | ||
- unused | ||
enable: | ||
- revive | ||
- revive | ||
|
||
skip-files: | ||
- "zz_generated\\..*\\.go$" | ||
|
||
issues: | ||
exclude-use-default: false | ||
exclude: | ||
# revive | ||
- var-naming # ((var|const|struct field|func) .* should be .* | ||
- dot-imports # should not use dot imports | ||
- package-comments # package comment should be of the form | ||
- indent-error-flow # if block ends with a return statement, so drop this else and outdent its block | ||
- "exported: (type|func) name will be used as .* by other packages, and that stutters;" | ||
# revive | ||
- var-naming # ((var|const|struct field|func) .* should be .* | ||
- dot-imports # should not use dot imports | ||
- package-comments # package comment should be of the form | ||
- indent-error-flow # if block ends with a return statement, so drop this else and outdent its block | ||
- unexported-return # exported func .* returns unexported type .*, which can be annoying to use | ||
- "exported: (type|func) name will be used as .* by other packages, and that stutters;" | ||
# typecheck: | ||
- "undeclared name: `.*`" | ||
- "\".*\" imported but not used" |
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 @@ | ||
kind: TestDefinition | ||
metadata: | ||
name: infrastructure-test-flow | ||
spec: | ||
owner: [email protected] | ||
description: Integration test for infrastructure creation and deletion | ||
activeDeadlineSeconds: 4200 | ||
|
||
command: [bash, -c] | ||
args: | ||
- >- | ||
go test -timeout=0 -mod=vendor ./test/integration/infrastructure | ||
--v -ginkgo.v -ginkgo.progress -ginkgo.no-color | ||
--kubeconfig=$TM_KUBECONFIG_PATH/testmachinery.config | ||
--subscription-id=${SUBSCRIPTION_ID} | ||
--tenant-id=${TENANT_ID} | ||
--client-id=${CLIENT_ID} | ||
--client-secret=${CLIENT_SECRET} | ||
--region=${REGION} | ||
--use-flow | ||
image: eu.gcr.io/gardener-project/3rd/golang:1.19.2 |
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
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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
############# builder | ||
FROM golang:1.17.5 AS builder | ||
FROM golang:1.19.5 AS builder | ||
|
||
WORKDIR /go/src/github.com/gardener/gardener-extension-provider-azure | ||
COPY . . | ||
RUN make install | ||
|
||
############# base | ||
FROM alpine:3.13.7 AS base | ||
FROM gcr.io/distroless/static-debian11:nonroot AS base | ||
|
||
############# gardener-extension-provider-azure | ||
FROM base AS gardener-extension-provider-azure | ||
WORKDIR / | ||
|
||
COPY charts /charts | ||
COPY --from=builder /go/bin/gardener-extension-provider-azure /gardener-extension-provider-azure | ||
ENTRYPOINT ["/gardener-extension-provider-azure"] | ||
|
||
############# gardener-extension-admission-azure | ||
FROM base as gardener-extension-admission-azure | ||
WORKDIR / | ||
|
||
COPY --from=builder /go/bin/gardener-extension-admission-azure /gardener-extension-admission-azure | ||
ENTRYPOINT ["/gardener-extension-admission-azure"] |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
v1.28.0-dev | ||
v1.35.0-dev |
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,24 @@ | ||
// Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file | ||
// | ||
// 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 charts | ||
|
||
import ( | ||
"embed" | ||
) | ||
|
||
// InternalChart embeds the internal charts in embed.FS | ||
// | ||
//go:embed internal | ||
var InternalChart embed.FS |
38 changes: 38 additions & 0 deletions
38
...dener-extension-admission-azure/charts/application/templates/mutatingwebhook-mutator.yaml
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,38 @@ | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
name: {{ include "name" . }} | ||
webhooks: | ||
- name: mutation.azure.provider.extensions.gardener.cloud | ||
rules: | ||
- apiGroups: | ||
- "core.gardener.cloud" | ||
apiVersions: | ||
- v1beta1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- shoots | ||
failurePolicy: Fail | ||
matchPolicy: Equivalent | ||
objectSelector: | ||
{{- if .Values.global.webhookConfig.useObjectSelector }} | ||
matchLabels: | ||
provider.extensions.gardener.cloud/azure: "true" | ||
{{- end }} | ||
namespaceSelector: {} | ||
sideEffects: None | ||
admissionReviewVersions: | ||
- v1 | ||
- v1beta1 | ||
clientConfig: | ||
{{- if .Values.global.virtualGarden.enabled }} | ||
url: {{ printf "https://%s.%s/webhooks/mutate" (include "name" .) (.Release.Namespace) }} | ||
{{- else }} | ||
service: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ include "name" . }} | ||
path: /webhooks/mutate | ||
{{- end }} | ||
caBundle: {{ required ".Values.global.webhookConfig.caBundle is required" .Values.global.webhookConfig.caBundle | b64enc }} |
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
8 changes: 5 additions & 3 deletions
8
charts/gardener-extension-admission-azure/charts/runtime/templates/poddisruptionbudget.yaml
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
{{- if gt (int .Values.global.replicaCount) 1 }} | ||
{{- if semverCompare ">= 1.21-0" .Capabilities.KubeVersion.GitVersion }} | ||
apiVersion: policy/v1 | ||
{{- else }} | ||
apiVersion: policy/v1beta1 | ||
{{- end }} | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{ include "labels" . | indent 4 }} | ||
spec: | ||
maxUnavailable: {{ sub (int .Values.global.replicaCount) 1 }} | ||
maxUnavailable: 1 | ||
selector: | ||
matchLabels: | ||
{{ include "labels" . | indent 6 }} | ||
{{- end }} |
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
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.