Skip to content

Commit

Permalink
summer-deps attempt. Probably not working
Browse files Browse the repository at this point in the history
  • Loading branch information
4141done committed Oct 3, 2023
1 parent 66d63cd commit 4c70eb5
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 50 deletions.
4 changes: 2 additions & 2 deletions bin/setup_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ fi
#
if [ ! -x "${VIRTUAL_ENV}/bin/kubectl" ]; then
echo "Downloading kubectl into virtual environment"
KUBECTL_VERSION="v1.24.3"
KUBECTL_VERSION="v1.27.4"
${download_cmd} "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${OS}/${ARCH}/kubectl" >"${VIRTUAL_ENV}/bin/kubectl"
KUBECTL_CHECKSUM="$(${download_cmd} "https://dl.k8s.io/${KUBECTL_VERSION}/bin/${OS}/${ARCH}/kubectl.sha256")"
echo "${KUBECTL_CHECKSUM} ${VIRTUAL_ENV}/bin/kubectl" | ${sha256sum_cmd}
chmod +x "${VIRTUAL_ENV}/bin/kubectl"
else
echo "kubectl is already installed, but will overwrite to ensure correct version"
echo "Downloading kubectl into virtual environment"
KUBECTL_VERSION="v1.24.3"
KUBECTL_VERSION="v1.27.4"
${download_cmd} "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/${OS}/${ARCH}/kubectl" >"${VIRTUAL_ENV}/bin/kubectl"
KUBECTL_CHECKSUM="$(${download_cmd} "https://dl.k8s.io/${KUBECTL_VERSION}/bin/${OS}/${ARCH}/kubectl.sha256")"
echo "${KUBECTL_CHECKSUM} ${VIRTUAL_ENV}/bin/kubectl" | ${sha256sum_cmd}
Expand Down
32 changes: 16 additions & 16 deletions pulumi/python/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ verify_ssl = true
name = "pypi"

[packages]
pulumi = "~=3.75"
fart = "~=0.1"
lolcat = "~=1.4"
passlib = "~=1.7"
pulumi-docker = "~=3.3"
pulumi-kubernetes = "~=3.30"
setuptools-git-versioning = "~=1.13"
pyyaml = "~=6.0"
wheel = "~=0.40"
nodeenv = "~=1.8"
pulumi-digitalocean = "~=4.20"
pulumi-linode = "~=4.4"
linode-cli = "~=5.41"
pulumi-aws = "~=5.42"
pulumi-eks = "~=1.0"
awscli = "~=1.29"
pulumi = "*"
fart = "*"
lolcat = "*"
passlib = "*"
pulumi-docker = "*"
pulumi-kubernetes = "*"
setuptools-git-versioning = "*"
pyyaml = "*"
wheel = "*"
nodeenv = "*"
pulumi-digitalocean = "*"
pulumi-linode = "*"
linode-cli = "*"
pulumi-aws = "*"
pulumi-eks = "*"
awscli = "*"

[requires]
python_version = "3.11"
26 changes: 13 additions & 13 deletions pulumi/python/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pulumi/python/kubernetes/applications/sirius/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def add_namespace(obj):
#
# Create the namespace for Bank of Sirius
#
ns = k8s.core.v1.Namespace(resource_name='bos',
ns = k8s.core.v1.Namespace('bos',
metadata={'name': 'bos'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down
2 changes: 1 addition & 1 deletion pulumi/python/kubernetes/certmgr/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def add_namespace(obj):
k8s_provider = k8s.Provider(resource_name=f'ingress-controller',
kubeconfig=kubeconfig)

ns = k8s.core.v1.Namespace(resource_name='cert-manager',
ns = k8s.core.v1.Namespace('cert-manager',
metadata={'name': 'cert-manager'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down
2 changes: 1 addition & 1 deletion pulumi/python/kubernetes/logagent/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def pulumi_logstore_project_name():
k8s_provider = k8s.Provider(resource_name=f'ingress-controller',
kubeconfig=kubeconfig)

ns = k8s.core.v1.Namespace(resource_name='logagent',
ns = k8s.core.v1.Namespace('logagent',
metadata={'name': 'logagent'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down
2 changes: 1 addition & 1 deletion pulumi/python/kubernetes/logstore/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def project_name_from_project_dir(dirname: str):
k8s_provider = k8s.Provider(resource_name=f'ingress-controller',
kubeconfig=kubeconfig)

ns = k8s.core.v1.Namespace(resource_name='logstore',
ns = k8s.core.v1.Namespace('logstore',
metadata={'name': 'logstore'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def infrastructure_project_name_from_project_dir(dirname: str):

namespace_name = 'nginx-ingress'

ns = k8s.core.v1.Namespace(resource_name='nginx-ingress',
ns = k8s.core.v1.Namespace('nginx-ingress',
metadata={'name': namespace_name,
'labels': {
'prometheus': 'scrape'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
nginx_repository = "nginx/nginx-ingress"
nginx_tag = config.get('nginx_tag')
if not nginx_tag:
nginx_tag = "2.4.2"
nginx_tag = "3.2.0"
nginx_plus_flag = config.get_bool('nginx_plus_flag')
if not nginx_plus_flag:
nginx_plus_flag = False
Expand Down Expand Up @@ -59,13 +59,6 @@ def k8_manifest_location():
k8_manifest_path = os.path.join(script_dir, 'manifests', 'regcred.yaml')
return k8_manifest_path


k8_manifest = k8_manifest_location()

registrycred = ConfigFile(
"regcred",
file=k8_manifest)

chart_values = {
'controller': {
'nginxplus': nginx_plus_flag,
Expand All @@ -91,6 +84,7 @@ def k8_manifest_location():
}
},
'service': {
'name': "kic-nginx-ingress",
'annotations': {
'co.elastic.logs/module': 'nginx'
},
Expand Down Expand Up @@ -137,13 +131,19 @@ def k8_manifest_location():
kubeconfig=kubeconfig)

# This is required for the service monitor from the Prometheus namespace
ns = k8s.core.v1.Namespace(resource_name='nginx-ingress',
ns = k8s.core.v1.Namespace('nginx-ingress',
metadata={'name': 'nginx-ingress',
'labels': {
'prometheus': 'scrape'}
},
opts=pulumi.ResourceOptions(provider=k8s_provider))

k8_manifest = k8_manifest_location()

registrycred = ConfigFile(
"regcred",
file=k8_manifest)

kic_release_args = ReleaseArgs(
chart=chart_name,
repository_opts=RepositoryOptsArgs(
Expand Down Expand Up @@ -182,8 +182,11 @@ def k8_manifest_location():
# Some LB's give us a hostname (which is cool) and some just an IP. We need to capture
# both, and then make a determination on what the user needs to do based on what they have
# been given.
#
print("befoe export lb_ingress_hostname")
pulumi.export('lb_ingress_hostname', fqdn)
print("befoe export lb_ingress_ip")
pulumi.export('lb_ingress_ip', pulumi.Output.unsecret(ingress_service.load_balancer.ingress[0].ip))
# Print out our status
print("befoe export kic status")
pulumi.export("kic_status", pstatus)
print("All done")
2 changes: 1 addition & 1 deletion pulumi/python/kubernetes/observability/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def add_namespace(obj):
k8s_provider = k8s.Provider(resource_name=f'ingress-controller', kubeconfig=kubeconfig)

# Create the namespace
ns = k8s.core.v1.Namespace(resource_name='observability',
ns = k8s.core.v1.Namespace('observability',
metadata={'name': 'observability'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down
2 changes: 1 addition & 1 deletion pulumi/python/kubernetes/prometheus/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def extract_adminpass_from_k8s_secrets(secrets: Mapping[str, str]) -> str:
k8s_provider = k8s.Provider(resource_name=f'ingress-controller',
kubeconfig=kubeconfig)

ns = k8s.core.v1.Namespace(resource_name='prometheus',
ns = k8s.core.v1.Namespace('prometheus',
metadata={'name': 'prometheus'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down
2 changes: 1 addition & 1 deletion pulumi/python/tools/metallb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def k8_manifest_location():
k8s_provider = k8s.Provider(resource_name=f'ingress-controller', kubeconfig=kubeconfig)

# Create the namespace for metallb
ns = k8s.core.v1.Namespace(resource_name='metallb-system',
ns = k8s.core.v1.Namespace('metallb-system',
metadata={'name': 'metallb-system'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down
2 changes: 1 addition & 1 deletion pulumi/python/tools/nfsvolumes/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def pulumi_kube_project_name():

k8s_provider = k8s.Provider(resource_name=f'ingress-controller', kubeconfig=kubeconfig)

ns = k8s.core.v1.Namespace(resource_name='nfsvols',
ns = k8s.core.v1.Namespace('nfsvols',
metadata={'name': 'nfsvols'},
opts=pulumi.ResourceOptions(provider=k8s_provider))

Expand Down

0 comments on commit 4c70eb5

Please sign in to comment.