Skip to content

Commit 1244f6a

Browse files
authored
refactor: valid8or -> validator (#101)
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
1 parent aa85434 commit 1244f6a

52 files changed

Lines changed: 252 additions & 252 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build_container.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
env:
1717
GO_VERSION: "~1.20"
18-
IMAGE_NAME: "valid8or-plugin-aws"
18+
IMAGE_NAME: "validator-plugin-aws"
1919
defaults:
2020
run:
2121
shell: bash
@@ -68,7 +68,7 @@ jobs:
6868
DATETIME: ${{ needs.prepare_ci_run.outputs.DATETIME }}
6969
BUILD_TIME: ${{ needs.prepare_ci_run.outputs.BUILD_TIME }}
7070
GIT_SHA: ${{ needs.prepare_ci_run.outputs.GIT_SHA }}
71-
RELEASE_REGISTRY: "localhost:5000/valid8or-plugin-aws"
71+
RELEASE_REGISTRY: "localhost:5000/validator-plugin-aws"
7272
steps:
7373
- name: Check out code
7474
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
packages: write
6767
id-token: write
6868
env:
69-
IMAGE_TAG: quay.io/spectrocloud-labs/valid8or-plugin-aws:${{ needs.release-please.outputs.tag_name }}
70-
IMAGE_NAME: valid8or-plugin-aws
69+
IMAGE_TAG: quay.io/spectrocloud-labs/validator-plugin-aws:${{ needs.release-please.outputs.tag_name }}
70+
IMAGE_NAME: validator-plugin-aws
7171
steps:
7272
- name: Checkout
7373
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

CHANGELOG.md

Lines changed: 105 additions & 105 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Image URL to use all building/pushing image targets
3-
IMG ?= quay.io/spectrocloud-labs/valid8or-plugin-aws:latest
3+
IMG ?= quay.io/spectrocloud-labs/validator-plugin-aws:latest
44

55
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
66
ifeq (,$(shell go env GOBIN))
@@ -126,7 +126,7 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
126126
.PHONY: helmify
127127
helmify: manifests kustomize
128128
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
129-
$(KUSTOMIZE) build config/default > chart/valid8or-plugin-k8s.yaml
129+
$(KUSTOMIZE) build config/default > chart/validator-plugin-k8s.yaml
130130

131131
##@ Build Dependencies
132132

@@ -188,15 +188,15 @@ $(HELMIFY): $(LOCALBIN)
188188
helm-build: helm helmify manifests kustomize
189189
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG) && cd ../../
190190
$(KUSTOMIZE) build config/default | $(HELMIFY) -crd-dir
191-
cat hack/extra-values.yaml >> chart/valid8or-plugin-aws/values.yaml
191+
cat hack/extra-values.yaml >> chart/validator-plugin-aws/values.yaml
192192

193193
.PHONY: helm-package
194194
helm-package: generate manifests
195-
$(HELM) package --version $(CHART_VERSION) chart/valid8or-plugin-aws/
196-
mkdir -p charts && mv valid8or-*.tgz charts
197-
$(HELM) repo index --url https://spectrocloud-labs.github.io/valid8or-plugin-aws ./chart
198-
mv charts/valid8or-plugin-aws/index.yaml index.yaml
195+
$(HELM) package --version $(CHART_VERSION) chart/validator-plugin-aws/
196+
mkdir -p charts && mv validator-*.tgz charts
197+
$(HELM) repo index --url https://spectrocloud-labs.github.io/validator-plugin-aws ./chart
198+
mv charts/validator-plugin-aws/index.yaml index.yaml
199199

200200
.PHONY: frigate
201201
frigate:
202-
frigate gen chart/valid8or-plugin-aws --no-deps -o markdown > chart/valid8or-plugin-aws/README.md
202+
frigate gen chart/validator-plugin-aws --no-deps -o markdown > chart/validator-plugin-aws/README.md

PROJECT

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
domain: spectrocloud.labs
66
layout:
77
- go.kubebuilder.io/v4
8-
projectName: valid8or-plugin-aws
9-
repo: github.com/spectrocloud-labs/valid8or-plugin-aws
8+
projectName: validator-plugin-aws
9+
repo: github.com/spectrocloud-labs/validator-plugin-aws
1010
resources:
1111
- api:
1212
crdVersion: v1
@@ -15,6 +15,6 @@ resources:
1515
domain: spectrocloud.labs
1616
group: validation
1717
kind: AwsValidator
18-
path: github.com/spectrocloud-labs/valid8or-plugin-aws/api/v1alpha1
18+
path: github.com/spectrocloud-labs/validator-plugin-aws/api/v1alpha1
1919
version: v1alpha1
2020
version: "3"

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# valid8or-plugin-aws
2-
The AWS [valid8or](https://github.com/spectrocloud-labs/valid8or) plugin ensures that your AWS environment matches a user-configurable expected state.
1+
# validator-plugin-aws
2+
The AWS [validator](https://github.com/spectrocloud-labs/validator) plugin ensures that your AWS environment matches a user-configurable expected state.
33

44
## Description
5-
The AWS valid8or plugin reconciles `AwsValidator` custom resources to perform the following validations against your AWS environment:
5+
The AWS validator plugin reconciles `AwsValidator` custom resources to perform the following validations against your AWS environment:
66

77
1. Compare the IAM permissions associated with an IAM user / group / role / policy against an expected permission set
88
2. Compare the usage for a particular service quota against the active quota
99
3. Compare the tags associated with a subnet against an expected tag set
1010

1111
Each `AwsValidator` CR is (re)-processed every two minutes to continuously ensure that your AWS environment matches the expected state.
1212

13-
See the [samples](https://github.com/spectrocloud-labs/valid8or-plugin-aws/tree/main/config/samples) directory for example `AwsValidator` configurations.
13+
See the [samples](https://github.com/spectrocloud-labs/validator-plugin-aws/tree/main/config/samples) directory for example `AwsValidator` configurations.
1414

1515
## Supported Service Quotas by AWS Service
1616
EC2:
@@ -33,12 +33,12 @@ VPC:
3333
- Subnets per VPC
3434

3535
## Installation
36-
The AWS valid8or plugin is meant to be [installed by valid8or](https://github.com/spectrocloud-labs/valid8or/tree/gh_pages#installation) (via a Valid8orConfig), but it can also be installed directly as follows:
36+
The AWS validator plugin is meant to be [installed by validator](https://github.com/spectrocloud-labs/validator/tree/gh_pages#installation) (via a ValidatorConfig), but it can also be installed directly as follows:
3737

3838
```bash
39-
helm repo add valid8or-plugin-aws https://spectrocloud-labs.github.io/valid8or-plugin-aws
39+
helm repo add validator-plugin-aws https://spectrocloud-labs.github.io/validator-plugin-aws
4040
helm repo update
41-
helm install valid8or-plugin-aws valid8or-plugin-aws/valid8or-plugin-aws -n valid8or-plugin-aws --create-namespace
41+
helm install validator-plugin-aws validator-plugin-aws/validator-plugin-aws -n validator-plugin-aws --create-namespace
4242
```
4343

4444
## Getting Started
@@ -55,13 +55,13 @@ kubectl apply -f config/samples/
5555
2. Build and push your image to the location specified by `IMG`:
5656

5757
```sh
58-
make docker-build docker-push IMG=<some-registry>/valid8or-plugin-aws:tag
58+
make docker-build docker-push IMG=<some-registry>/validator-plugin-aws:tag
5959
```
6060

6161
3. Deploy the controller to the cluster with the image specified by `IMG`:
6262

6363
```sh
64-
make deploy IMG=<some-registry>/valid8or-plugin-aws:tag
64+
make deploy IMG=<some-registry>/validator-plugin-aws:tag
6565
```
6666

6767
### Uninstall CRDs

api/v1alpha1/awsvalidator_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package v1alpha1
1919
import (
2020
"fmt"
2121

22-
valid8orv1alpha1 "github.com/spectrocloud-labs/valid8or/api/v1alpha1"
22+
validatorv1alpha1 "github.com/spectrocloud-labs/validator/api/v1alpha1"
2323
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2424
)
2525

@@ -141,7 +141,7 @@ type AwsValidatorStatus struct {
141141
// +optional
142142
// +patchMergeKey=type
143143
// +patchStrategy=merge
144-
Conditions []valid8orv1alpha1.ValidationCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
144+
Conditions []validatorv1alpha1.ValidationCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
145145
}
146146

147147
//+kubebuilder:object:root=true

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: valid8or-plugin-aws
2+
name: validator-plugin-aws
33
description: Perform various AWS validations (IAM, Service Quotas, Tags)
44
type: application
55
version: 0.0.7 # x-release-please-version

0 commit comments

Comments
 (0)