-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Include ingress for addon status check * Add addon to expose dashboard over ingress (#906) * Add validator for dashboard-ingress (#906) * Add note and workaround for nip.io in tests * Force HTTPS redirect on dashboard ingress * Fix lint on validator changes at dashboard_ingress * Add config args to dashboard-ingress addon (#906) * fix unclosed monospace text on nip.io workaround * Move storage-dir argument to k8s-dqlite (#2672) * Move storage-dir argument to k8s-dqlite * Fix the config values * Remove empty line * Use Docker's own registry image (#2679) * Update k8s-dqlite to include the empty cluster.yaml fix (#2683) * Upgrade linkerd to version 2.11.1 * Fix yaml loading in tests (#2698) * Update EnVar plugin (#2704) * Installer 2.2.1 release (#2705) * Bump actions/checkout from 2.3.5 to 2.4.0 (#2706) Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2.3.5...v2.4.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update inaccel add-on (#2681) * Set `kube-system` as the default namespace * Test mutating webhook features Signed-off-by: Elias Koromilas <elias.koromilas@gmail.com> * Inspect report to include basic dqlite info (#2688) * Update check-formatting.yml (#2721) Rename `build` to `check-formatting`. This helps when running locally with `act`. * Add clustering tests. Remove dead tests. (#2697) * Update GPU operator to v1.8.2 and fix its test (#2708) * updated portainer disable script (#2693) * Update default kube-apiserver arguments (#2731) - Disable profiling (--profiling=false) - Reduce event TTL to 5 minutes (--event-ttl=5m) * Bump ingress to v1.0.5 (#2732) * Bump actions/setup-python from 2.2.2 to 2.3.0 (#2738) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2.2.2 to 2.3.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v2.2.2...v2.3.0) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use SafeLoader instead of FullLoader (#2726) * Pull inspection tarball out of the multipass VM (#2711) Co-authored-by: John P Lettman <john.lettman@canonical.com> Co-authored-by: Konstantinos Tsakalozos <kos.tsakalozos@canonical.com> Co-authored-by: Tobias Muehl <t@muehl.io> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Elias Koromilas <elias.koromilas@gmail.com> Co-authored-by: balasu <balasundarammaster@gmail.com> Co-authored-by: Angelos Kolaitis <angelos.kolaitis@canonical.com> Co-authored-by: Mohammad Faraz <farazm708@gmail.com>
- Loading branch information
1 parent
c98c417
commit 2d526d2
Showing
46 changed files
with
403 additions
and
1,286 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
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
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
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,37 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import subprocess | ||
|
||
import click | ||
|
||
@click.command() | ||
def dashboard_ingress(): | ||
click.echo("Disabling Ingress for Kubernetes Dashboard") | ||
|
||
env = os.environ.copy() | ||
env["PATH"] += ":%s" % os.environ["SNAP"] | ||
|
||
resources = [ | ||
"secret/kubernetes-dashboard-basic-auth", | ||
"ingress.networking.k8s.io/kubernetes-dashboard-ingress" | ||
] | ||
|
||
for resource in resources: | ||
click.echo(f"Destroying {resource}...") | ||
try: | ||
subprocess.check_call( | ||
["microk8s-kubectl.wrapper", "delete", "-n", "kube-system", resource], | ||
stdin=subprocess.PIPE, | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, | ||
env=env, | ||
) | ||
except subprocess.CalledProcessError: | ||
pass | ||
|
||
click.echo("Destruction complete.") | ||
click.echo("Ingress for Kubernetes Dashboard is disabled") | ||
|
||
if __name__ == "__main__": | ||
dashboard_ingress(prog_name="microk8s disable dashboard-ingress") |
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.