-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create/update/delete firewall rules for SQL servers (#148)
* need to handled unexpected error types...like validation.error (#111) * refactor tests (#90) * improve tests with parallel execution and rm sleep * fix the tests to run on kindcluster * Updates to KV controller from Ace (#80) (#112) * feat: implement keyvault controller * Ace's KV changes with updates * Added an event for the final successful provisioning * Updated changes based on the PR comments * removing unwanted file * making resource group name the one in the keyvault yaml Co-authored-by: Ace Eldeib <alexeldeib@gmail.com> * Test update (#115) * this needs to exist in the reconciler in order to use controllerutil createorupdate * Feat/add consumer group kind (#117) * add consumer group kind * update tests for consumer group * fix isbeingdeleted * Updates to README - steps for onboarding (#114) * cluster additions * updated docs * Update azure-pipelines.yaml (#119) * Update azure-pipelines.yaml * fix tests (#140) * revert back // +kubebuilder:subresource:status changes - fix broken tests * Devcontainer to Help Onboard New People (#142) * add dev conatiner - wip * DevContainer up and running. * Removed `sleep 80` and replaced with `kubectl wait`. * Run `make set-kindcluster` from docker-compose. * Set timeout on wait. * Added `install-test-dependency` to makefile and dockerfile. * Update README - Create SP with contribution rights. * Updated README with details on using devcontainer. * Stuff that wanted me to commit. * Reverted changes made to `docker-build` in Makefile. * pass future where possible instead of bool (#121) * first commit on Amanda's branch * first * before properties * test not tested * test works * unit tests work, needs firewall rules * addresses feedback * erin's feedback * janani's change, pass future * async works much better now * janani feedback * screwed up interface prototype * firewall settings and unit tests * firewall rule deletion
- Loading branch information
1 parent
006e683
commit 228c63d
Showing
36 changed files
with
1,900 additions
and
263 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,91 @@ | ||
#------------------------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | ||
#------------------------------------------------------------------------------------------------------------- | ||
|
||
FROM golang:1.12.5 | ||
|
||
# Avoid warnings by switching to noninteractive | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Configure apt, install packages and tools | ||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends apt-utils 2>&1 \ | ||
# | ||
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed | ||
&& apt-get -y install git procps lsb-release \ | ||
# | ||
# Install gocode-gomod | ||
&& go get -x -d github.com/stamblerre/gocode 2>&1 \ | ||
&& go build -o gocode-gomod github.com/stamblerre/gocode \ | ||
&& mv gocode-gomod $GOPATH/bin/ \ | ||
# | ||
# Install Go tools | ||
&& go get -u -v \ | ||
github.com/mdempsky/gocode \ | ||
github.com/uudashr/gopkgs/cmd/gopkgs \ | ||
github.com/ramya-rao-a/go-outline \ | ||
github.com/acroca/go-symbols \ | ||
github.com/godoctor/godoctor \ | ||
golang.org/x/tools/cmd/guru \ | ||
golang.org/x/tools/cmd/gorename \ | ||
github.com/rogpeppe/godef \ | ||
github.com/zmb3/gogetdoc \ | ||
github.com/haya14busa/goplay/cmd/goplay \ | ||
github.com/sqs/goreturns \ | ||
github.com/josharian/impl \ | ||
github.com/davidrjenni/reftools/cmd/fillstruct \ | ||
github.com/fatih/gomodifytags \ | ||
github.com/cweill/gotests/... \ | ||
golang.org/x/tools/cmd/goimports \ | ||
golang.org/x/lint/golint \ | ||
golang.org/x/tools/cmd/gopls \ | ||
github.com/alecthomas/gometalinter \ | ||
honnef.co/go/tools/... \ | ||
github.com/golangci/golangci-lint/cmd/golangci-lint \ | ||
github.com/mgechev/revive \ | ||
github.com/derekparker/delve/cmd/dlv 2>&1 \ | ||
# | ||
# Clean up | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update \ | ||
# | ||
# Install Docker CE CLI | ||
&& apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common lsb-release \ | ||
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | apt-key add - 2>/dev/null \ | ||
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \ | ||
&& apt-get update \ | ||
&& apt-get install -y docker-ce-cli \ | ||
# | ||
# Install kubectl | ||
&& curl -sSL -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl \ | ||
# | ||
# Install Helm | ||
&& curl -s https://raw.githubusercontent.com/helm/helm/master/scripts/get | bash - | ||
|
||
# Verify git, process tools installed | ||
RUN apt-get -y install git procps wget nano zsh inotify-tools jq | ||
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true | ||
|
||
ENV PATH="/usr/local/kubebuilder/bin:${PATH}" | ||
|
||
ENV GO111MODULE=on | ||
|
||
# Set the default shell to bash instead of sh | ||
ENV AZURE_CLIENT_ID="" | ||
ENV AZURE_CLIENT_SECRET="" | ||
ENV AZURE_SUBSCRIPTION_ID="" | ||
ENV AZURE_TENANT_ID="" | ||
ENV KUBECONFIG="/root/.kube/kind-config-kind" | ||
|
||
COPY ./Makefile ./ | ||
RUN make install-kind | ||
RUN make install-kubebuilder | ||
RUN make install-kustomize | ||
RUN make install-test-dependency | ||
|
||
ENV SHELL /bin/bash |
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 @@ | ||
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml. | ||
{ | ||
"name": "Go", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "docker-in-docker", | ||
"workspaceFolder": "/workspace", | ||
"shutdownAction": "stopCompose", | ||
"extensions": [ | ||
"ms-azuretools.vscode-docker", | ||
"ms-vscode.go" | ||
], | ||
"settings": { | ||
"terminal.integrated.shell.linux": "zsh", | ||
"go.gopath": "/go", | ||
"go.inferGopath": true, | ||
"go.useLanguageServer": true, | ||
"go.toolsEnvVars": { | ||
"GO111MODULE": "on" | ||
}, | ||
"remote.extensionKind": { | ||
"ms-azuretools.vscode-docker": "workspace" | ||
} | ||
} | ||
} |
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 @@ | ||
version: '3' | ||
services: | ||
docker-in-docker: | ||
build: | ||
context: ../ | ||
dockerfile: .devcontainer/Dockerfile | ||
network_mode: "host" | ||
ports: | ||
- 5002:5001 | ||
volumes: | ||
# Update this to wherever you want VS Code to mount the folder of your project | ||
- ..:/workspace | ||
|
||
# This lets you avoid setting up Git again in the container | ||
- ~/.gitconfig:/root/.gitconfig | ||
- ~/.ssh:/root/.ssh:ro # does not work on Windows! Will need to generate in container :( | ||
# Forwarding the socket is optional, but lets docker work inside the container if you install the Docker CLI. | ||
# See the docker-in-docker-compose definition for details on how to install it. | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
|
||
# Overrides default command so things don't shut down after the process ends - useful for debugging | ||
command: bash -c "cd /workspace/ && make set-kindcluster && sleep infinity" | ||
env_file: | ||
- .env |
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 |
---|---|---|
|
@@ -23,3 +23,6 @@ resources: | |
- group: azure | ||
version: v1 | ||
kind: KeyVault | ||
- group: azure | ||
version: v1 | ||
kind: ConsumerGroup |
Oops, something went wrong.