Rename project

This commit is contained in:
Ryan Richard
2020-08-20 10:54:15 -07:00
parent 43888e9e0a
commit 3929fa672e
121 changed files with 1641 additions and 1652 deletions

View File

@@ -8,4 +8,4 @@ https://hub.docker.com/r/k14s/image/tags
1. Fill in the values in [values.yml](values.yaml)
2. In a terminal, cd to this `deploy` directory
3. Run: `ytt --file . | kapp deploy --yes --app placeholder-name --diff-changes --file -`
3. Run: `ytt --file . | kapp deploy --yes --app pinniped --diff-changes --file -`

View File

@@ -1,9 +1,9 @@
#@ load("@ytt:data", "data")
#! Example of valid LoginDiscoveryConfig object:
#! Example of valid PinnipedDiscoveryInfo object:
#! ---
#! apiVersion: suzerain-io.github.io/v1alpha1
#! kind: LoginDiscoveryConfig
#! apiVersion: crd.pinniped.dev/v1alpha1
#! kind: PinnipedDiscoveryInfo
#! metadata:
#! name: login-discovery
#! namespace: integration
@@ -15,12 +15,12 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: logindiscoveryconfigs.crds.placeholder.suzerain-io.github.io
name: pinnipeddiscoveryinfos.crd.pinniped.dev
spec:
group: crds.placeholder.suzerain-io.github.io
group: crd.pinniped.dev
versions:
#! Any changes to these schemas should also be reflected in the types.go file(s)
#! in https://github.com/suzerain-io/placeholder-name-api/tree/main/pkg/apis/placeholder
#! in https://github.com/suzerain-io/pinniped-api/tree/main/pkg/apis/pinniped
- name: v1alpha1
served: true
storage: true
@@ -42,8 +42,8 @@ spec:
minLength: 1
scope: Namespaced
names:
plural: logindiscoveryconfigs
singular: logindiscoveryconfig
kind: LoginDiscoveryConfig
plural: pinnipeddiscoveryinfos
singular: pinnipeddiscoveryinfo
kind: PinnipedDiscoveryInfo
shortNames:
- ldc

View File

@@ -23,7 +23,7 @@ metadata:
app: #@ data.values.app_name
data:
#@yaml/text-templated-strings
placeholder-name.yaml: |
pinniped.yaml: |
discovery:
url: (@= data.values.discovery_url or "null" @)
webhook:
@@ -70,7 +70,7 @@ spec:
- name: image-pull-secret
#@ end
containers:
- name: placeholder-name
- name: pinniped
#@ if data.values.image_digest:
image: #@ data.values.image_repo + "@" + data.values.image_digest
#@ else:
@@ -78,7 +78,7 @@ spec:
#@ end
imagePullPolicy: IfNotPresent
args:
- --config=/etc/config/placeholder-name.yaml
- --config=/etc/config/pinniped.yaml
- --downward-api-path=/etc/podinfo
volumeMounts:
- name: config-volume
@@ -128,7 +128,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: placeholder-name-api #! the golang code assumes this specific name as part of the common name during cert generation
name: pinniped-api #! the golang code assumes this specific name as part of the common name during cert generation
namespace: #@ data.values.namespace
labels:
app: #@ data.values.app_name
@@ -144,16 +144,16 @@ spec:
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1alpha1.placeholder.suzerain-io.github.io
name: v1alpha1.pinniped.dev
labels:
app: #@ data.values.app_name
spec:
version: v1alpha1
group: placeholder.suzerain-io.github.io
group: pinniped.dev
groupPriorityMinimum: 2500 #! TODO what is the right value? https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#apiservicespec-v1beta1-apiregistration-k8s-io
versionPriority: 10 #! TODO what is the right value? https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#apiservicespec-v1beta1-apiregistration-k8s-io
#! caBundle: Do not include this key here. Starts out null, will be updated/owned by the golang code.
service:
name: placeholder-name-api
name: pinniped-api
namespace: #@ data.values.namespace
port: 443

View File

@@ -44,8 +44,8 @@ rules:
- apiGroups: [""]
resources: [secrets]
verbs: [create, get, list, patch, update, watch, delete]
- apiGroups: [crds.placeholder.suzerain-io.github.io]
resources: [logindiscoveryconfigs]
- apiGroups: [crd.pinniped.dev]
resources: [pinnipeddiscoveryinfos]
verbs: [create, get, list, update, watch]
---
kind: RoleBinding
@@ -98,7 +98,7 @@ kind: ClusterRole
metadata:
name: #@ data.values.app_name + "-credentialrequests-cluster-role"
rules:
- apiGroups: [placeholder.suzerain-io.github.io]
- apiGroups: [pinniped.dev]
resources: [credentialrequests]
verbs: [create]
---

View File

@@ -1,9 +1,9 @@
#@data/values
---
app_name: placeholder-name
app_name: pinniped
namespace: #! e.g. placeholder-name
namespace: #! e.g. pinniped
#! Specify either an image_digest or an image_tag. If both are given, only image_digest will be used.
image_repo: #! e.g. registry.example.com/your-project-name/repo-name