Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 19e4345

Browse files
floriankochFlorian Koch
andauthored
fix(examples): replace k8s.io with example.io in sample controller (#128)
In newer kubernetes version, the namespace k8s.io is protected kubernetes/enhancements#1111 switch sample controller to use `example.io` instead Signed-off-by: Florian Koch <flo@ctrl.wtf> Co-authored-by: Florian Koch <flo@ctrl.wtf>
1 parent e6555f7 commit 19e4345

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/sample-controller/js/foo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: samplecontroller.k8s.io/v1alpha1
1+
apiVersion: samplecontroller.example.io/v1alpha1
22
kind: Foo
33
metadata:
44
name: myfoo

examples/sample-controller/js/operator.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: apiextensions.k8s.io/v1beta1
22
kind: CustomResourceDefinition
33
metadata:
4-
name: foos.samplecontroller.k8s.io
4+
name: foos.samplecontroller.example.io
55
spec:
6-
group: samplecontroller.k8s.io
6+
group: samplecontroller.example.io
77
version: v1alpha1
88
scope: Namespaced
99
names:
@@ -22,7 +22,7 @@ metadata:
2222
spec:
2323
generateSelector: true
2424
parentResource:
25-
apiVersion: samplecontroller.k8s.io/v1alpha1
25+
apiVersion: samplecontroller.example.io/v1alpha1
2626
resource: foos
2727
childResources:
2828
- apiVersion: apps/v1

examples/sample-controller/js/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ trap cleanup EXIT
2424
# Uncomment below if debug / verbose execution is needed
2525
#set -ex
2626

27-
my_crd="foos.samplecontroller.k8s.io"
27+
my_crd="foos.samplecontroller.example.io"
2828
my_deploy="my-deploy"
2929

3030
echo -e "\n Install SampleController..."

0 commit comments

Comments
 (0)