Skip to content

Commit

Permalink
fix(checklyhq): Fix checkly website URL
Browse files Browse the repository at this point in the history
  • Loading branch information
akosveres committed May 12, 2022
1 parent 0b3b824 commit 406592c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=IMGARENA_checkly-operator&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=IMGARENA_checkly-operator) [![Build and push](https://github.com/IMGARENA/checkly-operator/actions/workflows/main-merge.yaml/badge.svg)](https://github.com/IMGARENA/checkly-operator/actions/workflows/main-merge.yaml) [![Code Coverage](https://sonarcloud.io/api/project_badges/measure?project=IMGARENA_checkly-operator&metric=coverage)](https://sonarcloud.io/summary/new_code?id=IMGARENA_checkly-operator)

A kubernetes operator for [checkly.com](https://checkly.com).
A kubernetes operator for [checklyhq.com](https://checklyhq.com).

The operator can create checkly.com checks and groups based of kubernetes CRDs.
The operator can create checklyhq.com checks and groups based of kubernetes CRDs.

## Development

Expand Down Expand Up @@ -70,4 +70,4 @@ Modify the [config/samples/checkly_v1alpha1_apicheck.yaml](config/samples/checkl

#### Current settings

Any checks created on checkly.com will be muted.
Any checks created on checklyhq.com will be muted.
2 changes: 1 addition & 1 deletion apis/checkly/v1alpha1/apicheck_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type ApiCheckStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file

// ID holds the checkly.com internal ID of the check
// ID holds the checklyhq.com internal ID of the check
ID string `json:"id"`

// GroupID holds the ID of the group where the check belongs to
Expand Down
2 changes: 1 addition & 1 deletion apis/checkly/v1alpha1/group_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type GroupStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file

// ID holds the ID of the created checkly.com group
// ID holds the ID of the created checklyhq.com group
ID int64 `json:"ID"`
}

Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/checkly.imgarena.com_apichecks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
format: int64
type: integer
id:
description: ID holds the checkly.com internal ID of the check
description: ID holds the checklyhq.com internal ID of the check
type: string
required:
- groupId
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/checkly.imgarena.com_groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
description: GroupStatus defines the observed state of Group
properties:
ID:
description: ID holds the ID of the created checkly.com group
description: ID holds the ID of the created checklyhq.com group
format: int64
type: integer
required:
Expand Down
6 changes: 3 additions & 3 deletions external/checkly/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func checklyCheck(apiCheck Check) (check checkly.Check) {
return
}

// Create creates a new checkly.com check
// Create creates a new checklyhq.com check
func Create(apiCheck Check, client checkly.Client) (ID string, err error) {

check := checklyCheck(apiCheck)
Expand All @@ -125,7 +125,7 @@ func Create(apiCheck Check, client checkly.Client) (ID string, err error) {
return
}

// Update updates an existing checkly.com check
// Update updates an existing checklyhq.com check
func Update(apiCheck Check, client checkly.Client) (err error) {

check := checklyCheck(apiCheck)
Expand All @@ -138,7 +138,7 @@ func Update(apiCheck Check, client checkly.Client) (err error) {
return
}

// Delete deletes an existing checkly.com check
// Delete deletes an existing checklyhq.com check
func Delete(ID string, client checkly.Client) (err error) {

ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ func main() {
baseUrl := "https://api.checklyhq.com"
apiKey := os.Getenv("CHECKLY_API_KEY")
if apiKey == "" {
setupLog.Error(errors.New("Checkly.com API key environment variable is undefined"), "checkly.com credentials missing")
setupLog.Error(errors.New("checklyhq.com API key environment variable is undefined"), "checklyhq.com credentials missing")
os.Exit(1)
}

accountId := os.Getenv("CHECKLY_ACCOUNT_ID")
if accountId == "" {
setupLog.Error(errors.New("Checkly.com Account ID environment variable is undefined"), "checkly.com credentials missing")
setupLog.Error(errors.New("checklyhq.com Account ID environment variable is undefined"), "checklyhq.com credentials missing")
os.Exit(1)
}

Expand Down

0 comments on commit 406592c

Please sign in to comment.