Skip to content

Commit

Permalink
Merge pull request #30 from lmilleri/fix-sample
Browse files Browse the repository at this point in the history
Rename operator part II and fix sample yaml
  • Loading branch information
bpradipt authored Jun 7, 2024
2 parents 55ccf3a + e400d39 commit b7b6f93
Show file tree
Hide file tree
Showing 20 changed files with 66 additions and 88 deletions.
17 changes: 0 additions & 17 deletions bundle/manifests/as-config-grpc-sample_v1_configmap.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions bundle/manifests/kbs-config-grpc-sample_v1_configmap.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions bundle/manifests/kbs-config-sample_v1_configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: v1
data:
kbs-config.json: |
{
"insecure_http" : true,
"sockets": ["0.0.0.0:8080"],
"auth_public_key": "/etc/auth-secret/kbs.pem",
"attestation_token_config": {
"attestation_token_type": "CoCo"
},
"repository_config": {
"type": "LocalFs",
"dir_path": "/opt/confidential-containers/kbs/repository"
},
"as_config": {
"work_dir": "/opt/confidential-containers/attestation-service",
"policy_engine": "opa",
"attestation_token_broker": "Simple",
"attestation_token_config": {
"duration_min": 5
},
"rvps_config": {
"store_type": "LocalJson",
"store_config": {
"file_path": "/opt/confidential-containers/rvps/reference-values/reference-values.json"
}
}
},
"policy_engine_config": {
"policy_path": "/opt/confidential-containers/opa/policy.rego"
}
}
kind: ConfigMap
metadata:
name: kbs-config-sample
13 changes: 0 additions & 13 deletions bundle/manifests/rvps-config-grpc-sample_v1_configmap.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@ metadata:
"namespace": "kbs-operator-system"
},
"spec": {
"kbsAsConfigMapName": "as-config-grpc",
"kbsAuthSecretName": "kbs-auth-public-key",
"kbsConfigMapName": "kbs-config-grpc",
"kbsDeploymentType": "MicroservicesDeployment",
"kbsRvpsConfigMapName": "rvps-config-grpc",
"kbsRvpsRefValuesConfigMapName": "rvps-reference-values",
"kbsServiceType": "ClusterIP"
"kbsConfigMapName": "kbs-config",
"kbsDeploymentType": "AllInOneDeployment",
"kbsRvpsRefValuesConfigMapName": "rvps-reference-values"
}
}
]
capabilities: Basic Install
createdAt: "2024-04-29T09:43:48Z"
createdAt: "2024-06-05T08:47:27Z"
operators.operatorframework.io/builder: operator-sdk-v1.33.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
name: trustee-operator.v0.0.1
Expand Down Expand Up @@ -138,7 +135,7 @@ spec:
- subjectaccessreviews
verbs:
- create
serviceAccountName: kbs-operator-controller-manager
serviceAccountName: trustee-operator-controller-manager
deployments:
- label:
app.kubernetes.io/component: manager
Expand All @@ -148,7 +145,7 @@ spec:
app.kubernetes.io/name: deployment
app.kubernetes.io/part-of: trustee-operator
control-plane: controller-manager
name: kbs-operator-controller-manager
name: trustee-operator-controller-manager
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -247,7 +244,7 @@ spec:
- ALL
securityContext:
runAsNonRoot: true
serviceAccountName: kbs-operator-controller-manager
serviceAccountName: trustee-operator-controller-manager
terminationGracePeriodSeconds: 10
permissions:
- rules:
Expand Down Expand Up @@ -282,7 +279,7 @@ spec:
verbs:
- create
- patch
serviceAccountName: kbs-operator-controller-manager
serviceAccountName: trustee-operator-controller-manager
strategy: deployment
installModes:
- supported: false
Expand Down
2 changes: 1 addition & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace: kbs-operator-system
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: kbs-operator-
namePrefix: trustee-operator-

# Labels to add to all resources and selectors.
#commonLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ spec:
kind: KbsConfig
name: kbsconfigs.confidentialcontainers.org
version: v1alpha1
description: Operator to manage the lifecycle of Key Broker Service (KBS)
displayName: KBS Operator
description: Operator to manage the lifecycle of Trustee
displayName: Trustee Operator
icon:
- base64data: PHN2ZyB4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
mediatype: image/svg+xml
Expand All @@ -39,7 +39,7 @@ spec:
- attestation-service
- rvps
links:
- name: Kbs Operator
- name: Trustee Operator
url: https://github.com/confidential-containers/trustee-operator
maintainers:
- email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion config/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These resources constitute the fully configured set of manifests
# used to generate the 'manifests/' directory in a bundle.
resources:
- bases/kbs-operator.clusterserviceversion.yaml
- bases/trustee-operator.clusterserviceversion.yaml
- ../default
- ../samples
- ../scorecard
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: service
app.kubernetes.io/instance: controller-manager-metrics-service
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/created-by: trustee-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
name: controller-manager-metrics-service
namespace: system
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/kbsconfig_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: kbsconfig-editor-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/created-by: trustee-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
name: kbsconfig-editor-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/kbsconfig_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: kbsconfig-viewer-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/created-by: trustee-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
name: kbsconfig-viewer-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: role
app.kubernetes.io/instance: leader-election-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/created-by: trustee-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
name: leader-election-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/leader_election_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
app.kubernetes.io/name: rolebinding
app.kubernetes.io/instance: leader-election-rolebinding
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/created-by: trustee-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
name: leader-election-rolebinding
roleRef:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
app.kubernetes.io/name: clusterrolebinding
app.kubernetes.io/instance: manager-rolebinding
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/created-by: trustee-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
name: manager-rolebinding
roleRef:
Expand Down
4 changes: 2 additions & 2 deletions config/samples/all-in-one/kbsconfig_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ metadata:
labels:
app.kubernetes.io/name: kbsconfig
app.kubernetes.io/instance: kbsconfig-sample
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/created-by: trustee-operator
name: kbsconfig-sample
namespace: kbs-operator-system
spec:
Expand Down
3 changes: 1 addition & 2 deletions config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ kind: Kustomization
nameSuffix: -sample

resources:
- microservices
# - all-in-one
- all-in-one

4 changes: 2 additions & 2 deletions config/samples/microservices/kbsconfig_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ metadata:
labels:
app.kubernetes.io/name: kbsconfig
app.kubernetes.io/instance: kbsconfig-sample
app.kubernetes.io/part-of: kbs-operator
app.kubernetes.io/part-of: trustee-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: kbs-operator
app.kubernetes.io/created-by: trustee-operator
name: kbsconfig-sample
namespace: kbs-operator-system
spec:
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
KbsFinalizerName = "kbsconfig.confidentialcontainers.org/finalizer"

// KBS Deployment name
KbsDeploymentName = "kbs-deployment"
KbsDeploymentName = "trustee-deployment"

// KBS operator default namespace
KbsOperatorNamespace = "kbs-operator-system"
Expand Down

0 comments on commit b7b6f93

Please sign in to comment.