-
Notifications
You must be signed in to change notification settings - Fork 52
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
Specializer updates #269
Merged
Merged
Specializer updates #269
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fbce524
fixed specilaizer issues
henderiw 77d7821
update the sdk after testing including ipv4/ipv6 handling
henderiw 2ec5d9b
updated pipeline tests
henderiw ef2c54f
updated go mod tidy
henderiw 8b2392a
updated go mod sum
henderiw e01c4ee
update with latest apis
henderiw 635af20
updated api
henderiw 198f9e5
fixed local-config flag
henderiw e61669e
added annotation protection
henderiw b499ee2
revert len check on range
henderiw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
controllers/specializer-operator/blueprint/specializer-operator/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kpt.dev/v1 | ||
kind: Kptfile | ||
metadata: | ||
name: specializer-operator | ||
annotations: | ||
config.kubernetes.io/local-config: "true" | ||
info: | ||
description: specializer-operator controller |
21 changes: 21 additions & 0 deletions
21
controllers/specializer-operator/blueprint/specializer-operator/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# specializer-operator | ||
|
||
## Description | ||
specializer-operator controller | ||
|
||
## Usage | ||
|
||
### Fetch the package | ||
`kpt pkg get REPO_URI[.git]/PKG_PATH[@VERSION] specializer-operator` | ||
Details: https://kpt.dev/reference/cli/pkg/get/ | ||
|
||
### View package content | ||
`kpt pkg tree specializer-operator` | ||
Details: https://kpt.dev/reference/cli/pkg/tree/ | ||
|
||
### Apply the package | ||
``` | ||
kpt live init specializer-operator | ||
kpt live apply specializer-operator --reconcile-timeout=2m --output=table | ||
``` | ||
Details: https://kpt.dev/reference/cli/live/ |
8 changes: 8 additions & 0 deletions
8
controllers/specializer-operator/blueprint/specializer-operator/app/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kpt.dev/v1 | ||
kind: Kptfile | ||
metadata: | ||
name: app | ||
annotations: | ||
config.kubernetes.io/local-config: "true" | ||
info: | ||
description: specializer-operator app |
21 changes: 21 additions & 0 deletions
21
controllers/specializer-operator/blueprint/specializer-operator/app/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# app | ||
|
||
## Description | ||
specializer-operator app | ||
|
||
## Usage | ||
|
||
### Fetch the package | ||
`kpt pkg get REPO_URI[.git]/PKG_PATH[@VERSION] app` | ||
Details: https://kpt.dev/reference/cli/pkg/get/ | ||
|
||
### View package content | ||
`kpt pkg tree app` | ||
Details: https://kpt.dev/reference/cli/pkg/tree/ | ||
|
||
### Apply the package | ||
``` | ||
kpt live init app | ||
kpt live apply app --reconcile-timeout=2m --output=table | ||
``` | ||
Details: https://kpt.dev/reference/cli/live/ |
39 changes: 39 additions & 0 deletions
39
...alizer-operator/blueprint/specializer-operator/app/controller/clusterrole-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
name: specializer-operator-controller-controller-role | ||
rules: | ||
- apiGroups: | ||
- '*' | ||
resources: | ||
- events | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- create | ||
- delete | ||
- apiGroups: | ||
- coordination.k8s.io | ||
resources: | ||
- leases | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- create | ||
- delete |
37 changes: 37 additions & 0 deletions
37
...specializer-operator/blueprint/specializer-operator/app/controller/clusterrole-porch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
name: specializer-operator-controller-porch-role | ||
rules: | ||
- apiGroups: | ||
- porch.kpt.dev | ||
resources: | ||
- packagerevisionresources | ||
- packagerevisions | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- create | ||
- delete | ||
- apiGroups: | ||
- porch.kpt.dev | ||
resources: | ||
- packagerevisionresources/status | ||
- packagerevisions/status | ||
- packagerevisions/approval | ||
verbs: | ||
- get | ||
- update | ||
- patch |
20 changes: 20 additions & 0 deletions
20
...operator/blueprint/specializer-operator/app/controller/clusterrolebinding-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
name: specializer-operator-controller-controller-role-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: specializer-operator-controller-controller-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: specializer-operator-controller |
20 changes: 20 additions & 0 deletions
20
...izer-operator/blueprint/specializer-operator/app/controller/clusterrolebinding-porch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
name: specializer-operator-controller-porch-role-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: specializer-operator-controller-porch-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: specializer-operator-controller |
97 changes: 97 additions & 0 deletions
97
...ializer-operator/blueprint/specializer-operator/app/controller/deployment-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
name: specializer-operator-controller | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
fn.kptgen.dev/controller: specializer-operator-controller | ||
strategy: {} | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
fn.kptgen.dev/controller: specializer-operator-controller | ||
name: specializer-operator-controller | ||
spec: | ||
containers: | ||
- args: | ||
- --secure-listen-address=0.0.0.0:8443 | ||
- --upstream=http://127.0.0.1:8080/ | ||
- --logtostderr=true | ||
- --v=10 | ||
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0 | ||
name: kube-rbac-proxy | ||
ports: | ||
- containerPort: 8443 | ||
name: https | ||
resources: {} | ||
- args: | ||
- --health-probe-bind-address=:8081 | ||
- --metrics-bind-address=127.0.0.1:8080 | ||
- --leader-elect | ||
command: | ||
- /manager | ||
env: | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.namespace | ||
- name: POD_IP | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: status.podIP | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: metadata.name | ||
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: spec.nodeName | ||
- name: NODE_IP | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: status.hostIP | ||
image: docker.io/nephio/specializer-operator:latest | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 8081 | ||
initialDelaySeconds: 15 | ||
periodSeconds: 20 | ||
name: controller | ||
readinessProbe: | ||
httpGet: | ||
path: /readyz | ||
port: 8081 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 128Mi | ||
requests: | ||
cpu: 10m | ||
memory: 64Mi | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
serviceAccountName: specializer-operator-controller | ||
status: {} |
45 changes: 45 additions & 0 deletions
45
...cializer-operator/blueprint/specializer-operator/app/controller/role-leader-election.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
name: specializer-operator-controller-leader-election-role | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- create | ||
- delete | ||
- apiGroups: | ||
- coordination.k8s.io | ||
resources: | ||
- leases | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- create | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- patch |
20 changes: 20 additions & 0 deletions
20
...r-operator/blueprint/specializer-operator/app/controller/rolebinding-leader-election.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
name: specializer-operator-controller-leader-election-role-binding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: specializer-operator-controller-leader-election-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: specializer-operator-controller |
13 changes: 13 additions & 0 deletions
13
...zer-operator/blueprint/specializer-operator/app/controller/serviceaccount-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: {} | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: tbd | ||
app.kubernetes.io/instance: tbd | ||
app.kubernetes.io/managed-by: kpt | ||
app.kubernetes.io/name: specializer-operator | ||
app.kubernetes.io/part-of: specializer-operator | ||
app.kubernetes.io/version: tbd | ||
name: specializer-operator-controller |
8 changes: 8 additions & 0 deletions
8
controllers/specializer-operator/blueprint/specializer-operator/crd/Kptfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kpt.dev/v1 | ||
kind: Kptfile | ||
metadata: | ||
name: crd | ||
annotations: | ||
config.kubernetes.io/local-config: "true" | ||
info: | ||
description: specializer-operator crd |
21 changes: 21 additions & 0 deletions
21
controllers/specializer-operator/blueprint/specializer-operator/crd/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# crd | ||
|
||
## Description | ||
specializer-operator crd | ||
|
||
## Usage | ||
|
||
### Fetch the package | ||
`kpt pkg get REPO_URI[.git]/PKG_PATH[@VERSION] crd` | ||
Details: https://kpt.dev/reference/cli/pkg/get/ | ||
|
||
### View package content | ||
`kpt pkg tree crd` | ||
Details: https://kpt.dev/reference/cli/pkg/tree/ | ||
|
||
### Apply the package | ||
``` | ||
kpt live init crd | ||
kpt live apply crd --reconcile-timeout=2m --output=table | ||
``` | ||
Details: https://kpt.dev/reference/cli/live/ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using this operator? I thought this is all in the nephio-operator now? If we are not using it, we should probably remove it entirely