-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06c9b6c
commit 26e7164
Showing
5 changed files
with
152 additions
and
19 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
84 changes: 84 additions & 0 deletions
84
config/crd/bases/resources.altinn.studio_maskinportenclients.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,84 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.14.0 | ||
name: maskinportenclients.resources.altinn.studio | ||
spec: | ||
group: resources.altinn.studio | ||
names: | ||
kind: MaskinportenClient | ||
listKind: MaskinportenClientList | ||
plural: maskinportenclients | ||
singular: maskinportenclient | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: MaskinportenClient is the Schema for the maskinportenclients | ||
API | ||
properties: | ||
apiVersion: | ||
description: |- | ||
APIVersion defines the versioned schema of this representation of an object. | ||
Servers should convert recognized schemas to the latest internal value, and | ||
may reject unrecognized values. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
type: string | ||
kind: | ||
description: |- | ||
Kind is a string value representing the REST resource this object represents. | ||
Servers may infer this from the endpoint the client submits requests to. | ||
Cannot be updated. | ||
In CamelCase. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: MaskinportenClientSpec defines the desired state of MaskinportenClient | ||
properties: | ||
scopes: | ||
description: Scopes is a list of Maskinporten scopes that the client | ||
should have access to | ||
items: | ||
type: string | ||
type: array | ||
type: object | ||
status: | ||
description: MaskinportenClientStatus defines the observed state of MaskinportenClient | ||
properties: | ||
authority: | ||
type: string | ||
clientId: | ||
description: ClientId is the client id of the client posted to Maskinporten | ||
API | ||
type: string | ||
keyIds: | ||
items: | ||
type: string | ||
type: array | ||
lastActions: | ||
items: | ||
type: string | ||
type: array | ||
lastSynced: | ||
description: LastSynced is the timestamp of the last successful sync | ||
towards Maskinporten API | ||
format: date-time | ||
type: string | ||
observedGeneration: | ||
format: int64 | ||
type: integer | ||
reason: | ||
type: string | ||
state: | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
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 |
---|---|---|
@@ -1,15 +1,32 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: clusterrole | ||
app.kubernetes.io/instance: manager-role | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: altinn-k8s-operator | ||
app.kubernetes.io/part-of: altinn-k8s-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: manager-role | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: | ||
- resources.altinn.studio | ||
resources: | ||
- maskinportenclients | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- resources.altinn.studio | ||
resources: | ||
- maskinportenclients/finalizers | ||
verbs: | ||
- update | ||
- apiGroups: | ||
- resources.altinn.studio | ||
resources: | ||
- maskinportenclients/status | ||
verbs: | ||
- get | ||
- patch | ||
- update |
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