Skip to content

Commit

Permalink
Update CRD printer, remove unused files
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Aug 18, 2020
1 parent b119605 commit bbba28b
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 50 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ deploy: manifests

# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=registry-creds-role paths="./..." output:crd:artifacts:config=config/crd/bases

# Run go fmt against code
fmt:
Expand Down
2 changes: 2 additions & 0 deletions api/v1/clusterpullsecret_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ type ClusterPullSecretStatus struct {

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:printcolumn:name="SecretName",type=string,JSONPath=`.spec.secretRef.name`
// +kubebuilder:printcolumn:name="SecretNamespace",type=string,JSONPath=`.spec.secretRef.namespace`

// ClusterPullSecret is the Schema for the clusterpullsecrets API
type ClusterPullSecret struct {
Expand Down
8 changes: 8 additions & 0 deletions config/crd/bases/ops.alexellis.io_clusterpullsecrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ metadata:
creationTimestamp: null
name: clusterpullsecrets.ops.alexellis.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.secretRef.name
name: SecretName
type: string
- JSONPath: .spec.secretRef.namespace
name: SecretNamespace
type: string
group: ops.alexellis.io
names:
kind: ClusterPullSecret
listKind: ClusterPullSecretList
plural: clusterpullsecrets
singular: clusterpullsecret
scope: Cluster
subresources: {}
validation:
openAPIV3Schema:
description: ClusterPullSecret is the Schema for the clusterpullsecrets API
Expand Down
3 changes: 1 addition & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ bases:
- ../rbac
- ../manager


patchesStrategicMerge:
# Protect the /metrics endpoint by putting it behind auth.
# If you want your controller-manager to expose the /metrics
# endpoint w/o any authn/z, please comment the following line.
- manager_auth_proxy_patch.yaml
# - manager_auth_proxy_patch.yaml

vars:
7 changes: 0 additions & 7 deletions config/rbac/auth_proxy_client_clusterrole.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions config/rbac/auth_proxy_role.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions config/rbac/auth_proxy_role_binding.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions config/rbac/auth_proxy_service.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: manager-role
name: registry-creds-role
rules:
- apiGroups:
- ""
Expand Down

0 comments on commit bbba28b

Please sign in to comment.