Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2025-07-02T09:48:54Z"
createdAt: "2025-07-02T12:39:39Z"
operators.operatorframework.io/builder: operator-sdk-v1.40.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
name: k8s-overcommit.v1.0.1
Expand Down
2 changes: 1 addition & 1 deletion chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Overcommitx Helm chart for deploying the Overcommitx Webhook
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| clusterRole.name | string | `"k8s-overcommit-clusterrole"` | Name of the cluster role |
| createnamespace | bool | `false` | Whether to create the namespace if it does not exist |
| createNamespace | bool | `false` | Whether to create the namespace if it does not exist |
| deployment.image | object | `{"image":"operator","registry":"quay.io","repository":"k8s-overcommit","tag":"1.0.0"}` | Image configuration for the deployment |
| deployment.image.image | string | `"operator"` | Image name |
| deployment.image.registry | string | `"quay.io"` | Docker registry for the image |
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/01-namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0

{{ if $.Values.createnamespace }}
{{ if $.Values.createNamespace }}
---
apiVersion: v1
kind: Namespace
Expand Down
6 changes: 3 additions & 3 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# -- The namespace to deploy the resources
namespace: k8s-overcommit
# -- Whether to create the namespace if it does not exist
createnamespace: true
createNamespace: true
createOvercommit: false
createClasses: false
overcommit:
# -- Label of the overcommit class
overcommitClassLabel: inditex.com/overcommit-class
excludedNamespaces: ".*(^(openshift|k8s-overcommit|kube).*).*"
excludedNamespaces: ".*(^(openshift|k8s-overcommit|kube).*).*"

deployment:
# -- Number of replicas for the deployment
Expand Down Expand Up @@ -42,4 +42,4 @@ deployment:
podLabels:
example-label: example-value
serviceAccount:
name: overcommit-sa
name: overcommit-sa
2 changes: 1 addition & 1 deletion deploy/chart/1.0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Overcommitx Helm chart for deploying the Overcommitx Webhook
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| clusterRole.name | string | `"k8s-overcommit-clusterrole"` | Name of the cluster role |
| createnamespace | bool | `false` | Whether to create the namespace if it does not exist |
| createNamespace | bool | `false` | Whether to create the namespace if it does not exist |
| deployment.image | object | `{"image":"operator","registry":"quay.io","repository":"k8s-overcommit","tag":"1.0.0"}` | Image configuration for the deployment |
| deployment.image.image | string | `"operator"` | Image name |
| deployment.image.registry | string | `"quay.io"` | Docker registry for the image |
Expand Down
2 changes: 1 addition & 1 deletion deploy/chart/1.0.1/templates/01-namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0

{{ if $.Values.createnamespace }}
{{ if $.Values.createNamespace }}
---
apiVersion: v1
kind: Namespace
Expand Down
6 changes: 3 additions & 3 deletions deploy/chart/1.0.1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# -- The namespace to deploy the resources
namespace: k8s-overcommit
# -- Whether to create the namespace if it does not exist
createnamespace: true
createNamespace: true
createOvercommit: false
createClasses: false
overcommit:
# -- Label of the overcommit class
overcommitClassLabel: inditex.com/overcommit-class
excludedNamespaces: ".*(^(openshift|k8s-overcommit|kube).*).*"
excludedNamespaces: ".*(^(openshift|k8s-overcommit|kube).*).*"

deployment:
# -- Number of replicas for the deployment
Expand Down Expand Up @@ -42,4 +42,4 @@ deployment:
podLabels:
example-label: example-value
serviceAccount:
name: overcommit-sa
name: overcommit-sa
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2025-07-02T09:48:54Z"
createdAt: "2025-07-02T12:39:39Z"
operators.operatorframework.io/builder: operator-sdk-v1.40.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
name: k8s-overcommit.v1.0.1
Expand Down
4 changes: 2 additions & 2 deletions hack/ci-mount-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kubectl wait --for=condition=available --timeout=40s deployment/cert-manager-web
make docker-build IMG=k8s-overcommit/webhook:teste2e
kind load docker-image k8s-overcommit/webhook:teste2e --name kuttl-cluster
echo "Mounted image in the Kind cluster, instaling operator"
helm install k8s-overcommit chart --set createClasses=false --set createnamespace=true --set namespace=k8s-overcommit --set deployment.image.tag=teste2e --set deployment.image.registry=docker.io --set deployment.image.image=k8s-overcommit/webhook
helm install k8s-overcommit chart --set createClasses=false --set createNamespace=true --set namespace=k8s-overcommit --set deployment.image.tag=teste2e --set deployment.image.registry=docker.io --set deployment.image.image=k8s-overcommit/webhook
echo "Operator installed, waiting for the deployment to be ready"
kubectl wait --for=condition=available --timeout=50s deployment/k8s-overcommit-operator -n $(yq eval '.namespace' chart/values.yaml)
echo "Operator deployment ready, installing the overcommit CR"
Expand All @@ -24,4 +24,4 @@ sleep 10
kubectl apply -f hack/overcommitClassTests.yaml
sleep 10
kubectl wait --for=condition=available --timeout=40s deployment/test-overcommit-webhook -n $(yq eval '.namespace' chart/values.yaml)
echo "tests environment ready"
echo "tests environment ready"
4 changes: 2 additions & 2 deletions hack/tilt/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

---
createClasses: true
createnamespace: false
createNamespace: false
namespace: k8s-overcommit

deployment:
image:
registry: localhost:5000
image: controller-manager
tag: dev
tag: dev