Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create monitor with Basic Auth #30

Open
hdp-sami opened this issue Aug 24, 2021 · 3 comments
Open

Unable to create monitor with Basic Auth #30

hdp-sami opened this issue Aug 24, 2021 · 3 comments

Comments

@hdp-sami
Copy link

Hi there,

I've been trying to create a new Uptime monitor using the following YAML but I'm getting a validation error stating that the httpAuthSecret field is unknown.

My YAML:

apiVersion: uroperator.brennerm.github.io/v1beta1
kind: UptimeRobotMonitor
metadata:
  name: my-application-monitor
  namespace: public
spec:
  url: "https://exampledomain.com"
  type: HTTPS
  interval: 300
  friendlyName: "My Application Monitor"
  alertContacts: "1234_0_0"
  httpAuthType: BASIC_AUTH
  httpAuthSecret: auth-secret

My create command and error:

$ k create -f uptime-monitor-crd.yaml
error: error validating "uptime-monitor-crd.yaml": error validating data: ValidationError(UptimeRobotMonitor.spec): unknown field "httpAuthSecret" in io.github.brennerm.uroperator.v1beta1.UptimeRobotMonitor.spec; if you choose to ignore these errors, turn validation off with --validate=false

I've installed the operator using Helm by cloning the repository and doing it locally, as the steps listed in the installation steps were failing (I've added that snippet below but that's a different issue).

$ helm repo add uptimerobot-operator https://brennerm.github.io/uptimerobot-operator/helm
$ helm upgrade --install uptimerobot-operator uptimerobot-operator --set uptimeRobotApiKey=1234
Release "uptimerobot-operator" does not exist. Installing it now.
Error: failed to download "uptimerobot-operator" (hint: running `helm repo update` may help)

Am I doing something wrong perhaps? If there's additional information I can provide to you please let me know.

@ghost
Copy link

ghost commented Aug 25, 2021

@hdp-sami It looks like the httpAuthSecret is an unreleased feature

https://github.com/brennerm/uptimerobot-operator/blob/25cdca5ec06e15d05ddd5ed4b13b20082fbb8889/CHANGELOG.md#unreleased

It looks like there isn't a newer Docker image available, since the last build was when the last release was prepared, so there is no image you can use to access the httpAuthSecret feature 😞

https://github.com/brennerm/uptimerobot-operator/pkgs/container/uptimerobot-operator/versions

@brennerm
Copy link
Owner

@domhdp That's exactly the issue here. Will prepare a new release in the next days.

@hdp-sami
Copy link
Author

@brennerm I ended up building the image myself to get the new field working. Would still be great to have that release up though 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants